@arbisoft/react-design-tool 1.0.21 → 1.0.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +36 -10
- package/dist/cjs/index.js +359 -559
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +359 -559
- package/dist/esm/index.js.map +1 -1
- package/package.json +78 -78
package/dist/esm/index.js
CHANGED
|
@@ -184,306 +184,115 @@ function _objectWithoutPropertiesLoose(r, e) {
|
|
|
184
184
|
}
|
|
185
185
|
return t;
|
|
186
186
|
}
|
|
187
|
-
function
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
return o(a, "_invoke", {
|
|
222
|
-
value: makeInvokeMethod(t, r, c)
|
|
223
|
-
}), a;
|
|
224
|
-
}
|
|
225
|
-
function tryCatch(t, e, r) {
|
|
226
|
-
try {
|
|
227
|
-
return {
|
|
228
|
-
type: "normal",
|
|
229
|
-
arg: t.call(e, r)
|
|
230
|
-
};
|
|
231
|
-
} catch (t) {
|
|
232
|
-
return {
|
|
233
|
-
type: "throw",
|
|
234
|
-
arg: t
|
|
235
|
-
};
|
|
236
|
-
}
|
|
237
|
-
}
|
|
238
|
-
e.wrap = wrap;
|
|
239
|
-
var h = "suspendedStart",
|
|
240
|
-
l = "suspendedYield",
|
|
241
|
-
f = "executing",
|
|
242
|
-
s = "completed",
|
|
243
|
-
y = {};
|
|
244
|
-
function Generator() {}
|
|
245
|
-
function GeneratorFunction() {}
|
|
246
|
-
function GeneratorFunctionPrototype() {}
|
|
247
|
-
var p = {};
|
|
248
|
-
define(p, a, function () {
|
|
249
|
-
return this;
|
|
250
|
-
});
|
|
251
|
-
var d = Object.getPrototypeOf,
|
|
252
|
-
v = d && d(d(values([])));
|
|
253
|
-
v && v !== r && n.call(v, a) && (p = v);
|
|
254
|
-
var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p);
|
|
255
|
-
function defineIteratorMethods(t) {
|
|
256
|
-
["next", "throw", "return"].forEach(function (e) {
|
|
257
|
-
define(t, e, function (t) {
|
|
258
|
-
return this._invoke(e, t);
|
|
259
|
-
});
|
|
260
|
-
});
|
|
261
|
-
}
|
|
262
|
-
function AsyncIterator(t, e) {
|
|
263
|
-
function invoke(r, o, i, a) {
|
|
264
|
-
var c = tryCatch(t[r], t, o);
|
|
265
|
-
if ("throw" !== c.type) {
|
|
266
|
-
var u = c.arg,
|
|
267
|
-
h = u.value;
|
|
268
|
-
return h && "object" == typeof h && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) {
|
|
269
|
-
invoke("next", t, i, a);
|
|
270
|
-
}, function (t) {
|
|
271
|
-
invoke("throw", t, i, a);
|
|
272
|
-
}) : e.resolve(h).then(function (t) {
|
|
273
|
-
u.value = t, i(u);
|
|
274
|
-
}, function (t) {
|
|
275
|
-
return invoke("throw", t, i, a);
|
|
276
|
-
});
|
|
277
|
-
}
|
|
278
|
-
a(c.arg);
|
|
279
|
-
}
|
|
280
|
-
var r;
|
|
281
|
-
o(this, "_invoke", {
|
|
282
|
-
value: function (t, n) {
|
|
283
|
-
function callInvokeWithMethodAndArg() {
|
|
284
|
-
return new e(function (e, r) {
|
|
285
|
-
invoke(t, n, e, r);
|
|
286
|
-
});
|
|
187
|
+
function _regenerator() {
|
|
188
|
+
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */
|
|
189
|
+
var e,
|
|
190
|
+
t,
|
|
191
|
+
r = "function" == typeof Symbol ? Symbol : {},
|
|
192
|
+
n = r.iterator || "@@iterator",
|
|
193
|
+
o = r.toStringTag || "@@toStringTag";
|
|
194
|
+
function i(r, n, o, i) {
|
|
195
|
+
var c = n && n.prototype instanceof Generator ? n : Generator,
|
|
196
|
+
u = Object.create(c.prototype);
|
|
197
|
+
return _regeneratorDefine(u, "_invoke", function (r, n, o) {
|
|
198
|
+
var i,
|
|
199
|
+
c,
|
|
200
|
+
u,
|
|
201
|
+
f = 0,
|
|
202
|
+
p = o || [],
|
|
203
|
+
y = false,
|
|
204
|
+
G = {
|
|
205
|
+
p: 0,
|
|
206
|
+
n: 0,
|
|
207
|
+
v: e,
|
|
208
|
+
a: d,
|
|
209
|
+
f: d.bind(e, 4),
|
|
210
|
+
d: function (t, r) {
|
|
211
|
+
return i = t, c = 0, u = e, G.n = r, a;
|
|
212
|
+
}
|
|
213
|
+
};
|
|
214
|
+
function d(r, n) {
|
|
215
|
+
for (c = r, u = n, t = 0; !y && f && !o && t < p.length; t++) {
|
|
216
|
+
var o,
|
|
217
|
+
i = p[t],
|
|
218
|
+
d = G.p,
|
|
219
|
+
l = i[2];
|
|
220
|
+
r > 3 ? (o = l === n) && (u = i[(c = i[4]) ? 5 : (c = 3, 3)], i[4] = i[5] = e) : i[0] <= d && ((o = r < 2 && d < i[1]) ? (c = 0, G.v = n, G.n = i[1]) : d < l && (o = r < 3 || i[0] > n || n > l) && (i[4] = r, i[5] = n, G.n = l, c = 0));
|
|
287
221
|
}
|
|
288
|
-
|
|
222
|
+
if (o || r > 1) return a;
|
|
223
|
+
throw y = true, n;
|
|
289
224
|
}
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
225
|
+
return function (o, p, l) {
|
|
226
|
+
if (f > 1) throw TypeError("Generator is already running");
|
|
227
|
+
for (y && 1 === p && d(p, l), c = p, u = l; (t = c < 2 ? e : u) || !y;) {
|
|
228
|
+
i || (c ? c < 3 ? (c > 1 && (G.n = -1), d(c, u)) : G.n = u : G.v = u);
|
|
229
|
+
try {
|
|
230
|
+
if (f = 2, i) {
|
|
231
|
+
if (c || (o = "next"), t = i[o]) {
|
|
232
|
+
if (!(t = t.call(i, u))) throw TypeError("iterator result is not an object");
|
|
233
|
+
if (!t.done) return t;
|
|
234
|
+
u = t.value, c < 2 && (c = 0);
|
|
235
|
+
} else 1 === c && (t = i.return) && t.call(i), c < 2 && (u = TypeError("The iterator does not provide a '" + o + "' method"), c = 1);
|
|
236
|
+
i = e;
|
|
237
|
+
} else if ((t = (y = G.n < 0) ? u : r.call(n, G)) !== a) break;
|
|
238
|
+
} catch (t) {
|
|
239
|
+
i = e, c = 1, u = t;
|
|
240
|
+
} finally {
|
|
241
|
+
f = 1;
|
|
242
|
+
}
|
|
243
|
+
}
|
|
298
244
|
return {
|
|
299
245
|
value: t,
|
|
300
|
-
done:
|
|
246
|
+
done: y
|
|
301
247
|
};
|
|
302
|
-
}
|
|
303
|
-
|
|
304
|
-
var c = n.delegate;
|
|
305
|
-
if (c) {
|
|
306
|
-
var u = maybeInvokeDelegate(c, n);
|
|
307
|
-
if (u) {
|
|
308
|
-
if (u === y) continue;
|
|
309
|
-
return u;
|
|
310
|
-
}
|
|
311
|
-
}
|
|
312
|
-
if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) {
|
|
313
|
-
if (o === h) throw o = s, n.arg;
|
|
314
|
-
n.dispatchException(n.arg);
|
|
315
|
-
} else "return" === n.method && n.abrupt("return", n.arg);
|
|
316
|
-
o = f;
|
|
317
|
-
var p = tryCatch(e, r, n);
|
|
318
|
-
if ("normal" === p.type) {
|
|
319
|
-
if (o = n.done ? s : l, p.arg === y) continue;
|
|
320
|
-
return {
|
|
321
|
-
value: p.arg,
|
|
322
|
-
done: n.done
|
|
323
|
-
};
|
|
324
|
-
}
|
|
325
|
-
"throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg);
|
|
326
|
-
}
|
|
327
|
-
};
|
|
328
|
-
}
|
|
329
|
-
function maybeInvokeDelegate(e, r) {
|
|
330
|
-
var n = r.method,
|
|
331
|
-
o = e.iterator[n];
|
|
332
|
-
if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y;
|
|
333
|
-
var i = tryCatch(o, e.iterator, r.arg);
|
|
334
|
-
if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y;
|
|
335
|
-
var a = i.arg;
|
|
336
|
-
return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y);
|
|
337
|
-
}
|
|
338
|
-
function pushTryEntry(t) {
|
|
339
|
-
var e = {
|
|
340
|
-
tryLoc: t[0]
|
|
341
|
-
};
|
|
342
|
-
1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e);
|
|
343
|
-
}
|
|
344
|
-
function resetTryEntry(t) {
|
|
345
|
-
var e = t.completion || {};
|
|
346
|
-
e.type = "normal", delete e.arg, t.completion = e;
|
|
347
|
-
}
|
|
348
|
-
function Context(t) {
|
|
349
|
-
this.tryEntries = [{
|
|
350
|
-
tryLoc: "root"
|
|
351
|
-
}], t.forEach(pushTryEntry, this), this.reset(true);
|
|
248
|
+
};
|
|
249
|
+
}(r, o, i), true), u;
|
|
352
250
|
}
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
return i.next = i;
|
|
365
|
-
}
|
|
366
|
-
}
|
|
367
|
-
throw new TypeError(typeof e + " is not iterable");
|
|
251
|
+
var a = {};
|
|
252
|
+
function Generator() {}
|
|
253
|
+
function GeneratorFunction() {}
|
|
254
|
+
function GeneratorFunctionPrototype() {}
|
|
255
|
+
t = Object.getPrototypeOf;
|
|
256
|
+
var c = [][n] ? t(t([][n]())) : (_regeneratorDefine(t = {}, n, function () {
|
|
257
|
+
return this;
|
|
258
|
+
}), t),
|
|
259
|
+
u = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(c);
|
|
260
|
+
function f(e) {
|
|
261
|
+
return Object.setPrototypeOf ? Object.setPrototypeOf(e, GeneratorFunctionPrototype) : (e.__proto__ = GeneratorFunctionPrototype, _regeneratorDefine(e, o, "GeneratorFunction")), e.prototype = Object.create(u), e;
|
|
368
262
|
}
|
|
369
|
-
return GeneratorFunction.prototype = GeneratorFunctionPrototype,
|
|
370
|
-
value: GeneratorFunctionPrototype,
|
|
371
|
-
configurable: true
|
|
372
|
-
}), o(GeneratorFunctionPrototype, "constructor", {
|
|
373
|
-
value: GeneratorFunction,
|
|
374
|
-
configurable: true
|
|
375
|
-
}), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) {
|
|
376
|
-
var e = "function" == typeof t && t.constructor;
|
|
377
|
-
return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name));
|
|
378
|
-
}, e.mark = function (t) {
|
|
379
|
-
return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t;
|
|
380
|
-
}, e.awrap = function (t) {
|
|
381
|
-
return {
|
|
382
|
-
__await: t
|
|
383
|
-
};
|
|
384
|
-
}, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () {
|
|
263
|
+
return GeneratorFunction.prototype = GeneratorFunctionPrototype, _regeneratorDefine(u, "constructor", GeneratorFunctionPrototype), _regeneratorDefine(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = "GeneratorFunction", _regeneratorDefine(GeneratorFunctionPrototype, o, "GeneratorFunction"), _regeneratorDefine(u), _regeneratorDefine(u, o, "Generator"), _regeneratorDefine(u, n, function () {
|
|
385
264
|
return this;
|
|
386
|
-
}),
|
|
387
|
-
void 0 === i && (i = Promise);
|
|
388
|
-
var a = new AsyncIterator(wrap(t, r, n, o), i);
|
|
389
|
-
return e.isGeneratorFunction(r) ? a : a.next().then(function (t) {
|
|
390
|
-
return t.done ? t.value : a.next();
|
|
391
|
-
});
|
|
392
|
-
}, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () {
|
|
393
|
-
return this;
|
|
394
|
-
}), define(g, "toString", function () {
|
|
265
|
+
}), _regeneratorDefine(u, "toString", function () {
|
|
395
266
|
return "[object Generator]";
|
|
396
|
-
}),
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
return r.reverse(), function next() {
|
|
401
|
-
for (; r.length;) {
|
|
402
|
-
var t = r.pop();
|
|
403
|
-
if (t in e) return next.value = t, next.done = false, next;
|
|
404
|
-
}
|
|
405
|
-
return next.done = true, next;
|
|
267
|
+
}), (_regenerator = function () {
|
|
268
|
+
return {
|
|
269
|
+
w: i,
|
|
270
|
+
m: f
|
|
406
271
|
};
|
|
407
|
-
}
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
if ("root" === i.tryLoc) return handle("end");
|
|
428
|
-
if (i.tryLoc <= this.prev) {
|
|
429
|
-
var c = n.call(i, "catchLoc"),
|
|
430
|
-
u = n.call(i, "finallyLoc");
|
|
431
|
-
if (c && u) {
|
|
432
|
-
if (this.prev < i.catchLoc) return handle(i.catchLoc, true);
|
|
433
|
-
if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
|
|
434
|
-
} else if (c) {
|
|
435
|
-
if (this.prev < i.catchLoc) return handle(i.catchLoc, true);
|
|
436
|
-
} else {
|
|
437
|
-
if (!u) throw Error("try statement without catch or finally");
|
|
438
|
-
if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
|
|
439
|
-
}
|
|
440
|
-
}
|
|
441
|
-
}
|
|
442
|
-
},
|
|
443
|
-
abrupt: function (t, e) {
|
|
444
|
-
for (var r = this.tryEntries.length - 1; r >= 0; --r) {
|
|
445
|
-
var o = this.tryEntries[r];
|
|
446
|
-
if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) {
|
|
447
|
-
var i = o;
|
|
448
|
-
break;
|
|
449
|
-
}
|
|
450
|
-
}
|
|
451
|
-
i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null);
|
|
452
|
-
var a = i ? i.completion : {};
|
|
453
|
-
return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a);
|
|
454
|
-
},
|
|
455
|
-
complete: function (t, e) {
|
|
456
|
-
if ("throw" === t.type) throw t.arg;
|
|
457
|
-
return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y;
|
|
458
|
-
},
|
|
459
|
-
finish: function (t) {
|
|
460
|
-
for (var e = this.tryEntries.length - 1; e >= 0; --e) {
|
|
461
|
-
var r = this.tryEntries[e];
|
|
462
|
-
if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y;
|
|
463
|
-
}
|
|
464
|
-
},
|
|
465
|
-
catch: function (t) {
|
|
466
|
-
for (var e = this.tryEntries.length - 1; e >= 0; --e) {
|
|
467
|
-
var r = this.tryEntries[e];
|
|
468
|
-
if (r.tryLoc === t) {
|
|
469
|
-
var n = r.completion;
|
|
470
|
-
if ("throw" === n.type) {
|
|
471
|
-
var o = n.arg;
|
|
472
|
-
resetTryEntry(r);
|
|
473
|
-
}
|
|
474
|
-
return o;
|
|
475
|
-
}
|
|
272
|
+
})();
|
|
273
|
+
}
|
|
274
|
+
function _regeneratorDefine(e, r, n, t) {
|
|
275
|
+
var i = Object.defineProperty;
|
|
276
|
+
try {
|
|
277
|
+
i({}, "", {});
|
|
278
|
+
} catch (e) {
|
|
279
|
+
i = 0;
|
|
280
|
+
}
|
|
281
|
+
_regeneratorDefine = function (e, r, n, t) {
|
|
282
|
+
if (r) i ? i(e, r, {
|
|
283
|
+
value: n,
|
|
284
|
+
enumerable: !t,
|
|
285
|
+
configurable: !t,
|
|
286
|
+
writable: !t
|
|
287
|
+
}) : e[r] = n;else {
|
|
288
|
+
function o(r, n) {
|
|
289
|
+
_regeneratorDefine(e, r, function (e) {
|
|
290
|
+
return this._invoke(r, n, e);
|
|
291
|
+
});
|
|
476
292
|
}
|
|
477
|
-
|
|
478
|
-
},
|
|
479
|
-
delegateYield: function (e, r, n) {
|
|
480
|
-
return this.delegate = {
|
|
481
|
-
iterator: values(e),
|
|
482
|
-
resultName: r,
|
|
483
|
-
nextLoc: n
|
|
484
|
-
}, "next" === this.method && (this.arg = t), y;
|
|
293
|
+
o("next", 0), o("throw", 1), o("return", 2);
|
|
485
294
|
}
|
|
486
|
-
}, e;
|
|
295
|
+
}, _regeneratorDefine(e, r, n, t);
|
|
487
296
|
}
|
|
488
297
|
function _slicedToArray(r, e) {
|
|
489
298
|
return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();
|
|
@@ -2123,15 +1932,15 @@ var StyledContainer$6 = styled.div(_templateObject$p || (_templateObject$p = _ta
|
|
|
2123
1932
|
}, function (_ref9) {
|
|
2124
1933
|
var disabled = _ref9.disabled;
|
|
2125
1934
|
return disabled ? 'not-allowed' : 'pointer';
|
|
2126
|
-
}, function (
|
|
2127
|
-
var
|
|
2128
|
-
gap =
|
|
1935
|
+
}, function (_ref0) {
|
|
1936
|
+
var _ref0$gap = _ref0.gap,
|
|
1937
|
+
gap = _ref0$gap === void 0 ? 0 : _ref0$gap;
|
|
2129
1938
|
return "".concat(gap, "px");
|
|
2130
|
-
}, function (
|
|
2131
|
-
var disabled =
|
|
1939
|
+
}, function (_ref1) {
|
|
1940
|
+
var disabled = _ref1.disabled;
|
|
2132
1941
|
return disabled ? 0.5 : 1;
|
|
2133
|
-
}, function (
|
|
2134
|
-
var disabled =
|
|
1942
|
+
}, function (_ref10) {
|
|
1943
|
+
var disabled = _ref10.disabled;
|
|
2135
1944
|
return disabled ? 'none' : 'all';
|
|
2136
1945
|
});
|
|
2137
1946
|
|
|
@@ -2379,78 +2188,78 @@ var StyledImage = styled.img(_templateObject$k || (_templateObject$k = _taggedTe
|
|
|
2379
2188
|
var _ref9$marginLeft = _ref9.marginLeft,
|
|
2380
2189
|
marginLeft = _ref9$marginLeft === void 0 ? 0 : _ref9$marginLeft;
|
|
2381
2190
|
return "".concat(marginLeft, "px");
|
|
2382
|
-
}, function (
|
|
2383
|
-
var
|
|
2384
|
-
paddingTop =
|
|
2191
|
+
}, function (_ref0) {
|
|
2192
|
+
var _ref0$paddingTop = _ref0.paddingTop,
|
|
2193
|
+
paddingTop = _ref0$paddingTop === void 0 ? 0 : _ref0$paddingTop;
|
|
2385
2194
|
return "".concat(paddingTop, "px");
|
|
2386
|
-
}, function (
|
|
2387
|
-
var
|
|
2388
|
-
paddingRight =
|
|
2195
|
+
}, function (_ref1) {
|
|
2196
|
+
var _ref1$paddingRight = _ref1.paddingRight,
|
|
2197
|
+
paddingRight = _ref1$paddingRight === void 0 ? 0 : _ref1$paddingRight;
|
|
2389
2198
|
return "".concat(paddingRight, "px");
|
|
2390
|
-
}, function (
|
|
2391
|
-
var
|
|
2392
|
-
paddingBottom =
|
|
2199
|
+
}, function (_ref10) {
|
|
2200
|
+
var _ref10$paddingBottom = _ref10.paddingBottom,
|
|
2201
|
+
paddingBottom = _ref10$paddingBottom === void 0 ? 0 : _ref10$paddingBottom;
|
|
2393
2202
|
return "".concat(paddingBottom, "px");
|
|
2394
|
-
}, function (
|
|
2395
|
-
var
|
|
2396
|
-
paddingLeft =
|
|
2203
|
+
}, function (_ref11) {
|
|
2204
|
+
var _ref11$paddingLeft = _ref11.paddingLeft,
|
|
2205
|
+
paddingLeft = _ref11$paddingLeft === void 0 ? 0 : _ref11$paddingLeft;
|
|
2397
2206
|
return "".concat(paddingLeft, "px");
|
|
2398
|
-
}, function (
|
|
2399
|
-
var
|
|
2400
|
-
borderRadius =
|
|
2207
|
+
}, function (_ref12) {
|
|
2208
|
+
var _ref12$borderRadius = _ref12.borderRadius,
|
|
2209
|
+
borderRadius = _ref12$borderRadius === void 0 ? 0 : _ref12$borderRadius;
|
|
2401
2210
|
return "".concat(borderRadius, "px");
|
|
2402
2211
|
});
|
|
2403
|
-
var StyledText = styled.p(_templateObject2$g || (_templateObject2$g = _taggedTemplateLiteral(["\n font-family: ", ";\n font-size: ", ";\n color: ", ";\n font-weight: ", ";\n line-height: ", ";\n text-align: ", ";\n margin-top: ", ";\n margin-right: ", ";\n margin-bottom: ", ";\n margin-left: ", ";\n padding-top: ", ";\n padding-right: ", ";\n padding-bottom: ", ";\n padding-left: ", ";\n"])), function (
|
|
2404
|
-
var fontFamily =
|
|
2212
|
+
var StyledText = styled.p(_templateObject2$g || (_templateObject2$g = _taggedTemplateLiteral(["\n font-family: ", ";\n font-size: ", ";\n color: ", ";\n font-weight: ", ";\n line-height: ", ";\n text-align: ", ";\n margin-top: ", ";\n margin-right: ", ";\n margin-bottom: ", ";\n margin-left: ", ";\n padding-top: ", ";\n padding-right: ", ";\n padding-bottom: ", ";\n padding-left: ", ";\n"])), function (_ref13) {
|
|
2213
|
+
var fontFamily = _ref13.fontFamily;
|
|
2405
2214
|
return fontFamily || theme.fonts.primary;
|
|
2406
|
-
}, function (
|
|
2407
|
-
var
|
|
2408
|
-
fontSize =
|
|
2215
|
+
}, function (_ref14) {
|
|
2216
|
+
var _ref14$fontSize = _ref14.fontSize,
|
|
2217
|
+
fontSize = _ref14$fontSize === void 0 ? 14 : _ref14$fontSize;
|
|
2409
2218
|
return "".concat(fontSize, "px");
|
|
2410
|
-
}, function (
|
|
2411
|
-
var color =
|
|
2219
|
+
}, function (_ref15) {
|
|
2220
|
+
var color = _ref15.color;
|
|
2412
2221
|
return color || theme.color.gray_700;
|
|
2413
|
-
}, function (
|
|
2414
|
-
var
|
|
2415
|
-
fontWeight =
|
|
2222
|
+
}, function (_ref16) {
|
|
2223
|
+
var _ref16$fontWeight = _ref16.fontWeight,
|
|
2224
|
+
fontWeight = _ref16$fontWeight === void 0 ? 400 : _ref16$fontWeight;
|
|
2416
2225
|
return fontWeight;
|
|
2417
|
-
}, function (
|
|
2418
|
-
var lineHeight =
|
|
2226
|
+
}, function (_ref17) {
|
|
2227
|
+
var lineHeight = _ref17.lineHeight;
|
|
2419
2228
|
return lineHeight || 'normal';
|
|
2420
|
-
}, function (
|
|
2421
|
-
var textAlign =
|
|
2229
|
+
}, function (_ref18) {
|
|
2230
|
+
var textAlign = _ref18.textAlign;
|
|
2422
2231
|
return textAlign || 'left';
|
|
2423
|
-
}, function (
|
|
2424
|
-
var
|
|
2425
|
-
marginTop =
|
|
2232
|
+
}, function (_ref19) {
|
|
2233
|
+
var _ref19$marginTop = _ref19.marginTop,
|
|
2234
|
+
marginTop = _ref19$marginTop === void 0 ? 0 : _ref19$marginTop;
|
|
2426
2235
|
return "".concat(marginTop, "px");
|
|
2427
|
-
}, function (
|
|
2428
|
-
var
|
|
2429
|
-
marginRight =
|
|
2236
|
+
}, function (_ref20) {
|
|
2237
|
+
var _ref20$marginRight = _ref20.marginRight,
|
|
2238
|
+
marginRight = _ref20$marginRight === void 0 ? 0 : _ref20$marginRight;
|
|
2430
2239
|
return "".concat(marginRight, "px");
|
|
2431
|
-
}, function (
|
|
2432
|
-
var
|
|
2433
|
-
marginBottom =
|
|
2240
|
+
}, function (_ref21) {
|
|
2241
|
+
var _ref21$marginBottom = _ref21.marginBottom,
|
|
2242
|
+
marginBottom = _ref21$marginBottom === void 0 ? 0 : _ref21$marginBottom;
|
|
2434
2243
|
return "".concat(marginBottom, "px");
|
|
2435
|
-
}, function (
|
|
2436
|
-
var
|
|
2437
|
-
marginLeft =
|
|
2244
|
+
}, function (_ref22) {
|
|
2245
|
+
var _ref22$marginLeft = _ref22.marginLeft,
|
|
2246
|
+
marginLeft = _ref22$marginLeft === void 0 ? 0 : _ref22$marginLeft;
|
|
2438
2247
|
return "".concat(marginLeft, "px");
|
|
2439
|
-
}, function (
|
|
2440
|
-
var
|
|
2441
|
-
paddingTop =
|
|
2248
|
+
}, function (_ref23) {
|
|
2249
|
+
var _ref23$paddingTop = _ref23.paddingTop,
|
|
2250
|
+
paddingTop = _ref23$paddingTop === void 0 ? 0 : _ref23$paddingTop;
|
|
2442
2251
|
return "".concat(paddingTop, "px");
|
|
2443
|
-
}, function (
|
|
2444
|
-
var
|
|
2445
|
-
paddingRight =
|
|
2252
|
+
}, function (_ref24) {
|
|
2253
|
+
var _ref24$paddingRight = _ref24.paddingRight,
|
|
2254
|
+
paddingRight = _ref24$paddingRight === void 0 ? 0 : _ref24$paddingRight;
|
|
2446
2255
|
return "".concat(paddingRight, "px");
|
|
2447
|
-
}, function (
|
|
2448
|
-
var
|
|
2449
|
-
paddingBottom =
|
|
2256
|
+
}, function (_ref25) {
|
|
2257
|
+
var _ref25$paddingBottom = _ref25.paddingBottom,
|
|
2258
|
+
paddingBottom = _ref25$paddingBottom === void 0 ? 0 : _ref25$paddingBottom;
|
|
2450
2259
|
return "".concat(paddingBottom, "px");
|
|
2451
|
-
}, function (
|
|
2452
|
-
var
|
|
2453
|
-
paddingLeft =
|
|
2260
|
+
}, function (_ref26) {
|
|
2261
|
+
var _ref26$paddingLeft = _ref26.paddingLeft,
|
|
2262
|
+
paddingLeft = _ref26$paddingLeft === void 0 ? 0 : _ref26$paddingLeft;
|
|
2454
2263
|
return "".concat(paddingLeft, "px");
|
|
2455
2264
|
});
|
|
2456
2265
|
|
|
@@ -2548,12 +2357,12 @@ var loadAllGoogleFonts = function loadAllGoogleFonts() {
|
|
|
2548
2357
|
});
|
|
2549
2358
|
};
|
|
2550
2359
|
var preloadRelevantImages = /*#__PURE__*/function () {
|
|
2551
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/
|
|
2360
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
|
|
2552
2361
|
var elements,
|
|
2553
2362
|
imagePromises,
|
|
2554
2363
|
_args = arguments;
|
|
2555
|
-
return
|
|
2556
|
-
while (1) switch (_context.
|
|
2364
|
+
return _regenerator().w(function (_context) {
|
|
2365
|
+
while (1) switch (_context.n) {
|
|
2557
2366
|
case 0:
|
|
2558
2367
|
elements = _args.length > 0 && _args[0] !== undefined ? _args[0] : [];
|
|
2559
2368
|
imagePromises = elements === null || elements === void 0 ? void 0 : elements.map(function (elem) {
|
|
@@ -2581,7 +2390,7 @@ var preloadRelevantImages = /*#__PURE__*/function () {
|
|
|
2581
2390
|
img.src = src;
|
|
2582
2391
|
});
|
|
2583
2392
|
}).filter(Boolean);
|
|
2584
|
-
return _context.
|
|
2393
|
+
return _context.a(2, Promise === null || Promise === void 0 ? void 0 : Promise.allSettled(imagePromises).then(function (results) {
|
|
2585
2394
|
var successes = results === null || results === void 0 ? void 0 : results.filter(function (r) {
|
|
2586
2395
|
return (r === null || r === void 0 ? void 0 : r.status) === 'fulfilled';
|
|
2587
2396
|
}).map(function (r) {
|
|
@@ -2597,9 +2406,6 @@ var preloadRelevantImages = /*#__PURE__*/function () {
|
|
|
2597
2406
|
errors: errors
|
|
2598
2407
|
};
|
|
2599
2408
|
}));
|
|
2600
|
-
case 3:
|
|
2601
|
-
case "end":
|
|
2602
|
-
return _context.stop();
|
|
2603
2409
|
}
|
|
2604
2410
|
}, _callee);
|
|
2605
2411
|
}));
|
|
@@ -2620,58 +2426,54 @@ var removeImageProperty = function removeImageProperty() {
|
|
|
2620
2426
|
});
|
|
2621
2427
|
};
|
|
2622
2428
|
var exportStageAsImage = /*#__PURE__*/function () {
|
|
2623
|
-
var _ref2 = _asyncToGenerator(/*#__PURE__*/
|
|
2429
|
+
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee3(stageRef, pageSizeKey) {
|
|
2624
2430
|
var scale,
|
|
2625
2431
|
_args3 = arguments;
|
|
2626
|
-
return
|
|
2627
|
-
while (1) switch (_context3.
|
|
2432
|
+
return _regenerator().w(function (_context3) {
|
|
2433
|
+
while (1) switch (_context3.n) {
|
|
2628
2434
|
case 0:
|
|
2629
2435
|
scale = _args3.length > 2 && _args3[2] !== undefined ? _args3[2] : 2;
|
|
2630
|
-
return _context3.
|
|
2631
|
-
var _ref3 = _asyncToGenerator(/*#__PURE__*/
|
|
2632
|
-
var stage, canvas, dataURL;
|
|
2633
|
-
return
|
|
2634
|
-
while (1) switch (_context2.
|
|
2436
|
+
return _context3.a(2, new Promise(/*#__PURE__*/function () {
|
|
2437
|
+
var _ref3 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2(resolve, reject) {
|
|
2438
|
+
var stage, canvas, dataURL, _t;
|
|
2439
|
+
return _regenerator().w(function (_context2) {
|
|
2440
|
+
while (1) switch (_context2.n) {
|
|
2635
2441
|
case 0:
|
|
2636
|
-
_context2.
|
|
2442
|
+
_context2.p = 0;
|
|
2637
2443
|
stage = stageRef === null || stageRef === void 0 ? void 0 : stageRef.current;
|
|
2638
2444
|
if (stage) {
|
|
2639
|
-
_context2.
|
|
2445
|
+
_context2.n = 1;
|
|
2640
2446
|
break;
|
|
2641
2447
|
}
|
|
2642
|
-
return _context2.
|
|
2643
|
-
case
|
|
2644
|
-
_context2.
|
|
2448
|
+
return _context2.a(2, reject('Stage is not available'));
|
|
2449
|
+
case 1:
|
|
2450
|
+
_context2.n = 2;
|
|
2645
2451
|
return stage.toCanvas({
|
|
2646
2452
|
pixelRatio: scale
|
|
2647
2453
|
});
|
|
2648
|
-
case
|
|
2649
|
-
canvas = _context2.
|
|
2650
|
-
_context2.
|
|
2454
|
+
case 2:
|
|
2455
|
+
canvas = _context2.v;
|
|
2456
|
+
_context2.n = 3;
|
|
2651
2457
|
return canvas.toDataURL('image/png');
|
|
2652
|
-
case
|
|
2653
|
-
dataURL = _context2.
|
|
2458
|
+
case 3:
|
|
2459
|
+
dataURL = _context2.v;
|
|
2654
2460
|
// Return the data URL as the resolved value
|
|
2655
2461
|
resolve(dataURL);
|
|
2656
|
-
_context2.
|
|
2462
|
+
_context2.n = 5;
|
|
2657
2463
|
break;
|
|
2658
|
-
case
|
|
2659
|
-
_context2.
|
|
2660
|
-
|
|
2661
|
-
reject(
|
|
2662
|
-
case
|
|
2663
|
-
|
|
2664
|
-
return _context2.stop();
|
|
2464
|
+
case 4:
|
|
2465
|
+
_context2.p = 4;
|
|
2466
|
+
_t = _context2.v;
|
|
2467
|
+
reject(_t);
|
|
2468
|
+
case 5:
|
|
2469
|
+
return _context2.a(2);
|
|
2665
2470
|
}
|
|
2666
|
-
}, _callee2, null, [[0,
|
|
2471
|
+
}, _callee2, null, [[0, 4]]);
|
|
2667
2472
|
}));
|
|
2668
2473
|
return function (_x3, _x4) {
|
|
2669
2474
|
return _ref3.apply(this, arguments);
|
|
2670
2475
|
};
|
|
2671
2476
|
}()));
|
|
2672
|
-
case 2:
|
|
2673
|
-
case "end":
|
|
2674
|
-
return _context3.stop();
|
|
2675
2477
|
}
|
|
2676
2478
|
}, _callee3);
|
|
2677
2479
|
}));
|
|
@@ -2956,43 +2758,42 @@ var TemplateToolBar = function TemplateToolBar(_ref) {
|
|
|
2956
2758
|
onSetBackgroundColor(e);
|
|
2957
2759
|
};
|
|
2958
2760
|
var handleBackgroundUpload = /*#__PURE__*/function () {
|
|
2959
|
-
var _ref2 = _asyncToGenerator(/*#__PURE__*/
|
|
2761
|
+
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
|
|
2960
2762
|
var file, imageUrl, reader;
|
|
2961
|
-
return
|
|
2962
|
-
while (1) switch (_context.
|
|
2763
|
+
return _regenerator().w(function (_context) {
|
|
2764
|
+
while (1) switch (_context.n) {
|
|
2963
2765
|
case 0:
|
|
2964
|
-
_context.
|
|
2766
|
+
_context.n = 1;
|
|
2965
2767
|
return pickImage();
|
|
2966
|
-
case
|
|
2967
|
-
file = _context.
|
|
2768
|
+
case 1:
|
|
2769
|
+
file = _context.v;
|
|
2968
2770
|
if (file) {
|
|
2969
|
-
_context.
|
|
2771
|
+
_context.n = 2;
|
|
2970
2772
|
break;
|
|
2971
2773
|
}
|
|
2972
|
-
return _context.
|
|
2973
|
-
case
|
|
2774
|
+
return _context.a(2);
|
|
2775
|
+
case 2:
|
|
2974
2776
|
if (!uploadImageCallBack) {
|
|
2975
|
-
_context.
|
|
2777
|
+
_context.n = 4;
|
|
2976
2778
|
break;
|
|
2977
2779
|
}
|
|
2978
2780
|
setLoadingUploadImage(true);
|
|
2979
|
-
_context.
|
|
2781
|
+
_context.n = 3;
|
|
2980
2782
|
return uploadImageCallBack(file);
|
|
2981
|
-
case
|
|
2982
|
-
imageUrl = _context.
|
|
2783
|
+
case 3:
|
|
2784
|
+
imageUrl = _context.v;
|
|
2983
2785
|
onSetBackgroundImage(imageUrl);
|
|
2984
2786
|
setLoadingUploadImage(false);
|
|
2985
|
-
_context.
|
|
2787
|
+
_context.n = 5;
|
|
2986
2788
|
break;
|
|
2987
|
-
case
|
|
2789
|
+
case 4:
|
|
2988
2790
|
reader = new FileReader();
|
|
2989
2791
|
reader.onload = function () {
|
|
2990
2792
|
onSetBackgroundImage(reader.result);
|
|
2991
2793
|
};
|
|
2992
2794
|
reader.readAsDataURL(file);
|
|
2993
|
-
case
|
|
2994
|
-
|
|
2995
|
-
return _context.stop();
|
|
2795
|
+
case 5:
|
|
2796
|
+
return _context.a(2);
|
|
2996
2797
|
}
|
|
2997
2798
|
}, _callee);
|
|
2998
2799
|
}));
|
|
@@ -3126,20 +2927,20 @@ var TabItem = styled.div(_templateObject2$e || (_templateObject2$e = _taggedTemp
|
|
|
3126
2927
|
var _ref9$selected = _ref9.selected,
|
|
3127
2928
|
selected = _ref9$selected === void 0 ? false : _ref9$selected;
|
|
3128
2929
|
return selected ? theme.color.gray_200 : theme.color.white;
|
|
3129
|
-
}, function (
|
|
3130
|
-
var isFirst =
|
|
2930
|
+
}, function (_ref0) {
|
|
2931
|
+
var isFirst = _ref0.isFirst;
|
|
3131
2932
|
return isFirst ? '5' : '0';
|
|
3132
|
-
}, function (
|
|
3133
|
-
var isFirst =
|
|
2933
|
+
}, function (_ref1) {
|
|
2934
|
+
var isFirst = _ref1.isFirst;
|
|
3134
2935
|
return isFirst ? '5' : '0';
|
|
3135
|
-
}, function (
|
|
3136
|
-
var isLast =
|
|
2936
|
+
}, function (_ref10) {
|
|
2937
|
+
var isLast = _ref10.isLast;
|
|
3137
2938
|
return isLast ? '5' : '0';
|
|
3138
|
-
}, function (
|
|
3139
|
-
var isLast =
|
|
2939
|
+
}, function (_ref11) {
|
|
2940
|
+
var isLast = _ref11.isLast;
|
|
3140
2941
|
return isLast ? '5' : '0';
|
|
3141
|
-
}, function (
|
|
3142
|
-
var disabled =
|
|
2942
|
+
}, function (_ref12) {
|
|
2943
|
+
var disabled = _ref12.disabled;
|
|
3143
2944
|
return disabled ? 'none' : 'all';
|
|
3144
2945
|
});
|
|
3145
2946
|
|
|
@@ -3180,7 +2981,7 @@ var ToolsTabBar = function ToolsTabBar(_ref) {
|
|
|
3180
2981
|
ToolsTabBar.propTypes = propTypes$n;
|
|
3181
2982
|
|
|
3182
2983
|
var TextToolBar = function TextToolBar(_ref) {
|
|
3183
|
-
var _TEXT_DICTIONARY$lang, _TEXT_DICTIONARY$lang2, _TEXT_DICTIONARY$lang3, _TEXT_DICTIONARY$lang4, _TEXT_DICTIONARY$lang5, _TEXT_DICTIONARY$lang6, _TEXT_DICTIONARY$lang7, _TEXT_DICTIONARY$lang8, _TEXT_DICTIONARY$lang9, _TEXT_DICTIONARY$
|
|
2984
|
+
var _TEXT_DICTIONARY$lang, _TEXT_DICTIONARY$lang2, _TEXT_DICTIONARY$lang3, _TEXT_DICTIONARY$lang4, _TEXT_DICTIONARY$lang5, _TEXT_DICTIONARY$lang6, _TEXT_DICTIONARY$lang7, _TEXT_DICTIONARY$lang8, _TEXT_DICTIONARY$lang9, _TEXT_DICTIONARY$lang0, _TEXT_DICTIONARY$lang1, _TEXT_DICTIONARY$lang10;
|
|
3184
2985
|
var fontFamily = _ref.fontFamily,
|
|
3185
2986
|
fontSize = _ref.fontSize,
|
|
3186
2987
|
lineHeight = _ref.lineHeight,
|
|
@@ -3327,11 +3128,11 @@ var TextToolBar = function TextToolBar(_ref) {
|
|
|
3327
3128
|
src: IconDropDown,
|
|
3328
3129
|
marginLeft: 10
|
|
3329
3130
|
}),
|
|
3330
|
-
tooltip: TEXT_DICTIONARY === null || TEXT_DICTIONARY === void 0 || (_TEXT_DICTIONARY$
|
|
3131
|
+
tooltip: TEXT_DICTIONARY === null || TEXT_DICTIONARY === void 0 || (_TEXT_DICTIONARY$lang0 = TEXT_DICTIONARY[languageLocale]) === null || _TEXT_DICTIONARY$lang0 === void 0 ? void 0 : _TEXT_DICTIONARY$lang0.TEXT_LINE_HEIGHT,
|
|
3331
3132
|
tooltipPosition: 'bottom'
|
|
3332
3133
|
}), /*#__PURE__*/React.createElement(ToolBarButtonWrapper, {
|
|
3333
3134
|
gap: 12,
|
|
3334
|
-
tooltip: TEXT_DICTIONARY === null || TEXT_DICTIONARY === void 0 || (_TEXT_DICTIONARY$
|
|
3135
|
+
tooltip: TEXT_DICTIONARY === null || TEXT_DICTIONARY === void 0 || (_TEXT_DICTIONARY$lang1 = TEXT_DICTIONARY[languageLocale]) === null || _TEXT_DICTIONARY$lang1 === void 0 ? void 0 : _TEXT_DICTIONARY$lang1.TEXT_COLOR,
|
|
3335
3136
|
tooltipPosition: 'bottom'
|
|
3336
3137
|
}, /*#__PURE__*/React.createElement(StyledImage, {
|
|
3337
3138
|
src: IconTextSmall
|
|
@@ -3357,7 +3158,7 @@ var TextToolBar = function TextToolBar(_ref) {
|
|
|
3357
3158
|
onChangeOpacity: function onChangeOpacity(e) {
|
|
3358
3159
|
return onChangeTextProperty('opacity', e);
|
|
3359
3160
|
},
|
|
3360
|
-
tooltip: TEXT_DICTIONARY === null || TEXT_DICTIONARY === void 0 || (_TEXT_DICTIONARY$
|
|
3161
|
+
tooltip: TEXT_DICTIONARY === null || TEXT_DICTIONARY === void 0 || (_TEXT_DICTIONARY$lang10 = TEXT_DICTIONARY[languageLocale]) === null || _TEXT_DICTIONARY$lang10 === void 0 ? void 0 : _TEXT_DICTIONARY$lang10.TEXT_OPACITY,
|
|
3361
3162
|
tooltipPosition: 'bottom'
|
|
3362
3163
|
}));
|
|
3363
3164
|
};
|
|
@@ -4023,9 +3824,9 @@ var QrElement = function QrElement(_ref) {
|
|
|
4023
3824
|
};
|
|
4024
3825
|
}, [element]);
|
|
4025
3826
|
var addQR = /*#__PURE__*/function () {
|
|
4026
|
-
var _ref2 = _asyncToGenerator(/*#__PURE__*/
|
|
4027
|
-
return
|
|
4028
|
-
while (1) switch (_context.
|
|
3827
|
+
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
|
|
3828
|
+
return _regenerator().w(function (_context) {
|
|
3829
|
+
while (1) switch (_context.n) {
|
|
4029
3830
|
case 0:
|
|
4030
3831
|
try {
|
|
4031
3832
|
QRCode.toDataURL(element === null || element === void 0 ? void 0 : element.qrText, {
|
|
@@ -4051,8 +3852,7 @@ var QrElement = function QrElement(_ref) {
|
|
|
4051
3852
|
console.error('Failed to generate QR code', err);
|
|
4052
3853
|
}
|
|
4053
3854
|
case 1:
|
|
4054
|
-
|
|
4055
|
-
return _context.stop();
|
|
3855
|
+
return _context.a(2);
|
|
4056
3856
|
}
|
|
4057
3857
|
}, _callee);
|
|
4058
3858
|
}));
|
|
@@ -4228,9 +4028,9 @@ var EditableText = function EditableText(_ref) {
|
|
|
4228
4028
|
text = _useState8[0],
|
|
4229
4029
|
setText = _useState8[1];
|
|
4230
4030
|
var _useState9 = useState(false),
|
|
4231
|
-
|
|
4232
|
-
isFontLoaded =
|
|
4233
|
-
setIsFontLoaded =
|
|
4031
|
+
_useState0 = _slicedToArray(_useState9, 2),
|
|
4032
|
+
isFontLoaded = _useState0[0],
|
|
4033
|
+
setIsFontLoaded = _useState0[1];
|
|
4234
4034
|
useEffect(function () {
|
|
4235
4035
|
setIsFontLoaded(false);
|
|
4236
4036
|
setTimeout(function () {
|
|
@@ -5490,43 +5290,42 @@ var ImageSideBar = function ImageSideBar(_ref) {
|
|
|
5490
5290
|
}));
|
|
5491
5291
|
}));
|
|
5492
5292
|
var addImageToList = /*#__PURE__*/function () {
|
|
5493
|
-
var _ref2 = _asyncToGenerator(/*#__PURE__*/
|
|
5293
|
+
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
|
|
5494
5294
|
var file, imageUrl, reader;
|
|
5495
|
-
return
|
|
5496
|
-
while (1) switch (_context.
|
|
5295
|
+
return _regenerator().w(function (_context) {
|
|
5296
|
+
while (1) switch (_context.n) {
|
|
5497
5297
|
case 0:
|
|
5498
|
-
_context.
|
|
5298
|
+
_context.n = 1;
|
|
5499
5299
|
return pickImage();
|
|
5500
|
-
case
|
|
5501
|
-
file = _context.
|
|
5300
|
+
case 1:
|
|
5301
|
+
file = _context.v;
|
|
5502
5302
|
if (file) {
|
|
5503
|
-
_context.
|
|
5303
|
+
_context.n = 2;
|
|
5504
5304
|
break;
|
|
5505
5305
|
}
|
|
5506
|
-
return _context.
|
|
5507
|
-
case
|
|
5306
|
+
return _context.a(2);
|
|
5307
|
+
case 2:
|
|
5508
5308
|
if (!uploadImageCallBack) {
|
|
5509
|
-
_context.
|
|
5309
|
+
_context.n = 4;
|
|
5510
5310
|
break;
|
|
5511
5311
|
}
|
|
5512
5312
|
setLoadingUploadImage(true);
|
|
5513
|
-
_context.
|
|
5313
|
+
_context.n = 3;
|
|
5514
5314
|
return uploadImageCallBack(file);
|
|
5515
|
-
case
|
|
5516
|
-
imageUrl = _context.
|
|
5315
|
+
case 3:
|
|
5316
|
+
imageUrl = _context.v;
|
|
5517
5317
|
onAddCustomImageToList(imageUrl);
|
|
5518
5318
|
setLoadingUploadImage(false);
|
|
5519
|
-
_context.
|
|
5319
|
+
_context.n = 5;
|
|
5520
5320
|
break;
|
|
5521
|
-
case
|
|
5321
|
+
case 4:
|
|
5522
5322
|
reader = new FileReader();
|
|
5523
5323
|
reader.onload = function () {
|
|
5524
5324
|
onAddCustomImageToList(reader.result);
|
|
5525
5325
|
};
|
|
5526
5326
|
reader.readAsDataURL(file);
|
|
5527
|
-
case
|
|
5528
|
-
|
|
5529
|
-
return _context.stop();
|
|
5327
|
+
case 5:
|
|
5328
|
+
return _context.a(2);
|
|
5530
5329
|
}
|
|
5531
5330
|
}, _callee);
|
|
5532
5331
|
}));
|
|
@@ -5888,6 +5687,7 @@ var isPropValid = /* #__PURE__ */memoize(function (prop) {
|
|
|
5888
5687
|
/**
|
|
5889
5688
|
* @typedef {Object} StudioProps
|
|
5890
5689
|
* @property {string} [title]
|
|
5690
|
+
* @property {string} [defaultQrLogo]
|
|
5891
5691
|
* @property {string} [languageLocale]
|
|
5892
5692
|
* @property {Array} [elementsList]
|
|
5893
5693
|
* @property {Array} [customImages]
|
|
@@ -5910,6 +5710,8 @@ var Studio = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
5910
5710
|
var _elements$elements$fi, _elements$find4, _elements$find5, _elements$find6;
|
|
5911
5711
|
var _ref$title = _ref.title,
|
|
5912
5712
|
title = _ref$title === void 0 ? '' : _ref$title,
|
|
5713
|
+
_ref$defaultQrLogo = _ref.defaultQrLogo,
|
|
5714
|
+
defaultQrLogo = _ref$defaultQrLogo === void 0 ? null : _ref$defaultQrLogo,
|
|
5913
5715
|
_ref$elementsList = _ref.elementsList,
|
|
5914
5716
|
elementsList = _ref$elementsList === void 0 ? defaultElements : _ref$elementsList,
|
|
5915
5717
|
uploadImageCallBack = _ref.uploadImageCallBack,
|
|
@@ -5950,97 +5752,98 @@ var Studio = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
5950
5752
|
loadingFonts = _useState8[0],
|
|
5951
5753
|
setLoadingFonts = _useState8[1];
|
|
5952
5754
|
var _useState9 = useState(true),
|
|
5953
|
-
|
|
5954
|
-
loadingImages =
|
|
5955
|
-
setLoadingImages =
|
|
5755
|
+
_useState0 = _slicedToArray(_useState9, 2),
|
|
5756
|
+
loadingImages = _useState0[0],
|
|
5757
|
+
setLoadingImages = _useState0[1];
|
|
5758
|
+
var _useState1 = useState(false),
|
|
5759
|
+
_useState10 = _slicedToArray(_useState1, 2),
|
|
5760
|
+
loading = _useState10[0],
|
|
5761
|
+
setLoading = _useState10[1];
|
|
5956
5762
|
var _useState11 = useState(false),
|
|
5957
5763
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
5958
|
-
|
|
5959
|
-
|
|
5960
|
-
var _useState13 = useState(
|
|
5764
|
+
loadingUploadImage = _useState12[0],
|
|
5765
|
+
setLoadingUploadImage = _useState12[1];
|
|
5766
|
+
var _useState13 = useState(true),
|
|
5961
5767
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
5962
|
-
|
|
5963
|
-
|
|
5964
|
-
var _useState15 = useState(
|
|
5768
|
+
helperSideBarVisible = _useState14[0],
|
|
5769
|
+
setHelperSideBarVisible = _useState14[1];
|
|
5770
|
+
var _useState15 = useState(100),
|
|
5965
5771
|
_useState16 = _slicedToArray(_useState15, 2),
|
|
5966
|
-
|
|
5967
|
-
|
|
5968
|
-
var _useState17 = useState(
|
|
5772
|
+
zoomPercentage = _useState16[0],
|
|
5773
|
+
setZoomPercentage = _useState16[1];
|
|
5774
|
+
var _useState17 = useState(elementsList),
|
|
5969
5775
|
_useState18 = _slicedToArray(_useState17, 2),
|
|
5970
|
-
|
|
5971
|
-
|
|
5972
|
-
var _useState19 = useState(
|
|
5776
|
+
elements = _useState18[0],
|
|
5777
|
+
setElements = _useState18[1];
|
|
5778
|
+
var _useState19 = useState(1),
|
|
5973
5779
|
_useState20 = _slicedToArray(_useState19, 2),
|
|
5974
|
-
|
|
5975
|
-
|
|
5976
|
-
var _useState21 = useState(
|
|
5780
|
+
backgroundImageOpacity = _useState20[0],
|
|
5781
|
+
setBackgroundImageOpacity = _useState20[1];
|
|
5782
|
+
var _useState21 = useState([]),
|
|
5977
5783
|
_useState22 = _slicedToArray(_useState21, 2),
|
|
5978
|
-
|
|
5979
|
-
|
|
5784
|
+
history = _useState22[0],
|
|
5785
|
+
setHistory = _useState22[1];
|
|
5980
5786
|
var _useState23 = useState([]),
|
|
5981
5787
|
_useState24 = _slicedToArray(_useState23, 2),
|
|
5982
|
-
|
|
5983
|
-
|
|
5984
|
-
var _useState25 = useState(
|
|
5788
|
+
redoStack = _useState24[0],
|
|
5789
|
+
setRedoStack = _useState24[1];
|
|
5790
|
+
var _useState25 = useState(theme.color.white),
|
|
5985
5791
|
_useState26 = _slicedToArray(_useState25, 2),
|
|
5986
|
-
|
|
5987
|
-
|
|
5988
|
-
var _useState27 = useState(
|
|
5792
|
+
shapeFillColor = _useState26[0],
|
|
5793
|
+
setShapeFillColor = _useState26[1];
|
|
5794
|
+
var _useState27 = useState(1),
|
|
5989
5795
|
_useState28 = _slicedToArray(_useState27, 2),
|
|
5990
|
-
|
|
5991
|
-
|
|
5992
|
-
var _useState29 = useState(
|
|
5796
|
+
shapeStrokeWidth = _useState28[0],
|
|
5797
|
+
setShapeStrokeWidth = _useState28[1];
|
|
5798
|
+
var _useState29 = useState(theme.color.black),
|
|
5993
5799
|
_useState30 = _slicedToArray(_useState29, 2),
|
|
5994
|
-
|
|
5995
|
-
|
|
5996
|
-
var _useState31 = useState(
|
|
5800
|
+
shapeStrokeColor = _useState30[0],
|
|
5801
|
+
setShapeStrokeColor = _useState30[1];
|
|
5802
|
+
var _useState31 = useState(1),
|
|
5997
5803
|
_useState32 = _slicedToArray(_useState31, 2),
|
|
5998
|
-
|
|
5999
|
-
|
|
6000
|
-
var _useState33 = useState(
|
|
5804
|
+
shapeOpacity = _useState32[0],
|
|
5805
|
+
setShapeOpacity = _useState32[1];
|
|
5806
|
+
var _useState33 = useState(0),
|
|
6001
5807
|
_useState34 = _slicedToArray(_useState33, 2),
|
|
6002
|
-
|
|
6003
|
-
|
|
6004
|
-
var _useState35 = useState(
|
|
5808
|
+
imageStrokeWidth = _useState34[0],
|
|
5809
|
+
setImageStrokeWidth = _useState34[1];
|
|
5810
|
+
var _useState35 = useState(theme.color.black),
|
|
6005
5811
|
_useState36 = _slicedToArray(_useState35, 2),
|
|
6006
|
-
|
|
6007
|
-
|
|
6008
|
-
var _useState37 = useState(
|
|
5812
|
+
imageStrokeColor = _useState36[0],
|
|
5813
|
+
setImageStrokeColor = _useState36[1];
|
|
5814
|
+
var _useState37 = useState(1),
|
|
6009
5815
|
_useState38 = _slicedToArray(_useState37, 2),
|
|
6010
|
-
|
|
6011
|
-
|
|
6012
|
-
var _useState39 = useState(
|
|
5816
|
+
imageOpacity = _useState38[0],
|
|
5817
|
+
setImageOpacity = _useState38[1];
|
|
5818
|
+
var _useState39 = useState(2),
|
|
6013
5819
|
_useState40 = _slicedToArray(_useState39, 2),
|
|
6014
|
-
|
|
6015
|
-
|
|
6016
|
-
var _useState41 = useState(
|
|
5820
|
+
qrStrokeWidth = _useState40[0],
|
|
5821
|
+
setQrStrokeWidth = _useState40[1];
|
|
5822
|
+
var _useState41 = useState(theme.color.black),
|
|
6017
5823
|
_useState42 = _slicedToArray(_useState41, 2),
|
|
6018
|
-
|
|
6019
|
-
|
|
6020
|
-
var _useState43 = useState(
|
|
5824
|
+
qrStrokeColor = _useState42[0],
|
|
5825
|
+
setQrStrokeColor = _useState42[1];
|
|
5826
|
+
var _useState43 = useState(1),
|
|
6021
5827
|
_useState44 = _slicedToArray(_useState43, 2),
|
|
6022
|
-
|
|
6023
|
-
|
|
6024
|
-
var _useState45 = useState(
|
|
5828
|
+
qrOpacity = _useState44[0],
|
|
5829
|
+
setQrOpacity = _useState44[1];
|
|
5830
|
+
var _useState45 = useState(null),
|
|
6025
5831
|
_useState46 = _slicedToArray(_useState45, 2),
|
|
6026
|
-
|
|
6027
|
-
|
|
6028
|
-
var _useState47 = useState(
|
|
5832
|
+
selectedElement = _useState46[0],
|
|
5833
|
+
setSelectedElement = _useState46[1];
|
|
5834
|
+
var _useState47 = useState(customImages || []),
|
|
6029
5835
|
_useState48 = _slicedToArray(_useState47, 2),
|
|
6030
|
-
|
|
6031
|
-
|
|
6032
|
-
var _useState49 = useState(
|
|
5836
|
+
customImagesList = _useState48[0],
|
|
5837
|
+
setCustomImagesList = _useState48[1];
|
|
5838
|
+
var _useState49 = useState(defaultQrLogo),
|
|
6033
5839
|
_useState50 = _slicedToArray(_useState49, 2),
|
|
6034
|
-
|
|
6035
|
-
|
|
6036
|
-
var _useState51 = useState(
|
|
5840
|
+
qrLogo = _useState50[0],
|
|
5841
|
+
setQrLogo = _useState50[1];
|
|
5842
|
+
var _useState51 = useState(basicTextProps),
|
|
6037
5843
|
_useState52 = _slicedToArray(_useState51, 2),
|
|
6038
|
-
|
|
6039
|
-
|
|
6040
|
-
var
|
|
6041
|
-
_useState54 = _slicedToArray(_useState53, 2),
|
|
6042
|
-
defaultTextProps = _useState54[0],
|
|
6043
|
-
setDefaultTextProps = _useState54[1];
|
|
5844
|
+
defaultTextProps = _useState52[0],
|
|
5845
|
+
setDefaultTextProps = _useState52[1];
|
|
5846
|
+
var overallLoading = loadingFonts || loadingImages || loadingUploadImage || loading;
|
|
6044
5847
|
var undo = useCallback(function () {
|
|
6045
5848
|
if (history.length > 0) {
|
|
6046
5849
|
setSelectedElement(null);
|
|
@@ -6062,32 +5865,29 @@ var Studio = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
6062
5865
|
useImperativeHandle(ref, function () {
|
|
6063
5866
|
return {
|
|
6064
5867
|
onSave: function () {
|
|
6065
|
-
var _onSave = _asyncToGenerator(/*#__PURE__*/
|
|
5868
|
+
var _onSave = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
|
|
6066
5869
|
var processedElements, dataURL;
|
|
6067
|
-
return
|
|
6068
|
-
while (1) switch (_context.
|
|
5870
|
+
return _regenerator().w(function (_context) {
|
|
5871
|
+
while (1) switch (_context.n) {
|
|
6069
5872
|
case 0:
|
|
6070
5873
|
setLoading(true);
|
|
6071
5874
|
setSelectedElement(null);
|
|
6072
5875
|
setZoomPercentage(100);
|
|
6073
|
-
_context.
|
|
5876
|
+
_context.n = 1;
|
|
6074
5877
|
return new Promise(function (resolve) {
|
|
6075
5878
|
return setTimeout(resolve, 100);
|
|
6076
5879
|
});
|
|
6077
|
-
case
|
|
5880
|
+
case 1:
|
|
6078
5881
|
processedElements = removeImageProperty(elements);
|
|
6079
|
-
_context.
|
|
5882
|
+
_context.n = 2;
|
|
6080
5883
|
return exportStageAsImage(stageRef);
|
|
6081
|
-
case
|
|
6082
|
-
dataURL = _context.
|
|
5884
|
+
case 2:
|
|
5885
|
+
dataURL = _context.v;
|
|
6083
5886
|
setLoading(false);
|
|
6084
|
-
return _context.
|
|
5887
|
+
return _context.a(2, {
|
|
6085
5888
|
elements: processedElements,
|
|
6086
5889
|
image: dataURL
|
|
6087
5890
|
});
|
|
6088
|
-
case 11:
|
|
6089
|
-
case "end":
|
|
6090
|
-
return _context.stop();
|
|
6091
5891
|
}
|
|
6092
5892
|
}, _callee);
|
|
6093
5893
|
}));
|
|
@@ -6095,7 +5895,9 @@ var Studio = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
6095
5895
|
return _onSave.apply(this, arguments);
|
|
6096
5896
|
}
|
|
6097
5897
|
return onSave;
|
|
6098
|
-
}()
|
|
5898
|
+
}(),
|
|
5899
|
+
loading: overallLoading,
|
|
5900
|
+
setLoading: setLoading
|
|
6099
5901
|
};
|
|
6100
5902
|
});
|
|
6101
5903
|
useEffect(function () {
|
|
@@ -6158,7 +5960,7 @@ var Studio = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
6158
5960
|
setLanguageLocale(validateLocale(locale));
|
|
6159
5961
|
}, [locale]);
|
|
6160
5962
|
useEffect(function () {
|
|
6161
|
-
setCustomImagesList(customImages);
|
|
5963
|
+
setCustomImagesList(customImages || []);
|
|
6162
5964
|
}, [customImages]);
|
|
6163
5965
|
useEffect(function () {
|
|
6164
5966
|
setLoadingFonts(true);
|
|
@@ -6686,43 +6488,42 @@ var Studio = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
6686
6488
|
}
|
|
6687
6489
|
};
|
|
6688
6490
|
var addQrLogo = /*#__PURE__*/function () {
|
|
6689
|
-
var _ref3 = _asyncToGenerator(/*#__PURE__*/
|
|
6491
|
+
var _ref3 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2() {
|
|
6690
6492
|
var file, imageUrl, reader;
|
|
6691
|
-
return
|
|
6692
|
-
while (1) switch (_context2.
|
|
6493
|
+
return _regenerator().w(function (_context2) {
|
|
6494
|
+
while (1) switch (_context2.n) {
|
|
6693
6495
|
case 0:
|
|
6694
|
-
_context2.
|
|
6496
|
+
_context2.n = 1;
|
|
6695
6497
|
return pickImage();
|
|
6696
|
-
case
|
|
6697
|
-
file = _context2.
|
|
6498
|
+
case 1:
|
|
6499
|
+
file = _context2.v;
|
|
6698
6500
|
if (file) {
|
|
6699
|
-
_context2.
|
|
6501
|
+
_context2.n = 2;
|
|
6700
6502
|
break;
|
|
6701
6503
|
}
|
|
6702
|
-
return _context2.
|
|
6703
|
-
case
|
|
6504
|
+
return _context2.a(2);
|
|
6505
|
+
case 2:
|
|
6704
6506
|
if (!uploadImageCallBack) {
|
|
6705
|
-
_context2.
|
|
6507
|
+
_context2.n = 4;
|
|
6706
6508
|
break;
|
|
6707
6509
|
}
|
|
6708
6510
|
setLoadingUploadImage(true);
|
|
6709
|
-
_context2.
|
|
6511
|
+
_context2.n = 3;
|
|
6710
6512
|
return uploadImageCallBack(file);
|
|
6711
|
-
case
|
|
6712
|
-
imageUrl = _context2.
|
|
6513
|
+
case 3:
|
|
6514
|
+
imageUrl = _context2.v;
|
|
6713
6515
|
addLogo(imageUrl);
|
|
6714
6516
|
setLoadingUploadImage(false);
|
|
6715
|
-
_context2.
|
|
6517
|
+
_context2.n = 5;
|
|
6716
6518
|
break;
|
|
6717
|
-
case
|
|
6519
|
+
case 4:
|
|
6718
6520
|
reader = new FileReader();
|
|
6719
6521
|
reader.onload = function () {
|
|
6720
6522
|
addLogo(reader.result);
|
|
6721
6523
|
};
|
|
6722
6524
|
reader.readAsDataURL(file);
|
|
6723
|
-
case
|
|
6724
|
-
|
|
6725
|
-
return _context2.stop();
|
|
6525
|
+
case 5:
|
|
6526
|
+
return _context2.a(2);
|
|
6726
6527
|
}
|
|
6727
6528
|
}, _callee2);
|
|
6728
6529
|
}));
|
|
@@ -6756,38 +6557,37 @@ var Studio = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
6756
6557
|
}
|
|
6757
6558
|
};
|
|
6758
6559
|
var onSaveProgress = /*#__PURE__*/function () {
|
|
6759
|
-
var _ref4 = _asyncToGenerator(/*#__PURE__*/
|
|
6560
|
+
var _ref4 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee3() {
|
|
6760
6561
|
var processedElements, dataURL;
|
|
6761
|
-
return
|
|
6762
|
-
while (1) switch (_context3.
|
|
6562
|
+
return _regenerator().w(function (_context3) {
|
|
6563
|
+
while (1) switch (_context3.n) {
|
|
6763
6564
|
case 0:
|
|
6764
6565
|
if (onSave) {
|
|
6765
|
-
_context3.
|
|
6566
|
+
_context3.n = 1;
|
|
6766
6567
|
break;
|
|
6767
6568
|
}
|
|
6768
|
-
return _context3.
|
|
6769
|
-
case
|
|
6569
|
+
return _context3.a(2);
|
|
6570
|
+
case 1:
|
|
6770
6571
|
setLoading(true);
|
|
6771
6572
|
setSelectedElement(null);
|
|
6772
6573
|
setZoomPercentage(100);
|
|
6773
|
-
_context3.
|
|
6574
|
+
_context3.n = 2;
|
|
6774
6575
|
return new Promise(function (resolve) {
|
|
6775
6576
|
return setTimeout(resolve, 100);
|
|
6776
6577
|
});
|
|
6777
|
-
case
|
|
6578
|
+
case 2:
|
|
6778
6579
|
processedElements = removeImageProperty(elements);
|
|
6779
|
-
_context3.
|
|
6580
|
+
_context3.n = 3;
|
|
6780
6581
|
return exportStageAsImage(stageRef);
|
|
6781
|
-
case
|
|
6782
|
-
dataURL = _context3.
|
|
6582
|
+
case 3:
|
|
6583
|
+
dataURL = _context3.v;
|
|
6783
6584
|
setLoading(false);
|
|
6784
6585
|
onSave({
|
|
6785
6586
|
elements: processedElements,
|
|
6786
6587
|
image: dataURL
|
|
6787
6588
|
});
|
|
6788
|
-
case
|
|
6789
|
-
|
|
6790
|
-
return _context3.stop();
|
|
6589
|
+
case 4:
|
|
6590
|
+
return _context3.a(2);
|
|
6791
6591
|
}
|
|
6792
6592
|
}, _callee3);
|
|
6793
6593
|
}));
|
|
@@ -6832,7 +6632,7 @@ var Studio = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
6832
6632
|
styleProps: styleProps,
|
|
6833
6633
|
defaultText: defaultText,
|
|
6834
6634
|
languageLocale: languageLocale
|
|
6835
|
-
}), /*#__PURE__*/React.createElement(Editor
|
|
6635
|
+
}), loadingFonts ? null : /*#__PURE__*/React.createElement(Editor
|
|
6836
6636
|
// canvasSize={canvasSize}
|
|
6837
6637
|
, {
|
|
6838
6638
|
cuttingGuideStroke: (elements === null || elements === void 0 || (_elements$find4 = elements.find(function (e) {
|
|
@@ -6904,7 +6704,7 @@ var Studio = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
6904
6704
|
saveButtonText: saveButtonText,
|
|
6905
6705
|
languageLocale: languageLocale,
|
|
6906
6706
|
onRemoveBackgroundImage: onRemoveBackgroundImage
|
|
6907
|
-
}),
|
|
6707
|
+
}), overallLoading && /*#__PURE__*/React.createElement(Overlay, null, /*#__PURE__*/React.createElement(LoadingSpinner, {
|
|
6908
6708
|
size: "60px",
|
|
6909
6709
|
color: theme.color.secondary
|
|
6910
6710
|
}))));
|