@mypixia/simplex-designer 1.0.9 → 1.0.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -1,14 +1,11 @@
1
- import T, { useState as M, useEffect as ie, useRef as mt } from "react";
2
- import _t from "react-dom";
1
+ import E, { useState as M, useEffect as ie, useRef as gt } from "react";
3
2
  import { fabric as B } from "fabric";
4
3
  import ye from "axios";
5
- import Xt from "qrcode";
6
- import Qt from "react-barcode";
7
- import { FacebookShareButton as qt, FacebookIcon as Zt, TwitterShareButton as er, XIcon as tr, TelegramShareButton as rr, TelegramIcon as nr, WhatsappShareButton as sr, WhatsappIcon as or, LinkedinShareButton as ir, LinkedinIcon as cr, PinterestShareButton as ar, PinterestIcon as lr, RedditShareButton as dr, RedditIcon as hr, InstapaperShareButton as pr, InstapaperIcon as ur } from "react-share";
8
- import './index.css';function fr(g) {
9
- return g && g.__esModule && Object.prototype.hasOwnProperty.call(g, "default") ? g.default : g;
10
- }
11
- var ot = { exports: {} }, nt = {};
4
+ import Jt from "qrcode";
5
+ import Yt from "react-barcode";
6
+ import { FacebookShareButton as Kt, FacebookIcon as Xt, TwitterShareButton as Qt, XIcon as qt, TelegramShareButton as Zt, TelegramIcon as er, WhatsappShareButton as tr, WhatsappIcon as rr, LinkedinShareButton as nr, LinkedinIcon as sr, PinterestShareButton as or, PinterestIcon as ir, RedditShareButton as cr, RedditIcon as ar, InstapaperShareButton as lr, InstapaperIcon as dr } from "react-share";
7
+ import hr from "react-dom";
8
+ import './index.css';var st = { exports: {} }, rt = {};
12
9
  /**
13
10
  * @license React
14
11
  * react-jsx-runtime.production.min.js
@@ -18,21 +15,21 @@ var ot = { exports: {} }, nt = {};
18
15
  * This source code is licensed under the MIT license found in the
19
16
  * LICENSE file in the root directory of this source tree.
20
17
  */
21
- var vt;
22
- function xr() {
23
- if (vt) return nt;
24
- vt = 1;
25
- var g = T, t = Symbol.for("react.element"), o = Symbol.for("react.fragment"), i = Object.prototype.hasOwnProperty, l = g.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, u = { key: !0, ref: !0, __self: !0, __source: !0 };
26
- function f(d, b, a) {
27
- var v, p = {}, y = null, s = null;
28
- a !== void 0 && (y = "" + a), b.key !== void 0 && (y = "" + b.key), b.ref !== void 0 && (s = b.ref);
29
- for (v in b) i.call(b, v) && !u.hasOwnProperty(v) && (p[v] = b[v]);
30
- if (d && d.defaultProps) for (v in b = d.defaultProps, b) p[v] === void 0 && (p[v] = b[v]);
31
- return { $$typeof: t, type: d, key: y, ref: s, props: p, _owner: l.current };
18
+ var mt;
19
+ function pr() {
20
+ if (mt) return rt;
21
+ mt = 1;
22
+ var y = E, t = Symbol.for("react.element"), o = Symbol.for("react.fragment"), i = Object.prototype.hasOwnProperty, l = y.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, u = { key: !0, ref: !0, __self: !0, __source: !0 };
23
+ function f(d, j, a) {
24
+ var m, p = {}, b = null, s = null;
25
+ a !== void 0 && (b = "" + a), j.key !== void 0 && (b = "" + j.key), j.ref !== void 0 && (s = j.ref);
26
+ for (m in j) i.call(j, m) && !u.hasOwnProperty(m) && (p[m] = j[m]);
27
+ if (d && d.defaultProps) for (m in j = d.defaultProps, j) p[m] === void 0 && (p[m] = j[m]);
28
+ return { $$typeof: t, type: d, key: b, ref: s, props: p, _owner: l.current };
32
29
  }
33
- return nt.Fragment = o, nt.jsx = f, nt.jsxs = f, nt;
30
+ return rt.Fragment = o, rt.jsx = f, rt.jsxs = f, rt;
34
31
  }
35
- var st = {};
32
+ var nt = {};
36
33
  /**
37
34
  * @license React
38
35
  * react-jsx-runtime.development.js
@@ -42,47 +39,47 @@ var st = {};
42
39
  * This source code is licensed under the MIT license found in the
43
40
  * LICENSE file in the root directory of this source tree.
44
41
  */
45
- var jt;
46
- function gr() {
47
- return jt || (jt = 1, process.env.NODE_ENV !== "production" && function() {
48
- var g = T, t = Symbol.for("react.element"), o = Symbol.for("react.portal"), i = Symbol.for("react.fragment"), l = Symbol.for("react.strict_mode"), u = Symbol.for("react.profiler"), f = Symbol.for("react.provider"), d = Symbol.for("react.context"), b = Symbol.for("react.forward_ref"), a = Symbol.for("react.suspense"), v = Symbol.for("react.suspense_list"), p = Symbol.for("react.memo"), y = Symbol.for("react.lazy"), s = Symbol.for("react.offscreen"), m = Symbol.iterator, h = "@@iterator";
49
- function j(r) {
42
+ var vt;
43
+ function ur() {
44
+ return vt || (vt = 1, process.env.NODE_ENV !== "production" && function() {
45
+ var y = E, t = Symbol.for("react.element"), o = Symbol.for("react.portal"), i = Symbol.for("react.fragment"), l = Symbol.for("react.strict_mode"), u = Symbol.for("react.profiler"), f = Symbol.for("react.provider"), d = Symbol.for("react.context"), j = Symbol.for("react.forward_ref"), a = Symbol.for("react.suspense"), m = Symbol.for("react.suspense_list"), p = Symbol.for("react.memo"), b = Symbol.for("react.lazy"), s = Symbol.for("react.offscreen"), g = Symbol.iterator, h = "@@iterator";
46
+ function v(r) {
50
47
  if (r === null || typeof r != "object")
51
48
  return null;
52
- var x = m && r[m] || r[h];
49
+ var x = g && r[g] || r[h];
53
50
  return typeof x == "function" ? x : null;
54
51
  }
55
- var n = g.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
52
+ var n = y.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
56
53
  function w(r) {
57
54
  {
58
- for (var x = arguments.length, C = new Array(x > 1 ? x - 1 : 0), R = 1; R < x; R++)
59
- C[R - 1] = arguments[R];
55
+ for (var x = arguments.length, C = new Array(x > 1 ? x - 1 : 0), L = 1; L < x; L++)
56
+ C[L - 1] = arguments[L];
60
57
  _("error", r, C);
61
58
  }
62
59
  }
63
60
  function _(r, x, C) {
64
61
  {
65
- var R = n.ReactDebugCurrentFrame, W = R.getStackAddendum();
62
+ var L = n.ReactDebugCurrentFrame, W = L.getStackAddendum();
66
63
  W !== "" && (x += "%s", C = C.concat([W]));
67
- var $ = C.map(function(H) {
64
+ var G = C.map(function(H) {
68
65
  return String(H);
69
66
  });
70
- $.unshift("Warning: " + x), Function.prototype.apply.call(console[r], console, $);
67
+ G.unshift("Warning: " + x), Function.prototype.apply.call(console[r], console, G);
71
68
  }
72
69
  }
73
- var A = !1, L = !1, P = !1, I = !1, E = !1, V;
70
+ var A = !1, R = !1, F = !1, I = !1, T = !1, V;
74
71
  V = Symbol.for("react.module.reference");
75
72
  function K(r) {
76
- return !!(typeof r == "string" || typeof r == "function" || r === i || r === u || E || r === l || r === a || r === v || I || r === s || A || L || P || typeof r == "object" && r !== null && (r.$$typeof === y || r.$$typeof === p || r.$$typeof === f || r.$$typeof === d || r.$$typeof === b || // This needs to include all possible module reference object
73
+ return !!(typeof r == "string" || typeof r == "function" || r === i || r === u || T || r === l || r === a || r === m || I || r === s || A || R || F || typeof r == "object" && r !== null && (r.$$typeof === b || r.$$typeof === p || r.$$typeof === f || r.$$typeof === d || r.$$typeof === j || // This needs to include all possible module reference object
77
74
  // types supported by any Flight configuration anywhere since
78
75
  // we don't know which Flight build this will end up being used
79
76
  // with.
80
77
  r.$$typeof === V || r.getModuleId !== void 0));
81
78
  }
82
79
  function Y(r, x, C) {
83
- var R = r.displayName;
84
- if (R)
85
- return R;
80
+ var L = r.displayName;
81
+ if (L)
82
+ return L;
86
83
  var W = x.displayName || x.name || "";
87
84
  return W !== "" ? C + "(" + W + ")" : C;
88
85
  }
@@ -107,7 +104,7 @@ function gr() {
107
104
  return "StrictMode";
108
105
  case a:
109
106
  return "Suspense";
110
- case v:
107
+ case m:
111
108
  return "SuspenseList";
112
109
  }
113
110
  if (typeof r == "object")
@@ -118,15 +115,15 @@ function gr() {
118
115
  case f:
119
116
  var C = r;
120
117
  return ce(C._context) + ".Provider";
121
- case b:
118
+ case j:
122
119
  return Y(r, r.render, "ForwardRef");
123
120
  case p:
124
- var R = r.displayName || null;
125
- return R !== null ? R : ne(r.type) || "Memo";
126
- case y: {
127
- var W = r, $ = W._payload, H = W._init;
121
+ var L = r.displayName || null;
122
+ return L !== null ? L : ne(r.type) || "Memo";
123
+ case b: {
124
+ var W = r, G = W._payload, H = W._init;
128
125
  try {
129
- return ne(H($));
126
+ return ne(H(G));
130
127
  } catch {
131
128
  return null;
132
129
  }
@@ -134,14 +131,14 @@ function gr() {
134
131
  }
135
132
  return null;
136
133
  }
137
- var se = Object.assign, pe = 0, Te, we, qe, Me, te, Pe, Fe;
134
+ var se = Object.assign, pe = 0, Ee, we, Qe, Me, te, Fe, Pe;
138
135
  function He() {
139
136
  }
140
137
  He.__reactDisabledLog = !0;
141
138
  function ze() {
142
139
  {
143
140
  if (pe === 0) {
144
- Te = console.log, we = console.info, qe = console.warn, Me = console.error, te = console.group, Pe = console.groupCollapsed, Fe = console.groupEnd;
141
+ Ee = console.log, we = console.info, Qe = console.warn, Me = console.error, te = console.group, Fe = console.groupCollapsed, Pe = console.groupEnd;
145
142
  var r = {
146
143
  configurable: !0,
147
144
  enumerable: !0,
@@ -171,13 +168,13 @@ function gr() {
171
168
  };
172
169
  Object.defineProperties(console, {
173
170
  log: se({}, r, {
174
- value: Te
171
+ value: Ee
175
172
  }),
176
173
  info: se({}, r, {
177
174
  value: we
178
175
  }),
179
176
  warn: se({}, r, {
180
- value: qe
177
+ value: Qe
181
178
  }),
182
179
  error: se({}, r, {
183
180
  value: Me
@@ -186,10 +183,10 @@ function gr() {
186
183
  value: te
187
184
  }),
188
185
  groupCollapsed: se({}, r, {
189
- value: Pe
186
+ value: Fe
190
187
  }),
191
188
  groupEnd: se({}, r, {
192
- value: Fe
189
+ value: Pe
193
190
  })
194
191
  });
195
192
  }
@@ -197,38 +194,38 @@ function gr() {
197
194
  }
198
195
  }
199
196
  var Ce = n.ReactCurrentDispatcher, me;
200
- function G(r, x, C) {
197
+ function $(r, x, C) {
201
198
  {
202
199
  if (me === void 0)
203
200
  try {
204
201
  throw Error();
205
202
  } catch (W) {
206
- var R = W.stack.trim().match(/\n( *(at )?)/);
207
- me = R && R[1] || "";
203
+ var L = W.stack.trim().match(/\n( *(at )?)/);
204
+ me = L && L[1] || "";
208
205
  }
209
206
  return `
210
207
  ` + me + r;
211
208
  }
212
209
  }
213
- var Re = !1, Oe;
210
+ var Le = !1, Oe;
214
211
  {
215
212
  var q = typeof WeakMap == "function" ? WeakMap : Map;
216
213
  Oe = new q();
217
214
  }
218
215
  function Ue(r, x) {
219
- if (!r || Re)
216
+ if (!r || Le)
220
217
  return "";
221
218
  {
222
219
  var C = Oe.get(r);
223
220
  if (C !== void 0)
224
221
  return C;
225
222
  }
226
- var R;
227
- Re = !0;
223
+ var L;
224
+ Le = !0;
228
225
  var W = Error.prepareStackTrace;
229
226
  Error.prepareStackTrace = void 0;
230
- var $;
231
- $ = Ce.current, Ce.current = null, ze();
227
+ var G;
228
+ G = Ce.current, Ce.current = null, ze();
232
229
  try {
233
230
  if (x) {
234
231
  var H = function() {
@@ -242,14 +239,14 @@ function gr() {
242
239
  try {
243
240
  Reflect.construct(H, []);
244
241
  } catch (ae) {
245
- R = ae;
242
+ L = ae;
246
243
  }
247
244
  Reflect.construct(r, [], H);
248
245
  } else {
249
246
  try {
250
247
  H.call();
251
248
  } catch (ae) {
252
- R = ae;
249
+ L = ae;
253
250
  }
254
251
  r.call(H.prototype);
255
252
  }
@@ -257,23 +254,23 @@ function gr() {
257
254
  try {
258
255
  throw Error();
259
256
  } catch (ae) {
260
- R = ae;
257
+ L = ae;
261
258
  }
262
259
  r();
263
260
  }
264
261
  } catch (ae) {
265
- if (ae && R && typeof ae.stack == "string") {
266
- for (var F = ae.stack.split(`
267
- `), oe = R.stack.split(`
268
- `), Q = F.length - 1, ee = oe.length - 1; Q >= 1 && ee >= 0 && F[Q] !== oe[ee]; )
262
+ if (ae && L && typeof ae.stack == "string") {
263
+ for (var P = ae.stack.split(`
264
+ `), oe = L.stack.split(`
265
+ `), Q = P.length - 1, ee = oe.length - 1; Q >= 1 && ee >= 0 && P[Q] !== oe[ee]; )
269
266
  ee--;
270
267
  for (; Q >= 1 && ee >= 0; Q--, ee--)
271
- if (F[Q] !== oe[ee]) {
268
+ if (P[Q] !== oe[ee]) {
272
269
  if (Q !== 1 || ee !== 1)
273
270
  do
274
- if (Q--, ee--, ee < 0 || F[Q] !== oe[ee]) {
271
+ if (Q--, ee--, ee < 0 || P[Q] !== oe[ee]) {
275
272
  var he = `
276
- ` + F[Q].replace(" at new ", " at ");
273
+ ` + P[Q].replace(" at new ", " at ");
277
274
  return r.displayName && he.includes("<anonymous>") && (he = he.replace("<anonymous>", r.displayName)), typeof r == "function" && Oe.set(r, he), he;
278
275
  }
279
276
  while (Q >= 1 && ee >= 0);
@@ -281,9 +278,9 @@ function gr() {
281
278
  }
282
279
  }
283
280
  } finally {
284
- Re = !1, Ce.current = $, Ve(), Error.prepareStackTrace = W;
281
+ Le = !1, Ce.current = G, Ve(), Error.prepareStackTrace = W;
285
282
  }
286
- var Je = r ? r.displayName || r.name : "", Be = Je ? G(Je) : "";
283
+ var Je = r ? r.displayName || r.name : "", Be = Je ? $(Je) : "";
287
284
  return typeof r == "function" && Oe.set(r, Be), Be;
288
285
  }
289
286
  function de(r, x, C) {
@@ -299,23 +296,23 @@ function gr() {
299
296
  if (typeof r == "function")
300
297
  return Ue(r, ue(r));
301
298
  if (typeof r == "string")
302
- return G(r);
299
+ return $(r);
303
300
  switch (r) {
304
301
  case a:
305
- return G("Suspense");
306
- case v:
307
- return G("SuspenseList");
302
+ return $("Suspense");
303
+ case m:
304
+ return $("SuspenseList");
308
305
  }
309
306
  if (typeof r == "object")
310
307
  switch (r.$$typeof) {
311
- case b:
308
+ case j:
312
309
  return de(r.render);
313
310
  case p:
314
311
  return Se(r.type, x, C);
315
- case y: {
316
- var R = r, W = R._payload, $ = R._init;
312
+ case b: {
313
+ var L = r, W = L._payload, G = L._init;
317
314
  try {
318
- return Se($(W), x, C);
315
+ return Se(G(W), x, C);
319
316
  } catch {
320
317
  }
321
318
  }
@@ -330,36 +327,36 @@ function gr() {
330
327
  } else
331
328
  ke.setExtraStackFrame(null);
332
329
  }
333
- function $e(r, x, C, R, W) {
330
+ function Ge(r, x, C, L, W) {
334
331
  {
335
- var $ = Function.call.bind(ve);
332
+ var G = Function.call.bind(ve);
336
333
  for (var H in r)
337
- if ($(r, H)) {
338
- var F = void 0;
334
+ if (G(r, H)) {
335
+ var P = void 0;
339
336
  try {
340
337
  if (typeof r[H] != "function") {
341
- var oe = Error((R || "React class") + ": " + C + " type `" + H + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof r[H] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
338
+ var oe = Error((L || "React class") + ": " + C + " type `" + H + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof r[H] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
342
339
  throw oe.name = "Invariant Violation", oe;
343
340
  }
344
- F = r[H](x, H, R, C, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
341
+ P = r[H](x, H, L, C, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
345
342
  } catch (Q) {
346
- F = Q;
343
+ P = Q;
347
344
  }
348
- F && !(F instanceof Error) && (Ae(W), w("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", R || "React class", C, H, typeof F), Ae(null)), F instanceof Error && !(F.message in We) && (We[F.message] = !0, Ae(W), w("Failed %s type: %s", C, F.message), Ae(null));
345
+ P && !(P instanceof Error) && (Ae(W), w("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", L || "React class", C, H, typeof P), Ae(null)), P instanceof Error && !(P.message in We) && (We[P.message] = !0, Ae(W), w("Failed %s type: %s", C, P.message), Ae(null));
349
346
  }
350
347
  }
351
348
  }
352
- var Ze = Array.isArray;
353
- function Le(r) {
354
- return Ze(r);
349
+ var qe = Array.isArray;
350
+ function Re(r) {
351
+ return qe(r);
355
352
  }
356
- function et(r) {
353
+ function Ze(r) {
357
354
  {
358
355
  var x = typeof Symbol == "function" && Symbol.toStringTag, C = x && r[Symbol.toStringTag] || r.constructor.name || "Object";
359
356
  return C;
360
357
  }
361
358
  }
362
- function tt(r) {
359
+ function et(r) {
363
360
  try {
364
361
  return Ie(r), !1;
365
362
  } catch {
@@ -370,8 +367,8 @@ function gr() {
370
367
  return "" + r;
371
368
  }
372
369
  function S(r) {
373
- if (tt(r))
374
- return w("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", et(r)), Ie(r);
370
+ if (et(r))
371
+ return w("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Ze(r)), Ie(r);
375
372
  }
376
373
  var N = n.ReactCurrentOwner, J = {
377
374
  key: !0,
@@ -398,7 +395,7 @@ function gr() {
398
395
  function re(r, x) {
399
396
  typeof r.ref == "string" && N.current;
400
397
  }
401
- function Ge(r, x) {
398
+ function $e(r, x) {
402
399
  {
403
400
  var C = function() {
404
401
  D || (D = !0, w("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", x));
@@ -420,8 +417,8 @@ function gr() {
420
417
  });
421
418
  }
422
419
  }
423
- var be = function(r, x, C, R, W, $, H) {
424
- var F = {
420
+ var be = function(r, x, C, L, W, G, H) {
421
+ var P = {
425
422
  // This tag allows us to uniquely identify this as a React Element
426
423
  $$typeof: t,
427
424
  // Built-in properties that belong on the element
@@ -430,41 +427,41 @@ function gr() {
430
427
  ref: C,
431
428
  props: H,
432
429
  // Record the component responsible for creating this element.
433
- _owner: $
430
+ _owner: G
434
431
  };
435
- return F._store = {}, Object.defineProperty(F._store, "validated", {
432
+ return P._store = {}, Object.defineProperty(P._store, "validated", {
436
433
  configurable: !1,
437
434
  enumerable: !1,
438
435
  writable: !0,
439
436
  value: !1
440
- }), Object.defineProperty(F, "_self", {
437
+ }), Object.defineProperty(P, "_self", {
441
438
  configurable: !1,
442
439
  enumerable: !1,
443
440
  writable: !1,
444
- value: R
445
- }), Object.defineProperty(F, "_source", {
441
+ value: L
442
+ }), Object.defineProperty(P, "_source", {
446
443
  configurable: !1,
447
444
  enumerable: !1,
448
445
  writable: !1,
449
446
  value: W
450
- }), Object.freeze && (Object.freeze(F.props), Object.freeze(F)), F;
447
+ }), Object.freeze && (Object.freeze(P.props), Object.freeze(P)), P;
451
448
  };
452
- function c(r, x, C, R, W) {
449
+ function c(r, x, C, L, W) {
453
450
  {
454
- var $, H = {}, F = null, oe = null;
455
- C !== void 0 && (S(C), F = "" + C), je(x) && (S(x.key), F = "" + x.key), fe(x) && (oe = x.ref, re(x, W));
456
- for ($ in x)
457
- ve.call(x, $) && !J.hasOwnProperty($) && (H[$] = x[$]);
451
+ var G, H = {}, P = null, oe = null;
452
+ C !== void 0 && (S(C), P = "" + C), je(x) && (S(x.key), P = "" + x.key), fe(x) && (oe = x.ref, re(x, W));
453
+ for (G in x)
454
+ ve.call(x, G) && !J.hasOwnProperty(G) && (H[G] = x[G]);
458
455
  if (r && r.defaultProps) {
459
456
  var Q = r.defaultProps;
460
- for ($ in Q)
461
- H[$] === void 0 && (H[$] = Q[$]);
457
+ for (G in Q)
458
+ H[G] === void 0 && (H[G] = Q[G]);
462
459
  }
463
- if (F || oe) {
460
+ if (P || oe) {
464
461
  var ee = typeof r == "function" ? r.displayName || r.name || "Unknown" : r;
465
- F && Ge(H, ee), oe && _e(H, ee);
462
+ P && $e(H, ee), oe && _e(H, ee);
466
463
  }
467
- return be(r, F, oe, W, R, N.current, H);
464
+ return be(r, P, oe, W, L, N.current, H);
468
465
  }
469
466
  }
470
467
  var O = n.ReactCurrentOwner, z = n.ReactDebugCurrentFrame;
@@ -492,11 +489,11 @@ Check the render method of \`` + r + "`.";
492
489
  return "";
493
490
  }
494
491
  }
495
- function rt(r) {
492
+ function tt(r) {
496
493
  return "";
497
494
  }
498
- var pt = {};
499
- function Ht(r) {
495
+ var ht = {};
496
+ function Dt(r) {
500
497
  {
501
498
  var x = X();
502
499
  if (!x) {
@@ -508,39 +505,39 @@ Check the top-level render call using <` + C + ">.");
508
505
  return x;
509
506
  }
510
507
  }
511
- function ut(r, x) {
508
+ function pt(r, x) {
512
509
  {
513
510
  if (!r._store || r._store.validated || r.key != null)
514
511
  return;
515
512
  r._store.validated = !0;
516
- var C = Ht(x);
517
- if (pt[C])
513
+ var C = Dt(x);
514
+ if (ht[C])
518
515
  return;
519
- pt[C] = !0;
520
- var R = "";
521
- r && r._owner && r._owner !== O.current && (R = " It was passed a child from " + ne(r._owner.type) + "."), k(r), w('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', C, R), k(null);
516
+ ht[C] = !0;
517
+ var L = "";
518
+ r && r._owner && r._owner !== O.current && (L = " It was passed a child from " + ne(r._owner.type) + "."), k(r), w('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', C, L), k(null);
522
519
  }
523
520
  }
524
- function ft(r, x) {
521
+ function ut(r, x) {
525
522
  {
526
523
  if (typeof r != "object")
527
524
  return;
528
- if (Le(r))
525
+ if (Re(r))
529
526
  for (var C = 0; C < r.length; C++) {
530
- var R = r[C];
531
- U(R) && ut(R, x);
527
+ var L = r[C];
528
+ U(L) && pt(L, x);
532
529
  }
533
530
  else if (U(r))
534
531
  r._store && (r._store.validated = !0);
535
532
  else if (r) {
536
- var W = j(r);
533
+ var W = v(r);
537
534
  if (typeof W == "function" && W !== r.entries)
538
- for (var $ = W.call(r), H; !(H = $.next()).done; )
539
- U(H.value) && ut(H.value, x);
535
+ for (var G = W.call(r), H; !(H = G.next()).done; )
536
+ U(H.value) && pt(H.value, x);
540
537
  }
541
538
  }
542
539
  }
543
- function Vt(r) {
540
+ function Ft(r) {
544
541
  {
545
542
  var x = r.type;
546
543
  if (x == null || typeof x == "string")
@@ -548,15 +545,15 @@ Check the top-level render call using <` + C + ">.");
548
545
  var C;
549
546
  if (typeof x == "function")
550
547
  C = x.propTypes;
551
- else if (typeof x == "object" && (x.$$typeof === b || // Note: Memo only checks outer props here.
548
+ else if (typeof x == "object" && (x.$$typeof === j || // Note: Memo only checks outer props here.
552
549
  // Inner props are checked in the reconciler.
553
550
  x.$$typeof === p))
554
551
  C = x.propTypes;
555
552
  else
556
553
  return;
557
554
  if (C) {
558
- var R = ne(x);
559
- $e(C, r.props, "prop", R, r);
555
+ var L = ne(x);
556
+ Ge(C, r.props, "prop", L, r);
560
557
  } else if (x.PropTypes !== void 0 && !le) {
561
558
  le = !0;
562
559
  var W = ne(x);
@@ -565,179 +562,152 @@ Check the top-level render call using <` + C + ">.");
565
562
  typeof x.getDefaultProps == "function" && !x.getDefaultProps.isReactClassApproved && w("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
566
563
  }
567
564
  }
568
- function Ut(r) {
565
+ function Pt(r) {
569
566
  {
570
567
  for (var x = Object.keys(r.props), C = 0; C < x.length; C++) {
571
- var R = x[C];
572
- if (R !== "children" && R !== "key") {
573
- k(r), w("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", R), k(null);
568
+ var L = x[C];
569
+ if (L !== "children" && L !== "key") {
570
+ k(r), w("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", L), k(null);
574
571
  break;
575
572
  }
576
573
  }
577
574
  r.ref !== null && (k(r), w("Invalid attribute `ref` supplied to `React.Fragment`."), k(null));
578
575
  }
579
576
  }
580
- var xt = {};
581
- function gt(r, x, C, R, W, $) {
577
+ var ft = {};
578
+ function xt(r, x, C, L, W, G) {
582
579
  {
583
580
  var H = K(r);
584
581
  if (!H) {
585
- var F = "";
586
- (r === void 0 || typeof r == "object" && r !== null && Object.keys(r).length === 0) && (F += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
587
- var oe = rt();
588
- oe ? F += oe : F += X();
582
+ var P = "";
583
+ (r === void 0 || typeof r == "object" && r !== null && Object.keys(r).length === 0) && (P += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
584
+ var oe = tt();
585
+ oe ? P += oe : P += X();
589
586
  var Q;
590
- r === null ? Q = "null" : Le(r) ? Q = "array" : r !== void 0 && r.$$typeof === t ? (Q = "<" + (ne(r.type) || "Unknown") + " />", F = " Did you accidentally export a JSX literal instead of a component?") : Q = typeof r, w("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", Q, F);
587
+ r === null ? Q = "null" : Re(r) ? Q = "array" : r !== void 0 && r.$$typeof === t ? (Q = "<" + (ne(r.type) || "Unknown") + " />", P = " Did you accidentally export a JSX literal instead of a component?") : Q = typeof r, w("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", Q, P);
591
588
  }
592
- var ee = c(r, x, C, W, $);
589
+ var ee = c(r, x, C, W, G);
593
590
  if (ee == null)
594
591
  return ee;
595
592
  if (H) {
596
593
  var he = x.children;
597
594
  if (he !== void 0)
598
- if (R)
599
- if (Le(he)) {
595
+ if (L)
596
+ if (Re(he)) {
600
597
  for (var Je = 0; Je < he.length; Je++)
601
- ft(he[Je], r);
598
+ ut(he[Je], r);
602
599
  Object.freeze && Object.freeze(he);
603
600
  } else
604
601
  w("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
605
602
  else
606
- ft(he, r);
603
+ ut(he, r);
607
604
  }
608
605
  if (ve.call(x, "key")) {
609
- var Be = ne(r), ae = Object.keys(x).filter(function(Kt) {
610
- return Kt !== "key";
611
- }), dt = ae.length > 0 ? "{key: someKey, " + ae.join(": ..., ") + ": ...}" : "{key: someKey}";
612
- if (!xt[Be + dt]) {
613
- var Yt = ae.length > 0 ? "{" + ae.join(": ..., ") + ": ...}" : "{}";
606
+ var Be = ne(r), ae = Object.keys(x).filter(function($t) {
607
+ return $t !== "key";
608
+ }), lt = ae.length > 0 ? "{key: someKey, " + ae.join(": ..., ") + ": ...}" : "{key: someKey}";
609
+ if (!ft[Be + lt]) {
610
+ var Gt = ae.length > 0 ? "{" + ae.join(": ..., ") + ": ...}" : "{}";
614
611
  w(`A props object containing a "key" prop is being spread into JSX:
615
612
  let props = %s;
616
613
  <%s {...props} />
617
614
  React keys must be passed directly to JSX without using spread:
618
615
  let props = %s;
619
- <%s key={someKey} {...props} />`, dt, Be, Yt, Be), xt[Be + dt] = !0;
616
+ <%s key={someKey} {...props} />`, lt, Be, Gt, Be), ft[Be + lt] = !0;
620
617
  }
621
618
  }
622
- return r === i ? Ut(ee) : Vt(ee), ee;
619
+ return r === i ? Pt(ee) : Ft(ee), ee;
623
620
  }
624
621
  }
625
- function Wt(r, x, C) {
626
- return gt(r, x, C, !0);
622
+ function Ht(r, x, C) {
623
+ return xt(r, x, C, !0);
627
624
  }
628
- function $t(r, x, C) {
629
- return gt(r, x, C, !1);
625
+ function Vt(r, x, C) {
626
+ return xt(r, x, C, !1);
630
627
  }
631
- var Gt = $t, Jt = Wt;
632
- st.Fragment = i, st.jsx = Gt, st.jsxs = Jt;
633
- }()), st;
628
+ var Ut = Vt, Wt = Ht;
629
+ nt.Fragment = i, nt.jsx = Ut, nt.jsxs = Wt;
630
+ }()), nt;
634
631
  }
635
- var bt;
636
- function mr() {
637
- return bt || (bt = 1, process.env.NODE_ENV === "production" ? ot.exports = xr() : ot.exports = gr()), ot.exports;
638
- }
639
- var e = mr(), Ye = {}, yt;
640
- function vr() {
641
- if (yt) return Ye;
642
- yt = 1;
643
- var g = _t;
644
- if (process.env.NODE_ENV === "production")
645
- Ye.createRoot = g.createRoot, Ye.hydrateRoot = g.hydrateRoot;
646
- else {
647
- var t = g.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
648
- Ye.createRoot = function(o, i) {
649
- t.usingClientEntryPoint = !0;
650
- try {
651
- return g.createRoot(o, i);
652
- } finally {
653
- t.usingClientEntryPoint = !1;
654
- }
655
- }, Ye.hydrateRoot = function(o, i, l) {
656
- t.usingClientEntryPoint = !0;
657
- try {
658
- return g.hydrateRoot(o, i, l);
659
- } finally {
660
- t.usingClientEntryPoint = !1;
661
- }
662
- };
663
- }
664
- return Ye;
632
+ var jt;
633
+ function fr() {
634
+ return jt || (jt = 1, process.env.NODE_ENV === "production" ? st.exports = pr() : st.exports = ur()), st.exports;
665
635
  }
666
- var jr = vr();
667
- const br = /* @__PURE__ */ fr(jr), yr = {
636
+ var e = fr();
637
+ const xr = {
668
638
  primaryColor: "#f88300",
669
639
  primaryColorLight: "#6858c1",
670
640
  secondaryColor: "#005a53",
671
641
  tertiaryColor: "#FFFFFF"
672
- }, wr = "M80 160c0-35.3 28.7-64 64-64h32c35.3 0 64 28.7 64 64v3.6c0 21.8-11.1 42.1-29.4 53.8l-42.2 27.1c-25.2 16.2-40.4 44.1-40.4 74V320c0 17.7 14.3 32 32 32s32-14.3 32-32v-1.4c0-8.2 4.2-15.8 11-20.2l42.2-27.1c36.6-23.6 58.8-64.1 58.8-107.7V160c0-70.7-57.3-128-128-128H144C73.3 32 16 89.3 16 160c0 17.7 14.3 32 32 32s32-14.3 32-32zm80 320a40 40 0 1 0 0-80 40 40 0 1 0 0 80z", Cr = "M164.9 24.6c-7.7-18.6-28-28.5-47.4-23.2l-88 24C12.1 30.2 0 46 0 64C0 311.4 200.6 512 448 512c18 0 33.8-12.1 38.6-29.5l24-88c5.3-19.4-4.6-39.7-23.2-47.4l-96-40c-16.3-6.8-35.2-2.1-46.3 11.6L304.7 368C234.3 334.7 177.3 277.7 144 207.3L193.3 167c13.7-11.2 18.4-30 11.6-46.3l-40-96z", Sr = "M464 256A208 208 0 1 1 48 256a208 208 0 1 1 416 0zM0 256a256 256 0 1 0 512 0A256 256 0 1 0 0 256zM232 120V256c0 8 4 15.5 10.7 20l96 64c11 7.4 25.9 4.4 33.3-6.7s4.4-25.9-6.7-33.3L280 243.2V120c0-13.3-10.7-24-24-24s-24 10.7-24 24z", kr = "M459.37 151.716c.325 4.548.325 9.097.325 13.645 0 138.72-105.583 298.558-298.558 298.558-59.452 0-114.68-17.219-161.137-47.106 8.447.974 16.568 1.299 25.34 1.299 49.055 0 94.213-16.568 130.274-44.832-46.132-.975-84.792-31.188-98.112-72.772 6.498.974 12.995 1.624 19.818 1.624 9.421 0 18.843-1.3 27.614-3.573-48.081-9.747-84.143-51.98-84.143-102.985v-1.299c13.969 7.797 30.214 12.67 47.431 13.319-28.264-18.843-46.781-51.005-46.781-87.391 0-19.492 5.197-37.36 14.294-52.954 51.655 63.675 129.3 105.258 216.365 109.807-1.624-7.797-2.599-15.918-2.599-24.04 0-57.828 46.782-104.934 104.934-104.934 30.213 0 57.502 12.67 76.67 33.137 23.715-4.548 46.456-13.32 66.599-25.34-7.798 24.366-24.366 44.833-46.132 57.827 21.117-2.273 41.584-8.122 60.426-16.243-14.292 20.791-32.161 39.308-52.628 54.253z", Nr = "M438.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L160 338.7 393.4 105.4c12.5-12.5 32.8-12.5 45.3 0z", Or = "M160 64c0-8.8 7.2-16 16-16s16 7.2 16 16V200c0 10.3 6.6 19.5 16.4 22.8s20.6-.1 26.8-8.3c3-3.9 7.6-6.4 12.8-6.4c8.8 0 16 7.2 16 16c0 10.3 6.6 19.5 16.4 22.8s20.6-.1 26.8-8.3c3-3.9 7.6-6.4 12.8-6.4c7.8 0 14.3 5.6 15.7 13c1.6 8.2 7.3 15.1 15.1 18s16.7 1.6 23.3-3.6c2.7-2.1 6.1-3.4 9.9-3.4c8.8 0 16 7.2 16 16l0 16V392c0 39.8-32.2 72-72 72H272 212.3h-.9c-37.4 0-72.4-18.7-93.2-49.9L50.7 312.9c-4.9-7.4-2.9-17.3 4.4-22.2s17.3-2.9 22.2 4.4L116 353.2c5.9 8.8 16.8 12.7 26.9 9.7s17-12.4 17-23V320 64zM176 0c-35.3 0-64 28.7-64 64V261.7C91.2 238 55.5 232.8 28.5 250.7C-.9 270.4-8.9 310.1 10.8 339.5L78.3 440.8c29.7 44.5 79.6 71.2 133.1 71.2h.9H272h56c66.3 0 120-53.7 120-120V288l0-16c0-35.3-28.7-64-64-64c-4.5 0-8.8 .5-13 1.3c-11.7-15.4-30.2-25.3-51-25.3c-6.9 0-13.5 1.1-19.7 3.1C288.7 170.7 269.6 160 248 160c-2.7 0-5.4 .2-8 .5V64c0-35.3-28.7-64-64-64zm48 304c0-8.8-7.2-16-16-16s-16 7.2-16 16v96c0 8.8 7.2 16 16 16s16-7.2 16-16V304zm48-16c-8.8 0-16 7.2-16 16v96c0 8.8 7.2 16 16 16s16-7.2 16-16V304c0-8.8-7.2-16-16-16zm80 16c0-8.8-7.2-16-16-16s-16 7.2-16 16v96c0 8.8 7.2 16 16 16s16-7.2 16-16V304z", Ar = "M48 64C21.5 64 0 85.5 0 112c0 15.1 7.1 29.3 19.2 38.4L236.8 313.6c11.4 8.5 27 8.5 38.4 0L492.8 150.4c12.1-9.1 19.2-23.3 19.2-38.4c0-26.5-21.5-48-48-48H48zM0 176V384c0 35.3 28.7 64 64 64H448c35.3 0 64-28.7 64-64V176L294.4 339.2c-22.8 17.1-54 17.1-76.8 0L0 176z", Ir = "M160 0c17.7 0 32 14.3 32 32V67.7c1.6 .2 3.1 .4 4.7 .7c.4 .1 .7 .1 1.1 .2l48 8.8c17.4 3.2 28.9 19.9 25.7 37.2s-19.9 28.9-37.2 25.7l-47.5-8.7c-31.3-4.6-58.9-1.5-78.3 6.2s-27.2 18.3-29 28.1c-2 10.7-.5 16.7 1.2 20.4c1.8 3.9 5.5 8.3 12.8 13.2c16.3 10.7 41.3 17.7 73.7 26.3l2.9 .8c28.6 7.6 63.6 16.8 89.6 33.8c14.2 9.3 27.6 21.9 35.9 39.5c8.5 17.9 10.3 37.9 6.4 59.2c-6.9 38-33.1 63.4-65.6 76.7c-13.7 5.6-28.6 9.2-44.4 11V480c0 17.7-14.3 32-32 32s-32-14.3-32-32V445.1c-.4-.1-.9-.1-1.3-.2l-.2 0 0 0c-24.4-3.8-64.5-14.3-91.5-26.3c-16.1-7.2-23.4-26.1-16.2-42.2s26.1-23.4 42.2-16.2c20.9 9.3 55.3 18.5 75.2 21.6c31.9 4.7 58.2 2 76-5.3c16.9-6.9 24.6-16.9 26.8-28.9c1.9-10.6 .4-16.7-1.3-20.4c-1.9-4-5.6-8.4-13-13.3c-16.4-10.7-41.5-17.7-74-26.3l-2.8-.7 0 0C119.4 279.3 84.4 270 58.4 253c-14.2-9.3-27.5-22-35.8-39.6c-8.4-17.9-10.1-37.9-6.1-59.2C23.7 116 52.3 91.2 84.8 78.3c13.3-5.3 27.9-8.9 43.2-11V32c0-17.7 14.3-32 32-32z", wt = "M47.6 300.4L228.3 469.1c7.5 7 17.4 10.9 27.7 10.9s20.2-3.9 27.7-10.9L464.4 300.4c30.4-28.3 47.6-68 47.6-109.5v-5.8c0-69.9-50.5-129.5-119.4-141C347 36.5 300.6 51.4 268 84L256 96 244 84c-32.6-32.6-79-47.5-124.6-39.9C50.5 55.6 0 115.2 0 185.1v5.8c0 41.5 17.2 81.2 47.6 109.5z", Ct = "M234.5 5.7c13.9-5 29.1-5 43.1 0l192 68.6C495 83.4 512 107.5 512 134.6V377.4c0 27-17 51.2-42.5 60.3l-192 68.6c-13.9 5-29.1 5-43.1 0l-192-68.6C17 428.6 0 404.5 0 377.4V134.6c0-27 17-51.2 42.5-60.3l192-68.6zM256 66L82.3 128 256 190l173.7-62L256 66zm32 368.6l160-57.1v-188L288 246.6v188z", ht = "M438.6 278.6c12.5-12.5 12.5-32.8 0-45.3l-160-160c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L338.8 224 32 224c-17.7 0-32 14.3-32 32s14.3 32 32 32l306.7 0L233.4 393.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l160-160z", St = "M320 32c-8.1 0-16.1 1.4-23.7 4.1L15.8 137.4C6.3 140.9 0 149.9 0 160s6.3 19.1 15.8 22.6l57.9 20.9C57.3 229.3 48 259.8 48 291.9v28.1c0 28.4-10.8 57.7-22.3 80.8c-6.5 13-13.9 25.8-22.5 37.6C0 442.7-.9 448.3 .9 453.4s6 8.9 11.2 10.2l64 16c4.2 1.1 8.7 .3 12.4-2s6.3-6.1 7.1-10.4c8.6-42.8 4.3-81.2-2.1-108.7C90.3 344.3 86 329.8 80 316.5V291.9c0-30.2 10.2-58.7 27.9-81.5c12.9-15.5 29.6-28 49.2-35.7l157-61.7c8.2-3.2 17.5 .8 20.7 9s-.8 17.5-9 20.7l-157 61.7c-12.4 4.9-23.3 12.4-32.2 21.6l159.6 57.6c7.6 2.7 15.6 4.1 23.7 4.1s16.1-1.4 23.7-4.1L624.2 182.6c9.5-3.4 15.8-12.5 15.8-22.6s-6.3-19.1-15.8-22.6L343.7 36.1C336.1 33.4 328.1 32 320 32zM128 408c0 35.3 86 72 192 72s192-36.7 192-72L496.7 262.6 354.5 314c-11.1 4-22.8 6-34.5 6s-23.5-2-34.5-6L143.3 262.6 128 408z", Er = "M184 48H328c4.4 0 8 3.6 8 8V96H176V56c0-4.4 3.6-8 8-8zm-56 8V96H64C28.7 96 0 124.7 0 160v96H192 352h8.2c32.3-39.1 81.1-64 135.8-64c5.4 0 10.7 .2 16 .7V160c0-35.3-28.7-64-64-64H384V56c0-30.9-25.1-56-56-56H184c-30.9 0-56 25.1-56 56zM320 352H224c-17.7 0-32-14.3-32-32V288H0V416c0 35.3 28.7 64 64 64H360.2C335.1 449.6 320 410.5 320 368c0-5.4 .2-10.7 .7-16l-.7 0zm320 16a144 144 0 1 0 -288 0 144 144 0 1 0 288 0zM496 288c8.8 0 16 7.2 16 16v48h32c8.8 0 16 7.2 16 16s-7.2 16-16 16H496c-8.8 0-16-7.2-16-16V304c0-8.8 7.2-16 16-16z", Tr = "M88.2 309.1c9.8-18.3 6.8-40.8-7.5-55.8C59.4 230.9 48 204 48 176c0-63.5 63.8-128 160-128s160 64.5 160 128s-63.8 128-160 128c-13.1 0-25.8-1.3-37.8-3.6c-10.4-2-21.2-.6-30.7 4.2c-4.1 2.1-8.3 4.1-12.6 6c-16 7.2-32.9 13.5-49.9 18c2.8-4.6 5.4-9.1 7.9-13.6c1.1-1.9 2.2-3.9 3.2-5.9zM0 176c0 41.8 17.2 80.1 45.9 110.3c-.9 1.7-1.9 3.5-2.8 5.1c-10.3 18.4-22.3 36.5-36.6 52.1c-6.6 7-8.3 17.2-4.6 25.9C5.8 378.3 14.4 384 24 384c43 0 86.5-13.3 122.7-29.7c4.8-2.2 9.6-4.5 14.2-6.8c15.1 3 30.9 4.5 47.1 4.5c114.9 0 208-78.8 208-176S322.9 0 208 0S0 78.8 0 176zM432 480c16.2 0 31.9-1.6 47.1-4.5c4.6 2.3 9.4 4.6 14.2 6.8C529.5 498.7 573 512 616 512c9.6 0 18.2-5.7 22-14.5c3.8-8.8 2-19-4.6-25.9c-14.2-15.6-26.2-33.7-36.6-52.1c-.9-1.7-1.9-3.4-2.8-5.1C622.8 384.1 640 345.8 640 304c0-94.4-87.9-171.5-198.2-175.8c4.1 15.2 6.2 31.2 6.2 47.8l0 .6c87.2 6.7 144 67.5 144 127.4c0 28-11.4 54.9-32.7 77.2c-14.3 15-17.3 37.6-7.5 55.8c1.1 2 2.2 4 3.2 5.9c2.5 4.5 5.2 9 7.9 13.6c-17-4.5-33.9-10.7-49.9-18c-4.3-1.9-8.5-3.9-12.6-6c-9.5-4.8-20.3-6.2-30.7-4.2c-12.1 2.4-24.7 3.6-37.8 3.6c-61.7 0-110-26.5-136.8-62.3c-16 5.4-32.8 9.4-50 11.8C279 439.8 350 480 432 480z", Mr = "M323.8 34.8c-38.2-10.9-78.1 11.2-89 49.4l-5.7 20c-3.7 13-10.4 25-19.5 35l-51.3 56.4c-8.9 9.8-8.2 25 1.6 33.9s25 8.2 33.9-1.6l51.3-56.4c14.1-15.5 24.4-34 30.1-54.1l5.7-20c3.6-12.7 16.9-20.1 29.7-16.5s20.1 16.9 16.5 29.7l-5.7 20c-5.7 19.9-14.7 38.7-26.6 55.5c-5.2 7.3-5.8 16.9-1.7 24.9s12.3 13 21.3 13L448 224c8.8 0 16 7.2 16 16c0 6.8-4.3 12.7-10.4 15c-7.4 2.8-13 9-14.9 16.7s.1 15.8 5.3 21.7c2.5 2.8 4 6.5 4 10.6c0 7.8-5.6 14.3-13 15.7c-8.2 1.6-15.1 7.3-18 15.1s-1.6 16.7 3.6 23.3c2.1 2.7 3.4 6.1 3.4 9.9c0 6.7-4.2 12.6-10.2 14.9c-11.5 4.5-17.7 16.9-14.4 28.8c.4 1.3 .6 2.8 .6 4.3c0 8.8-7.2 16-16 16H286.5c-12.6 0-25-3.7-35.5-10.7l-61.7-41.1c-11-7.4-25.9-4.4-33.3 6.7s-4.4 25.9 6.7 33.3l61.7 41.1c18.4 12.3 40 18.8 62.1 18.8H384c34.7 0 62.9-27.6 64-62c14.6-11.7 24-29.7 24-50c0-4.5-.5-8.8-1.3-13c15.4-11.7 25.3-30.2 25.3-51c0-6.5-1-12.8-2.8-18.7C504.8 273.7 512 257.7 512 240c0-35.3-28.6-64-64-64l-92.3 0c4.7-10.4 8.7-21.2 11.8-32.2l5.7-20c10.9-38.2-11.2-78.1-49.4-89zM32 192c-17.7 0-32 14.3-32 32V448c0 17.7 14.3 32 32 32H96c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32H32z", zr = "M54.2 202.9C123.2 136.7 216.8 96 320 96s196.8 40.7 265.8 106.9c12.8 12.2 33 11.8 45.2-.9s11.8-33-.9-45.2C549.7 79.5 440.4 32 320 32S90.3 79.5 9.8 156.7C-2.9 169-3.3 189.2 8.9 202s32.5 13.2 45.2 .9zM320 256c56.8 0 108.6 21.1 148.2 56c13.3 11.7 33.5 10.4 45.2-2.8s10.4-33.5-2.8-45.2C459.8 219.2 393 192 320 192s-139.8 27.2-190.5 72c-13.3 11.7-14.5 31.9-2.8 45.2s31.9 14.5 45.2 2.8c39.5-34.9 91.3-56 148.2-56zm64 160a64 64 0 1 0 -128 0 64 64 0 1 0 128 0z", kt = "M123.6 391.3c12.9-9.4 29.6-11.8 44.6-6.4c26.5 9.6 56.2 15.1 87.8 15.1c124.7 0 208-80.5 208-160s-83.3-160-208-160S48 160.5 48 240c0 32 12.4 62.8 35.7 89.2c8.6 9.7 12.8 22.5 11.8 35.5c-1.4 18.1-5.7 34.7-11.3 49.4c17-7.9 31.1-16.7 39.4-22.7zM21.2 431.9c1.8-2.7 3.5-5.4 5.1-8.1c10-16.6 19.5-38.4 21.4-62.9C17.7 326.8 0 285.1 0 240C0 125.1 114.6 32 256 32s256 93.1 256 208s-114.6 208-256 208c-37.1 0-72.3-6.4-104.1-17.9c-11.9 8.7-31.3 20.6-54.3 30.6c-15.1 6.6-32.3 12.6-50.1 16.1c-.8 .2-1.6 .3-2.4 .5c-4.4 .8-8.7 1.5-13.2 1.9c-.2 0-.5 .1-.7 .1c-5.1 .5-10.2 .8-15.3 .8c-6.5 0-12.3-3.9-14.8-9.9c-2.5-6-1.1-12.8 3.4-17.4c4.1-4.2 7.8-8.7 11.3-13.5c1.7-2.3 3.3-4.6 4.8-6.9c.1-.2 .2-.3 .3-.5z", Nt = "M0 24C0 10.7 10.7 0 24 0H69.5c22 0 41.5 12.8 50.6 32h411c26.3 0 45.5 25 38.6 50.4l-41 152.3c-8.5 31.4-37 53.3-69.5 53.3H170.7l5.4 28.5c2.2 11.3 12.1 19.5 23.6 19.5H488c13.3 0 24 10.7 24 24s-10.7 24-24 24H199.7c-34.6 0-64.3-24.6-70.7-58.5L77.4 54.5c-.7-3.8-4-6.5-7.9-6.5H24C10.7 48 0 37.3 0 24zM128 464a48 48 0 1 1 96 0 48 48 0 1 1 -96 0zm336-48a48 48 0 1 1 0 96 48 48 0 1 1 0-96z", Ot = "M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM216 336h24V272H216c-13.3 0-24-10.7-24-24s10.7-24 24-24h48c13.3 0 24 10.7 24 24v88h8c13.3 0 24 10.7 24 24s-10.7 24-24 24H216c-13.3 0-24-10.7-24-24s10.7-24 24-24zm40-208a32 32 0 1 1 0 64 32 32 0 1 1 0-64z", At = "M215.7 499.2C267 435 384 279.4 384 192C384 86 298 0 192 0S0 86 0 192c0 87.4 117 243 168.3 307.2c12.3 15.3 35.1 15.3 47.4 0zM192 128a64 64 0 1 1 0 128 64 64 0 1 1 0-128z", It = "M225.8 468.2l-2.5-2.3L48.1 303.2C17.4 274.7 0 234.7 0 192.8v-3.3c0-70.4 50-130.8 119.2-144C158.6 37.9 198.9 47 231 69.6c9 6.4 17.4 13.8 25 22.3c4.2-4.8 8.7-9.2 13.5-13.3c3.7-3.2 7.5-6.2 11.5-9c0 0 0 0 0 0C313.1 47 353.4 37.9 392.8 45.4C462 58.6 512 119.1 512 189.5v3.3c0 41.9-17.4 81.9-48.1 110.4L288.7 465.9l-2.5 2.3c-8.2 7.6-19 11.9-30.2 11.9s-22-4.2-30.2-11.9zM239.1 145c-.4-.3-.7-.7-1-1.1l-17.8-20c0 0-.1-.1-.1-.1c0 0 0 0 0 0c-23.1-25.9-58-37.7-92-31.2C81.6 101.5 48 142.1 48 189.5v3.3c0 28.5 11.9 55.8 32.8 75.2L256 430.7 431.2 268c20.9-19.4 32.8-46.7 32.8-75.2v-3.3c0-47.3-33.6-88-80.1-96.9c-34-6.5-69 5.4-92 31.2c0 0 0 0-.1 .1s0 0-.1 .1l-17.8 20c-.3 .4-.7 .7-1 1.1c-4.5 4.5-10.6 7-16.9 7s-12.4-2.5-16.9-7z", Rr = "M438.6 278.6c12.5-12.5 12.5-32.8 0-45.3l-160-160c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L338.8 224 32 224c-17.7 0-32 14.3-32 32s14.3 32 32 32l306.7 0L233.4 393.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l160-160z", Et = "M342.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3 297.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256 342.6 150.6z", Tt = "M0 336c0 79.5 64.5 144 144 144H512c70.7 0 128-57.3 128-128c0-61.9-44-113.6-102.4-125.4c4.1-10.7 6.4-22.4 6.4-34.6c0-53-43-96-96-96c-19.7 0-38.1 6-53.3 16.2C367 64.2 315.3 32 256 32C167.6 32 96 103.6 96 192c0 2.7 .1 5.4 .2 8.1C40.2 219.8 0 273.2 0 336z", Mt = "M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM164.1 325.5C182 346.2 212.6 368 256 368s74-21.8 91.9-42.5c5.8-6.7 15.9-7.4 22.6-1.6s7.4 15.9 1.6 22.6C349.8 372.1 311.1 400 256 400s-93.8-27.9-116.1-53.5c-5.8-6.7-5.1-16.8 1.6-22.6s16.8-5.1 22.6 1.6zM144.4 208a32 32 0 1 1 64 0 32 32 0 1 1 -64 0zm192-32a32 32 0 1 1 0 64 32 32 0 1 1 0-64z", zt = "M48 256C48 141.1 141.1 48 256 48c63.1 0 119.6 28.1 157.8 72.5c8.6 10.1 23.8 11.2 33.8 2.6s11.2-23.8 2.6-33.8C403.3 34.6 333.7 0 256 0C114.6 0 0 114.6 0 256v40c0 13.3 10.7 24 24 24s24-10.7 24-24V256zm458.5-52.9c-2.7-13-15.5-21.3-28.4-18.5s-21.3 15.5-18.5 28.4c2.9 13.9 4.5 28.3 4.5 43.1v40c0 13.3 10.7 24 24 24s24-10.7 24-24V256c0-18.1-1.9-35.8-5.5-52.9zM256 80c-19 0-37.4 3-54.5 8.6c-15.2 5-18.7 23.7-8.3 35.9c7.1 8.3 18.8 10.8 29.4 7.9c10.6-2.9 21.8-4.4 33.4-4.4c70.7 0 128 57.3 128 128v24.9c0 25.2-1.5 50.3-4.4 75.3c-1.7 14.6 9.4 27.8 24.2 27.8c11.8 0 21.9-8.6 23.3-20.3c3.3-27.4 5-55 5-82.7V256c0-97.2-78.8-176-176-176zM150.7 148.7c-9.1-10.6-25.3-11.4-33.9-.4C93.7 178 80 215.4 80 256v24.9c0 24.2-2.6 48.4-7.8 71.9C68.8 368.4 80.1 384 96.1 384c10.5 0 19.9-7 22.2-17.3c6.4-28.1 9.7-56.8 9.7-85.8V256c0-27.2 8.5-52.4 22.9-73.1c7.2-10.4 8-24.6-.2-34.2zM256 160c-53 0-96 43-96 96v24.9c0 35.9-4.6 71.5-13.8 106.1c-3.8 14.3 6.7 29 21.5 29c9.5 0 17.9-6.2 20.4-15.4c10.5-39 15.9-79.2 15.9-119.7V256c0-28.7 23.3-52 52-52s52 23.3 52 52v24.9c0 36.3-3.5 72.4-10.4 107.9c-2.7 13.9 7.7 27.2 21.8 27.2c10.2 0 19-7 21-17c7.7-38.8 11.6-78.3 11.6-118.1V256c0-53-43-96-96-96zm24 96c0-13.3-10.7-24-24-24s-24 10.7-24 24v24.9c0 59.9-11 119.3-32.5 175.2l-5.9 15.3c-4.8 12.4 1.4 26.3 13.8 31s26.3-1.4 31-13.8l5.9-15.3C267.9 411.9 280 346.7 280 280.9V256z", Lr = "M315.4 15.5C309.7 5.9 299.2 0 288 0s-21.7 5.9-27.4 15.5l-96 160c-5.9 9.9-6.1 22.2-.4 32.2s16.3 16.2 27.8 16.2H384c11.5 0 22.2-6.2 27.8-16.2s5.5-22.3-.4-32.2l-96-160zM288 312V456c0 22.1 17.9 40 40 40H472c22.1 0 40-17.9 40-40V312c0-22.1-17.9-40-40-40H328c-22.1 0-40 17.9-40 40zM128 512a128 128 0 1 0 0-256 128 128 0 1 0 0 256z", _r = "M116.7 219.4a15.7 15.7 0 0 0 22.7 0l96.8-99.8c28.2-29 26.5-77.1-4.9-103.9C203.8-7.7 163-3.5 137.9 22.4L128 32.6l-9.9-10.1C93.1-3.5 52.3-7.7 24.9 15.6c-31.4 26.8-33 74.9-5 103.9zm143.9 100.5h-48l-7.1-14.2a27.4 27.4 0 0 0 -25.7-17.8h-71.7a27.4 27.4 0 0 0 -25.7 17.8l-7 14.2h-48A27.5 27.5 0 0 0 0 347.3v137.3A27.4 27.4 0 0 0 27.4 512h233.1A27.5 27.5 0 0 0 288 484.6V347.3a27.5 27.5 0 0 0 -27.4-27.5zM144 468a52 52 0 1 1 52-52 52 52 0 0 1 -52 52zm355.4-115.9h-60.6l22.4-50.8c2.1-6.7-3.9-13.2-12.2-13.2h-75.6c-6.3 0-11.7 3.9-12.5 9.1l-16.8 106.9c-1 6.3 4.9 11.9 12.5 11.9h62.3l-24.2 83c-1.9 6.7 4.2 12.9 12.2 12.9a13.3 13.3 0 0 0 10.9-5.3l92.4-138.9c4.9-6.9-1.2-15.7-10.9-15.7zM478.1 .3L329.5 23.2C314.9 25.4 304 38.9 304 54.8V161.6a83.3 83.3 0 0 0 -16-1.7c-35.4 0-64 21.5-64 48s28.7 48 64 48c35.2 0 63.7-21.3 64-47.7V99.7l112-17.2v47.2a83.3 83.3 0 0 0 -16-1.7c-35.4 0-64 21.5-64 48s28.7 48 64 48c35.2 0 63.7-21.3 64-47.7V32c0-19.5-16-34.4-33.9-31.7z", Br = "M432 416h-23.4L277.9 53.7A32 32 0 0 0 247.6 32h-47.2a32 32 0 0 0 -30.3 21.7L39.4 416H16a16 16 0 0 0 -16 16v32a16 16 0 0 0 16 16h128a16 16 0 0 0 16-16v-32a16 16 0 0 0 -16-16h-19.6l23.3-64h152.6l23.3 64H304a16 16 0 0 0 -16 16v32a16 16 0 0 0 16 16h128a16 16 0 0 0 16-16v-32a16 16 0 0 0 -16-16zM176.9 272L224 142.5 271.2 272z", Dr = "M464 32H336c-26.5 0-48 21.5-48 48v128c0 26.5 21.5 48 48 48h80v64c0 35.3-28.7 64-64 64h-8c-13.3 0-24 10.7-24 24v48c0 13.3 10.7 24 24 24h8c88.4 0 160-71.6 160-160V80c0-26.5-21.5-48-48-48zm-288 0H48C21.5 32 0 53.5 0 80v128c0 26.5 21.5 48 48 48h80v64c0 35.3-28.7 64-64 64h-8c-13.3 0-24 10.7-24 24v48c0 13.3 10.7 24 24 24h8c88.4 0 160-71.6 160-160V80c0-26.5-21.5-48-48-48z", Pr = "M608 0H160a32 32 0 0 0 -32 32v96h160V64h192v320h128a32 32 0 0 0 32-32V32a32 32 0 0 0 -32-32zM232 103a9 9 0 0 1 -9 9h-30a9 9 0 0 1 -9-9V73a9 9 0 0 1 9-9h30a9 9 0 0 1 9 9zm352 208a9 9 0 0 1 -9 9h-30a9 9 0 0 1 -9-9v-30a9 9 0 0 1 9-9h30a9 9 0 0 1 9 9zm0-104a9 9 0 0 1 -9 9h-30a9 9 0 0 1 -9-9v-30a9 9 0 0 1 9-9h30a9 9 0 0 1 9 9zm0-104a9 9 0 0 1 -9 9h-30a9 9 0 0 1 -9-9V73a9 9 0 0 1 9-9h30a9 9 0 0 1 9 9zm-168 57H32a32 32 0 0 0 -32 32v288a32 32 0 0 0 32 32h384a32 32 0 0 0 32-32V192a32 32 0 0 0 -32-32zM96 224a32 32 0 1 1 -32 32 32 32 0 0 1 32-32zm288 224H64v-32l64-64 32 32 128-128 96 96z", Fr = "M0 224h192V32H0v192zM64 96h64v64H64V96zm192-64v192h192V32H256zm128 128h-64V96h64v64zM0 480h192V288H0v192zm64-128h64v64H64v-64zm352-64h32v128h-96v-32h-32v96h-64V288h96v32h64v-32zm0 160h32v32h-32v-32zm-64 0h32v32h-32v-32z", Hr = "M0 448V64h18v384H0zm26.9-.3V64H36v383.7h-9.1zm27.1 0V64h8.9v383.7H54zm44.9 0V64h8.9v383.7h-8.9zm36 0V64h17.7v383.7h-17.7zm44.9 0V64h8.9v383.7h-8.9zm18 0V64h8.9v383.7h-8.9zm18 0V64h8.9v383.7h-8.9zm35.7 0V64h18v383.7h-18zm44.9 0V64h18v383.7h-18zm36 0V64h18v383.7h-18zm36 0V64h18v383.7h-18zm26.9 0V64h18v383.7h-18zm45.1 0V64h26.9v383.7h-26.9zm35.7 0V64h9.1v383.7H476zm18 .3V64h18v384h-18z", Vr = "M0 180V56c0-13.3 10.7-24 24-24h124c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12H64v84c0 6.6-5.4 12-12 12H12c-6.6 0-12-5.4-12-12zM288 44v40c0 6.6 5.4 12 12 12h84v84c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12V56c0-13.3-10.7-24-24-24H300c-6.6 0-12 5.4-12 12zm148 276h-40c-6.6 0-12 5.4-12 12v84h-84c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h124c13.3 0 24-10.7 24-24V332c0-6.6-5.4-12-12-12zM160 468v-40c0-6.6-5.4-12-12-12H64v-84c0-6.6-5.4-12-12-12H12c-6.6 0-12 5.4-12 12v124c0 13.3 10.7 24 24 24h124c6.6 0 12-5.4 12-12z", Bt = "M32 464a48 48 0 0 0 48 48h288a48 48 0 0 0 48-48V128H32zm272-256a16 16 0 0 1 32 0v224a16 16 0 0 1 -32 0zm-96 0a16 16 0 0 1 32 0v224a16 16 0 0 1 -32 0zm-96 0a16 16 0 0 1 32 0v224a16 16 0 0 1 -32 0zM432 32H312l-9.4-18.7A24 24 0 0 0 281.1 0H166.8a23.7 23.7 0 0 0 -21.4 13.3L136 32H16A16 16 0 0 0 0 48v32a16 16 0 0 0 16 16h416a16 16 0 0 0 16-16V48a16 16 0 0 0 -16-16z", Ur = "M0 96C0 78.3 14.3 64 32 64H416c17.7 0 32 14.3 32 32s-14.3 32-32 32H32C14.3 128 0 113.7 0 96zM0 256c0-17.7 14.3-32 32-32H416c17.7 0 32 14.3 32 32s-14.3 32-32 32H32c-17.7 0-32-14.3-32-32zM448 416c0 17.7-14.3 32-32 32H32c-17.7 0-32-14.3-32-32s14.3-32 32-32H416c17.7 0 32 14.3 32 32z", Wr = "M576 128c0-35.3-28.7-64-64-64H205.3c-17 0-33.3 6.7-45.3 18.7L9.4 233.4c-6 6-9.4 14.1-9.4 22.6s3.4 16.6 9.4 22.6L160 429.3c12 12 28.3 18.7 45.3 18.7H512c35.3 0 64-28.7 64-64V128zM271 175c9.4-9.4 24.6-9.4 33.9 0l47 47 47-47c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9l-47 47 47 47c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0l-47-47-47 47c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9l47-47-47-47c-9.4-9.4-9.4-24.6 0-33.9z", $r = "M 6 3.6 V 0 L 0 6 l 6 6 V 8 c 6 -0.27 7.53 3.76 7.88 5.77 a 0.27 0.27 0 0 0 0.53 0 C 17.08 2.86 6 3.6 6 3.6 Z", Gr = "M352 224c53 0 96-43 96-96s-43-96-96-96s-96 43-96 96c0 4 .2 8 .7 11.9l-94.1 47C145.4 170.2 121.9 160 96 160c-53 0-96 43-96 96s43 96 96 96c25.9 0 49.4-10.2 66.6-26.9l94.1 47c-.5 3.9-.7 7.8-.7 11.9c0 53 43 96 96 96s96-43 96-96s-43-96-96-96c-25.9 0-49.4 10.2-66.6 26.9l-94.1-47c.5-3.9 .7-7.8 .7-11.9s-.2-8-.7-11.9l94.1-47C302.6 213.8 326.1 224 352 224z", Jr = "M288 32c0-17.7-14.3-32-32-32s-32 14.3-32 32V274.7l-73.4-73.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l128 128c12.5 12.5 32.8 12.5 45.3 0l128-128c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L288 274.7V32zM64 352c-35.3 0-64 28.7-64 64v32c0 35.3 28.7 64 64 64H448c35.3 0 64-28.7 64-64V416c0-35.3-28.7-64-64-64H346.5l-45.3 45.3c-25 25-65.5 25-90.5 0L165.5 352H64zm368 56a24 24 0 1 1 0 48 24 24 0 1 1 0-48z", Yr = "M254 52.8C249.3 40.3 237.3 32 224 32s-25.3 8.3-30 20.8L57.8 416 32 416c-17.7 0-32 14.3-32 32s14.3 32 32 32l96 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-1.8 0 18-48 159.6 0 18 48-1.8 0c-17.7 0-32 14.3-32 32s14.3 32 32 32l96 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-25.8 0L254 52.8zM279.8 304l-111.6 0L224 155.1 279.8 304z", Kr = "M448 256c0-106-86-192-192-192l0 384c106 0 192-86 192-192zM0 256a256 256 0 1 1 512 0A256 256 0 1 1 0 256z", Xr = "M256 0L576 0c35.3 0 64 28.7 64 64l0 224c0 35.3-28.7 64-64 64l-320 0c-35.3 0-64-28.7-64-64l0-224c0-35.3 28.7-64 64-64zM476 106.7C471.5 100 464 96 456 96s-15.5 4-20 10.7l-56 84L362.7 169c-4.6-5.7-11.5-9-18.7-9s-14.2 3.3-18.7 9l-64 80c-5.8 7.2-6.9 17.1-2.9 25.4s12.4 13.6 21.6 13.6l80 0 48 0 144 0c8.9 0 17-4.9 21.2-12.7s3.7-17.3-1.2-24.6l-96-144zM336 96a32 32 0 1 0 -64 0 32 32 0 1 0 64 0zM64 128l96 0 0 256 0 32c0 17.7 14.3 32 32 32l128 0c17.7 0 32-14.3 32-32l0-32 160 0 0 64c0 35.3-28.7 64-64 64L64 512c-35.3 0-64-28.7-64-64L0 192c0-35.3 28.7-64 64-64zm8 64c-8.8 0-16 7.2-16 16l0 16c0 8.8 7.2 16 16 16l16 0c8.8 0 16-7.2 16-16l0-16c0-8.8-7.2-16-16-16l-16 0zm0 104c-8.8 0-16 7.2-16 16l0 16c0 8.8 7.2 16 16 16l16 0c8.8 0 16-7.2 16-16l0-16c0-8.8-7.2-16-16-16l-16 0zm0 104c-8.8 0-16 7.2-16 16l0 16c0 8.8 7.2 16 16 16l16 0c8.8 0 16-7.2 16-16l0-16c0-8.8-7.2-16-16-16l-16 0zm336 16l0 16c0 8.8 7.2 16 16 16l16 0c8.8 0 16-7.2 16-16l0-16c0-8.8-7.2-16-16-16l-16 0c-8.8 0-16 7.2-16 16z", Qr = "M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM184 232l144 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-144 0c-13.3 0-24-10.7-24-24s10.7-24 24-24z", qr = "M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM232 344l0-64-64 0c-13.3 0-24-10.7-24-24s10.7-24 24-24l64 0 0-64c0-13.3 10.7-24 24-24s24 10.7 24 24l0 64 64 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-64 0 0 64c0 13.3-10.7 24-24 24s-24-10.7-24-24z", Dt = "M296 384h-80c-13.3 0-24-10.7-24-24V192h-87.7c-17.8 0-26.7-21.5-14.1-34.1L242.3 5.7c7.5-7.5 19.8-7.5 27.3 0l152.2 152.2c12.6 12.6 3.7 34.1-14.1 34.1H320v168c0 13.3-10.7 24-24 24zm216-8v112c0 13.3-10.7 24-24 24H24c-13.3 0-24-10.7-24-24V376c0-13.3 10.7-24 24-24h136v8c0 30.9 25.1 56 56 56h80c30.9 0 56-25.1 56-56v-8h136c13.3 0 24 10.7 24 24zm-124 88c0-11-9-20-20-20s-20 9-20 20 9 20 20 20 20-9 20-20zm64 0c0-11-9-20-20-20s-20 9-20 20 9 20 20 20 20-9 20-20z", Zr = "M134.1 296H436c6.6 0 12-5.4 12-12v-56c0-6.6-5.4-12-12-12H134.1v-46.1c0-21.4-25.9-32.1-41-17L7 239c-9.4 9.4-9.4 24.6 0 33.9l86.1 86.1c15.1 15.1 41 4.4 41-17V296z", en = "apcDB", Ne = "APCObjectStore", tn = 1;
673
- function it() {
674
- return new Promise((g, t) => {
675
- const o = indexedDB.open(en, tn);
642
+ }, gr = "M80 160c0-35.3 28.7-64 64-64h32c35.3 0 64 28.7 64 64v3.6c0 21.8-11.1 42.1-29.4 53.8l-42.2 27.1c-25.2 16.2-40.4 44.1-40.4 74V320c0 17.7 14.3 32 32 32s32-14.3 32-32v-1.4c0-8.2 4.2-15.8 11-20.2l42.2-27.1c36.6-23.6 58.8-64.1 58.8-107.7V160c0-70.7-57.3-128-128-128H144C73.3 32 16 89.3 16 160c0 17.7 14.3 32 32 32s32-14.3 32-32zm80 320a40 40 0 1 0 0-80 40 40 0 1 0 0 80z", mr = "M164.9 24.6c-7.7-18.6-28-28.5-47.4-23.2l-88 24C12.1 30.2 0 46 0 64C0 311.4 200.6 512 448 512c18 0 33.8-12.1 38.6-29.5l24-88c5.3-19.4-4.6-39.7-23.2-47.4l-96-40c-16.3-6.8-35.2-2.1-46.3 11.6L304.7 368C234.3 334.7 177.3 277.7 144 207.3L193.3 167c13.7-11.2 18.4-30 11.6-46.3l-40-96z", vr = "M464 256A208 208 0 1 1 48 256a208 208 0 1 1 416 0zM0 256a256 256 0 1 0 512 0A256 256 0 1 0 0 256zM232 120V256c0 8 4 15.5 10.7 20l96 64c11 7.4 25.9 4.4 33.3-6.7s4.4-25.9-6.7-33.3L280 243.2V120c0-13.3-10.7-24-24-24s-24 10.7-24 24z", jr = "M459.37 151.716c.325 4.548.325 9.097.325 13.645 0 138.72-105.583 298.558-298.558 298.558-59.452 0-114.68-17.219-161.137-47.106 8.447.974 16.568 1.299 25.34 1.299 49.055 0 94.213-16.568 130.274-44.832-46.132-.975-84.792-31.188-98.112-72.772 6.498.974 12.995 1.624 19.818 1.624 9.421 0 18.843-1.3 27.614-3.573-48.081-9.747-84.143-51.98-84.143-102.985v-1.299c13.969 7.797 30.214 12.67 47.431 13.319-28.264-18.843-46.781-51.005-46.781-87.391 0-19.492 5.197-37.36 14.294-52.954 51.655 63.675 129.3 105.258 216.365 109.807-1.624-7.797-2.599-15.918-2.599-24.04 0-57.828 46.782-104.934 104.934-104.934 30.213 0 57.502 12.67 76.67 33.137 23.715-4.548 46.456-13.32 66.599-25.34-7.798 24.366-24.366 44.833-46.132 57.827 21.117-2.273 41.584-8.122 60.426-16.243-14.292 20.791-32.161 39.308-52.628 54.253z", br = "M438.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L160 338.7 393.4 105.4c12.5-12.5 32.8-12.5 45.3 0z", yr = "M160 64c0-8.8 7.2-16 16-16s16 7.2 16 16V200c0 10.3 6.6 19.5 16.4 22.8s20.6-.1 26.8-8.3c3-3.9 7.6-6.4 12.8-6.4c8.8 0 16 7.2 16 16c0 10.3 6.6 19.5 16.4 22.8s20.6-.1 26.8-8.3c3-3.9 7.6-6.4 12.8-6.4c7.8 0 14.3 5.6 15.7 13c1.6 8.2 7.3 15.1 15.1 18s16.7 1.6 23.3-3.6c2.7-2.1 6.1-3.4 9.9-3.4c8.8 0 16 7.2 16 16l0 16V392c0 39.8-32.2 72-72 72H272 212.3h-.9c-37.4 0-72.4-18.7-93.2-49.9L50.7 312.9c-4.9-7.4-2.9-17.3 4.4-22.2s17.3-2.9 22.2 4.4L116 353.2c5.9 8.8 16.8 12.7 26.9 9.7s17-12.4 17-23V320 64zM176 0c-35.3 0-64 28.7-64 64V261.7C91.2 238 55.5 232.8 28.5 250.7C-.9 270.4-8.9 310.1 10.8 339.5L78.3 440.8c29.7 44.5 79.6 71.2 133.1 71.2h.9H272h56c66.3 0 120-53.7 120-120V288l0-16c0-35.3-28.7-64-64-64c-4.5 0-8.8 .5-13 1.3c-11.7-15.4-30.2-25.3-51-25.3c-6.9 0-13.5 1.1-19.7 3.1C288.7 170.7 269.6 160 248 160c-2.7 0-5.4 .2-8 .5V64c0-35.3-28.7-64-64-64zm48 304c0-8.8-7.2-16-16-16s-16 7.2-16 16v96c0 8.8 7.2 16 16 16s16-7.2 16-16V304zm48-16c-8.8 0-16 7.2-16 16v96c0 8.8 7.2 16 16 16s16-7.2 16-16V304c0-8.8-7.2-16-16-16zm80 16c0-8.8-7.2-16-16-16s-16 7.2-16 16v96c0 8.8 7.2 16 16 16s16-7.2 16-16V304z", wr = "M48 64C21.5 64 0 85.5 0 112c0 15.1 7.1 29.3 19.2 38.4L236.8 313.6c11.4 8.5 27 8.5 38.4 0L492.8 150.4c12.1-9.1 19.2-23.3 19.2-38.4c0-26.5-21.5-48-48-48H48zM0 176V384c0 35.3 28.7 64 64 64H448c35.3 0 64-28.7 64-64V176L294.4 339.2c-22.8 17.1-54 17.1-76.8 0L0 176z", Cr = "M160 0c17.7 0 32 14.3 32 32V67.7c1.6 .2 3.1 .4 4.7 .7c.4 .1 .7 .1 1.1 .2l48 8.8c17.4 3.2 28.9 19.9 25.7 37.2s-19.9 28.9-37.2 25.7l-47.5-8.7c-31.3-4.6-58.9-1.5-78.3 6.2s-27.2 18.3-29 28.1c-2 10.7-.5 16.7 1.2 20.4c1.8 3.9 5.5 8.3 12.8 13.2c16.3 10.7 41.3 17.7 73.7 26.3l2.9 .8c28.6 7.6 63.6 16.8 89.6 33.8c14.2 9.3 27.6 21.9 35.9 39.5c8.5 17.9 10.3 37.9 6.4 59.2c-6.9 38-33.1 63.4-65.6 76.7c-13.7 5.6-28.6 9.2-44.4 11V480c0 17.7-14.3 32-32 32s-32-14.3-32-32V445.1c-.4-.1-.9-.1-1.3-.2l-.2 0 0 0c-24.4-3.8-64.5-14.3-91.5-26.3c-16.1-7.2-23.4-26.1-16.2-42.2s26.1-23.4 42.2-16.2c20.9 9.3 55.3 18.5 75.2 21.6c31.9 4.7 58.2 2 76-5.3c16.9-6.9 24.6-16.9 26.8-28.9c1.9-10.6 .4-16.7-1.3-20.4c-1.9-4-5.6-8.4-13-13.3c-16.4-10.7-41.5-17.7-74-26.3l-2.8-.7 0 0C119.4 279.3 84.4 270 58.4 253c-14.2-9.3-27.5-22-35.8-39.6c-8.4-17.9-10.1-37.9-6.1-59.2C23.7 116 52.3 91.2 84.8 78.3c13.3-5.3 27.9-8.9 43.2-11V32c0-17.7 14.3-32 32-32z", bt = "M47.6 300.4L228.3 469.1c7.5 7 17.4 10.9 27.7 10.9s20.2-3.9 27.7-10.9L464.4 300.4c30.4-28.3 47.6-68 47.6-109.5v-5.8c0-69.9-50.5-129.5-119.4-141C347 36.5 300.6 51.4 268 84L256 96 244 84c-32.6-32.6-79-47.5-124.6-39.9C50.5 55.6 0 115.2 0 185.1v5.8c0 41.5 17.2 81.2 47.6 109.5z", yt = "M234.5 5.7c13.9-5 29.1-5 43.1 0l192 68.6C495 83.4 512 107.5 512 134.6V377.4c0 27-17 51.2-42.5 60.3l-192 68.6c-13.9 5-29.1 5-43.1 0l-192-68.6C17 428.6 0 404.5 0 377.4V134.6c0-27 17-51.2 42.5-60.3l192-68.6zM256 66L82.3 128 256 190l173.7-62L256 66zm32 368.6l160-57.1v-188L288 246.6v188z", dt = "M438.6 278.6c12.5-12.5 12.5-32.8 0-45.3l-160-160c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L338.8 224 32 224c-17.7 0-32 14.3-32 32s14.3 32 32 32l306.7 0L233.4 393.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l160-160z", wt = "M320 32c-8.1 0-16.1 1.4-23.7 4.1L15.8 137.4C6.3 140.9 0 149.9 0 160s6.3 19.1 15.8 22.6l57.9 20.9C57.3 229.3 48 259.8 48 291.9v28.1c0 28.4-10.8 57.7-22.3 80.8c-6.5 13-13.9 25.8-22.5 37.6C0 442.7-.9 448.3 .9 453.4s6 8.9 11.2 10.2l64 16c4.2 1.1 8.7 .3 12.4-2s6.3-6.1 7.1-10.4c8.6-42.8 4.3-81.2-2.1-108.7C90.3 344.3 86 329.8 80 316.5V291.9c0-30.2 10.2-58.7 27.9-81.5c12.9-15.5 29.6-28 49.2-35.7l157-61.7c8.2-3.2 17.5 .8 20.7 9s-.8 17.5-9 20.7l-157 61.7c-12.4 4.9-23.3 12.4-32.2 21.6l159.6 57.6c7.6 2.7 15.6 4.1 23.7 4.1s16.1-1.4 23.7-4.1L624.2 182.6c9.5-3.4 15.8-12.5 15.8-22.6s-6.3-19.1-15.8-22.6L343.7 36.1C336.1 33.4 328.1 32 320 32zM128 408c0 35.3 86 72 192 72s192-36.7 192-72L496.7 262.6 354.5 314c-11.1 4-22.8 6-34.5 6s-23.5-2-34.5-6L143.3 262.6 128 408z", Sr = "M184 48H328c4.4 0 8 3.6 8 8V96H176V56c0-4.4 3.6-8 8-8zm-56 8V96H64C28.7 96 0 124.7 0 160v96H192 352h8.2c32.3-39.1 81.1-64 135.8-64c5.4 0 10.7 .2 16 .7V160c0-35.3-28.7-64-64-64H384V56c0-30.9-25.1-56-56-56H184c-30.9 0-56 25.1-56 56zM320 352H224c-17.7 0-32-14.3-32-32V288H0V416c0 35.3 28.7 64 64 64H360.2C335.1 449.6 320 410.5 320 368c0-5.4 .2-10.7 .7-16l-.7 0zm320 16a144 144 0 1 0 -288 0 144 144 0 1 0 288 0zM496 288c8.8 0 16 7.2 16 16v48h32c8.8 0 16 7.2 16 16s-7.2 16-16 16H496c-8.8 0-16-7.2-16-16V304c0-8.8 7.2-16 16-16z", kr = "M88.2 309.1c9.8-18.3 6.8-40.8-7.5-55.8C59.4 230.9 48 204 48 176c0-63.5 63.8-128 160-128s160 64.5 160 128s-63.8 128-160 128c-13.1 0-25.8-1.3-37.8-3.6c-10.4-2-21.2-.6-30.7 4.2c-4.1 2.1-8.3 4.1-12.6 6c-16 7.2-32.9 13.5-49.9 18c2.8-4.6 5.4-9.1 7.9-13.6c1.1-1.9 2.2-3.9 3.2-5.9zM0 176c0 41.8 17.2 80.1 45.9 110.3c-.9 1.7-1.9 3.5-2.8 5.1c-10.3 18.4-22.3 36.5-36.6 52.1c-6.6 7-8.3 17.2-4.6 25.9C5.8 378.3 14.4 384 24 384c43 0 86.5-13.3 122.7-29.7c4.8-2.2 9.6-4.5 14.2-6.8c15.1 3 30.9 4.5 47.1 4.5c114.9 0 208-78.8 208-176S322.9 0 208 0S0 78.8 0 176zM432 480c16.2 0 31.9-1.6 47.1-4.5c4.6 2.3 9.4 4.6 14.2 6.8C529.5 498.7 573 512 616 512c9.6 0 18.2-5.7 22-14.5c3.8-8.8 2-19-4.6-25.9c-14.2-15.6-26.2-33.7-36.6-52.1c-.9-1.7-1.9-3.4-2.8-5.1C622.8 384.1 640 345.8 640 304c0-94.4-87.9-171.5-198.2-175.8c4.1 15.2 6.2 31.2 6.2 47.8l0 .6c87.2 6.7 144 67.5 144 127.4c0 28-11.4 54.9-32.7 77.2c-14.3 15-17.3 37.6-7.5 55.8c1.1 2 2.2 4 3.2 5.9c2.5 4.5 5.2 9 7.9 13.6c-17-4.5-33.9-10.7-49.9-18c-4.3-1.9-8.5-3.9-12.6-6c-9.5-4.8-20.3-6.2-30.7-4.2c-12.1 2.4-24.7 3.6-37.8 3.6c-61.7 0-110-26.5-136.8-62.3c-16 5.4-32.8 9.4-50 11.8C279 439.8 350 480 432 480z", Nr = "M323.8 34.8c-38.2-10.9-78.1 11.2-89 49.4l-5.7 20c-3.7 13-10.4 25-19.5 35l-51.3 56.4c-8.9 9.8-8.2 25 1.6 33.9s25 8.2 33.9-1.6l51.3-56.4c14.1-15.5 24.4-34 30.1-54.1l5.7-20c3.6-12.7 16.9-20.1 29.7-16.5s20.1 16.9 16.5 29.7l-5.7 20c-5.7 19.9-14.7 38.7-26.6 55.5c-5.2 7.3-5.8 16.9-1.7 24.9s12.3 13 21.3 13L448 224c8.8 0 16 7.2 16 16c0 6.8-4.3 12.7-10.4 15c-7.4 2.8-13 9-14.9 16.7s.1 15.8 5.3 21.7c2.5 2.8 4 6.5 4 10.6c0 7.8-5.6 14.3-13 15.7c-8.2 1.6-15.1 7.3-18 15.1s-1.6 16.7 3.6 23.3c2.1 2.7 3.4 6.1 3.4 9.9c0 6.7-4.2 12.6-10.2 14.9c-11.5 4.5-17.7 16.9-14.4 28.8c.4 1.3 .6 2.8 .6 4.3c0 8.8-7.2 16-16 16H286.5c-12.6 0-25-3.7-35.5-10.7l-61.7-41.1c-11-7.4-25.9-4.4-33.3 6.7s-4.4 25.9 6.7 33.3l61.7 41.1c18.4 12.3 40 18.8 62.1 18.8H384c34.7 0 62.9-27.6 64-62c14.6-11.7 24-29.7 24-50c0-4.5-.5-8.8-1.3-13c15.4-11.7 25.3-30.2 25.3-51c0-6.5-1-12.8-2.8-18.7C504.8 273.7 512 257.7 512 240c0-35.3-28.6-64-64-64l-92.3 0c4.7-10.4 8.7-21.2 11.8-32.2l5.7-20c10.9-38.2-11.2-78.1-49.4-89zM32 192c-17.7 0-32 14.3-32 32V448c0 17.7 14.3 32 32 32H96c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32H32z", Or = "M54.2 202.9C123.2 136.7 216.8 96 320 96s196.8 40.7 265.8 106.9c12.8 12.2 33 11.8 45.2-.9s11.8-33-.9-45.2C549.7 79.5 440.4 32 320 32S90.3 79.5 9.8 156.7C-2.9 169-3.3 189.2 8.9 202s32.5 13.2 45.2 .9zM320 256c56.8 0 108.6 21.1 148.2 56c13.3 11.7 33.5 10.4 45.2-2.8s10.4-33.5-2.8-45.2C459.8 219.2 393 192 320 192s-139.8 27.2-190.5 72c-13.3 11.7-14.5 31.9-2.8 45.2s31.9 14.5 45.2 2.8c39.5-34.9 91.3-56 148.2-56zm64 160a64 64 0 1 0 -128 0 64 64 0 1 0 128 0z", Ct = "M123.6 391.3c12.9-9.4 29.6-11.8 44.6-6.4c26.5 9.6 56.2 15.1 87.8 15.1c124.7 0 208-80.5 208-160s-83.3-160-208-160S48 160.5 48 240c0 32 12.4 62.8 35.7 89.2c8.6 9.7 12.8 22.5 11.8 35.5c-1.4 18.1-5.7 34.7-11.3 49.4c17-7.9 31.1-16.7 39.4-22.7zM21.2 431.9c1.8-2.7 3.5-5.4 5.1-8.1c10-16.6 19.5-38.4 21.4-62.9C17.7 326.8 0 285.1 0 240C0 125.1 114.6 32 256 32s256 93.1 256 208s-114.6 208-256 208c-37.1 0-72.3-6.4-104.1-17.9c-11.9 8.7-31.3 20.6-54.3 30.6c-15.1 6.6-32.3 12.6-50.1 16.1c-.8 .2-1.6 .3-2.4 .5c-4.4 .8-8.7 1.5-13.2 1.9c-.2 0-.5 .1-.7 .1c-5.1 .5-10.2 .8-15.3 .8c-6.5 0-12.3-3.9-14.8-9.9c-2.5-6-1.1-12.8 3.4-17.4c4.1-4.2 7.8-8.7 11.3-13.5c1.7-2.3 3.3-4.6 4.8-6.9c.1-.2 .2-.3 .3-.5z", St = "M0 24C0 10.7 10.7 0 24 0H69.5c22 0 41.5 12.8 50.6 32h411c26.3 0 45.5 25 38.6 50.4l-41 152.3c-8.5 31.4-37 53.3-69.5 53.3H170.7l5.4 28.5c2.2 11.3 12.1 19.5 23.6 19.5H488c13.3 0 24 10.7 24 24s-10.7 24-24 24H199.7c-34.6 0-64.3-24.6-70.7-58.5L77.4 54.5c-.7-3.8-4-6.5-7.9-6.5H24C10.7 48 0 37.3 0 24zM128 464a48 48 0 1 1 96 0 48 48 0 1 1 -96 0zm336-48a48 48 0 1 1 0 96 48 48 0 1 1 0-96z", kt = "M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM216 336h24V272H216c-13.3 0-24-10.7-24-24s10.7-24 24-24h48c13.3 0 24 10.7 24 24v88h8c13.3 0 24 10.7 24 24s-10.7 24-24 24H216c-13.3 0-24-10.7-24-24s10.7-24 24-24zm40-208a32 32 0 1 1 0 64 32 32 0 1 1 0-64z", Nt = "M215.7 499.2C267 435 384 279.4 384 192C384 86 298 0 192 0S0 86 0 192c0 87.4 117 243 168.3 307.2c12.3 15.3 35.1 15.3 47.4 0zM192 128a64 64 0 1 1 0 128 64 64 0 1 1 0-128z", Ot = "M225.8 468.2l-2.5-2.3L48.1 303.2C17.4 274.7 0 234.7 0 192.8v-3.3c0-70.4 50-130.8 119.2-144C158.6 37.9 198.9 47 231 69.6c9 6.4 17.4 13.8 25 22.3c4.2-4.8 8.7-9.2 13.5-13.3c3.7-3.2 7.5-6.2 11.5-9c0 0 0 0 0 0C313.1 47 353.4 37.9 392.8 45.4C462 58.6 512 119.1 512 189.5v3.3c0 41.9-17.4 81.9-48.1 110.4L288.7 465.9l-2.5 2.3c-8.2 7.6-19 11.9-30.2 11.9s-22-4.2-30.2-11.9zM239.1 145c-.4-.3-.7-.7-1-1.1l-17.8-20c0 0-.1-.1-.1-.1c0 0 0 0 0 0c-23.1-25.9-58-37.7-92-31.2C81.6 101.5 48 142.1 48 189.5v3.3c0 28.5 11.9 55.8 32.8 75.2L256 430.7 431.2 268c20.9-19.4 32.8-46.7 32.8-75.2v-3.3c0-47.3-33.6-88-80.1-96.9c-34-6.5-69 5.4-92 31.2c0 0 0 0-.1 .1s0 0-.1 .1l-17.8 20c-.3 .4-.7 .7-1 1.1c-4.5 4.5-10.6 7-16.9 7s-12.4-2.5-16.9-7z", Ar = "M438.6 278.6c12.5-12.5 12.5-32.8 0-45.3l-160-160c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L338.8 224 32 224c-17.7 0-32 14.3-32 32s14.3 32 32 32l306.7 0L233.4 393.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l160-160z", At = "M342.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3 297.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256 342.6 150.6z", It = "M0 336c0 79.5 64.5 144 144 144H512c70.7 0 128-57.3 128-128c0-61.9-44-113.6-102.4-125.4c4.1-10.7 6.4-22.4 6.4-34.6c0-53-43-96-96-96c-19.7 0-38.1 6-53.3 16.2C367 64.2 315.3 32 256 32C167.6 32 96 103.6 96 192c0 2.7 .1 5.4 .2 8.1C40.2 219.8 0 273.2 0 336z", Tt = "M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM164.1 325.5C182 346.2 212.6 368 256 368s74-21.8 91.9-42.5c5.8-6.7 15.9-7.4 22.6-1.6s7.4 15.9 1.6 22.6C349.8 372.1 311.1 400 256 400s-93.8-27.9-116.1-53.5c-5.8-6.7-5.1-16.8 1.6-22.6s16.8-5.1 22.6 1.6zM144.4 208a32 32 0 1 1 64 0 32 32 0 1 1 -64 0zm192-32a32 32 0 1 1 0 64 32 32 0 1 1 0-64z", Et = "M48 256C48 141.1 141.1 48 256 48c63.1 0 119.6 28.1 157.8 72.5c8.6 10.1 23.8 11.2 33.8 2.6s11.2-23.8 2.6-33.8C403.3 34.6 333.7 0 256 0C114.6 0 0 114.6 0 256v40c0 13.3 10.7 24 24 24s24-10.7 24-24V256zm458.5-52.9c-2.7-13-15.5-21.3-28.4-18.5s-21.3 15.5-18.5 28.4c2.9 13.9 4.5 28.3 4.5 43.1v40c0 13.3 10.7 24 24 24s24-10.7 24-24V256c0-18.1-1.9-35.8-5.5-52.9zM256 80c-19 0-37.4 3-54.5 8.6c-15.2 5-18.7 23.7-8.3 35.9c7.1 8.3 18.8 10.8 29.4 7.9c10.6-2.9 21.8-4.4 33.4-4.4c70.7 0 128 57.3 128 128v24.9c0 25.2-1.5 50.3-4.4 75.3c-1.7 14.6 9.4 27.8 24.2 27.8c11.8 0 21.9-8.6 23.3-20.3c3.3-27.4 5-55 5-82.7V256c0-97.2-78.8-176-176-176zM150.7 148.7c-9.1-10.6-25.3-11.4-33.9-.4C93.7 178 80 215.4 80 256v24.9c0 24.2-2.6 48.4-7.8 71.9C68.8 368.4 80.1 384 96.1 384c10.5 0 19.9-7 22.2-17.3c6.4-28.1 9.7-56.8 9.7-85.8V256c0-27.2 8.5-52.4 22.9-73.1c7.2-10.4 8-24.6-.2-34.2zM256 160c-53 0-96 43-96 96v24.9c0 35.9-4.6 71.5-13.8 106.1c-3.8 14.3 6.7 29 21.5 29c9.5 0 17.9-6.2 20.4-15.4c10.5-39 15.9-79.2 15.9-119.7V256c0-28.7 23.3-52 52-52s52 23.3 52 52v24.9c0 36.3-3.5 72.4-10.4 107.9c-2.7 13.9 7.7 27.2 21.8 27.2c10.2 0 19-7 21-17c7.7-38.8 11.6-78.3 11.6-118.1V256c0-53-43-96-96-96zm24 96c0-13.3-10.7-24-24-24s-24 10.7-24 24v24.9c0 59.9-11 119.3-32.5 175.2l-5.9 15.3c-4.8 12.4 1.4 26.3 13.8 31s26.3-1.4 31-13.8l5.9-15.3C267.9 411.9 280 346.7 280 280.9V256z", Ir = "M315.4 15.5C309.7 5.9 299.2 0 288 0s-21.7 5.9-27.4 15.5l-96 160c-5.9 9.9-6.1 22.2-.4 32.2s16.3 16.2 27.8 16.2H384c11.5 0 22.2-6.2 27.8-16.2s5.5-22.3-.4-32.2l-96-160zM288 312V456c0 22.1 17.9 40 40 40H472c22.1 0 40-17.9 40-40V312c0-22.1-17.9-40-40-40H328c-22.1 0-40 17.9-40 40zM128 512a128 128 0 1 0 0-256 128 128 0 1 0 0 256z", Tr = "M116.7 219.4a15.7 15.7 0 0 0 22.7 0l96.8-99.8c28.2-29 26.5-77.1-4.9-103.9C203.8-7.7 163-3.5 137.9 22.4L128 32.6l-9.9-10.1C93.1-3.5 52.3-7.7 24.9 15.6c-31.4 26.8-33 74.9-5 103.9zm143.9 100.5h-48l-7.1-14.2a27.4 27.4 0 0 0 -25.7-17.8h-71.7a27.4 27.4 0 0 0 -25.7 17.8l-7 14.2h-48A27.5 27.5 0 0 0 0 347.3v137.3A27.4 27.4 0 0 0 27.4 512h233.1A27.5 27.5 0 0 0 288 484.6V347.3a27.5 27.5 0 0 0 -27.4-27.5zM144 468a52 52 0 1 1 52-52 52 52 0 0 1 -52 52zm355.4-115.9h-60.6l22.4-50.8c2.1-6.7-3.9-13.2-12.2-13.2h-75.6c-6.3 0-11.7 3.9-12.5 9.1l-16.8 106.9c-1 6.3 4.9 11.9 12.5 11.9h62.3l-24.2 83c-1.9 6.7 4.2 12.9 12.2 12.9a13.3 13.3 0 0 0 10.9-5.3l92.4-138.9c4.9-6.9-1.2-15.7-10.9-15.7zM478.1 .3L329.5 23.2C314.9 25.4 304 38.9 304 54.8V161.6a83.3 83.3 0 0 0 -16-1.7c-35.4 0-64 21.5-64 48s28.7 48 64 48c35.2 0 63.7-21.3 64-47.7V99.7l112-17.2v47.2a83.3 83.3 0 0 0 -16-1.7c-35.4 0-64 21.5-64 48s28.7 48 64 48c35.2 0 63.7-21.3 64-47.7V32c0-19.5-16-34.4-33.9-31.7z", Er = "M432 416h-23.4L277.9 53.7A32 32 0 0 0 247.6 32h-47.2a32 32 0 0 0 -30.3 21.7L39.4 416H16a16 16 0 0 0 -16 16v32a16 16 0 0 0 16 16h128a16 16 0 0 0 16-16v-32a16 16 0 0 0 -16-16h-19.6l23.3-64h152.6l23.3 64H304a16 16 0 0 0 -16 16v32a16 16 0 0 0 16 16h128a16 16 0 0 0 16-16v-32a16 16 0 0 0 -16-16zM176.9 272L224 142.5 271.2 272z", Mr = "M464 32H336c-26.5 0-48 21.5-48 48v128c0 26.5 21.5 48 48 48h80v64c0 35.3-28.7 64-64 64h-8c-13.3 0-24 10.7-24 24v48c0 13.3 10.7 24 24 24h8c88.4 0 160-71.6 160-160V80c0-26.5-21.5-48-48-48zm-288 0H48C21.5 32 0 53.5 0 80v128c0 26.5 21.5 48 48 48h80v64c0 35.3-28.7 64-64 64h-8c-13.3 0-24 10.7-24 24v48c0 13.3 10.7 24 24 24h8c88.4 0 160-71.6 160-160V80c0-26.5-21.5-48-48-48z", zr = "M608 0H160a32 32 0 0 0 -32 32v96h160V64h192v320h128a32 32 0 0 0 32-32V32a32 32 0 0 0 -32-32zM232 103a9 9 0 0 1 -9 9h-30a9 9 0 0 1 -9-9V73a9 9 0 0 1 9-9h30a9 9 0 0 1 9 9zm352 208a9 9 0 0 1 -9 9h-30a9 9 0 0 1 -9-9v-30a9 9 0 0 1 9-9h30a9 9 0 0 1 9 9zm0-104a9 9 0 0 1 -9 9h-30a9 9 0 0 1 -9-9v-30a9 9 0 0 1 9-9h30a9 9 0 0 1 9 9zm0-104a9 9 0 0 1 -9 9h-30a9 9 0 0 1 -9-9V73a9 9 0 0 1 9-9h30a9 9 0 0 1 9 9zm-168 57H32a32 32 0 0 0 -32 32v288a32 32 0 0 0 32 32h384a32 32 0 0 0 32-32V192a32 32 0 0 0 -32-32zM96 224a32 32 0 1 1 -32 32 32 32 0 0 1 32-32zm288 224H64v-32l64-64 32 32 128-128 96 96z", Lr = "M0 224h192V32H0v192zM64 96h64v64H64V96zm192-64v192h192V32H256zm128 128h-64V96h64v64zM0 480h192V288H0v192zm64-128h64v64H64v-64zm352-64h32v128h-96v-32h-32v96h-64V288h96v32h64v-32zm0 160h32v32h-32v-32zm-64 0h32v32h-32v-32z", Rr = "M0 448V64h18v384H0zm26.9-.3V64H36v383.7h-9.1zm27.1 0V64h8.9v383.7H54zm44.9 0V64h8.9v383.7h-8.9zm36 0V64h17.7v383.7h-17.7zm44.9 0V64h8.9v383.7h-8.9zm18 0V64h8.9v383.7h-8.9zm18 0V64h8.9v383.7h-8.9zm35.7 0V64h18v383.7h-18zm44.9 0V64h18v383.7h-18zm36 0V64h18v383.7h-18zm36 0V64h18v383.7h-18zm26.9 0V64h18v383.7h-18zm45.1 0V64h26.9v383.7h-26.9zm35.7 0V64h9.1v383.7H476zm18 .3V64h18v384h-18z", _r = "M0 180V56c0-13.3 10.7-24 24-24h124c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12H64v84c0 6.6-5.4 12-12 12H12c-6.6 0-12-5.4-12-12zM288 44v40c0 6.6 5.4 12 12 12h84v84c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12V56c0-13.3-10.7-24-24-24H300c-6.6 0-12 5.4-12 12zm148 276h-40c-6.6 0-12 5.4-12 12v84h-84c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h124c13.3 0 24-10.7 24-24V332c0-6.6-5.4-12-12-12zM160 468v-40c0-6.6-5.4-12-12-12H64v-84c0-6.6-5.4-12-12-12H12c-6.6 0-12 5.4-12 12v124c0 13.3 10.7 24 24 24h124c6.6 0 12-5.4 12-12z", Lt = "M32 464a48 48 0 0 0 48 48h288a48 48 0 0 0 48-48V128H32zm272-256a16 16 0 0 1 32 0v224a16 16 0 0 1 -32 0zm-96 0a16 16 0 0 1 32 0v224a16 16 0 0 1 -32 0zm-96 0a16 16 0 0 1 32 0v224a16 16 0 0 1 -32 0zM432 32H312l-9.4-18.7A24 24 0 0 0 281.1 0H166.8a23.7 23.7 0 0 0 -21.4 13.3L136 32H16A16 16 0 0 0 0 48v32a16 16 0 0 0 16 16h416a16 16 0 0 0 16-16V48a16 16 0 0 0 -16-16z", Br = "M0 96C0 78.3 14.3 64 32 64H416c17.7 0 32 14.3 32 32s-14.3 32-32 32H32C14.3 128 0 113.7 0 96zM0 256c0-17.7 14.3-32 32-32H416c17.7 0 32 14.3 32 32s-14.3 32-32 32H32c-17.7 0-32-14.3-32-32zM448 416c0 17.7-14.3 32-32 32H32c-17.7 0-32-14.3-32-32s14.3-32 32-32H416c17.7 0 32 14.3 32 32z", Dr = "M576 128c0-35.3-28.7-64-64-64H205.3c-17 0-33.3 6.7-45.3 18.7L9.4 233.4c-6 6-9.4 14.1-9.4 22.6s3.4 16.6 9.4 22.6L160 429.3c12 12 28.3 18.7 45.3 18.7H512c35.3 0 64-28.7 64-64V128zM271 175c9.4-9.4 24.6-9.4 33.9 0l47 47 47-47c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9l-47 47 47 47c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0l-47-47-47 47c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9l47-47-47-47c-9.4-9.4-9.4-24.6 0-33.9z", Fr = "M 6 3.6 V 0 L 0 6 l 6 6 V 8 c 6 -0.27 7.53 3.76 7.88 5.77 a 0.27 0.27 0 0 0 0.53 0 C 17.08 2.86 6 3.6 6 3.6 Z", Pr = "M352 224c53 0 96-43 96-96s-43-96-96-96s-96 43-96 96c0 4 .2 8 .7 11.9l-94.1 47C145.4 170.2 121.9 160 96 160c-53 0-96 43-96 96s43 96 96 96c25.9 0 49.4-10.2 66.6-26.9l94.1 47c-.5 3.9-.7 7.8-.7 11.9c0 53 43 96 96 96s96-43 96-96s-43-96-96-96c-25.9 0-49.4 10.2-66.6 26.9l-94.1-47c.5-3.9 .7-7.8 .7-11.9s-.2-8-.7-11.9l94.1-47C302.6 213.8 326.1 224 352 224z", Hr = "M288 32c0-17.7-14.3-32-32-32s-32 14.3-32 32V274.7l-73.4-73.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l128 128c12.5 12.5 32.8 12.5 45.3 0l128-128c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L288 274.7V32zM64 352c-35.3 0-64 28.7-64 64v32c0 35.3 28.7 64 64 64H448c35.3 0 64-28.7 64-64V416c0-35.3-28.7-64-64-64H346.5l-45.3 45.3c-25 25-65.5 25-90.5 0L165.5 352H64zm368 56a24 24 0 1 1 0 48 24 24 0 1 1 0-48z", Vr = "M254 52.8C249.3 40.3 237.3 32 224 32s-25.3 8.3-30 20.8L57.8 416 32 416c-17.7 0-32 14.3-32 32s14.3 32 32 32l96 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-1.8 0 18-48 159.6 0 18 48-1.8 0c-17.7 0-32 14.3-32 32s14.3 32 32 32l96 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-25.8 0L254 52.8zM279.8 304l-111.6 0L224 155.1 279.8 304z", Ur = "M448 256c0-106-86-192-192-192l0 384c106 0 192-86 192-192zM0 256a256 256 0 1 1 512 0A256 256 0 1 1 0 256z", Wr = "M256 0L576 0c35.3 0 64 28.7 64 64l0 224c0 35.3-28.7 64-64 64l-320 0c-35.3 0-64-28.7-64-64l0-224c0-35.3 28.7-64 64-64zM476 106.7C471.5 100 464 96 456 96s-15.5 4-20 10.7l-56 84L362.7 169c-4.6-5.7-11.5-9-18.7-9s-14.2 3.3-18.7 9l-64 80c-5.8 7.2-6.9 17.1-2.9 25.4s12.4 13.6 21.6 13.6l80 0 48 0 144 0c8.9 0 17-4.9 21.2-12.7s3.7-17.3-1.2-24.6l-96-144zM336 96a32 32 0 1 0 -64 0 32 32 0 1 0 64 0zM64 128l96 0 0 256 0 32c0 17.7 14.3 32 32 32l128 0c17.7 0 32-14.3 32-32l0-32 160 0 0 64c0 35.3-28.7 64-64 64L64 512c-35.3 0-64-28.7-64-64L0 192c0-35.3 28.7-64 64-64zm8 64c-8.8 0-16 7.2-16 16l0 16c0 8.8 7.2 16 16 16l16 0c8.8 0 16-7.2 16-16l0-16c0-8.8-7.2-16-16-16l-16 0zm0 104c-8.8 0-16 7.2-16 16l0 16c0 8.8 7.2 16 16 16l16 0c8.8 0 16-7.2 16-16l0-16c0-8.8-7.2-16-16-16l-16 0zm0 104c-8.8 0-16 7.2-16 16l0 16c0 8.8 7.2 16 16 16l16 0c8.8 0 16-7.2 16-16l0-16c0-8.8-7.2-16-16-16l-16 0zm336 16l0 16c0 8.8 7.2 16 16 16l16 0c8.8 0 16-7.2 16-16l0-16c0-8.8-7.2-16-16-16l-16 0c-8.8 0-16 7.2-16 16z", Gr = "M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM184 232l144 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-144 0c-13.3 0-24-10.7-24-24s10.7-24 24-24z", $r = "M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM232 344l0-64-64 0c-13.3 0-24-10.7-24-24s10.7-24 24-24l64 0 0-64c0-13.3 10.7-24 24-24s24 10.7 24 24l0 64 64 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-64 0 0 64c0 13.3-10.7 24-24 24s-24-10.7-24-24z", Rt = "M296 384h-80c-13.3 0-24-10.7-24-24V192h-87.7c-17.8 0-26.7-21.5-14.1-34.1L242.3 5.7c7.5-7.5 19.8-7.5 27.3 0l152.2 152.2c12.6 12.6 3.7 34.1-14.1 34.1H320v168c0 13.3-10.7 24-24 24zm216-8v112c0 13.3-10.7 24-24 24H24c-13.3 0-24-10.7-24-24V376c0-13.3 10.7-24 24-24h136v8c0 30.9 25.1 56 56 56h80c30.9 0 56-25.1 56-56v-8h136c13.3 0 24 10.7 24 24zm-124 88c0-11-9-20-20-20s-20 9-20 20 9 20 20 20 20-9 20-20zm64 0c0-11-9-20-20-20s-20 9-20 20 9 20 20 20 20-9 20-20z", Jr = "M134.1 296H436c6.6 0 12-5.4 12-12v-56c0-6.6-5.4-12-12-12H134.1v-46.1c0-21.4-25.9-32.1-41-17L7 239c-9.4 9.4-9.4 24.6 0 33.9l86.1 86.1c15.1 15.1 41 4.4 41-17V296z", Yr = "apcDB", Ne = "APCObjectStore", Kr = 1;
643
+ function ot() {
644
+ return new Promise((y, t) => {
645
+ const o = indexedDB.open(Yr, Kr);
676
646
  o.onupgradeneeded = function(i) {
677
647
  let l = i.target.result, u;
678
648
  l.objectStoreNames.contains(Ne) ? u = o.transaction.objectStore(Ne) : u = l.createObjectStore(Ne, { keyPath: "id" }), u.indexNames.contains("nameIndex") || u.createIndex("nameIndex", "name", { unique: !1 });
679
649
  }, o.onsuccess = function(i) {
680
- g(i.target.result);
650
+ y(i.target.result);
681
651
  }, o.onerror = function(i) {
682
652
  t("Database error: " + i.target.errorCode);
683
653
  };
684
654
  });
685
655
  }
686
- function De(g, t, o, i) {
687
- return it().then((l) => new Promise((u, f) => {
688
- const d = l.transaction(["APCObjectStore"], "readwrite"), b = d.objectStore("APCObjectStore"), a = { id: g, classification: t, content: o, misc: i }, v = b.put(a);
689
- v.onsuccess = () => u(v.result), v.onerror = () => f(v.error), d.oncomplete = () => l.close();
656
+ function De(y, t, o, i) {
657
+ return ot().then((l) => new Promise((u, f) => {
658
+ const d = l.transaction(["APCObjectStore"], "readwrite"), j = d.objectStore("APCObjectStore"), a = { id: y, classification: t, content: o, misc: i }, m = j.put(a);
659
+ m.onsuccess = () => u(m.result), m.onerror = () => f(m.error), d.oncomplete = () => l.close();
690
660
  }));
691
661
  }
692
- function Xe(g) {
693
- return it().then((t) => new Promise((o, i) => {
694
- const l = t.transaction([Ne], "readonly"), f = l.objectStore(Ne).get(g);
662
+ function Ke(y) {
663
+ return ot().then((t) => new Promise((o, i) => {
664
+ const l = t.transaction([Ne], "readonly"), f = l.objectStore(Ne).get(y);
695
665
  f.onsuccess = () => o(f.result), f.onerror = () => i(f.error), l.oncomplete = () => t.close();
696
666
  }));
697
667
  }
698
- function rn(g) {
699
- return it().then((t) => new Promise((o, i) => {
700
- const l = t.transaction([Ne], "readwrite"), f = l.objectStore(Ne).delete(g);
668
+ function Xr(y) {
669
+ return ot().then((t) => new Promise((o, i) => {
670
+ const l = t.transaction([Ne], "readwrite"), f = l.objectStore(Ne).delete(y);
701
671
  f.onsuccess = () => o(), f.onerror = () => i(f.error), l.oncomplete = () => t.close();
702
672
  }));
703
673
  }
704
- function Ee(g = null) {
705
- return it().then((t) => new Promise((o, i) => {
674
+ function Te(y = null) {
675
+ return ot().then((t) => new Promise((o, i) => {
706
676
  const l = t.transaction([Ne], "readonly"), f = l.objectStore(Ne).openCursor(), d = [];
707
- f.onsuccess = (b) => {
708
- const a = b.target.result;
709
- a ? ((!g || g(a.value)) && d.push(a.value), a.continue()) : o(d);
710
- }, f.onerror = (b) => {
711
- i("Failed to retrieve items: " + b.target.errorCode);
677
+ f.onsuccess = (j) => {
678
+ const a = j.target.result;
679
+ a ? ((!y || y(a.value)) && d.push(a.value), a.continue()) : o(d);
680
+ }, f.onerror = (j) => {
681
+ i("Failed to retrieve items: " + j.target.errorCode);
712
682
  }, l.oncomplete = () => {
713
683
  t.close();
714
684
  };
715
685
  }));
716
686
  }
717
- function nn(g) {
718
- const { currentTabNo: t, theme: o, apcCanvasInstance: i, apiEndpoint: l, reloadTabs: u, updateActiveSection: f, initCategory: d, initInstance: b, apiKey: a, setActiveTab: v } = g, [p, y] = M(), [s, m] = M(d || "Hats"), [h, j] = M(!1), [n, w] = M(), _ = `${l}/api/v1/designer`;
687
+ function Qr(y) {
688
+ const { currentTabNo: t, theme: o, apcCanvasInstance: i, apiEndpoint: l, reloadTabs: u, updateActiveSection: f, initCategory: d, initInstance: j, apiKey: a, setActiveTab: m } = y, [p, b] = M(), [s, g] = M(d || "Hats"), [h, v] = M(!1), [n, w] = M(), _ = `${l}/api/v1/designer`;
719
689
  ie(() => {
720
690
  A();
721
691
  }, []), ie(() => {
722
- i && b && b.fabricID && L(b.fabricID);
723
- }, [b]);
692
+ i && j && j.fabricID && R(j.fabricID);
693
+ }, [j]);
724
694
  const A = () => {
725
- j(!0);
695
+ v(!0);
726
696
  const I = `${_}/search-designs-images/${s}`;
727
- ye.get(I).then((E) => {
728
- j(!1), E.data.object.length > 0 ? y(E.data) : w("No matching results found");
729
- }).catch((E) => {
730
- j(!1), console.error("Error fetching data:", E);
697
+ ye.get(I).then((T) => {
698
+ v(!1), T.data.object.length > 0 ? b(T.data) : w("No matching results found");
699
+ }).catch((T) => {
700
+ v(!1), console.error("Error fetching data:", T);
731
701
  });
732
- }, L = (I) => {
733
- const E = _ + "/find-public-design/" + I;
734
- ye.get(E).then((V) => {
702
+ }, R = (I) => {
703
+ const T = _ + "/find-public-design/" + I;
704
+ ye.get(T).then((V) => {
735
705
  const { object: K } = V == null ? void 0 : V.data;
736
706
  K && (window.location.href = `/design-center/${K.pdid}`);
737
707
  }).catch((V) => {
738
708
  console.error("Error fetching data:", V);
739
709
  });
740
- }, P = () => p ? p.object.map((I, E) => /* @__PURE__ */ e.jsx(T.Fragment, { children: /* @__PURE__ */ e.jsxs(
710
+ }, F = () => p ? p.object.map((I, T) => /* @__PURE__ */ e.jsx(E.Fragment, { children: /* @__PURE__ */ e.jsxs(
741
711
  "div",
742
712
  {
743
713
  style: {
@@ -750,7 +720,7 @@ function nn(g) {
750
720
  },
751
721
  tabIndex: 0,
752
722
  className: "apc-mpx-widget-responsive-image-container",
753
- onClick: () => L(I.fabricID),
723
+ onClick: () => R(I.fabricID),
754
724
  children: [
755
725
  /* @__PURE__ */ e.jsxs(
756
726
  "div",
@@ -781,8 +751,8 @@ function nn(g) {
781
751
  /* @__PURE__ */ e.jsx("div", { children: I.product.name })
782
752
  ]
783
753
  }
784
- ) }, E)) : null;
785
- return /* @__PURE__ */ e.jsxs(T.Fragment, { children: [
754
+ ) }, T)) : null;
755
+ return /* @__PURE__ */ e.jsxs(E.Fragment, { children: [
786
756
  /* @__PURE__ */ e.jsx("br", {}),
787
757
  /* @__PURE__ */ e.jsxs("div", { style: { display: "flex", flexDirection: "row" }, children: [
788
758
  /* @__PURE__ */ e.jsx("div", { children: /* @__PURE__ */ e.jsx(
@@ -790,7 +760,7 @@ function nn(g) {
790
760
  {
791
761
  placeholder: "Search templates",
792
762
  type: "text",
793
- onChange: (I) => m(I.target.value),
763
+ onChange: (I) => g(I.target.value),
794
764
  className: "apc-mpc-widget-input",
795
765
  style: { border: `solid 3px ${o.primaryColor}`, height: "40px" }
796
766
  }
@@ -818,10 +788,10 @@ function nn(g) {
818
788
  /* @__PURE__ */ e.jsx("br", {}),
819
789
  " ",
820
790
  /* @__PURE__ */ e.jsx("br", {}),
821
- P()
791
+ F()
822
792
  ] });
823
793
  }
824
- const sn = {
794
+ const qr = {
825
795
  fontFamily: "Arial",
826
796
  fontSize: "40px",
827
797
  // Assuming a default font size
@@ -831,7 +801,7 @@ const sn = {
831
801
  WebkitBackgroundClip: "text",
832
802
  backgroundClip: "text",
833
803
  cursor: "pointer"
834
- }, on = {
804
+ }, Zr = {
835
805
  fontFamily: "comic sans ms",
836
806
  fontSize: "40px",
837
807
  color: "#000",
@@ -842,7 +812,7 @@ const sn = {
842
812
  -1px 1px 0 #ff0000,
843
813
  1px 1px 0 #ff0000`,
844
814
  cursor: "pointer"
845
- }, cn = {
815
+ }, en = {
846
816
  fontFamily: "Arial",
847
817
  fontSize: "40px",
848
818
  // Adjust as needed
@@ -854,7 +824,7 @@ const sn = {
854
824
  // Apply skew transformations
855
825
  textAlign: "center",
856
826
  cursor: "pointer"
857
- }, an = {
827
+ }, tn = {
858
828
  fontFamily: "Arial",
859
829
  fontSize: "40px",
860
830
  // Adjust as needed
@@ -864,7 +834,7 @@ const sn = {
864
834
  // Apply glowing effect
865
835
  textAlign: "center",
866
836
  cursor: "pointer"
867
- }, ln = {
837
+ }, rn = {
868
838
  fontFamily: "Arial",
869
839
  fontSize: "40px",
870
840
  // Adjust the font size as needed
@@ -874,46 +844,46 @@ const sn = {
874
844
  // Background color of the text
875
845
  borderRadius: "5px",
876
846
  cursor: "pointer"
877
- }, dn = {
847
+ }, nn = {
878
848
  color: "black",
879
849
  fontSize: "40px",
880
850
  opacity: "0.5",
881
851
  fontFamily: "Arial, sans-serif",
882
852
  cursor: "pointer"
883
853
  };
884
- function hn(g) {
885
- const { apcCanvasInstance: t, isMobile: o, closeMobileModalSecondaryPanel: i } = g, l = (s, m) => {
854
+ function sn(y) {
855
+ const { apcCanvasInstance: t, isMobile: o, closeMobileModalSecondaryPanel: i } = y, l = (s, g) => {
886
856
  const h = new B.Textbox("Stay Humble!", {
887
857
  width: 300,
888
858
  left: 200,
889
859
  top: 200,
890
860
  fontFamily: s,
891
- fill: m,
861
+ fill: g,
892
862
  hasControls: !0
893
863
  });
894
864
  t.add(h), t.setActiveObject(h), o && i(!0);
895
- }, u = ({ primaryTextLabel: s, primaryTextFontFamily: m, primaryTextColor: h, secondaryTextLabel: j, SecondaryTextFontFamily: n, secondaryTextColor: w }) => {
865
+ }, u = ({ primaryTextLabel: s, primaryTextFontFamily: g, primaryTextColor: h, secondaryTextLabel: v, SecondaryTextFontFamily: n, secondaryTextColor: w }) => {
896
866
  const _ = new B.Textbox(s, {
897
- fontFamily: m,
867
+ fontFamily: g,
898
868
  width: 300,
899
869
  left: 200,
900
870
  top: 200,
901
871
  fill: h
902
- }), A = new B.Textbox(j, {
872
+ }), A = new B.Textbox(v, {
903
873
  fontFamily: n,
904
874
  fill: w,
905
875
  fontSize: 12,
906
876
  width: 150
907
877
  });
908
878
  A.top = _.top + _.height + 10, A.left = _.left, t.add(_), t.add(A), t.setActiveObject(_), o && i(!0);
909
- }, f = (s, m) => {
879
+ }, f = (s, g) => {
910
880
  const h = new B.Textbox("Adventure Awaits!", {
911
881
  width: 300,
912
882
  left: 200,
913
883
  top: 200,
914
884
  fontFamily: s,
915
- fill: m
916
- }), j = {
885
+ fill: g
886
+ }), v = {
917
887
  color: "rgba(0,0,0,0.5)",
918
888
  // Shadow color
919
889
  blur: 10,
@@ -923,7 +893,7 @@ function hn(g) {
923
893
  offsetY: 5
924
894
  // Vertical offset of shadow
925
895
  };
926
- h.shadow = j, t.add(h), t.setActiveObject(h), o && i(!0);
896
+ h.shadow = v, t.add(h), t.setActiveObject(h), o && i(!0);
927
897
  }, d = () => {
928
898
  const s = new B.Textbox("Love More", {
929
899
  left: 100,
@@ -942,7 +912,7 @@ function hn(g) {
942
912
  })
943
913
  });
944
914
  t.add(s), t.setActiveObject(s), o && i(!0);
945
- }, b = () => {
915
+ }, j = () => {
946
916
  const s = new B.Textbox("Good Vibes Only", {
947
917
  left: 150,
948
918
  top: 150,
@@ -965,7 +935,7 @@ function hn(g) {
965
935
  skewY: 10
966
936
  });
967
937
  t.add(s), t.setActiveObject(s), o && i(!0);
968
- }, v = () => {
938
+ }, m = () => {
969
939
  const s = new B.Textbox("Choose Joy", {
970
940
  left: 350,
971
941
  top: 350,
@@ -983,7 +953,7 @@ function hn(g) {
983
953
  shadow: "yellow 0 0 10px"
984
954
  });
985
955
  t.add(s), t.setActiveObject(s), o && i(!0);
986
- }, y = () => {
956
+ }, b = () => {
987
957
  const s = new B.Textbox("Be Kind", {
988
958
  left: 650,
989
959
  top: 650,
@@ -993,7 +963,7 @@ function hn(g) {
993
963
  });
994
964
  t.add(s), t.setActiveObject(s), o && i(!0);
995
965
  };
996
- return /* @__PURE__ */ e.jsx(T.Fragment, { children: /* @__PURE__ */ e.jsxs("div", { style: { display: "flex", flexDirection: "column", gap: 8 }, children: [
966
+ return /* @__PURE__ */ e.jsx(E.Fragment, { children: /* @__PURE__ */ e.jsxs("div", { style: { display: "flex", flexDirection: "column", gap: 8 }, children: [
997
967
  /* @__PURE__ */ e.jsx(
998
968
  "div",
999
969
  {
@@ -1074,17 +1044,17 @@ function hn(g) {
1074
1044
  }, children: "Adventure Awaits " })
1075
1045
  }
1076
1046
  ),
1077
- /* @__PURE__ */ e.jsx("div", { onClick: () => d(), style: sn, children: "Love More" }),
1078
- /* @__PURE__ */ e.jsx("div", { onClick: () => b(), style: on, children: "Good Vibes Only" }),
1079
- /* @__PURE__ */ e.jsx("div", { onClick: () => a(), style: cn, children: "Dream Big" }),
1080
- /* @__PURE__ */ e.jsx("div", { onClick: () => p(), style: an, children: "Find Your Fire" }),
1081
- /* @__PURE__ */ e.jsx("div", { onClick: () => y(), style: ln, children: "Be Kind" }),
1082
- /* @__PURE__ */ e.jsx("div", { onClick: () => v(), style: dn, children: "Choose Joy" })
1047
+ /* @__PURE__ */ e.jsx("div", { onClick: () => d(), style: qr, children: "Love More" }),
1048
+ /* @__PURE__ */ e.jsx("div", { onClick: () => j(), style: Zr, children: "Good Vibes Only" }),
1049
+ /* @__PURE__ */ e.jsx("div", { onClick: () => a(), style: en, children: "Dream Big" }),
1050
+ /* @__PURE__ */ e.jsx("div", { onClick: () => p(), style: tn, children: "Find Your Fire" }),
1051
+ /* @__PURE__ */ e.jsx("div", { onClick: () => b(), style: rn, children: "Be Kind" }),
1052
+ /* @__PURE__ */ e.jsx("div", { onClick: () => m(), style: nn, children: "Choose Joy" })
1083
1053
  ] }) });
1084
1054
  }
1085
- const Pt = async (g) => {
1055
+ const _t = async (y) => {
1086
1056
  try {
1087
- const o = await (await fetch(g)).blob();
1057
+ const o = await (await fetch(y)).blob();
1088
1058
  return new Promise((i, l) => {
1089
1059
  const u = new FileReader();
1090
1060
  u.onloadend = () => i(u.result), u.onerror = l, u.readAsDataURL(o);
@@ -1093,32 +1063,32 @@ const Pt = async (g) => {
1093
1063
  throw console.error("Error converting image to base64:", t), t;
1094
1064
  }
1095
1065
  };
1096
- function pn({ apcCanvasInstance: g, theme: t }) {
1066
+ function on({ apcCanvasInstance: y, theme: t }) {
1097
1067
  const [o, i] = M(!1), l = (a) => {
1098
- const v = a.target.files[0];
1099
- if (v) {
1068
+ const m = a.target.files[0];
1069
+ if (m) {
1100
1070
  const p = new FileReader();
1101
- p.onload = (y) => f(y.target.result), p.readAsDataURL(v);
1071
+ p.onload = (b) => f(b.target.result), p.readAsDataURL(m);
1102
1072
  }
1103
1073
  }, u = (a) => {
1104
1074
  a.preventDefault(), i(!1);
1105
- const v = a.dataTransfer.files[0];
1106
- if (v) {
1075
+ const m = a.dataTransfer.files[0];
1076
+ if (m) {
1107
1077
  const p = new FileReader();
1108
- p.onload = (y) => f(y.target.result), p.readAsDataURL(v);
1078
+ p.onload = (b) => f(b.target.result), p.readAsDataURL(m);
1109
1079
  }
1110
1080
  }, f = (a) => {
1111
- B.Image.fromURL(a, (v) => {
1112
- v.set({
1081
+ B.Image.fromURL(a, (m) => {
1082
+ m.set({
1113
1083
  left: 100,
1114
1084
  top: 100,
1115
1085
  scaleX: 0.5,
1116
1086
  scaleY: 0.5
1117
- }), g.add(v);
1087
+ }), y.add(m);
1118
1088
  });
1119
1089
  }, d = (a) => {
1120
1090
  a.preventDefault(), i(!0);
1121
- }, b = () => {
1091
+ }, j = () => {
1122
1092
  i(!1);
1123
1093
  };
1124
1094
  return /* @__PURE__ */ e.jsxs(
@@ -1137,7 +1107,7 @@ function pn({ apcCanvasInstance: g, theme: t }) {
1137
1107
  // For overlaying the icon
1138
1108
  },
1139
1109
  onDragOver: d,
1140
- onDragLeave: b,
1110
+ onDragLeave: j,
1141
1111
  onDrop: u,
1142
1112
  onClick: () => document.getElementById("file-input").click(),
1143
1113
  children: [
@@ -1174,7 +1144,7 @@ function pn({ apcCanvasInstance: g, theme: t }) {
1174
1144
  width: "18",
1175
1145
  viewBox: "0 0 512 512",
1176
1146
  style: { fill: t.primaryColor },
1177
- children: /* @__PURE__ */ e.jsx("path", { d: Dt })
1147
+ children: /* @__PURE__ */ e.jsx("path", { d: Rt })
1178
1148
  }
1179
1149
  ),
1180
1150
  /* @__PURE__ */ e.jsx("br", {}),
@@ -1210,8 +1180,8 @@ function pn({ apcCanvasInstance: g, theme: t }) {
1210
1180
  }
1211
1181
  );
1212
1182
  }
1213
- function ct(g) {
1214
- const { featureText: t } = g;
1183
+ function it(y) {
1184
+ const { featureText: t } = y;
1215
1185
  return /* @__PURE__ */ e.jsxs("div", { style: { padding: "10px" }, children: [
1216
1186
  t ?? "This is a premium feature. Get API key here",
1217
1187
  "  ",
@@ -1219,7 +1189,7 @@ function ct(g) {
1219
1189
  /* @__PURE__ */ e.jsx("br", {})
1220
1190
  ] });
1221
1191
  }
1222
- function at() {
1192
+ function ct() {
1223
1193
  return /* @__PURE__ */ e.jsxs("div", { className: "loading-container", children: [
1224
1194
  /* @__PURE__ */ e.jsxs("div", { className: "spinner", children: [
1225
1195
  /* @__PURE__ */ e.jsx("div", { className: "spinner-circle" }),
@@ -1228,38 +1198,38 @@ function at() {
1228
1198
  /* @__PURE__ */ e.jsx("p", { className: "loading-text", children: "Loading..." })
1229
1199
  ] });
1230
1200
  }
1231
- function un(g) {
1232
- const { apcCanvasInstance: t, theme: o, apiKey: i, apiEndpoint: l, isMobile: u, closeMobileModalSecondaryPanel: f } = g, [d, b] = M("flowers"), [a, v] = M(!1), [p, y] = M(), [s, m] = M(!1), [h, j] = M(!1), n = sessionStorage.getItem("apc_x_sub_status"), w = `${l}/api/v1/designer`;
1201
+ function cn(y) {
1202
+ const { apcCanvasInstance: t, theme: o, apiKey: i, apiEndpoint: l, isMobile: u, closeMobileModalSecondaryPanel: f } = y, [d, j] = M("flowers"), [a, m] = M(!1), [p, b] = M(), [s, g] = M(!1), [h, v] = M(!1), n = sessionStorage.getItem("apc_x_sub_status"), w = `${l}/api/v1/designer`;
1233
1203
  ie(() => {
1234
1204
  A();
1235
1205
  }, []), ie(() => {
1236
1206
  (async () => {
1237
- n === "active" ? (m(!0), j(!0)) : (v(!0), await _());
1207
+ n === "active" ? (g(!0), v(!0)) : (m(!0), await _());
1238
1208
  })();
1239
1209
  }, []);
1240
1210
  const _ = () => {
1241
- v(!0);
1242
- const E = `${w}/get-subscription-status/${i}`;
1243
- ye.get(E).then((V) => {
1244
- V.data.object && V.data.object === "active" && (sessionStorage.setItem("apc_x_sub_status", "active"), m(!0));
1211
+ m(!0);
1212
+ const T = `${w}/get-subscription-status/${i}`;
1213
+ ye.get(T).then((V) => {
1214
+ V.data.object && V.data.object === "active" && (sessionStorage.setItem("apc_x_sub_status", "active"), g(!0));
1245
1215
  }).catch((V) => {
1246
1216
  sessionStorage.setItem("apc_x_sub_status", "");
1247
1217
  }).finally(() => {
1248
- v(!1), j(!0);
1218
+ m(!1), v(!0);
1249
1219
  });
1250
1220
  }, A = () => {
1251
- v(!0);
1252
- const E = {
1221
+ m(!0);
1222
+ const T = {
1253
1223
  "X-Api-Key": i
1254
1224
  }, V = `${w}/get-images/${d}`;
1255
- ye.get(V, { headers: E }).then((K) => {
1225
+ ye.get(V, { headers: T }).then((K) => {
1256
1226
  var Y;
1257
- v(!1), y((Y = K.data) == null ? void 0 : Y.object);
1227
+ m(!1), b((Y = K.data) == null ? void 0 : Y.object);
1258
1228
  }).catch((K) => {
1259
- console.error("Error fetching data:", K), v(!1);
1229
+ console.error("Error fetching data:", K), m(!1);
1260
1230
  });
1261
- }, L = async (E) => {
1262
- const V = await Pt(E);
1231
+ }, R = async (T) => {
1232
+ const V = await _t(T);
1263
1233
  V && B.Image.fromURL(V, (K) => {
1264
1234
  K.set({
1265
1235
  left: 0,
@@ -1268,14 +1238,14 @@ function un(g) {
1268
1238
  scaleY: 0.3
1269
1239
  }), t.add(K);
1270
1240
  }), u && f(!0);
1271
- }, P = () => p ? /* @__PURE__ */ e.jsx("div", { children: p.map((E) => /* @__PURE__ */ e.jsx("div", { onClick: () => L(E.urls.regular), style: { cursor: "pointer" }, children: /* @__PURE__ */ e.jsx("img", { height: 300, width: 300, src: E.urls.regular, alt: E.description || "No description" }) }, E.id)) }) : null, I = () => !s && !a && h ? /* @__PURE__ */ e.jsx(ct, { featureText: "Get premium AI images with subscription at " }) : s && !a && h ? /* @__PURE__ */ e.jsxs("div", { children: [
1241
+ }, F = () => p ? /* @__PURE__ */ e.jsx("div", { children: p.map((T) => /* @__PURE__ */ e.jsx("div", { onClick: () => R(T.urls.regular), style: { cursor: "pointer" }, children: /* @__PURE__ */ e.jsx("img", { height: 300, width: 300, src: T.urls.regular, alt: T.description || "No description" }) }, T.id)) }) : null, I = () => !s && !a && h ? /* @__PURE__ */ e.jsx(it, { featureText: "Get premium AI images with subscription at " }) : s && !a && h ? /* @__PURE__ */ e.jsxs("div", { children: [
1272
1242
  /* @__PURE__ */ e.jsx("strong", { children: "- OR -" }),
1273
1243
  /* @__PURE__ */ e.jsxs("div", { children: [
1274
1244
  /* @__PURE__ */ e.jsx(
1275
1245
  "input",
1276
1246
  {
1277
1247
  type: "text",
1278
- onChange: (E) => b(E.target.value),
1248
+ onChange: (T) => j(T.target.value),
1279
1249
  className: "apc-mpc-widget-input",
1280
1250
  style: { border: `solid 3px ${o.primaryColor}` }
1281
1251
  }
@@ -1298,19 +1268,19 @@ function un(g) {
1298
1268
  ] }),
1299
1269
  /* @__PURE__ */ e.jsx("br", {}),
1300
1270
  /* @__PURE__ */ e.jsx("br", {}),
1301
- P()
1302
- ] }) : /* @__PURE__ */ e.jsx(at, {});
1303
- return /* @__PURE__ */ e.jsxs(T.Fragment, { children: [
1271
+ F()
1272
+ ] }) : /* @__PURE__ */ e.jsx(ct, {});
1273
+ return /* @__PURE__ */ e.jsxs(E.Fragment, { children: [
1304
1274
  /* @__PURE__ */ e.jsx("br", {}),
1305
1275
  /* @__PURE__ */ e.jsx("br", {}),
1306
- /* @__PURE__ */ e.jsx(pn, { apcCanvasInstance: t, theme: o }),
1276
+ /* @__PURE__ */ e.jsx(on, { apcCanvasInstance: t, theme: o }),
1307
1277
  /* @__PURE__ */ e.jsx("br", {}),
1308
1278
  /* @__PURE__ */ e.jsx("br", {}),
1309
1279
  I()
1310
1280
  ] });
1311
1281
  }
1312
- function Rt(g) {
1313
- const { apcCanvasInstance: t, theme: o, isMobile: i, closeMobileModalSecondaryPanel: l } = g, u = (j) => {
1282
+ function Mt(y) {
1283
+ const { apcCanvasInstance: t, theme: o, isMobile: i, closeMobileModalSecondaryPanel: l } = y, u = (v) => {
1314
1284
  const n = new B.Rect({
1315
1285
  width: 100,
1316
1286
  height: 60,
@@ -1320,7 +1290,7 @@ function Rt(g) {
1320
1290
  stroke: o.primaryColor
1321
1291
  });
1322
1292
  t.add(n), t.setActiveObject(n), i && l(!0);
1323
- }, f = (j) => {
1293
+ }, f = (v) => {
1324
1294
  const n = new B.Circle({
1325
1295
  radius: 30,
1326
1296
  fill: "",
@@ -1329,7 +1299,7 @@ function Rt(g) {
1329
1299
  top: 200
1330
1300
  });
1331
1301
  t.add(n), t.setActiveObject(n), i && l(!0);
1332
- }, d = (j) => {
1302
+ }, d = (v) => {
1333
1303
  const n = new B.Triangle({
1334
1304
  width: 40,
1335
1305
  height: 50,
@@ -1339,7 +1309,7 @@ function Rt(g) {
1339
1309
  top: 200
1340
1310
  });
1341
1311
  t.add(n), t.setActiveObject(n), i && l(!0);
1342
- }, b = (j) => {
1312
+ }, j = (v) => {
1343
1313
  const n = new B.Line([50, 10, 250, 10], {
1344
1314
  fill: "",
1345
1315
  stroke: o.primaryColor,
@@ -1347,22 +1317,22 @@ function Rt(g) {
1347
1317
  top: 200
1348
1318
  });
1349
1319
  t.add(n), t.setActiveObject(n), i && l(!0);
1350
- }, a = (j, n, w) => {
1351
- const _ = n, A = n, L = Math.PI / j;
1352
- let P = [], I = 0;
1353
- for (let E = 0; E < j; E++) {
1320
+ }, a = (v, n, w) => {
1321
+ const _ = n, A = n, R = Math.PI / v;
1322
+ let F = [], I = 0;
1323
+ for (let T = 0; T < v; T++) {
1354
1324
  let V = _ + Math.cos(I) * n, K = A + Math.sin(I) * n;
1355
- P.push({ x: V, y: K }), I += L, V = _ + Math.cos(I) * w, K = A + Math.sin(I) * w, P.push({ x: V, y: K }), I += L;
1325
+ F.push({ x: V, y: K }), I += R, V = _ + Math.cos(I) * w, K = A + Math.sin(I) * w, F.push({ x: V, y: K }), I += R;
1356
1326
  }
1357
- return P;
1358
- }, v = (j, n) => {
1359
- const w = Math.PI * 2 / j, _ = n, A = n, L = [];
1360
- for (let P = 0; P < j; P++) {
1361
- const I = _ + n * Math.cos(P * w), E = A + n * Math.sin(P * w);
1362
- L.push({ x: I, y: E });
1327
+ return F;
1328
+ }, m = (v, n) => {
1329
+ const w = Math.PI * 2 / v, _ = n, A = n, R = [];
1330
+ for (let F = 0; F < v; F++) {
1331
+ const I = _ + n * Math.cos(F * w), T = A + n * Math.sin(F * w);
1332
+ R.push({ x: I, y: T });
1363
1333
  }
1364
- return L;
1365
- }, p = (j) => {
1334
+ return R;
1335
+ }, p = (v) => {
1366
1336
  const n = a(5, 60, 30), w = new B.Polygon(n, {
1367
1337
  left: 200,
1368
1338
  top: 200,
@@ -1372,8 +1342,8 @@ function Rt(g) {
1372
1342
  strokeLineJoin: "bevil"
1373
1343
  }, !1);
1374
1344
  t.add(w), t.setActiveObject(w), i && l(!0);
1375
- }, y = (j) => {
1376
- const n = v(6, 30), w = new B.Polygon(n, {
1345
+ }, b = (v) => {
1346
+ const n = m(6, 30), w = new B.Polygon(n, {
1377
1347
  left: 200,
1378
1348
  top: 200,
1379
1349
  fill: "",
@@ -1382,24 +1352,24 @@ function Rt(g) {
1382
1352
  strokeLineJoin: "bevil"
1383
1353
  }, !1);
1384
1354
  t.add(w), t.setActiveObject(w), i && l(!0);
1385
- }, s = (j) => {
1386
- const n = new B.Path(wt, {
1355
+ }, s = (v) => {
1356
+ const n = new B.Path(bt, {
1387
1357
  fill: "",
1388
1358
  stroke: o.primaryColor,
1389
1359
  left: 200,
1390
1360
  top: 200
1391
1361
  });
1392
1362
  t.add(n), t.setActiveObject(n), i && l(!0);
1393
- }, m = (j) => {
1394
- const n = new B.Path(Ct, {
1363
+ }, g = (v) => {
1364
+ const n = new B.Path(yt, {
1395
1365
  fill: "",
1396
1366
  stroke: o.primaryColor,
1397
1367
  left: 200,
1398
1368
  top: 200
1399
1369
  });
1400
1370
  t.add(n), t.setActiveObject(n), i && l(!0);
1401
- }, h = (j) => {
1402
- const n = new B.Path(ht, {
1371
+ }, h = (v) => {
1372
+ const n = new B.Path(dt, {
1403
1373
  fill: "",
1404
1374
  stroke: o.primaryColor,
1405
1375
  left: 200,
@@ -1407,9 +1377,9 @@ function Rt(g) {
1407
1377
  });
1408
1378
  t.add(n), t.setActiveObject(n), i && l(!0);
1409
1379
  };
1410
- return t ? /* @__PURE__ */ e.jsxs(T.Fragment, { children: [
1380
+ return t ? /* @__PURE__ */ e.jsxs(E.Fragment, { children: [
1411
1381
  /* @__PURE__ */ e.jsx("br", {}),
1412
- /* @__PURE__ */ e.jsx("div", { onClick: (j) => u(), style: { fontSize: "50px", cursor: "pointer" }, children: /* @__PURE__ */ e.jsx(
1382
+ /* @__PURE__ */ e.jsx("div", { onClick: (v) => u(), style: { fontSize: "50px", cursor: "pointer" }, children: /* @__PURE__ */ e.jsx(
1413
1383
  "svg",
1414
1384
  {
1415
1385
  xmlns: "http://www.w3.org/2000/svg",
@@ -1425,7 +1395,7 @@ function Rt(g) {
1425
1395
  /* @__PURE__ */ e.jsx(
1426
1396
  "div",
1427
1397
  {
1428
- onClick: (j) => f(),
1398
+ onClick: (v) => f(),
1429
1399
  style: { fontSize: "50px", cursor: "pointer" },
1430
1400
  children: /* @__PURE__ */ e.jsx(
1431
1401
  "svg",
@@ -1445,7 +1415,7 @@ function Rt(g) {
1445
1415
  /* @__PURE__ */ e.jsx(
1446
1416
  "div",
1447
1417
  {
1448
- onClick: (j) => d(),
1418
+ onClick: (v) => d(),
1449
1419
  draggable: !0,
1450
1420
  style: { fontSize: "50px", cursor: "pointer" },
1451
1421
  children: /* @__PURE__ */ e.jsx(
@@ -1471,7 +1441,7 @@ function Rt(g) {
1471
1441
  /* @__PURE__ */ e.jsx(
1472
1442
  "div",
1473
1443
  {
1474
- onClick: (j) => p(),
1444
+ onClick: (v) => p(),
1475
1445
  style: { fontSize: "50px", cursor: "pointer" },
1476
1446
  children: /* @__PURE__ */ e.jsx(
1477
1447
  "svg",
@@ -1496,7 +1466,7 @@ function Rt(g) {
1496
1466
  /* @__PURE__ */ e.jsx(
1497
1467
  "div",
1498
1468
  {
1499
- onClick: (j) => y(),
1469
+ onClick: (v) => b(),
1500
1470
  style: { fontSize: "50px", cursor: "pointer" },
1501
1471
  children: /* @__PURE__ */ e.jsx(
1502
1472
  "svg",
@@ -1518,7 +1488,7 @@ function Rt(g) {
1518
1488
  /* @__PURE__ */ e.jsx(
1519
1489
  "div",
1520
1490
  {
1521
- onClick: (j) => b(),
1491
+ onClick: (v) => j(),
1522
1492
  style: { fontSize: "50px", cursor: "pointer" },
1523
1493
  children: /* @__PURE__ */ e.jsx(
1524
1494
  "svg",
@@ -1539,7 +1509,7 @@ function Rt(g) {
1539
1509
  /* @__PURE__ */ e.jsx(
1540
1510
  "div",
1541
1511
  {
1542
- onClick: (j) => s(),
1512
+ onClick: (v) => s(),
1543
1513
  style: { fontSize: "50px", cursor: "pointer" },
1544
1514
  children: /* @__PURE__ */ e.jsx(
1545
1515
  "svg",
@@ -1554,7 +1524,7 @@ function Rt(g) {
1554
1524
  children: /* @__PURE__ */ e.jsx(
1555
1525
  "path",
1556
1526
  {
1557
- d: wt
1527
+ d: bt
1558
1528
  }
1559
1529
  )
1560
1530
  }
@@ -1564,7 +1534,7 @@ function Rt(g) {
1564
1534
  /* @__PURE__ */ e.jsx(
1565
1535
  "div",
1566
1536
  {
1567
- onClick: (j) => m(),
1537
+ onClick: (v) => g(),
1568
1538
  style: { fontSize: "50px", cursor: "pointer" },
1569
1539
  children: /* @__PURE__ */ e.jsx(
1570
1540
  "svg",
@@ -1576,7 +1546,7 @@ function Rt(g) {
1576
1546
  fill: "none",
1577
1547
  strokeWidth: "4",
1578
1548
  stroke: o.primaryColor,
1579
- children: /* @__PURE__ */ e.jsx("path", { d: Ct })
1549
+ children: /* @__PURE__ */ e.jsx("path", { d: yt })
1580
1550
  }
1581
1551
  )
1582
1552
  }
@@ -1584,7 +1554,7 @@ function Rt(g) {
1584
1554
  /* @__PURE__ */ e.jsx(
1585
1555
  "div",
1586
1556
  {
1587
- onClick: (j) => h(),
1557
+ onClick: (v) => h(),
1588
1558
  style: { fontSize: "50px", cursor: "pointer" },
1589
1559
  children: /* @__PURE__ */ e.jsx(
1590
1560
  "svg",
@@ -1596,99 +1566,99 @@ function Rt(g) {
1596
1566
  fill: "none",
1597
1567
  strokeWidth: "4",
1598
1568
  stroke: o.primaryColor,
1599
- children: /* @__PURE__ */ e.jsx("path", { d: ht })
1569
+ children: /* @__PURE__ */ e.jsx("path", { d: dt })
1600
1570
  }
1601
1571
  )
1602
1572
  }
1603
1573
  )
1604
1574
  ] }) : null;
1605
1575
  }
1606
- function fn(g) {
1607
- const { apcCanvasInstance: t, theme: o, isMobile: i, closeMobileModalSecondaryPanel: l } = g, u = (d) => {
1608
- const b = new B.Path(d, {
1576
+ function an(y) {
1577
+ const { apcCanvasInstance: t, theme: o, isMobile: i, closeMobileModalSecondaryPanel: l } = y, u = (d) => {
1578
+ const j = new B.Path(d, {
1609
1579
  left: 200,
1610
1580
  top: 200,
1611
1581
  fill: o.primaryColor,
1612
1582
  scaleX: 0.1,
1613
1583
  scaleY: 0.1
1614
1584
  });
1615
- t.add(b), t.setActiveObject(b), i && l(!0);
1585
+ t.add(j), t.setActiveObject(j), i && l(!0);
1616
1586
  }, f = (d) => {
1617
1587
  switch (d) {
1618
1588
  case "icon-phone":
1619
- u(Cr);
1589
+ u(mr);
1620
1590
  break;
1621
1591
  case "icon-question":
1622
- u(wr);
1592
+ u(gr);
1623
1593
  break;
1624
1594
  case "icon-clock":
1625
- u(Sr);
1595
+ u(vr);
1626
1596
  break;
1627
1597
  case "icon-twitter":
1628
- u(kr);
1598
+ u(jr);
1629
1599
  break;
1630
1600
  case "icon-check":
1631
- u(Nr);
1601
+ u(br);
1632
1602
  break;
1633
1603
  case "icon-pointer":
1634
- u(Or);
1604
+ u(yr);
1635
1605
  break;
1636
1606
  case "icon-mail":
1637
- u(Ar);
1607
+ u(wr);
1638
1608
  break;
1639
1609
  case "icon-dollar":
1640
- u(Ir);
1610
+ u(Cr);
1641
1611
  break;
1642
1612
  case "icon-graduation":
1643
- u(St);
1613
+ u(wt);
1644
1614
  break;
1645
1615
  case "icon-business-suit":
1646
- u(Er);
1616
+ u(Sr);
1647
1617
  break;
1648
1618
  case "icon-chat":
1649
- u(Tr);
1619
+ u(kr);
1650
1620
  break;
1651
1621
  case "icon-thumbs-up":
1652
- u(Mr);
1622
+ u(Nr);
1653
1623
  break;
1654
1624
  case "icon-wifi":
1655
- u(zr);
1625
+ u(Or);
1656
1626
  break;
1657
1627
  case "icon-info":
1658
- u(Ot);
1628
+ u(kt);
1659
1629
  break;
1660
1630
  case "icon-cart":
1661
- u(Nt);
1631
+ u(St);
1662
1632
  break;
1663
1633
  case "icon-comment":
1664
- u(kt);
1634
+ u(Ct);
1665
1635
  break;
1666
1636
  case "icon-location-map":
1667
- u(At);
1637
+ u(Nt);
1668
1638
  break;
1669
1639
  case "icon-heart-1":
1670
- u(It);
1640
+ u(Ot);
1671
1641
  break;
1672
1642
  case "icon-arrow-right-1":
1673
- u(ht);
1643
+ u(dt);
1674
1644
  break;
1675
1645
  case "icon-xmark":
1676
- u(Et);
1646
+ u(At);
1677
1647
  break;
1678
1648
  case "icon-cloud":
1679
- u(Tt);
1649
+ u(It);
1680
1650
  break;
1681
1651
  case "icon-smile":
1682
- u(Mt);
1652
+ u(Tt);
1683
1653
  break;
1684
1654
  case "icon-like":
1685
- u(zt);
1655
+ u(Et);
1686
1656
  break;
1687
1657
  default:
1688
1658
  console.log("no matching type");
1689
1659
  }
1690
1660
  };
1691
- return /* @__PURE__ */ e.jsx(T.Fragment, { children: /* @__PURE__ */ e.jsxs("div", { style: { padding: "5px" }, className: i ? "apc-mpx-widget-secondary-icons-mobile" : "apc-mpx-widget-secondary-icons", children: [
1661
+ return /* @__PURE__ */ e.jsx(E.Fragment, { children: /* @__PURE__ */ e.jsxs("div", { style: { padding: "5px" }, className: i ? "apc-mpx-widget-secondary-icons-mobile" : "apc-mpx-widget-secondary-icons", children: [
1692
1662
  /* @__PURE__ */ e.jsx("div", { className: "apc-mpx-widget-secondary-icon", onClick: (d) => f("icon-phone"), children: /* @__PURE__ */ e.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", height: "1em", viewBox: "0 0 512 512", children: /* @__PURE__ */ e.jsx(
1693
1663
  "path",
1694
1664
  {
@@ -1745,7 +1715,7 @@ function fn(g) {
1745
1715
  d: "M160 0c17.7 0 32 14.3 32 32V67.7c1.6 .2 3.1 .4 4.7 .7c.4 .1 .7 .1 1.1 .2l48 8.8c17.4 3.2 28.9 19.9 25.7 37.2s-19.9 28.9-37.2 25.7l-47.5-8.7c-31.3-4.6-58.9-1.5-78.3 6.2s-27.2 18.3-29 28.1c-2 10.7-.5 16.7 1.2 20.4c1.8 3.9 5.5 8.3 12.8 13.2c16.3 10.7 41.3 17.7 73.7 26.3l2.9 .8c28.6 7.6 63.6 16.8 89.6 33.8c14.2 9.3 27.6 21.9 35.9 39.5c8.5 17.9 10.3 37.9 6.4 59.2c-6.9 38-33.1 63.4-65.6 76.7c-13.7 5.6-28.6 9.2-44.4 11V480c0 17.7-14.3 32-32 32s-32-14.3-32-32V445.1c-.4-.1-.9-.1-1.3-.2l-.2 0 0 0c-24.4-3.8-64.5-14.3-91.5-26.3c-16.1-7.2-23.4-26.1-16.2-42.2s26.1-23.4 42.2-16.2c20.9 9.3 55.3 18.5 75.2 21.6c31.9 4.7 58.2 2 76-5.3c16.9-6.9 24.6-16.9 26.8-28.9c1.9-10.6 .4-16.7-1.3-20.4c-1.9-4-5.6-8.4-13-13.3c-16.4-10.7-41.5-17.7-74-26.3l-2.8-.7 0 0C119.4 279.3 84.4 270 58.4 253c-14.2-9.3-27.5-22-35.8-39.6c-8.4-17.9-10.1-37.9-6.1-59.2C23.7 116 52.3 91.2 84.8 78.3c13.3-5.3 27.9-8.9 43.2-11V32c0-17.7 14.3-32 32-32z"
1746
1716
  }
1747
1717
  ) }) }),
1748
- /* @__PURE__ */ e.jsx("div", { className: "apc-mpx-widget-secondary-icon", onClick: (d) => f("icon-graduation"), children: /* @__PURE__ */ e.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", height: "1em", viewBox: "0 0 640 512", children: /* @__PURE__ */ e.jsx("path", { fill: o.primaryColor, d: St }) }) }),
1718
+ /* @__PURE__ */ e.jsx("div", { className: "apc-mpx-widget-secondary-icon", onClick: (d) => f("icon-graduation"), children: /* @__PURE__ */ e.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", height: "1em", viewBox: "0 0 640 512", children: /* @__PURE__ */ e.jsx("path", { fill: o.primaryColor, d: wt }) }) }),
1749
1719
  /* @__PURE__ */ e.jsx("div", { className: "apc-mpx-widget-secondary-icon", onClick: (d) => f("icon-business-suit"), children: /* @__PURE__ */ e.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", height: "1em", viewBox: "0 0 640 512", children: /* @__PURE__ */ e.jsx(
1750
1720
  "path",
1751
1721
  {
@@ -1774,22 +1744,22 @@ function fn(g) {
1774
1744
  d: "M54.2 202.9C123.2 136.7 216.8 96 320 96s196.8 40.7 265.8 106.9c12.8 12.2 33 11.8 45.2-.9s11.8-33-.9-45.2C549.7 79.5 440.4 32 320 32S90.3 79.5 9.8 156.7C-2.9 169-3.3 189.2 8.9 202s32.5 13.2 45.2 .9zM320 256c56.8 0 108.6 21.1 148.2 56c13.3 11.7 33.5 10.4 45.2-2.8s10.4-33.5-2.8-45.2C459.8 219.2 393 192 320 192s-139.8 27.2-190.5 72c-13.3 11.7-14.5 31.9-2.8 45.2s31.9 14.5 45.2 2.8c39.5-34.9 91.3-56 148.2-56zm64 160a64 64 0 1 0 -128 0 64 64 0 1 0 128 0z"
1775
1745
  }
1776
1746
  ) }) }),
1777
- /* @__PURE__ */ e.jsx("div", { className: "apc-mpx-widget-secondary-icon", onClick: (d) => f("icon-info"), children: /* @__PURE__ */ e.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", height: "1em", viewBox: "0 0 512 512", children: /* @__PURE__ */ e.jsx("path", { fill: o.primaryColor, d: Ot }) }) }),
1778
- /* @__PURE__ */ e.jsx("div", { className: "apc-mpx-widget-secondary-icon", onClick: (d) => f("icon-cart"), children: /* @__PURE__ */ e.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", height: "1em", viewBox: "0 0 576 512", children: /* @__PURE__ */ e.jsx("path", { fill: o.primaryColor, d: Nt }) }) }),
1779
- /* @__PURE__ */ e.jsx("div", { className: "apc-mpx-widget-secondary-icon", onClick: (d) => f("icon-comment"), children: /* @__PURE__ */ e.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", height: "1em", viewBox: "0 0 512 512", children: /* @__PURE__ */ e.jsx("path", { fill: o.primaryColor, d: kt }) }) }),
1780
- /* @__PURE__ */ e.jsx("div", { className: "apc-mpx-widget-secondary-icon", onClick: (d) => f("icon-location-map"), children: /* @__PURE__ */ e.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", height: "1em", viewBox: "0 0 384 512", children: /* @__PURE__ */ e.jsx("path", { fill: o.primaryColor, d: At }) }) }),
1781
- /* @__PURE__ */ e.jsx("div", { className: "apc-mpx-widget-secondary-icon", onClick: (d) => f("icon-heart-1"), children: /* @__PURE__ */ e.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", height: "1em", viewBox: "0 0 512 512", children: /* @__PURE__ */ e.jsx("path", { fill: o.primaryColor, d: It }) }) }),
1782
- /* @__PURE__ */ e.jsx("div", { className: "apc-mpx-widget-secondary-icon", onClick: (d) => f("icon-arrow-right-1"), children: /* @__PURE__ */ e.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", height: "1em", viewBox: "0 0 448 512", children: /* @__PURE__ */ e.jsx("path", { fill: o.primaryColor, d: Rr }) }) }),
1783
- /* @__PURE__ */ e.jsx("div", { className: "apc-mpx-widget-secondary-icon", onClick: (d) => f("icon-xmark"), children: /* @__PURE__ */ e.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", height: "1em", viewBox: "0 0 384 512", children: /* @__PURE__ */ e.jsx("path", { fill: o.primaryColor, d: Et }) }) }),
1784
- /* @__PURE__ */ e.jsx("div", { className: "apc-mpx-widget-secondary-icon", onClick: (d) => f("icon-cloud"), children: /* @__PURE__ */ e.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", height: "1em", viewBox: "0 0 640 512", children: /* @__PURE__ */ e.jsx("path", { fill: o.primaryColor, d: Tt }) }) }),
1785
- /* @__PURE__ */ e.jsx("div", { className: "apc-mpx-widget-secondary-icon", onClick: (d) => f("icon-smile"), children: /* @__PURE__ */ e.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", height: "1em", viewBox: "0 0 512 512", children: /* @__PURE__ */ e.jsx("path", { fill: o.primaryColor, d: Mt }) }) }),
1786
- /* @__PURE__ */ e.jsx("div", { className: "apc-mpx-widget-secondary-icon", onClick: (d) => f("icon-like"), children: /* @__PURE__ */ e.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", height: "1em", viewBox: "0 0 512 512", children: /* @__PURE__ */ e.jsx("path", { fill: o.primaryColor, d: zt }) }) })
1747
+ /* @__PURE__ */ e.jsx("div", { className: "apc-mpx-widget-secondary-icon", onClick: (d) => f("icon-info"), children: /* @__PURE__ */ e.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", height: "1em", viewBox: "0 0 512 512", children: /* @__PURE__ */ e.jsx("path", { fill: o.primaryColor, d: kt }) }) }),
1748
+ /* @__PURE__ */ e.jsx("div", { className: "apc-mpx-widget-secondary-icon", onClick: (d) => f("icon-cart"), children: /* @__PURE__ */ e.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", height: "1em", viewBox: "0 0 576 512", children: /* @__PURE__ */ e.jsx("path", { fill: o.primaryColor, d: St }) }) }),
1749
+ /* @__PURE__ */ e.jsx("div", { className: "apc-mpx-widget-secondary-icon", onClick: (d) => f("icon-comment"), children: /* @__PURE__ */ e.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", height: "1em", viewBox: "0 0 512 512", children: /* @__PURE__ */ e.jsx("path", { fill: o.primaryColor, d: Ct }) }) }),
1750
+ /* @__PURE__ */ e.jsx("div", { className: "apc-mpx-widget-secondary-icon", onClick: (d) => f("icon-location-map"), children: /* @__PURE__ */ e.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", height: "1em", viewBox: "0 0 384 512", children: /* @__PURE__ */ e.jsx("path", { fill: o.primaryColor, d: Nt }) }) }),
1751
+ /* @__PURE__ */ e.jsx("div", { className: "apc-mpx-widget-secondary-icon", onClick: (d) => f("icon-heart-1"), children: /* @__PURE__ */ e.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", height: "1em", viewBox: "0 0 512 512", children: /* @__PURE__ */ e.jsx("path", { fill: o.primaryColor, d: Ot }) }) }),
1752
+ /* @__PURE__ */ e.jsx("div", { className: "apc-mpx-widget-secondary-icon", onClick: (d) => f("icon-arrow-right-1"), children: /* @__PURE__ */ e.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", height: "1em", viewBox: "0 0 448 512", children: /* @__PURE__ */ e.jsx("path", { fill: o.primaryColor, d: Ar }) }) }),
1753
+ /* @__PURE__ */ e.jsx("div", { className: "apc-mpx-widget-secondary-icon", onClick: (d) => f("icon-xmark"), children: /* @__PURE__ */ e.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", height: "1em", viewBox: "0 0 384 512", children: /* @__PURE__ */ e.jsx("path", { fill: o.primaryColor, d: At }) }) }),
1754
+ /* @__PURE__ */ e.jsx("div", { className: "apc-mpx-widget-secondary-icon", onClick: (d) => f("icon-cloud"), children: /* @__PURE__ */ e.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", height: "1em", viewBox: "0 0 640 512", children: /* @__PURE__ */ e.jsx("path", { fill: o.primaryColor, d: It }) }) }),
1755
+ /* @__PURE__ */ e.jsx("div", { className: "apc-mpx-widget-secondary-icon", onClick: (d) => f("icon-smile"), children: /* @__PURE__ */ e.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", height: "1em", viewBox: "0 0 512 512", children: /* @__PURE__ */ e.jsx("path", { fill: o.primaryColor, d: Tt }) }) }),
1756
+ /* @__PURE__ */ e.jsx("div", { className: "apc-mpx-widget-secondary-icon", onClick: (d) => f("icon-like"), children: /* @__PURE__ */ e.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", height: "1em", viewBox: "0 0 512 512", children: /* @__PURE__ */ e.jsx("path", { fill: o.primaryColor, d: Et }) }) })
1787
1757
  ] }) });
1788
1758
  }
1789
- const Qe = ({ defaultValue: g, size: t, ariaLabel: o, onChange: i }) => {
1790
- const [l, u] = M(g), f = (d) => {
1791
- const b = d.target.value;
1792
- u(b), i(b);
1759
+ const Xe = ({ defaultValue: y, size: t, ariaLabel: o, onChange: i }) => {
1760
+ const [l, u] = M(y), f = (d) => {
1761
+ const j = d.target.value;
1762
+ u(j), i(j);
1793
1763
  };
1794
1764
  return /* @__PURE__ */ e.jsx(
1795
1765
  "input",
@@ -1805,8 +1775,8 @@ const Qe = ({ defaultValue: g, size: t, ariaLabel: o, onChange: i }) => {
1805
1775
  }
1806
1776
  );
1807
1777
  };
1808
- function Lt(g) {
1809
- const { apcCanvasInstance: t, theme: o } = g, [i, l] = T.useState(!1), u = T.useRef(null), f = () => {
1778
+ function zt(y) {
1779
+ const { apcCanvasInstance: t, theme: o } = y, [i, l] = E.useState(!1), u = E.useRef(null), f = () => {
1810
1780
  l((s) => !s);
1811
1781
  }, d = (s) => {
1812
1782
  u.current && u.current.contains(s.target) || l(!1);
@@ -1814,55 +1784,55 @@ function Lt(g) {
1814
1784
  ie(() => (document.addEventListener("mousedown", d), () => {
1815
1785
  document.removeEventListener("mousedown", d);
1816
1786
  }), []);
1817
- const b = (s, m) => {
1787
+ const j = (s, g) => {
1818
1788
  if (t.getActiveObject()) {
1819
- if (m === "family" && t.getActiveObject().set({
1789
+ if (g === "family" && t.getActiveObject().set({
1820
1790
  fontFamily: s
1821
- }), m === "bold" && t.getActiveObject().set({
1791
+ }), g === "bold" && t.getActiveObject().set({
1822
1792
  fontWeight: s
1823
- }), m === "italic" && t.getActiveObject().set({
1793
+ }), g === "italic" && t.getActiveObject().set({
1824
1794
  fontStyle: s
1825
- }), m === "underline" && t.getActiveObject().set({
1795
+ }), g === "underline" && t.getActiveObject().set({
1826
1796
  underline: s
1827
- }), m === "line-through" && t.getActiveObject().set({
1797
+ }), g === "line-through" && t.getActiveObject().set({
1828
1798
  linethrough: s
1829
- }), m === "overline" && t.getActiveObject().set({
1799
+ }), g === "overline" && t.getActiveObject().set({
1830
1800
  overline: s
1831
- }), m === "color" && t.getActiveObject().set({
1801
+ }), g === "color" && t.getActiveObject().set({
1832
1802
  fill: s
1833
- }), m === "shadow") {
1803
+ }), g === "shadow") {
1834
1804
  const h = document.getElementById("apc-text-shadow-color").value;
1835
- let j = document.getElementById("apc-text-shadow-horiz").value, n = document.getElementById("apc-text-shadow-vert").value, w = document.getElementById("apc-text-shadow-blur").value;
1836
- j || (j = 5), n || (n = 5), w || (w = 5), t.getActiveObject().set({
1837
- shadow: h + " " + j + " " + n + " " + w
1805
+ let v = document.getElementById("apc-text-shadow-horiz").value, n = document.getElementById("apc-text-shadow-vert").value, w = document.getElementById("apc-text-shadow-blur").value;
1806
+ v || (v = 5), n || (n = 5), w || (w = 5), t.getActiveObject().set({
1807
+ shadow: h + " " + v + " " + n + " " + w
1838
1808
  });
1839
1809
  }
1840
- if (m === "stroke") {
1810
+ if (g === "stroke") {
1841
1811
  const h = document.getElementById("apc-text-stroke-color").value;
1842
- let j = document.getElementById("apc-text-stroke-width").value;
1843
- j || (j = 1), t.getActiveObject().set({
1812
+ let v = document.getElementById("apc-text-stroke-width").value;
1813
+ v || (v = 1), t.getActiveObject().set({
1844
1814
  stroke: h,
1845
- strokeWidth: j
1815
+ strokeWidth: v
1846
1816
  });
1847
1817
  }
1848
- m === "bg-color" && t.getActiveObject().set({
1818
+ g === "bg-color" && t.getActiveObject().set({
1849
1819
  textBackgroundColor: s
1850
- }), m === "font-size" && t.getActiveObject().set({
1820
+ }), g === "font-size" && t.getActiveObject().set({
1851
1821
  fontSize: s
1852
1822
  }), t && t.renderAll();
1853
1823
  }
1854
1824
  }, a = (s) => {
1855
1825
  if (t.getActiveObject()) {
1856
- const m = parseFloat(s / 100);
1826
+ const g = parseFloat(s / 100);
1857
1827
  t.getActiveObject().set({
1858
- opacity: m.toFixed(1)
1828
+ opacity: g.toFixed(1)
1859
1829
  }), t && t.renderAll();
1860
1830
  }
1861
- }, v = ({ color: s, x: m, y: h, blur: j }) => {
1831
+ }, m = ({ color: s, x: g, y: h, blur: v }) => {
1862
1832
  if (t.getActiveObject()) {
1863
1833
  const n = t.getActiveObject().shadow;
1864
- s || (s = n ? n.color : "#6a45d2"), m || (m = n ? n.offsetX : 5), h || (h = n ? n.offsetY : 5), j || (j = n ? n.blur : 5), t.getActiveObject().set({
1865
- shadow: s + " " + m + " " + h + " " + j
1834
+ s || (s = n ? n.color : "#6a45d2"), g || (g = n ? n.offsetX : 5), h || (h = n ? n.offsetY : 5), v || (v = n ? n.blur : 5), t.getActiveObject().set({
1835
+ shadow: s + " " + g + " " + h + " " + v
1866
1836
  }), t && t.renderAll();
1867
1837
  }
1868
1838
  }, p = () => /* @__PURE__ */ e.jsxs("div", { className: "apc-mpx-widget-button-group-container", children: [
@@ -1884,7 +1854,7 @@ function Lt(g) {
1884
1854
  "path",
1885
1855
  {
1886
1856
  fill: o.primaryColor,
1887
- d: Yr
1857
+ d: Vr
1888
1858
  }
1889
1859
  )
1890
1860
  }
@@ -1903,14 +1873,14 @@ function Lt(g) {
1903
1873
  {
1904
1874
  style: { height: "25px", width: "25px", border: "none" },
1905
1875
  type: "color",
1906
- onChange: (s) => b(s.target.value, "bg-color")
1876
+ onChange: (s) => j(s.target.value, "bg-color")
1907
1877
  }
1908
1878
  )
1909
1879
  ] }),
1910
1880
  /* @__PURE__ */ e.jsxs("div", { style: { marginLeft: "10px" }, children: [
1911
1881
  " Opacity",
1912
1882
  /* @__PURE__ */ e.jsx("div", { children: /* @__PURE__ */ e.jsx(
1913
- Qe,
1883
+ Xe,
1914
1884
  {
1915
1885
  defaultValue: 100,
1916
1886
  size: "small",
@@ -1929,7 +1899,7 @@ function Lt(g) {
1929
1899
  {
1930
1900
  type: "text",
1931
1901
  style: { height: "22px", width: "20px" },
1932
- onChange: (s) => v({ blur: s.target.value })
1902
+ onChange: (s) => m({ blur: s.target.value })
1933
1903
  }
1934
1904
  )
1935
1905
  ] }),
@@ -1940,31 +1910,31 @@ function Lt(g) {
1940
1910
  {
1941
1911
  style: { height: "25px", width: "25px", border: "none" },
1942
1912
  type: "color",
1943
- onChange: (s) => v({ color: s.target.value })
1913
+ onChange: (s) => m({ color: s.target.value })
1944
1914
  }
1945
1915
  )
1946
1916
  ] }),
1947
1917
  /* @__PURE__ */ e.jsxs("div", { style: { marginLeft: "10px" }, children: [
1948
1918
  " Offset X",
1949
1919
  /* @__PURE__ */ e.jsx("div", { children: /* @__PURE__ */ e.jsx(
1950
- Qe,
1920
+ Xe,
1951
1921
  {
1952
1922
  defaultValue: 0,
1953
1923
  size: "small",
1954
1924
  "aria-label": "Opacity",
1955
- onChange: (s) => v({ x: s })
1925
+ onChange: (s) => m({ x: s })
1956
1926
  }
1957
1927
  ) })
1958
1928
  ] }),
1959
1929
  /* @__PURE__ */ e.jsxs("div", { style: { marginLeft: "10px" }, children: [
1960
1930
  " Offset Y",
1961
1931
  /* @__PURE__ */ e.jsx("div", { children: /* @__PURE__ */ e.jsx(
1962
- Qe,
1932
+ Xe,
1963
1933
  {
1964
1934
  defaultValue: 0,
1965
1935
  size: "small",
1966
1936
  "aria-label": "Opacity",
1967
- onChange: (s) => v({ y: s })
1937
+ onChange: (s) => m({ y: s })
1968
1938
  }
1969
1939
  ) })
1970
1940
  ] })
@@ -1972,13 +1942,13 @@ function Lt(g) {
1972
1942
  ] })
1973
1943
  ] })
1974
1944
  ] });
1975
- return /* @__PURE__ */ e.jsx(T.Fragment, { children: /* @__PURE__ */ e.jsxs("div", { style: { display: "flex", flexDirection: "row", color: "#ffffff" }, children: [
1945
+ return /* @__PURE__ */ e.jsx(E.Fragment, { children: /* @__PURE__ */ e.jsxs("div", { style: { display: "flex", flexDirection: "row", color: "#ffffff" }, children: [
1976
1946
  /* @__PURE__ */ e.jsx("div", { style: { marginTop: "4px", marginLeft: "2px" }, children: /* @__PURE__ */ e.jsx(
1977
1947
  "input",
1978
1948
  {
1979
1949
  style: { height: "20px", width: "30px", border: "solid 0px #ffffff" },
1980
1950
  type: "color",
1981
- onChange: (s) => b(s.target.value, "color")
1951
+ onChange: (s) => j(s.target.value, "color")
1982
1952
  }
1983
1953
  ) }),
1984
1954
  " ",
@@ -1987,7 +1957,7 @@ function Lt(g) {
1987
1957
  {
1988
1958
  style: { height: "20px", border: "solid 0px #ffffff" },
1989
1959
  id: "ffamily",
1990
- onChange: (s) => b(s.target.value, "family"),
1960
+ onChange: (s) => j(s.target.value, "family"),
1991
1961
  children: [
1992
1962
  /* @__PURE__ */ e.jsx("option", { value: "comic sans ms", children: "Comic Sans MS" }),
1993
1963
  /* @__PURE__ */ e.jsx("option", { value: "frankruehl", children: "FrankRuehl" }),
@@ -2043,7 +2013,7 @@ function Lt(g) {
2043
2013
  defaultValue: 40,
2044
2014
  style: { width: "50px", height: "20px", border: "solid 0px #ffffff" },
2045
2015
  type: "number",
2046
- onChange: (s) => b(s.target.value, "font-size")
2016
+ onChange: (s) => j(s.target.value, "font-size")
2047
2017
  }
2048
2018
  ) }),
2049
2019
  /* @__PURE__ */ e.jsx(
@@ -2051,7 +2021,7 @@ function Lt(g) {
2051
2021
  {
2052
2022
  style: { marginTop: "4px", marginLeft: "2px", cursor: "pointer" },
2053
2023
  role: "button",
2054
- onClick: (s) => t.getActiveObject().fontWeight === "normal" ? b("bold", "bold") : b("normal", "bold"),
2024
+ onClick: (s) => t.getActiveObject().fontWeight === "normal" ? j("bold", "bold") : j("normal", "bold"),
2055
2025
  children: /* @__PURE__ */ e.jsx(
2056
2026
  "svg",
2057
2027
  {
@@ -2075,7 +2045,7 @@ function Lt(g) {
2075
2045
  {
2076
2046
  style: { marginTop: "4px", marginLeft: "2px", cursor: "pointer" },
2077
2047
  role: "button",
2078
- onClick: (s) => t.getActiveObject().fontStyle === "normal" ? b("italic", "italic") : b("normal", "italic"),
2048
+ onClick: (s) => t.getActiveObject().fontStyle === "normal" ? j("italic", "italic") : j("normal", "italic"),
2079
2049
  children: /* @__PURE__ */ e.jsx(
2080
2050
  "svg",
2081
2051
  {
@@ -2094,7 +2064,7 @@ function Lt(g) {
2094
2064
  )
2095
2065
  }
2096
2066
  ),
2097
- /* @__PURE__ */ e.jsx("div", { style: { marginTop: "4px", marginLeft: "2px", cursor: "pointer" }, role: "button", onClick: (s) => t.getActiveObject().underline ? b(!1, "underline") : b(!0, "underline"), children: /* @__PURE__ */ e.jsx(
2067
+ /* @__PURE__ */ e.jsx("div", { style: { marginTop: "4px", marginLeft: "2px", cursor: "pointer" }, role: "button", onClick: (s) => t.getActiveObject().underline ? j(!1, "underline") : j(!0, "underline"), children: /* @__PURE__ */ e.jsx(
2098
2068
  "svg",
2099
2069
  {
2100
2070
  xmlns: "http://www.w3.org/2000/svg",
@@ -2110,7 +2080,7 @@ function Lt(g) {
2110
2080
  )
2111
2081
  }
2112
2082
  ) }),
2113
- /* @__PURE__ */ e.jsx("div", { style: { marginTop: "4px", marginLeft: "2px", cursor: "pointer" }, role: "button", "aria-label": "Italics", onClick: (s) => t.getActiveObject().linethrough ? b(!1, "line-through") : b(!0, "line-through"), children: /* @__PURE__ */ e.jsx(
2083
+ /* @__PURE__ */ e.jsx("div", { style: { marginTop: "4px", marginLeft: "2px", cursor: "pointer" }, role: "button", "aria-label": "Italics", onClick: (s) => t.getActiveObject().linethrough ? j(!1, "line-through") : j(!0, "line-through"), children: /* @__PURE__ */ e.jsx(
2114
2084
  "svg",
2115
2085
  {
2116
2086
  xmlns: "http://www.w3.org/2000/svg",
@@ -2129,17 +2099,17 @@ function Lt(g) {
2129
2099
  /* @__PURE__ */ e.jsx("div", { children: p() })
2130
2100
  ] }) });
2131
2101
  }
2132
- function Ke(g) {
2133
- const { apcCanvasInstance: t, theme: o } = g, i = T.useRef(null), [l, u] = T.useState(!1), f = () => {
2102
+ function Ye(y) {
2103
+ const { apcCanvasInstance: t, theme: o } = y, i = E.useRef(null), [l, u] = E.useState(!1), f = () => {
2134
2104
  u((p) => !p);
2135
- }, d = (p, y) => {
2105
+ }, d = (p, b) => {
2136
2106
  if (t && t.getActiveObject()) {
2137
2107
  if (p === "bg-color" && t.getActiveObject().set({
2138
- fill: y
2108
+ fill: b
2139
2109
  }), p === "border-color" && t.getActiveObject().set({
2140
- stroke: y
2110
+ stroke: b
2141
2111
  }), p === "gradient-bg-color1" || p === "gradient-bg-color2") {
2142
- let s = document.getElementById("apc-object-bg-gradient-color1").value, m = document.getElementById("apc-object-bg-gradient-color2").value;
2112
+ let s = document.getElementById("apc-object-bg-gradient-color1").value, g = document.getElementById("apc-object-bg-gradient-color2").value;
2143
2113
  const h = new B.Gradient({
2144
2114
  type: "linear",
2145
2115
  gradientUnits: "pixels",
@@ -2147,7 +2117,7 @@ function Ke(g) {
2147
2117
  coords: { x1: 0, y1: 0, x2: 0, y2: t.getActiveObject().height },
2148
2118
  colorStops: [
2149
2119
  { offset: 0, color: s || "#000" },
2150
- { offset: 1, color: m || "#fff" }
2120
+ { offset: 1, color: g || "#fff" }
2151
2121
  ]
2152
2122
  });
2153
2123
  t.getActiveObject().set({
@@ -2156,22 +2126,22 @@ function Ke(g) {
2156
2126
  }
2157
2127
  t && t.renderAll();
2158
2128
  }
2159
- }, b = (p) => {
2129
+ }, j = (p) => {
2160
2130
  if (t.getActiveObject()) {
2161
- const y = parseFloat(p / 100);
2131
+ const b = parseFloat(p / 100);
2162
2132
  t.getActiveObject().set({
2163
- opacity: y.toFixed(1)
2133
+ opacity: b.toFixed(1)
2164
2134
  }), t && t.renderAll();
2165
2135
  }
2166
- }, a = ({ color: p, x: y, y: s, blur: m }) => {
2136
+ }, a = ({ color: p, x: b, y: s, blur: g }) => {
2167
2137
  if (t.getActiveObject()) {
2168
2138
  const h = t.getActiveObject().shadow;
2169
- p || (p = h ? h.color : "#6a45d2"), y || (y = h ? h.offsetX : 5), s || (s = h ? h.offsetY : 5), m || (m = h ? h.blur : 5), t.getActiveObject().set({
2170
- shadow: p + " " + y + " " + s + " " + m
2139
+ p || (p = h ? h.color : "#6a45d2"), b || (b = h ? h.offsetX : 5), s || (s = h ? h.offsetY : 5), g || (g = h ? h.blur : 5), t.getActiveObject().set({
2140
+ shadow: p + " " + b + " " + s + " " + g
2171
2141
  }), t && t.renderAll();
2172
2142
  }
2173
2143
  };
2174
- return /* @__PURE__ */ e.jsx(T.Fragment, { children: /* @__PURE__ */ e.jsxs("div", { className: "apc-mpx-widget-button-group-container", children: [
2144
+ return /* @__PURE__ */ e.jsx(E.Fragment, { children: /* @__PURE__ */ e.jsxs("div", { className: "apc-mpx-widget-button-group-container", children: [
2175
2145
  /* @__PURE__ */ e.jsx(
2176
2146
  "button",
2177
2147
  {
@@ -2189,7 +2159,7 @@ function Ke(g) {
2189
2159
  "path",
2190
2160
  {
2191
2161
  fill: o.primaryColor,
2192
- d: Kr
2162
+ d: Ur
2193
2163
  }
2194
2164
  )
2195
2165
  }
@@ -2238,12 +2208,12 @@ function Ke(g) {
2238
2208
  /* @__PURE__ */ e.jsx("div", { style: { marginLeft: "10px" }, children: /* @__PURE__ */ e.jsxs("div", { children: [
2239
2209
  "Opacity: ",
2240
2210
  /* @__PURE__ */ e.jsx(
2241
- Qe,
2211
+ Xe,
2242
2212
  {
2243
2213
  defaultValue: 100,
2244
2214
  size: "small",
2245
2215
  "aria-label": "Opacity",
2246
- onChange: (p) => b(p)
2216
+ onChange: (p) => j(p)
2247
2217
  }
2248
2218
  )
2249
2219
  ] }) }),
@@ -2271,35 +2241,35 @@ function Ke(g) {
2271
2241
  ] }),
2272
2242
  /* @__PURE__ */ e.jsx("div", { style: { marginLeft: "10px" }, children: /* @__PURE__ */ e.jsxs("div", { children: [
2273
2243
  "Offset X: ",
2274
- /* @__PURE__ */ e.jsx(Qe, { defaultValue: 0, size: "small", "aria-label": "Opacity", onChange: (p) => a({ x: p }) })
2244
+ /* @__PURE__ */ e.jsx(Xe, { defaultValue: 0, size: "small", "aria-label": "Opacity", onChange: (p) => a({ x: p }) })
2275
2245
  ] }) }),
2276
2246
  /* @__PURE__ */ e.jsx("div", { style: { marginLeft: "10px" }, children: /* @__PURE__ */ e.jsxs("div", { children: [
2277
2247
  "Offset Y: ",
2278
- /* @__PURE__ */ e.jsx(Qe, { defaultValue: 0, size: "small", "aria-label": "Opacity", onChange: (p) => a({ y: p }) })
2248
+ /* @__PURE__ */ e.jsx(Xe, { defaultValue: 0, size: "small", "aria-label": "Opacity", onChange: (p) => a({ y: p }) })
2279
2249
  ] }) })
2280
2250
  ] }) })
2281
2251
  ] })
2282
2252
  ] })
2283
2253
  ] }) });
2284
2254
  }
2285
- function xn(g) {
2286
- const { apcCanvasInstance: t, apiEndpoint: o, apiKey: i } = g, [l, u] = T.useState("art"), [f, d] = T.useState(), [b, a] = T.useState(!1), v = o + "/api/v1/designer";
2287
- T.useEffect(() => {
2255
+ function ln(y) {
2256
+ const { apcCanvasInstance: t, apiEndpoint: o, apiKey: i } = y, [l, u] = E.useState("art"), [f, d] = E.useState(), [j, a] = E.useState(!1), m = o + "/api/v1/designer";
2257
+ E.useEffect(() => {
2288
2258
  p();
2289
2259
  }, []);
2290
2260
  const p = () => {
2291
2261
  a(!0);
2292
2262
  const h = {
2293
2263
  "X-Api-Key": i
2294
- }, j = `${v}/get-quote/${l}`;
2295
- ye.get(j, { headers: h }).then((n) => {
2264
+ }, v = `${m}/get-quote/${l}`;
2265
+ ye.get(v, { headers: h }).then((n) => {
2296
2266
  var w;
2297
2267
  a(!1), d((w = n.data) == null ? void 0 : w.object);
2298
2268
  }).catch((n) => {
2299
2269
  console.error("Error fetching data:", n), a(!1);
2300
2270
  });
2301
- }, y = (h, j, n) => {
2302
- const w = new B.Textbox(j, {
2271
+ }, b = (h, v, n) => {
2272
+ const w = new B.Textbox(v, {
2303
2273
  width: 500,
2304
2274
  left: 100,
2305
2275
  top: 200,
@@ -2312,16 +2282,16 @@ function xn(g) {
2312
2282
  _.top = w.top + w.height + 10, _.left = w.left, t.add(w), t.add(_), t.setActiveObject(w);
2313
2283
  }, s = (h) => {
2314
2284
  a(!0), u(h), p();
2315
- }, m = () => f ? /* @__PURE__ */ e.jsx("div", { style: { display: "flex", flexDirection: "column", gap: 5 }, children: f.map((h, j) => /* @__PURE__ */ e.jsxs("div", { onClick: (n) => y(n, h.quote, h.author), style: { cursor: "pointer", padding: "3px", textAlign: "left", color: "#210080", fontFamily: "ui-monospace", border: "1px solid #dedcdc", borderRadius: "8px" }, children: [
2285
+ }, g = () => f ? /* @__PURE__ */ e.jsx("div", { style: { display: "flex", flexDirection: "column", gap: 5 }, children: f.map((h, v) => /* @__PURE__ */ e.jsxs("div", { onClick: (n) => b(n, h.quote, h.author), style: { cursor: "pointer", padding: "3px", textAlign: "left", color: "#210080", fontFamily: "ui-monospace", border: "1px solid #dedcdc", borderRadius: "8px" }, children: [
2316
2286
  /* @__PURE__ */ e.jsx("div", { children: h.quote }),
2317
2287
  /* @__PURE__ */ e.jsx("div", { children: /* @__PURE__ */ e.jsx("strong", { children: /* @__PURE__ */ e.jsx("i", { children: h.author }) }) }),
2318
2288
  /* @__PURE__ */ e.jsx("br", {})
2319
- ] }, j)) }) : null;
2320
- return /* @__PURE__ */ e.jsxs(T.Fragment, { children: [
2289
+ ] }, v)) }) : null;
2290
+ return /* @__PURE__ */ e.jsxs(E.Fragment, { children: [
2321
2291
  /* @__PURE__ */ e.jsx("h3", { children: "Quotes" }),
2322
2292
  /* @__PURE__ */ e.jsx("br", {}),
2323
2293
  /* @__PURE__ */ e.jsx("br", {}),
2324
- /* @__PURE__ */ e.jsx("div", { children: m() }),
2294
+ /* @__PURE__ */ e.jsx("div", { children: g() }),
2325
2295
  /* @__PURE__ */ e.jsx("br", {}),
2326
2296
  /* @__PURE__ */ e.jsx("br", {}),
2327
2297
  /* @__PURE__ */ e.jsx("br", {}),
@@ -2745,14 +2715,14 @@ function xn(g) {
2745
2715
  ] })
2746
2716
  ] });
2747
2717
  }
2748
- function gn(g) {
2749
- const { apcCanvasInstance: t, theme: o, apiKey: i, apiEndpoint: l, updateActiveSection: u, reloadTabs: f, currentTabNo: d, isMobile: b, closeMobileModalSecondaryPanel: a } = g, [v, p] = T.useState("background"), [y, s] = T.useState(!1), [m, h] = T.useState(), j = l + "/api/v1/designer";
2750
- T.useEffect(() => {
2718
+ function dn(y) {
2719
+ const { apcCanvasInstance: t, theme: o, apiKey: i, apiEndpoint: l, updateActiveSection: u, reloadTabs: f, currentTabNo: d, isMobile: j, closeMobileModalSecondaryPanel: a } = y, [m, p] = E.useState("background"), [b, s] = E.useState(!1), [g, h] = E.useState(), v = l + "/api/v1/designer";
2720
+ E.useEffect(() => {
2751
2721
  w();
2752
2722
  }, []);
2753
- const n = (L) => {
2754
- const P = document.getElementById("img-default-id"), I = new B.Image(P, (E) => {
2755
- E.set({
2723
+ const n = (R) => {
2724
+ const F = document.getElementById("img-default-id"), I = new B.Image(F, (T) => {
2725
+ T.set({
2756
2726
  left: 100,
2757
2727
  top: 200,
2758
2728
  scaleX: 0.5,
@@ -2760,28 +2730,28 @@ function gn(g) {
2760
2730
  imageSmoothing: !0
2761
2731
  });
2762
2732
  });
2763
- t.add(I), b && a(!0);
2733
+ t.add(I), j && a(!0);
2764
2734
  }, w = () => {
2765
2735
  s(!0);
2766
- const L = {
2736
+ const R = {
2767
2737
  "X-Api-Key": i
2768
- }, P = `${j}/get-images/${v}`;
2769
- ye.get(P, { headers: L }).then((I) => {
2770
- var E;
2771
- s(!1), h((E = I.data) == null ? void 0 : E.object);
2738
+ }, F = `${v}/get-images/${m}`;
2739
+ ye.get(F, { headers: R }).then((I) => {
2740
+ var T;
2741
+ s(!1), h((T = I.data) == null ? void 0 : T.object);
2772
2742
  }).catch((I) => {
2773
2743
  console.error("Error fetching data:", I), s(!1);
2774
2744
  });
2775
- }, _ = (L) => {
2776
- B.Image.fromURL(L, function(P) {
2777
- P.width = t.width, P.height = t.height, P.scaleToWidth(t.width), P.scaleToHeight(t.height), t.setBackgroundImage(P);
2778
- const I = localStorage.getItem("apc_x_activeTab"), E = JSON.stringify(t);
2779
- De(I, "general", E, null).then((V) => {
2745
+ }, _ = (R) => {
2746
+ B.Image.fromURL(R, function(F) {
2747
+ F.width = t.width, F.height = t.height, F.scaleToWidth(t.width), F.scaleToHeight(t.height), t.setBackgroundImage(F);
2748
+ const I = localStorage.getItem("apc_x_activeTab"), T = JSON.stringify(t);
2749
+ De(I, "general", T, null).then((V) => {
2780
2750
  f(d + 1), t && t.renderAll();
2781
2751
  });
2782
2752
  }, { crossOrigin: "anonymous" });
2783
- }, A = () => m ? /* @__PURE__ */ e.jsx("div", { children: m.map((L) => /* @__PURE__ */ e.jsx("div", { onClick: () => _(L.urls.regular), style: { cursor: "pointer" }, children: /* @__PURE__ */ e.jsx("img", { height: 300, width: 300, src: L.urls.regular, alt: L.description || "No description" }) }, L.id)) }) : null;
2784
- return /* @__PURE__ */ e.jsxs(T.Fragment, { children: [
2753
+ }, A = () => g ? /* @__PURE__ */ e.jsx("div", { children: g.map((R) => /* @__PURE__ */ e.jsx("div", { onClick: () => _(R.urls.regular), style: { cursor: "pointer" }, children: /* @__PURE__ */ e.jsx("img", { height: 300, width: 300, src: R.urls.regular, alt: R.description || "No description" }) }, R.id)) }) : null;
2754
+ return /* @__PURE__ */ e.jsxs(E.Fragment, { children: [
2785
2755
  /* @__PURE__ */ e.jsx("br", {}),
2786
2756
  /* @__PURE__ */ e.jsx("br", {}),
2787
2757
  /* @__PURE__ */ e.jsxs("div", { style: { cursor: "pointer" }, onClick: () => n(), children: [
@@ -2798,7 +2768,7 @@ function gn(g) {
2798
2768
  "input",
2799
2769
  {
2800
2770
  type: "text",
2801
- onChange: (L) => p(L.target.value),
2771
+ onChange: (R) => p(R.target.value),
2802
2772
  className: "apc-mpc-widget-input",
2803
2773
  style: { border: `solid 3px ${o.primaryColor}` }
2804
2774
  }
@@ -2815,7 +2785,7 @@ function gn(g) {
2815
2785
  backgroundColor: o.primaryColor,
2816
2786
  color: "#ffffff"
2817
2787
  },
2818
- children: y ? "...Processing" : "Search"
2788
+ children: b ? "...Processing" : "Search"
2819
2789
  }
2820
2790
  )
2821
2791
  ] }),
@@ -2824,29 +2794,29 @@ function gn(g) {
2824
2794
  A()
2825
2795
  ] });
2826
2796
  }
2827
- function mn(g) {
2828
- const [t, o] = T.useState(""), [i, l] = T.useState(""), [u, f] = T.useState(!1), [d, b] = T.useState(!1), [a, v] = T.useState(!1), { apcCanvasInstance: p, theme: y, isMobile: s, closeMobileModalSecondaryPanel: m, apiKey: h, apiEndpoint: j } = g, n = `${j}/api/v1/designer`, w = sessionStorage.getItem("apc_x_sub_status");
2829
- T.useEffect(() => {
2797
+ function hn(y) {
2798
+ const [t, o] = E.useState(""), [i, l] = E.useState(""), [u, f] = E.useState(!1), [d, j] = E.useState(!1), [a, m] = E.useState(!1), { apcCanvasInstance: p, theme: b, isMobile: s, closeMobileModalSecondaryPanel: g, apiKey: h, apiEndpoint: v } = y, n = `${v}/api/v1/designer`, w = sessionStorage.getItem("apc_x_sub_status");
2799
+ E.useEffect(() => {
2830
2800
  (async () => {
2831
- w === "active" ? (b(!0), v(!0)) : (f(!0), await _());
2801
+ w === "active" ? (j(!0), m(!0)) : (f(!0), await _());
2832
2802
  })();
2833
2803
  }, []);
2834
2804
  const _ = () => {
2835
2805
  f(!0);
2836
- const P = `${n}/get-subscription-status/${h}`;
2837
- ye.get(P).then((I) => {
2838
- I.data.object && I.data.object === "active" && (sessionStorage.setItem("apc_x_sub_status", "active"), b(!0));
2806
+ const F = `${n}/get-subscription-status/${h}`;
2807
+ ye.get(F).then((I) => {
2808
+ I.data.object && I.data.object === "active" && (sessionStorage.setItem("apc_x_sub_status", "active"), j(!0));
2839
2809
  }).catch((I) => {
2840
2810
  sessionStorage.setItem("apc_x_sub_status", "");
2841
2811
  }).finally(() => {
2842
- f(!1), v(!0);
2812
+ f(!1), m(!0);
2843
2813
  });
2844
2814
  }, A = () => {
2845
- Xt.toDataURL(t, { width: 300 }, (P, I) => {
2846
- P && console.error(P), l(I);
2815
+ Jt.toDataURL(t, { width: 300 }, (F, I) => {
2816
+ F && console.error(F), l(I);
2847
2817
  });
2848
- }, L = (P) => {
2849
- const I = document.getElementById("apc-qr-code-img"), E = new B.Image(I, (V) => {
2818
+ }, R = (F) => {
2819
+ const I = document.getElementById("apc-qr-code-img"), T = new B.Image(I, (V) => {
2850
2820
  V.set({
2851
2821
  left: 200,
2852
2822
  top: 200,
@@ -2855,9 +2825,9 @@ function mn(g) {
2855
2825
  imageSmoothing: !0
2856
2826
  });
2857
2827
  });
2858
- p.add(E), p.setActiveObject(E), s && m(!0);
2828
+ p.add(T), p.setActiveObject(T), s && g(!0);
2859
2829
  };
2860
- return !d && !u && a ? /* @__PURE__ */ e.jsx(ct, {}) : d && !u && a ? /* @__PURE__ */ e.jsxs(T.Fragment, { children: [
2830
+ return !d && !u && a ? /* @__PURE__ */ e.jsx(it, {}) : d && !u && a ? /* @__PURE__ */ e.jsxs(E.Fragment, { children: [
2861
2831
  /* @__PURE__ */ e.jsx("br", {}),
2862
2832
  /* @__PURE__ */ e.jsx("br", {}),
2863
2833
  "Enter data such as url",
@@ -2866,9 +2836,9 @@ function mn(g) {
2866
2836
  "input",
2867
2837
  {
2868
2838
  className: "apc-mpc-widget-input",
2869
- style: { border: `solid 3px ${y.primaryColor}` },
2839
+ style: { border: `solid 3px ${b.primaryColor}` },
2870
2840
  type: "text",
2871
- onChange: (P) => o(P.target.value)
2841
+ onChange: (F) => o(F.target.value)
2872
2842
  }
2873
2843
  ),
2874
2844
  /* @__PURE__ */ e.jsx("br", {}),
@@ -2877,7 +2847,7 @@ function mn(g) {
2877
2847
  "button",
2878
2848
  {
2879
2849
  className: "apc-mpc-widget-btn",
2880
- style: { backgroundColor: y.primaryColor, color: "#ffffff" },
2850
+ style: { backgroundColor: b.primaryColor, color: "#ffffff" },
2881
2851
  disabled: !t,
2882
2852
  onClick: A,
2883
2853
  children: "Generate QR code"
@@ -2889,7 +2859,7 @@ function mn(g) {
2889
2859
  "div",
2890
2860
  {
2891
2861
  className: "generated-view",
2892
- onClick: () => L(),
2862
+ onClick: () => R(),
2893
2863
  style: { cursor: "pointer" },
2894
2864
  children: [
2895
2865
  /* @__PURE__ */ e.jsx("img", { src: i, alt: "qr code", id: "apc-qr-code-img" }),
@@ -2897,16 +2867,16 @@ function mn(g) {
2897
2867
  ]
2898
2868
  }
2899
2869
  )
2900
- ] }) : /* @__PURE__ */ e.jsx("div", { children: /* @__PURE__ */ e.jsx(at, {}) });
2870
+ ] }) : /* @__PURE__ */ e.jsx("div", { children: /* @__PURE__ */ e.jsx(ct, {}) });
2901
2871
  }
2902
- function vn(g) {
2903
- const { apcCanvasInstance: t, theme: o, isMobile: i, closeMobileModalSecondaryPanel: l, apiKey: u, apiEndpoint: f } = g, [d, b] = T.useState(""), [a, v] = T.useState(null), [p, y] = T.useState("CODE128"), s = T.useRef(null), [m, h] = T.useState(""), [j, n] = T.useState(!1), [w, _] = T.useState(!1), [A, L] = M(!1), P = sessionStorage.getItem("apc_x_sub_status"), I = `${f}/api/v1/designer`;
2904
- T.useEffect(() => {
2872
+ function pn(y) {
2873
+ const { apcCanvasInstance: t, theme: o, isMobile: i, closeMobileModalSecondaryPanel: l, apiKey: u, apiEndpoint: f } = y, [d, j] = E.useState(""), [a, m] = E.useState(null), [p, b] = E.useState("CODE128"), s = E.useRef(null), [g, h] = E.useState(""), [v, n] = E.useState(!1), [w, _] = E.useState(!1), [A, R] = M(!1), F = sessionStorage.getItem("apc_x_sub_status"), I = `${f}/api/v1/designer`;
2874
+ E.useEffect(() => {
2905
2875
  (async () => {
2906
- P === "active" ? (_(!0), L(!0)) : (n(!0), await E());
2876
+ F === "active" ? (_(!0), R(!0)) : (n(!0), await T());
2907
2877
  })();
2908
2878
  }, []);
2909
- const E = () => {
2879
+ const T = () => {
2910
2880
  n(!0);
2911
2881
  const Y = `${I}/get-subscription-status/${u}`;
2912
2882
  ye.get(Y).then((ce) => {
@@ -2914,12 +2884,12 @@ function vn(g) {
2914
2884
  }).catch((ce) => {
2915
2885
  sessionStorage.setItem("apc_x_sub_status", "");
2916
2886
  }).finally(() => {
2917
- n(!1), L(!0);
2887
+ n(!1), R(!0);
2918
2888
  });
2919
2889
  }, V = () => {
2920
- v(
2890
+ m(
2921
2891
  /* @__PURE__ */ e.jsx(
2922
- Qt,
2892
+ Yt,
2923
2893
  {
2924
2894
  value: d,
2925
2895
  format: p,
@@ -2943,7 +2913,7 @@ function vn(g) {
2943
2913
  }
2944
2914
  i && l(!0);
2945
2915
  };
2946
- return !w && !j && A ? /* @__PURE__ */ e.jsx(ct, {}) : w && !j && A ? /* @__PURE__ */ e.jsxs(T.Fragment, { children: [
2916
+ return !w && !v && A ? /* @__PURE__ */ e.jsx(it, {}) : w && !v && A ? /* @__PURE__ */ e.jsxs(E.Fragment, { children: [
2947
2917
  /* @__PURE__ */ e.jsx("br", {}),
2948
2918
  /* @__PURE__ */ e.jsx("br", {}),
2949
2919
  "Enter number",
@@ -2951,7 +2921,7 @@ function vn(g) {
2951
2921
  "input",
2952
2922
  {
2953
2923
  type: "text",
2954
- onChange: (Y) => b(Y.target.value),
2924
+ onChange: (Y) => j(Y.target.value),
2955
2925
  className: "apc-mpc-widget-input",
2956
2926
  style: { border: `solid 3px ${o.primaryColor}` }
2957
2927
  }
@@ -2963,7 +2933,7 @@ function vn(g) {
2963
2933
  "select",
2964
2934
  {
2965
2935
  value: p,
2966
- onChange: (Y) => y(Y.target.value),
2936
+ onChange: (Y) => b(Y.target.value),
2967
2937
  className: "apc-mpc-widget-input",
2968
2938
  style: { border: `solid 3px ${o.primaryColor}` },
2969
2939
  children: [
@@ -3005,30 +2975,30 @@ function vn(g) {
3005
2975
  ) })
3006
2976
  ] }) : /* @__PURE__ */ e.jsxs("div", { children: [
3007
2977
  " ",
3008
- /* @__PURE__ */ e.jsx(at, {})
2978
+ /* @__PURE__ */ e.jsx(ct, {})
3009
2979
  ] });
3010
2980
  }
3011
- function jn(g) {
3012
- const { apcCanvasInstance: t, theme: o } = g, [i, l] = T.useState(), [u, f] = T.useState(), [d, b] = T.useState(""), a = (y, s) => {
2981
+ function un(y) {
2982
+ const { apcCanvasInstance: t, theme: o } = y, [i, l] = E.useState(), [u, f] = E.useState(), [d, j] = E.useState(""), a = (b, s) => {
3013
2983
  if (t) {
3014
- if (y === "bg-color" && s.target.value && t.set({
2984
+ if (b === "bg-color" && s.target.value && t.set({
3015
2985
  backgroundColor: s.target.value
3016
- }), y === "image" && s.target.value) {
3017
- const m = s.target.files[0], h = new FileReader();
3018
- h.onload = function(j) {
3019
- const n = j.target.result;
2986
+ }), b === "image" && s.target.value) {
2987
+ const g = s.target.files[0], h = new FileReader();
2988
+ h.onload = function(v) {
2989
+ const n = v.target.result;
3020
2990
  B.Image.fromURL(n, function(w) {
3021
2991
  t.setBackgroundImage(w, t.renderAll.bind(t), {
3022
2992
  //scaleX: apcCanvasInstance,
3023
2993
  //scaleY: apcCanvasInstance.height
3024
2994
  });
3025
2995
  });
3026
- }, h.readAsDataURL(m);
2996
+ }, h.readAsDataURL(g);
3027
2997
  }
3028
- y === "height" && s.target.value && (l(s.target.value), t.setHeight(s.target.value)), y === "width" && s.target.value && (f(s.target.value), t.setWidth(s.target.value)), t && t.renderAll();
2998
+ b === "height" && s.target.value && (l(s.target.value), t.setHeight(s.target.value)), b === "width" && s.target.value && (f(s.target.value), t.setWidth(s.target.value)), t && t.renderAll();
3029
2999
  }
3030
- }, v = (y, s, m) => {
3031
- f(s), l(y), t.setWidth(s), t.setHeight(y), b(m);
3000
+ }, m = (b, s, g) => {
3001
+ f(s), l(b), t.setWidth(s), t.setHeight(b), j(g);
3032
3002
  }, p = () => /* @__PURE__ */ e.jsxs("div", { children: [
3033
3003
  /* @__PURE__ */ e.jsx("br", {}),
3034
3004
  /* @__PURE__ */ e.jsx("br", {}),
@@ -3039,7 +3009,7 @@ function jn(g) {
3039
3009
  {
3040
3010
  type: "number",
3041
3011
  value: t.height,
3042
- onChange: (y) => a("height", y),
3012
+ onChange: (b) => a("height", b),
3043
3013
  className: "apc-mpc-widget-input",
3044
3014
  style: { border: `solid 3px ${o.primaryColor}` }
3045
3015
  }
@@ -3054,7 +3024,7 @@ function jn(g) {
3054
3024
  color: "info",
3055
3025
  type: "number",
3056
3026
  value: t.width,
3057
- onChange: (y) => a("width", y),
3027
+ onChange: (b) => a("width", b),
3058
3028
  className: "apc-mpc-widget-input",
3059
3029
  style: { border: `solid 3px ${o.primaryColor}` }
3060
3030
  }
@@ -3072,7 +3042,7 @@ function jn(g) {
3072
3042
  {
3073
3043
  style: { backgroundColor: "#e0e0e0" },
3074
3044
  className: "apc-mpx-widget-custom-chip",
3075
- onClick: () => v(1440, 2560, "YOUC"),
3045
+ onClick: () => m(1440, 2560, "YOUC"),
3076
3046
  children: [
3077
3047
  d === "YOUC" ? /* @__PURE__ */ e.jsx("span", { style: { color: "green" }, children: "✓" }) : null,
3078
3048
  " Youtube Channel : 2560 x 1440 px"
@@ -3085,7 +3055,7 @@ function jn(g) {
3085
3055
  {
3086
3056
  style: { backgroundColor: "#e0e0e0" },
3087
3057
  className: "apc-mpx-widget-custom-chip",
3088
- onClick: () => v(1080, 1920, "FULLHD"),
3058
+ onClick: () => m(1080, 1920, "FULLHD"),
3089
3059
  children: [
3090
3060
  d === "FULLHD" ? /* @__PURE__ */ e.jsx("span", { style: { color: "green" }, children: "✓" }) : null,
3091
3061
  "Full HD : 1920 x 1080 px"
@@ -3098,7 +3068,7 @@ function jn(g) {
3098
3068
  {
3099
3069
  style: { backgroundColor: "#e0e0e0" },
3100
3070
  className: "apc-mpx-widget-custom-chip",
3101
- onClick: () => v(1080, 1080, "INSTAP"),
3071
+ onClick: () => m(1080, 1080, "INSTAP"),
3102
3072
  children: [
3103
3073
  d === "INSTAP" ? /* @__PURE__ */ e.jsx("span", { style: { color: "green" }, children: "✓" }) : null,
3104
3074
  "Instagram Post:1080 x 1080 px"
@@ -3111,7 +3081,7 @@ function jn(g) {
3111
3081
  {
3112
3082
  style: { backgroundColor: "#e0e0e0" },
3113
3083
  className: "apc-mpx-widget-custom-chip",
3114
- onClick: () => v(1920, 1080, "INSTAS"),
3084
+ onClick: () => m(1920, 1080, "INSTAS"),
3115
3085
  children: [
3116
3086
  d === "INSTAS" ? /* @__PURE__ */ e.jsx("span", { style: { color: "green" }, children: "✓" }) : null,
3117
3087
  "Instagram Story: 1080 x 1920 px"
@@ -3124,7 +3094,7 @@ function jn(g) {
3124
3094
  {
3125
3095
  style: { backgroundColor: "#e0e0e0" },
3126
3096
  className: "apc-mpx-widget-custom-chip",
3127
- onClick: () => v(1080, 1080, "INSTAA"),
3097
+ onClick: () => m(1080, 1080, "INSTAA"),
3128
3098
  children: [
3129
3099
  d === "INSTAA" ? /* @__PURE__ */ e.jsx("span", { style: { color: "green" }, children: "✓" }) : null,
3130
3100
  "Instagram Ad: 1080 x 1080 px"
@@ -3137,7 +3107,7 @@ function jn(g) {
3137
3107
  {
3138
3108
  style: { backgroundColor: "#e0e0e0" },
3139
3109
  className: "apc-mpx-widget-custom-chip",
3140
- onClick: () => v(788, 940, "FACEP"),
3110
+ onClick: () => m(788, 940, "FACEP"),
3141
3111
  children: [
3142
3112
  d === "FACEP" ? /* @__PURE__ */ e.jsx("span", { style: { color: "green" }, children: "✓" }) : null,
3143
3113
  "Facebook Post: 940 x 788 px"
@@ -3150,7 +3120,7 @@ function jn(g) {
3150
3120
  {
3151
3121
  style: { backgroundColor: "#e0e0e0" },
3152
3122
  className: "apc-mpx-widget-custom-chip",
3153
- onClick: () => v(315, 851, "FACEC"),
3123
+ onClick: () => m(315, 851, "FACEC"),
3154
3124
  children: [
3155
3125
  d === "FACEC" ? /* @__PURE__ */ e.jsx("span", { style: { color: "green" }, children: "✓" }) : null,
3156
3126
  "Facebook Cover: 851 x 315 px"
@@ -3163,7 +3133,7 @@ function jn(g) {
3163
3133
  {
3164
3134
  style: { backgroundColor: "#e0e0e0" },
3165
3135
  className: "apc-mpx-widget-custom-chip",
3166
- onClick: () => v(628, 1200, "FACEA"),
3136
+ onClick: () => m(628, 1200, "FACEA"),
3167
3137
  children: [
3168
3138
  d === "FACEA" ? /* @__PURE__ */ e.jsx("span", { style: { color: "green" }, children: "✓" }) : null,
3169
3139
  "Facebook Ad: 1200 x 628 px"
@@ -3176,7 +3146,7 @@ function jn(g) {
3176
3146
  {
3177
3147
  style: { backgroundColor: "#e0e0e0" },
3178
3148
  className: "apc-mpx-widget-custom-chip",
3179
- onClick: () => v(720, 1280, "YOUT"),
3149
+ onClick: () => m(720, 1280, "YOUT"),
3180
3150
  children: [
3181
3151
  d === "YOUT" ? /* @__PURE__ */ e.jsx("span", { style: { color: "green" }, children: "✓" }) : null,
3182
3152
  "Youtube Thumbnail: 1280 x 720 px"
@@ -3189,7 +3159,7 @@ function jn(g) {
3189
3159
  {
3190
3160
  style: { backgroundColor: "#e0e0e0" },
3191
3161
  className: "apc-mpx-widget-custom-chip",
3192
- onClick: () => v(534, 534, "INVITE"),
3162
+ onClick: () => m(534, 534, "INVITE"),
3193
3163
  children: [
3194
3164
  d === "INVITE" ? /* @__PURE__ */ e.jsx("span", { style: { color: "green" }, children: "✓" }) : null,
3195
3165
  "Invitation : 14 x 14 cm"
@@ -3202,7 +3172,7 @@ function jn(g) {
3202
3172
  {
3203
3173
  style: { backgroundColor: "#e0e0e0" },
3204
3174
  className: "apc-mpx-widget-custom-chip",
3205
- onClick: () => v(1112, 788, "A4"),
3175
+ onClick: () => m(1112, 788, "A4"),
3206
3176
  children: [
3207
3177
  d === "A4" ? /* @__PURE__ */ e.jsx("span", { style: { color: "green" }, children: "✓" }) : null,
3208
3178
  "A4 : 788 x 1112 px"
@@ -3215,7 +3185,7 @@ function jn(g) {
3215
3185
  {
3216
3186
  style: { backgroundColor: "#e0e0e0" },
3217
3187
  className: "apc-mpx-widget-custom-chip",
3218
- onClick: () => v(192, 336, "BUSINESSCARD"),
3188
+ onClick: () => m(192, 336, "BUSINESSCARD"),
3219
3189
  children: [
3220
3190
  d === "BUSINESSCARD" ? /* @__PURE__ */ e.jsx("span", { style: { color: "green" }, children: "✓" }) : null,
3221
3191
  "Business card 3.5 x 2 in"
@@ -3226,91 +3196,91 @@ function jn(g) {
3226
3196
  ] });
3227
3197
  return /* @__PURE__ */ e.jsx("div", { children: p() });
3228
3198
  }
3229
- const xe = (g, t, o, i = "png", l) => new Promise((u, f) => {
3230
- const d = document.createElement("canvas"), b = JSON.parse(g), a = crypto.randomUUID();
3199
+ const xe = (y, t, o, i = "png", l) => new Promise((u, f) => {
3200
+ const d = document.createElement("canvas"), j = JSON.parse(y), a = crypto.randomUUID();
3231
3201
  d.width = o, d.height = t;
3232
- const v = new B.StaticCanvas(d, {
3202
+ const m = new B.StaticCanvas(d, {
3233
3203
  selection: !1,
3234
- height: b.height,
3235
- width: b.width
3204
+ height: j.height,
3205
+ width: j.width
3236
3206
  });
3237
- v.loadFromJSON(b, function() {
3238
- v.renderAll();
3239
- const p = (y, s) => {
3240
- const m = URL.createObjectURL(y), h = document.createElement("a");
3241
- h.href = m, h.download = s, document.body.appendChild(h), h.click(), document.body.removeChild(h), URL.revokeObjectURL(m);
3207
+ m.loadFromJSON(j, function() {
3208
+ m.renderAll();
3209
+ const p = (b, s) => {
3210
+ const g = URL.createObjectURL(b), h = document.createElement("a");
3211
+ h.href = g, h.download = s, document.body.appendChild(h), h.click(), document.body.removeChild(h), URL.revokeObjectURL(g);
3242
3212
  };
3243
3213
  if (i.toLowerCase() === "svg") {
3244
- const y = v.toSVG(), s = new Blob([y], { type: "image/svg+xml" });
3214
+ const b = m.toSVG(), s = new Blob([b], { type: "image/svg+xml" });
3245
3215
  l && p(s, "mypixia.svg"), u(new File([s], `${a}.svg`, { type: "image/svg+xml" }));
3246
3216
  } else if (i.toLowerCase() === "pdf") {
3247
- const y = v.toDataURL("image/jpeg", 1);
3217
+ const b = m.toDataURL("image/jpeg", 1);
3248
3218
  import("jspdf").then((s) => {
3249
- const m = new s.jsPDF({
3219
+ const g = new s.jsPDF({
3250
3220
  orientation: "landscape",
3251
3221
  unit: "px",
3252
3222
  format: [d.width, d.height]
3253
3223
  });
3254
- m.addImage(y, "JPEG", 0, 0, d.width, d.height);
3255
- const j = m.output("datauristring").split(",")[1], n = bn(j, "application/pdf"), w = new File([n], `${a}.pdf`, { type: "application/pdf" }), _ = `${a}.pdf`;
3224
+ g.addImage(b, "JPEG", 0, 0, d.width, d.height);
3225
+ const v = g.output("datauristring").split(",")[1], n = fn(v, "application/pdf"), w = new File([n], `${a}.pdf`, { type: "application/pdf" }), _ = `${a}.pdf`;
3256
3226
  l && p(w, _), u(w);
3257
3227
  }).catch((s) => {
3258
3228
  console.error("Error loading jsPDF: ", s), f(s);
3259
3229
  });
3260
3230
  } else {
3261
- let y, s = "image/png", m = "png";
3231
+ let b, s = "image/png", g = "png";
3262
3232
  switch (i.toLowerCase()) {
3263
3233
  case "jpeg":
3264
- y = v.toDataURL("image/jpeg", 1), s = "image/jpeg", m = "jpg";
3234
+ b = m.toDataURL("image/jpeg", 1), s = "image/jpeg", g = "jpg";
3265
3235
  break;
3266
3236
  case "webp":
3267
- y = v.toDataURL("image/webp", 1), s = "image/webp", m = "webp";
3237
+ b = m.toDataURL("image/webp", 1), s = "image/webp", g = "webp";
3268
3238
  break;
3269
3239
  default:
3270
- y = v.toDataURL("image/png", 1);
3240
+ b = m.toDataURL("image/png", 1);
3271
3241
  break;
3272
3242
  }
3273
- const h = atob(y.split(",")[1]), j = new Array(h.length);
3243
+ const h = atob(b.split(",")[1]), v = new Array(h.length);
3274
3244
  for (let A = 0; A < h.length; A++)
3275
- j[A] = h.charCodeAt(A);
3276
- const n = new Uint8Array(j), w = new File([n], `${a}.${m}`, { type: s }), _ = `${a}.${m}`;
3245
+ v[A] = h.charCodeAt(A);
3246
+ const n = new Uint8Array(v), w = new File([n], `${a}.${g}`, { type: s }), _ = `${a}.${g}`;
3277
3247
  l && p(w, _), u(w);
3278
3248
  }
3279
3249
  });
3280
3250
  });
3281
- function bn(g, t) {
3282
- const o = atob(g), i = new Array(o.length);
3251
+ function fn(y, t) {
3252
+ const o = atob(y), i = new Array(o.length);
3283
3253
  for (let u = 0; u < o.length; u++)
3284
3254
  i[u] = o.charCodeAt(u);
3285
3255
  const l = new Uint8Array(i);
3286
3256
  return new Blob([l], { type: t });
3287
3257
  }
3288
- const yn = ({ children: g }) => _t.createPortal(g, document.getElementById("apc-mpx-editor-modal-root"));
3289
- function lt(g) {
3290
- const { isOpen: t, onClose: o, children: i } = g;
3291
- return t ? /* @__PURE__ */ e.jsx(yn, { children: /* @__PURE__ */ e.jsx("div", { className: "apc-mpx-widget-modal-overlay", children: /* @__PURE__ */ e.jsxs("div", { className: "apc-mpx-widget-modal", children: [
3258
+ const xn = ({ children: y }) => hr.createPortal(y, document.getElementById("apc-mpx-editor-modal-root"));
3259
+ function at(y) {
3260
+ const { isOpen: t, onClose: o, children: i } = y;
3261
+ return t ? /* @__PURE__ */ e.jsx(xn, { children: /* @__PURE__ */ e.jsx("div", { className: "apc-mpx-widget-modal-overlay", children: /* @__PURE__ */ e.jsxs("div", { className: "apc-mpx-widget-modal", children: [
3292
3262
  /* @__PURE__ */ e.jsx("button", { style: { color: "red" }, className: "apc-mpx-widget-modal-close-btn", onClick: o, children: "Close" }),
3293
3263
  /* @__PURE__ */ e.jsx("div", { className: "apc-mpx-widget-modal-content", children: i })
3294
3264
  ] }) }) }) : null;
3295
3265
  }
3296
- const ge = (g, t) => {
3297
- g = g.startsWith("#") ? g : `#${g}`;
3298
- let o = parseInt(g.slice(1, 3), 16), i = parseInt(g.slice(3, 5), 16), l = parseInt(g.slice(5, 7), 16);
3266
+ const ge = (y, t) => {
3267
+ y = y.startsWith("#") ? y : `#${y}`;
3268
+ let o = parseInt(y.slice(1, 3), 16), i = parseInt(y.slice(3, 5), 16), l = parseInt(y.slice(5, 7), 16);
3299
3269
  return o = parseInt(o * (100 - t) / 100), i = parseInt(i * (100 - t) / 100), l = parseInt(l * (100 - t) / 100), o = o.toString(16).padStart(2, "0"), i = i.toString(16).padStart(2, "0"), l = l.toString(16).padStart(2, "0"), `#${o}${i}${l}`;
3300
3270
  };
3301
- function Ft(g) {
3302
- const [t, o] = M(""), { apcCanvasJSON: i, height: l, width: u } = g;
3271
+ function Bt(y) {
3272
+ const [t, o] = M(""), { apcCanvasJSON: i, height: l, width: u } = y;
3303
3273
  return ie(() => {
3304
3274
  const f = document.createElement("canvas"), d = JSON.parse(i);
3305
3275
  f.width = u, f.height = l;
3306
- const b = new B.StaticCanvas(f, {
3276
+ const j = new B.StaticCanvas(f, {
3307
3277
  selection: !1,
3308
3278
  height: d.height,
3309
3279
  width: d.width
3310
3280
  });
3311
- b.loadFromJSON(d, function() {
3312
- b.renderAll();
3313
- const a = b.toDataURL("image/png", 1);
3281
+ j.loadFromJSON(d, function() {
3282
+ j.renderAll();
3283
+ const a = j.toDataURL("image/png", 1);
3314
3284
  o(a);
3315
3285
  });
3316
3286
  }, []), t ? /* @__PURE__ */ e.jsx("div", { children: /* @__PURE__ */ e.jsx(
@@ -3322,62 +3292,62 @@ function Ft(g) {
3322
3292
  }
3323
3293
  ) }) : "...processing";
3324
3294
  }
3325
- function wn(g) {
3326
- const { theme: t, apcCanvasInstance: o } = g, [i, l] = M(!1), [u, f] = M(), d = () => {
3295
+ function gn(y) {
3296
+ const { theme: t, apcCanvasInstance: o } = y, [i, l] = M(!1), [u, f] = M(), d = () => {
3327
3297
  l(!0);
3328
- }, b = () => {
3298
+ }, j = () => {
3329
3299
  l(!1);
3330
3300
  }, a = () => {
3331
3301
  if (!o)
3332
3302
  return null;
3333
- const v = JSON.stringify(o);
3334
- return /* @__PURE__ */ e.jsxs(lt, { isOpen: i, onClose: b, children: [
3303
+ const m = JSON.stringify(o);
3304
+ return /* @__PURE__ */ e.jsxs(at, { isOpen: i, onClose: j, children: [
3335
3305
  /* @__PURE__ */ e.jsx(
3336
- Ft,
3306
+ Bt,
3337
3307
  {
3338
- apcCanvasJSON: v,
3308
+ apcCanvasJSON: m,
3339
3309
  height: o.height,
3340
3310
  width: o.width
3341
3311
  }
3342
3312
  ),
3343
3313
  /* @__PURE__ */ e.jsx("div", { children: /* @__PURE__ */ e.jsxs("div", { style: { display: "flex", flexDirection: "row", gap: 5 }, children: [
3344
- /* @__PURE__ */ e.jsx("div", { children: /* @__PURE__ */ e.jsx(qt, { url: u, children: /* @__PURE__ */ e.jsx(Zt, { size: 32, round: !0 }) }) }),
3345
- /* @__PURE__ */ e.jsx("div", { children: /* @__PURE__ */ e.jsx(er, { url: u, title: "Hello", children: /* @__PURE__ */ e.jsx(tr, { size: 32, round: !0 }) }) }),
3314
+ /* @__PURE__ */ e.jsx("div", { children: /* @__PURE__ */ e.jsx(Kt, { url: u, children: /* @__PURE__ */ e.jsx(Xt, { size: 32, round: !0 }) }) }),
3315
+ /* @__PURE__ */ e.jsx("div", { children: /* @__PURE__ */ e.jsx(Qt, { url: u, title: "Hello", children: /* @__PURE__ */ e.jsx(qt, { size: 32, round: !0 }) }) }),
3346
3316
  /* @__PURE__ */ e.jsx("div", { children: /* @__PURE__ */ e.jsx(
3347
- rr,
3317
+ Zt,
3348
3318
  {
3349
3319
  url: u,
3350
3320
  title: "Hello",
3351
- children: /* @__PURE__ */ e.jsx(nr, { size: 32, round: !0 })
3321
+ children: /* @__PURE__ */ e.jsx(er, { size: 32, round: !0 })
3352
3322
  }
3353
3323
  ) }),
3354
3324
  /* @__PURE__ */ e.jsx("div", { children: /* @__PURE__ */ e.jsx(
3355
- sr,
3325
+ tr,
3356
3326
  {
3357
3327
  url: u,
3358
3328
  title: "Hello",
3359
3329
  separator: ":: ",
3360
- children: /* @__PURE__ */ e.jsx(or, { size: 32, round: !0 })
3330
+ children: /* @__PURE__ */ e.jsx(rr, { size: 32, round: !0 })
3361
3331
  }
3362
3332
  ) }),
3363
- /* @__PURE__ */ e.jsx("div", { children: /* @__PURE__ */ e.jsx(ir, { url: u, children: /* @__PURE__ */ e.jsx(cr, { size: 32, round: !0 }) }) }),
3364
- /* @__PURE__ */ e.jsx("div", { children: /* @__PURE__ */ e.jsx(ar, { url: "https://static.mypixia.com", media: u, children: /* @__PURE__ */ e.jsx(lr, { size: 32, round: !0 }) }) }),
3333
+ /* @__PURE__ */ e.jsx("div", { children: /* @__PURE__ */ e.jsx(nr, { url: u, children: /* @__PURE__ */ e.jsx(sr, { size: 32, round: !0 }) }) }),
3334
+ /* @__PURE__ */ e.jsx("div", { children: /* @__PURE__ */ e.jsx(or, { url: "https://static.mypixia.com", media: u, children: /* @__PURE__ */ e.jsx(ir, { size: 32, round: !0 }) }) }),
3365
3335
  /* @__PURE__ */ e.jsx("div", { children: /* @__PURE__ */ e.jsx(
3366
- dr,
3336
+ cr,
3367
3337
  {
3368
3338
  url: u,
3369
3339
  title: "Hello",
3370
3340
  windowWidth: 660,
3371
3341
  windowHeight: 460,
3372
- children: /* @__PURE__ */ e.jsx(hr, { size: 32, round: !0 })
3342
+ children: /* @__PURE__ */ e.jsx(ar, { size: 32, round: !0 })
3373
3343
  }
3374
3344
  ) }),
3375
3345
  /* @__PURE__ */ e.jsx("div", { children: /* @__PURE__ */ e.jsx(
3376
- pr,
3346
+ lr,
3377
3347
  {
3378
3348
  url: u,
3379
3349
  title: "Hello",
3380
- children: /* @__PURE__ */ e.jsx(ur, { size: 32, round: !0 })
3350
+ children: /* @__PURE__ */ e.jsx(dr, { size: 32, round: !0 })
3381
3351
  }
3382
3352
  ) })
3383
3353
  ] }) }),
@@ -3389,14 +3359,14 @@ function wn(g) {
3389
3359
  autoFocus: !0,
3390
3360
  type: "button",
3391
3361
  className: "apc-mpc-widget-btn",
3392
- onClick: () => b(),
3362
+ onClick: () => j(),
3393
3363
  style: { backgroundColor: "red", color: "#ffffff", float: "right" },
3394
3364
  children: "Close"
3395
3365
  }
3396
3366
  )
3397
3367
  ] });
3398
3368
  };
3399
- return /* @__PURE__ */ e.jsxs(T.Fragment, { children: [
3369
+ return /* @__PURE__ */ e.jsxs(E.Fragment, { children: [
3400
3370
  /* @__PURE__ */ e.jsxs(
3401
3371
  "button",
3402
3372
  {
@@ -3409,7 +3379,7 @@ function wn(g) {
3409
3379
  float: "right"
3410
3380
  },
3411
3381
  children: [
3412
- /* @__PURE__ */ e.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", height: "1em", viewBox: "0 0 512 512", children: /* @__PURE__ */ e.jsx("path", { fill: "#ffffff", d: Gr }) }),
3382
+ /* @__PURE__ */ e.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", height: "1em", viewBox: "0 0 512 512", children: /* @__PURE__ */ e.jsx("path", { fill: "#ffffff", d: Pr }) }),
3413
3383
  "  Share"
3414
3384
  ]
3415
3385
  }
@@ -3417,43 +3387,43 @@ function wn(g) {
3417
3387
  a()
3418
3388
  ] });
3419
3389
  }
3420
- function Cn(g) {
3421
- const { theme: t, apiKey: o, apcCanvasInstance: i, updateSelectedSections: l, updateActiveSection: u, accesories: f, getDesignFormats: d } = g, [b, a] = M(!1), [v, p] = M(), y = () => {
3390
+ function mn(y) {
3391
+ const { theme: t, apiKey: o, apcCanvasInstance: i, updateSelectedSections: l, updateActiveSection: u, accesories: f, getDesignFormats: d } = y, [j, a] = M(!1), [m, p] = M(), b = () => {
3422
3392
  a(!0);
3423
3393
  }, s = () => {
3424
3394
  a(!1);
3425
- }, m = () => ({
3395
+ }, g = () => ({
3426
3396
  getPDF: () => {
3427
- const j = JSON.stringify(i);
3428
- return xe(j, i.height, i.width, "pdf", !0).then((n) => n);
3397
+ const v = JSON.stringify(i);
3398
+ return xe(v, i.height, i.width, "pdf", !0).then((n) => n);
3429
3399
  },
3430
3400
  getPNG: () => {
3431
- const j = JSON.stringify(i);
3432
- return xe(j, i.height, i.width, "png", !0).then((n) => n);
3401
+ const v = JSON.stringify(i);
3402
+ return xe(v, i.height, i.width, "png", !0).then((n) => n);
3433
3403
  },
3434
3404
  getSVG: () => {
3435
- const j = JSON.stringify(i);
3436
- return xe(j, i.height, i.width, "svg", !0).then((n) => n);
3405
+ const v = JSON.stringify(i);
3406
+ return xe(v, i.height, i.width, "svg", !0).then((n) => n);
3437
3407
  },
3438
3408
  getJPEG: () => {
3439
- const j = JSON.stringify(i);
3440
- return xe(j, i.height, i.width, "jpeg", !0).then((n) => n);
3409
+ const v = JSON.stringify(i);
3410
+ return xe(v, i.height, i.width, "jpeg", !0).then((n) => n);
3441
3411
  },
3442
3412
  getWEBP: () => {
3443
- const j = JSON.stringify(i);
3444
- return xe(j, i.height, i.width, "webp", !0).then((n) => n);
3413
+ const v = JSON.stringify(i);
3414
+ return xe(v, i.height, i.width, "webp", !0).then((n) => n);
3445
3415
  }
3446
3416
  }), h = () => {
3447
3417
  if (!i)
3448
3418
  return null;
3449
- const j = JSON.stringify(i);
3450
- return /* @__PURE__ */ e.jsxs(lt, { isOpen: b, onClose: s, children: [
3419
+ const v = JSON.stringify(i);
3420
+ return /* @__PURE__ */ e.jsxs(at, { isOpen: j, onClose: s, children: [
3451
3421
  /* @__PURE__ */ e.jsxs("div", { style: { display: "flex", flexDirection: "column" }, children: [
3452
3422
  /* @__PURE__ */ e.jsx("h3", { style: { float: "left" }, children: "Download" }),
3453
3423
  /* @__PURE__ */ e.jsx("div", { children: /* @__PURE__ */ e.jsx(
3454
- Ft,
3424
+ Bt,
3455
3425
  {
3456
- apcCanvasJSON: j,
3426
+ apcCanvasJSON: v,
3457
3427
  height: i.height,
3458
3428
  width: i.width
3459
3429
  }
@@ -3464,31 +3434,31 @@ function Cn(g) {
3464
3434
  fontWeight: "bold",
3465
3435
  textDecoration: "underline",
3466
3436
  cursor: "pointer"
3467
- }, onClick: () => m().getPDF(), children: "PDF" }),
3437
+ }, onClick: () => g().getPDF(), children: "PDF" }),
3468
3438
  /* @__PURE__ */ e.jsx("div", { style: {
3469
3439
  color: ge(t.primaryColor, 50),
3470
3440
  fontWeight: "bold",
3471
3441
  textDecoration: "underline",
3472
3442
  cursor: "pointer"
3473
- }, onClick: () => m().getSVG(), children: "SVG" }),
3443
+ }, onClick: () => g().getSVG(), children: "SVG" }),
3474
3444
  /* @__PURE__ */ e.jsx("div", { style: {
3475
3445
  color: ge(t.primaryColor, 50),
3476
3446
  fontWeight: "bold",
3477
3447
  textDecoration: "underline",
3478
3448
  cursor: "pointer"
3479
- }, onClick: () => m().getPNG(), children: "PNG" }),
3449
+ }, onClick: () => g().getPNG(), children: "PNG" }),
3480
3450
  /* @__PURE__ */ e.jsx("div", { style: {
3481
3451
  color: ge(t.primaryColor, 50),
3482
3452
  fontWeight: "bold",
3483
3453
  textDecoration: "underline",
3484
3454
  cursor: "pointer"
3485
- }, onClick: () => m().getJPEG(), children: "JPEG" }),
3455
+ }, onClick: () => g().getJPEG(), children: "JPEG" }),
3486
3456
  /* @__PURE__ */ e.jsx("div", { style: {
3487
3457
  color: ge(t.primaryColor, 50),
3488
3458
  fontWeight: "bold",
3489
3459
  textDecoration: "underline",
3490
3460
  cursor: "pointer"
3491
- }, onClick: () => m().getWEBP(), children: "WEBP" })
3461
+ }, onClick: () => g().getWEBP(), children: "WEBP" })
3492
3462
  ] })
3493
3463
  ] }),
3494
3464
  /* @__PURE__ */ e.jsx("br", {}),
@@ -3508,12 +3478,12 @@ function Cn(g) {
3508
3478
  )
3509
3479
  ] });
3510
3480
  };
3511
- return /* @__PURE__ */ e.jsxs(T.Fragment, { children: [
3481
+ return /* @__PURE__ */ e.jsxs(E.Fragment, { children: [
3512
3482
  /* @__PURE__ */ e.jsxs(
3513
3483
  "button",
3514
3484
  {
3515
3485
  className: "apc-mpc-widget-btn",
3516
- onClick: () => y(),
3486
+ onClick: () => b(),
3517
3487
  role: "dialog",
3518
3488
  style: {
3519
3489
  backgroundColor: ge(t.primaryColor, 40),
@@ -3521,7 +3491,7 @@ function Cn(g) {
3521
3491
  float: "right"
3522
3492
  },
3523
3493
  children: [
3524
- /* @__PURE__ */ e.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", height: "1em", viewBox: "0 0 512 512", children: /* @__PURE__ */ e.jsx("path", { fill: "#ffffff", d: Jr }) }),
3494
+ /* @__PURE__ */ e.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", height: "1em", viewBox: "0 0 512 512", children: /* @__PURE__ */ e.jsx("path", { fill: "#ffffff", d: Hr }) }),
3525
3495
  "  Download"
3526
3496
  ]
3527
3497
  }
@@ -3529,7 +3499,7 @@ function Cn(g) {
3529
3499
  h()
3530
3500
  ] });
3531
3501
  }
3532
- function Sn(g) {
3502
+ function vn(y) {
3533
3503
  var Ie;
3534
3504
  const {
3535
3505
  theme: t,
@@ -3539,22 +3509,22 @@ function Sn(g) {
3539
3509
  renderActionItems: u,
3540
3510
  canvasEl: f,
3541
3511
  zoomIn: d,
3542
- zoomOut: b,
3512
+ zoomOut: j,
3543
3513
  apcCanvasInstance: a,
3544
- setActiveSection: v,
3514
+ setActiveSection: m,
3545
3515
  saveActiveDesign: p,
3546
- reloadTabs: y,
3516
+ reloadTabs: b,
3547
3517
  initProductName: s,
3548
- historyRef: m,
3518
+ historyRef: g,
3549
3519
  currentState: h,
3550
- setCurrentState: j,
3520
+ setCurrentState: v,
3551
3521
  setHistory: n,
3552
3522
  activeTabName: w,
3553
3523
  isPlainColor: _,
3554
3524
  selectedProduct: A,
3555
- isMobile: L,
3556
- supportedProductColors: P
3557
- } = g, [I, E] = M(), [V, K] = M([]), [Y, ce] = M(0), [ne, se] = T.useState(!1), pe = T.useRef(null), [Te, we] = M(!1), [qe, Me] = M(null), [te, Pe] = M(), [Fe, He] = M(), [ze, Ve] = M(), [Ce, me] = M(!0), [G, Re] = M(), Oe = () => {
3525
+ isMobile: R,
3526
+ supportedProductColors: F
3527
+ } = y, [I, T] = M(), [V, K] = M([]), [Y, ce] = M(0), [ne, se] = E.useState(!1), pe = E.useRef(null), [Ee, we] = M(!1), [Qe, Me] = M(null), [te, Fe] = M(), [Pe, He] = M(), [ze, Ve] = M(), [Ce, me] = M(!0), [$, Le] = M(), Oe = () => {
3558
3528
  we(!0), se(!1);
3559
3529
  }, q = () => {
3560
3530
  we(!1);
@@ -3573,22 +3543,22 @@ function Sn(g) {
3573
3543
  var N, J;
3574
3544
  if (I)
3575
3545
  try {
3576
- const D = await Xe(I);
3577
- Ve(D), (N = D == null ? void 0 : D.misc) != null && N.colorSettings && Pe(D.misc.colorSettings), ((J = D == null ? void 0 : D.misc) == null ? void 0 : J.type) !== "subsection" && Re(D);
3546
+ const D = await Ke(I);
3547
+ Ve(D), (N = D == null ? void 0 : D.misc) != null && N.colorSettings && Fe(D.misc.colorSettings), ((J = D == null ? void 0 : D.misc) == null ? void 0 : J.type) !== "subsection" && Le(D);
3578
3548
  } catch (D) {
3579
3549
  console.error("Error fetching tab data: ", D);
3580
3550
  }
3581
3551
  })();
3582
- }, [I, y]), ie(() => {
3552
+ }, [I, b]), ie(() => {
3583
3553
  (async () => {
3584
- const N = await Ee();
3554
+ const N = await Te();
3585
3555
  let J = N ? N.filter((D) => {
3586
3556
  var Z;
3587
3557
  return D.classification !== "cart" && ((Z = D.misc) == null ? void 0 : Z.type) !== "subsection";
3588
3558
  }).map((D) => D.id) : [];
3589
- J.length === 0 && J.push("design"), Y === 0 && E(J[0]), K(J);
3559
+ J.length === 0 && J.push("design"), Y === 0 && T(J[0]), K(J);
3590
3560
  })();
3591
- }, [Y, y]);
3561
+ }, [Y, b]);
3592
3562
  const de = () => {
3593
3563
  a && (a.clear(), a.renderAll());
3594
3564
  }, ue = (S) => {
@@ -3603,7 +3573,7 @@ function Sn(g) {
3603
3573
  ), N.applyFilters(), a && a.requestRenderAll(), He(S), p(a, ze));
3604
3574
  }, Se = () => {
3605
3575
  if (!(!te || (te == null ? void 0 : te.length) <= 1))
3606
- return te.map((S, N) => /* @__PURE__ */ e.jsxs(T.Fragment, { children: [
3576
+ return te.map((S, N) => /* @__PURE__ */ e.jsxs(E.Fragment, { children: [
3607
3577
  /* @__PURE__ */ e.jsx(
3608
3578
  "div",
3609
3579
  {
@@ -3621,16 +3591,16 @@ function Sn(g) {
3621
3591
  ] }, N));
3622
3592
  }, ve = async (S, N) => {
3623
3593
  var fe, je;
3624
- const J = (je = (fe = a == null ? void 0 : a.backgroundImage) == null ? void 0 : fe.filters[0]) == null ? void 0 : je.color, D = await Xe(S);
3594
+ const J = (je = (fe = a == null ? void 0 : a.backgroundImage) == null ? void 0 : fe.filters[0]) == null ? void 0 : je.color, D = await Ke(S);
3625
3595
  if (!D)
3626
3596
  return;
3627
3597
  const Z = D != null && D.content ? JSON.parse(D.content) : null;
3628
3598
  Z && a ? (a.clear(), a.setBackgroundImage(null), a.loadFromJSON(Z, () => {
3629
3599
  var re;
3630
- a.renderAll(), v(D), ((re = D == null ? void 0 : D.misc) == null ? void 0 : re.type) !== "subsection" ? (localStorage.setItem("apc_x_activeTab", S), me(!0)) : (me(!1), J && ue(J)), E(S);
3600
+ a.renderAll(), m(D), ((re = D == null ? void 0 : D.misc) == null ? void 0 : re.type) !== "subsection" ? (localStorage.setItem("apc_x_activeTab", S), me(!0)) : (me(!1), J && ue(J)), T(S);
3631
3601
  })) : console.error("Failed to load JSON content for section:", S);
3632
3602
  }, We = () => V.map((S) => /* @__PURE__ */ e.jsx("button", { className: `tablinks ${I === S ? "active" : null}`, onClick: () => ve(S), children: S }, S)), ke = () => {
3633
- Ee().then((S) => {
3603
+ Te().then((S) => {
3634
3604
  if (S && S.length > 0) {
3635
3605
  const N = S[0], J = JSON.parse(N.content);
3636
3606
  a.loadFromJSON(J, function() {
@@ -3638,30 +3608,30 @@ function Sn(g) {
3638
3608
  "object:modified": (D) => {
3639
3609
  p(a, N);
3640
3610
  }
3641
- }), E(N.id), localStorage.setItem("apc_x_activeTab", N.id), v(N), ce(Y + 1), a && a.renderAll();
3611
+ }), T(N.id), localStorage.setItem("apc_x_activeTab", N.id), m(N), ce(Y + 1), a && a.renderAll();
3642
3612
  });
3643
3613
  } else {
3644
3614
  let N = "design";
3645
3615
  const J = JSON.stringify(a);
3646
3616
  De(N, "general", J, null).then((D) => {
3647
- Xe(N).then((Z) => {
3617
+ Ke(N).then((Z) => {
3648
3618
  const fe = JSON.parse(Z.content);
3649
3619
  a.loadFromJSON(fe, function() {
3650
3620
  a.off("object:modified"), a.on({
3651
3621
  "object:modified": (je) => {
3652
3622
  p(a, Z);
3653
3623
  }
3654
- }), E(N), localStorage.setItem("apc_x_activeTab", N), v(Z), ce(Y + 1), a && a.renderAll();
3624
+ }), T(N), localStorage.setItem("apc_x_activeTab", N), m(Z), ce(Y + 1), a && a.renderAll();
3655
3625
  });
3656
3626
  });
3657
3627
  });
3658
3628
  }
3659
3629
  });
3660
3630
  }, Ae = () => {
3661
- rn(I).then((S) => {
3631
+ Xr(I).then((S) => {
3662
3632
  q(), ke();
3663
3633
  });
3664
- }, $e = () => a ? /* @__PURE__ */ e.jsxs(lt, { isOpen: Te, onClose: q, children: [
3634
+ }, Ge = () => a ? /* @__PURE__ */ e.jsxs(at, { isOpen: Ee, onClose: q, children: [
3665
3635
  /* @__PURE__ */ e.jsx("div", { children: /* @__PURE__ */ e.jsxs("h3", { style: { marginLeft: "30%", color: "green" }, children: [
3666
3636
  "Are you sure you want to delete ",
3667
3637
  /* @__PURE__ */ e.jsx("u", { children: I }),
@@ -3695,8 +3665,8 @@ function Sn(g) {
3695
3665
  }
3696
3666
  ) })
3697
3667
  ] })
3698
- ] }) : null, Ze = () => /* @__PURE__ */ e.jsxs("div", { className: "apc-mpx-widget-button-group-container", children: [
3699
- /* @__PURE__ */ e.jsx("div", { className: "apc-mpx-widget-generic-icon", onClick: Ue, children: /* @__PURE__ */ e.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", height: "1em", viewBox: "0 0 448 512", children: /* @__PURE__ */ e.jsx("path", { fill: "#ffffff", d: Ur }) }) }),
3668
+ ] }) : null, qe = () => /* @__PURE__ */ e.jsxs("div", { className: "apc-mpx-widget-button-group-container", children: [
3669
+ /* @__PURE__ */ e.jsx("div", { className: "apc-mpx-widget-generic-icon", onClick: Ue, children: /* @__PURE__ */ e.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", height: "1em", viewBox: "0 0 448 512", children: /* @__PURE__ */ e.jsx("path", { fill: "#ffffff", d: Br }) }) }),
3700
3670
  ne && /* @__PURE__ */ e.jsxs("div", { className: "apc-mpx-widget-popper-container", ref: pe, children: [
3701
3671
  /* @__PURE__ */ e.jsx("div", { className: "apc-mpx-widget-popper-arrow-up" }),
3702
3672
  /* @__PURE__ */ e.jsxs("ul", { autoFocus: !0, style: {
@@ -3724,7 +3694,7 @@ function Sn(g) {
3724
3694
  height: "16",
3725
3695
  width: "14",
3726
3696
  viewBox: "0 0 448 512",
3727
- children: /* @__PURE__ */ e.jsx("path", { d: Bt, fill: ge(t.primaryColor, 80) })
3697
+ children: /* @__PURE__ */ e.jsx("path", { d: Lt, fill: ge(t.primaryColor, 80) })
3728
3698
  }
3729
3699
  ),
3730
3700
  "  Delete"
@@ -3747,7 +3717,7 @@ function Sn(g) {
3747
3717
  className: "apc-mpx-hover-div",
3748
3718
  width: "14",
3749
3719
  viewBox: "0 0 576 512",
3750
- children: /* @__PURE__ */ e.jsx("path", { d: Wr, fill: ge(t.primaryColor, 80) })
3720
+ children: /* @__PURE__ */ e.jsx("path", { d: Dr, fill: ge(t.primaryColor, 80) })
3751
3721
  }
3752
3722
  ),
3753
3723
  "  Clear"
@@ -3756,14 +3726,14 @@ function Sn(g) {
3756
3726
  )
3757
3727
  ] })
3758
3728
  ] })
3759
- ] }), Le = (S) => {
3760
- var je, re, Ge, _e;
3761
- const N = a.width * 5, J = a.height * 5, D = JSON.parse(G.content), Z = (re = (je = D == null ? void 0 : D.backgroundImage) == null ? void 0 : je.filters[0]) == null ? void 0 : re.color, fe = (_e = (Ge = a == null ? void 0 : a.backgroundImage) == null ? void 0 : Ge.filters[0]) == null ? void 0 : _e.color;
3762
- Xe(S.sectionName).then(async (be) => {
3729
+ ] }), Re = (S) => {
3730
+ var je, re, $e, _e;
3731
+ const N = a.width * 5, J = a.height * 5, D = JSON.parse($.content), Z = (re = (je = D == null ? void 0 : D.backgroundImage) == null ? void 0 : je.filters[0]) == null ? void 0 : re.color, fe = (_e = ($e = a == null ? void 0 : a.backgroundImage) == null ? void 0 : $e.filters[0]) == null ? void 0 : _e.color;
3732
+ Ke(S.sectionName).then(async (be) => {
3763
3733
  if (be) {
3764
3734
  const c = be != null && be.content ? JSON.parse(be.content) : null;
3765
3735
  c && a ? (await a.loadFromJSON(c, () => {
3766
- a.renderAll(), v(be), E(S.sectionName);
3736
+ a.renderAll(), m(be), T(S.sectionName);
3767
3737
  const O = JSON.stringify(a), z = {};
3768
3738
  z.id = S.sectionName, z.classification = A == null ? void 0 : A.name, z.json = O, z.misc = {
3769
3739
  sectionName: S.sectionName,
@@ -3777,13 +3747,13 @@ function Sn(g) {
3777
3747
  }), ue(fe), Ce || me(!0)) : console.error("Failed to load JSON content for section:", S.sectionName);
3778
3748
  } else
3779
3749
  a && a.clear(), S.type = "subsection", B.Image.fromURL(S.sectionImage, function(c) {
3780
- c.width = N, c.height = J, c.scaleToWidth(N), c.scaleToHeight(J), a.setBackgroundImage(c), (Fe || Z) && (c.filters = [], c.filters.push(
3750
+ c.width = N, c.height = J, c.scaleToWidth(N), c.scaleToHeight(J), a.setBackgroundImage(c), (Pe || Z) && (c.filters = [], c.filters.push(
3781
3751
  new B.Image.filters.BlendColor({
3782
- color: Fe || Z
3752
+ color: Pe || Z
3783
3753
  })
3784
3754
  ), c.applyFilters());
3785
3755
  const O = JSON.stringify(a), z = {};
3786
- z.id = S.sectionName, z.classification = G.id, z.json = O, z.misc = {
3756
+ z.id = S.sectionName, z.classification = $.id, z.json = O, z.misc = {
3787
3757
  sectionName: S.sectionName,
3788
3758
  sectionImage: S.sectionImage,
3789
3759
  type: S.type
@@ -3792,11 +3762,11 @@ function Sn(g) {
3792
3762
  p(a, z);
3793
3763
  }
3794
3764
  }), De(S.sectionName, I, O, { ...S }).then((k) => {
3795
- a && (a.renderAll(), Ce && me(!1), E(S.sectionName), ce(Y + 1));
3765
+ a && (a.renderAll(), Ce && me(!1), T(S.sectionName), ce(Y + 1));
3796
3766
  });
3797
3767
  }, { crossOrigin: "anonymous" });
3798
3768
  });
3799
- }, et = () => {
3769
+ }, Ze = () => {
3800
3770
  if (!ze)
3801
3771
  return null;
3802
3772
  let S = [];
@@ -3819,7 +3789,7 @@ function Sn(g) {
3819
3789
  return /* @__PURE__ */ e.jsxs(
3820
3790
  "div",
3821
3791
  {
3822
- onClick: () => Le(N),
3792
+ onClick: () => Re(N),
3823
3793
  style: {
3824
3794
  position: "relative",
3825
3795
  // For placing the checkmark
@@ -3860,7 +3830,7 @@ function Sn(g) {
3860
3830
  )
3861
3831
  }
3862
3832
  ),
3863
- !L && /* @__PURE__ */ e.jsx(
3833
+ !R && /* @__PURE__ */ e.jsx(
3864
3834
  "div",
3865
3835
  {
3866
3836
  style: {
@@ -3900,15 +3870,15 @@ function Sn(g) {
3900
3870
  J
3901
3871
  );
3902
3872
  });
3903
- }, tt = () => {
3904
- if (m.current.length > 0) {
3905
- const S = m.current.pop();
3873
+ }, et = () => {
3874
+ if (g.current.length > 0) {
3875
+ const S = g.current.pop();
3906
3876
  a.loadFromJSON(S, () => {
3907
- a.renderAll(), j(S);
3877
+ a.renderAll(), v(S);
3908
3878
  });
3909
3879
  }
3910
3880
  };
3911
- return /* @__PURE__ */ e.jsxs(T.Fragment, { children: [
3881
+ return /* @__PURE__ */ e.jsxs(E.Fragment, { children: [
3912
3882
  /* @__PURE__ */ e.jsx("div", { className: "tab", children: We() }),
3913
3883
  /* @__PURE__ */ e.jsxs("div", { style: {
3914
3884
  display: "flex",
@@ -3930,7 +3900,7 @@ function Sn(g) {
3930
3900
  cursor: "pointer",
3931
3901
  height: "12px"
3932
3902
  },
3933
- onClick: () => tt(),
3903
+ onClick: () => et(),
3934
3904
  title: "UNDO",
3935
3905
  children: /* @__PURE__ */ e.jsx(
3936
3906
  "svg",
@@ -3940,7 +3910,7 @@ function Sn(g) {
3940
3910
  className: "apc-mpx-hover-div",
3941
3911
  width: "25",
3942
3912
  viewBox: "0 0 16 16",
3943
- children: /* @__PURE__ */ e.jsx("path", { d: $r, fill: "#ffffff" })
3913
+ children: /* @__PURE__ */ e.jsx("path", { d: Fr, fill: "#ffffff" })
3944
3914
  }
3945
3915
  )
3946
3916
  }
@@ -3949,11 +3919,11 @@ function Sn(g) {
3949
3919
  ] }) }) }),
3950
3920
  /* @__PURE__ */ e.jsx("div", { style: { flexBasis: "20%" }, children: i ? l() : null }),
3951
3921
  /* @__PURE__ */ e.jsx("div", { style: { flexBasis: "40%", marginTop: "8px" }, children: i ? u() : null }),
3952
- Ze()
3922
+ qe()
3953
3923
  ] }),
3954
3924
  /* @__PURE__ */ e.jsxs("div", { id: "apc-mpx-editor-canvas-container", style: { minHeight: "90vh", padding: "3px", overflowX: "hidden", position: "relative" }, children: [
3955
3925
  /* @__PURE__ */ e.jsxs("div", { style: { display: "flex", flexDirection: "row" }, children: [
3956
- /* @__PURE__ */ e.jsx("div", { children: /* @__PURE__ */ e.jsx("div", { style: { zIndex: 1e3, overflow: "hidden", position: "absolute", marginLeft: "1%", display: "flex", flexDirection: "row" }, children: ((Ie = A == null ? void 0 : A.sections) == null ? void 0 : Ie.length) > 0 ? et() : null }) }),
3926
+ /* @__PURE__ */ e.jsx("div", { children: /* @__PURE__ */ e.jsx("div", { style: { zIndex: 1e3, overflow: "hidden", position: "absolute", marginLeft: "1%", display: "flex", flexDirection: "row" }, children: ((Ie = A == null ? void 0 : A.sections) == null ? void 0 : Ie.length) > 0 ? Ze() : null }) }),
3957
3927
  /* @__PURE__ */ e.jsx("div", { children: /* @__PURE__ */ e.jsx("canvas", { id: "apc-mpx-editor-canvas", ref: f, height: 1e3 }) }),
3958
3928
  te && (_ || (o == null ? void 0 : o.plainColor) === "Y") && Ce && (te == null ? void 0 : te.length) > 1 ? /* @__PURE__ */ e.jsxs("div", { style: { zIndex: 1e3, overflow: "hidden", position: "absolute", marginLeft: "90%" }, children: [
3959
3929
  /* @__PURE__ */ e.jsx("br", {}),
@@ -3981,24 +3951,24 @@ function Sn(g) {
3981
3951
  {
3982
3952
  style: { height: "35px", width: "65px", cursor: "pointer" },
3983
3953
  "aria-label": "zoom out",
3984
- onClick: () => b(),
3954
+ onClick: () => j(),
3985
3955
  children: "-"
3986
3956
  }
3987
3957
  )
3988
3958
  ] })
3989
3959
  ] }),
3990
- $e()
3960
+ Ge()
3991
3961
  ] });
3992
3962
  }
3993
- function kn({ data: g, theme: t, apcCanvasInstance: o, closeMobileModalSecondaryPanel: i, isMobile: l }) {
3963
+ function jn({ data: y, theme: t, apcCanvasInstance: o, closeMobileModalSecondaryPanel: i, isMobile: l }) {
3994
3964
  const [u, f] = M({}), d = (p) => {
3995
- f((y) => ({
3996
- ...y,
3997
- [p]: !y[p]
3965
+ f((b) => ({
3966
+ ...b,
3967
+ [p]: !b[p]
3998
3968
  }));
3999
- }, b = async (p) => {
4000
- const y = await Pt(p);
4001
- y && B.Image.fromURL(y, (s) => {
3969
+ }, j = async (p) => {
3970
+ const b = await _t(p);
3971
+ b && B.Image.fromURL(b, (s) => {
4002
3972
  s.set({
4003
3973
  left: 100,
4004
3974
  top: 100,
@@ -4006,21 +3976,21 @@ function kn({ data: g, theme: t, apcCanvasInstance: o, closeMobileModalSecondary
4006
3976
  scaleY: 0.3
4007
3977
  }), o.add(s), o.renderAll(), l && i(!0);
4008
3978
  });
4009
- }, a = (p, y = "", s = 0) => /* @__PURE__ */ e.jsx("ul", { style: { listStyleType: "none", paddingLeft: `${s * 20}px`, margin: "0" }, children: Object.keys(p).map((m) => {
4010
- const h = `${y}/${m}`, j = u[h];
4011
- return p[m].type === "image" ? /* @__PURE__ */ e.jsx("li", { children: /* @__PURE__ */ e.jsx("div", { onClick: () => b(p[m].url), style: { cursor: "pointer" }, children: /* @__PURE__ */ e.jsx("img", { src: p[m].url, alt: m, style: { width: "100px", height: "auto" } }) }) }, h) : /* @__PURE__ */ e.jsxs("li", { children: [
3979
+ }, a = (p, b = "", s = 0) => /* @__PURE__ */ e.jsx("ul", { style: { listStyleType: "none", paddingLeft: `${s * 20}px`, margin: "0" }, children: Object.keys(p).map((g) => {
3980
+ const h = `${b}/${g}`, v = u[h];
3981
+ return p[g].type === "image" ? /* @__PURE__ */ e.jsx("li", { children: /* @__PURE__ */ e.jsx("div", { onClick: () => j(p[g].url), style: { cursor: "pointer" }, children: /* @__PURE__ */ e.jsx("img", { src: p[g].url, alt: g, style: { width: "100px", height: "auto" } }) }) }, h) : /* @__PURE__ */ e.jsxs("li", { children: [
4012
3982
  /* @__PURE__ */ e.jsxs("div", { onClick: () => d(h), style: { cursor: "pointer", display: "flex", alignItems: "center", fontWeight: "bold", color: t.primaryColorLight }, children: [
4013
- /* @__PURE__ */ e.jsx("div", { style: { marginRight: "5px" }, children: j ? /* @__PURE__ */ e.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 512 512", height: 15, width: 15, children: /* @__PURE__ */ e.jsx("path", { d: Qr, fill: t.primaryColorLight }) }) : /* @__PURE__ */ e.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 512 512", height: 15, width: 15, children: /* @__PURE__ */ e.jsx("path", { d: qr, fill: t.primaryColorLight }) }) }),
4014
- m
3983
+ /* @__PURE__ */ e.jsx("div", { style: { marginRight: "5px" }, children: v ? /* @__PURE__ */ e.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 512 512", height: 15, width: 15, children: /* @__PURE__ */ e.jsx("path", { d: Gr, fill: t.primaryColorLight }) }) : /* @__PURE__ */ e.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 512 512", height: 15, width: 15, children: /* @__PURE__ */ e.jsx("path", { d: $r, fill: t.primaryColorLight }) }) }),
3984
+ g
4015
3985
  ] }),
4016
- j && a(p[m], h, s + 1)
3986
+ v && a(p[g], h, s + 1)
4017
3987
  ] }, h);
4018
- }) }), v = Nn(g);
4019
- return /* @__PURE__ */ e.jsx("div", { children: a(v) });
3988
+ }) }), m = bn(y);
3989
+ return /* @__PURE__ */ e.jsx("div", { children: a(m) });
4020
3990
  }
4021
- function Nn(g) {
3991
+ function bn(y) {
4022
3992
  const t = {};
4023
- return g.forEach((o) => {
3993
+ return y.forEach((o) => {
4024
3994
  const i = o.name.split("/");
4025
3995
  let l = t;
4026
3996
  i.forEach((u, f) => {
@@ -4028,48 +3998,48 @@ function Nn(g) {
4028
3998
  });
4029
3999
  }), t;
4030
4000
  }
4031
- function On(g) {
4032
- const { apcCanvasInstance: t, theme: o, apiEndpoint: i, isMobile: l, closeMobileModalSecondaryPanel: u, apiKey: f } = g, d = `${i}/api/v1/designer`, [b, a] = M([]), [v, p] = M(!1), [y, s] = M(!1), [m, h] = M(!1), j = sessionStorage.getItem("apc_x_sub_status"), n = sessionStorage.getItem("apc_x_stickers");
4001
+ function yn(y) {
4002
+ const { apcCanvasInstance: t, theme: o, apiEndpoint: i, isMobile: l, closeMobileModalSecondaryPanel: u, apiKey: f } = y, d = `${i}/api/v1/designer`, [j, a] = M([]), [m, p] = M(!1), [b, s] = M(!1), [g, h] = M(!1), v = sessionStorage.getItem("apc_x_sub_status"), n = sessionStorage.getItem("apc_x_stickers");
4033
4003
  ie(() => {
4034
4004
  p(!0), (async () => {
4035
- j === "active" ? s(!0) : await _(), n ? (a(JSON.parse(n)), p(!1)) : await w();
4005
+ v === "active" ? s(!0) : await _(), n ? (a(JSON.parse(n)), p(!1)) : await w();
4036
4006
  })();
4037
4007
  }, []);
4038
4008
  const w = () => {
4039
4009
  p(!0);
4040
4010
  const A = `${d}/get-stickers`;
4041
- ye.get(A).then((L) => {
4042
- L.data.object && (a(L.data.object.contents), sessionStorage.setItem("apc_x_stickers", JSON.stringify(L.data.object.contents)));
4043
- }).catch((L) => {
4044
- console.error("Error fetching data:", L);
4011
+ ye.get(A).then((R) => {
4012
+ R.data.object && (a(R.data.object.contents), sessionStorage.setItem("apc_x_stickers", JSON.stringify(R.data.object.contents)));
4013
+ }).catch((R) => {
4014
+ console.error("Error fetching data:", R);
4045
4015
  }).finally(() => {
4046
4016
  p(!1);
4047
4017
  });
4048
4018
  }, _ = () => {
4049
4019
  p(!0);
4050
4020
  const A = `${d}/get-subscription-status/${f}`;
4051
- ye.get(A).then((L) => {
4052
- L.data.object && L.data.object === "active" && (sessionStorage.setItem("apc_x_sub_status", "active"), s(!0));
4053
- }).catch((L) => {
4021
+ ye.get(A).then((R) => {
4022
+ R.data.object && R.data.object === "active" && (sessionStorage.setItem("apc_x_sub_status", "active"), s(!0));
4023
+ }).catch((R) => {
4054
4024
  sessionStorage.setItem("apc_x_sub_status", "");
4055
4025
  }).finally(() => {
4056
4026
  p(!1), h(!0);
4057
4027
  });
4058
4028
  };
4059
- return !y && !v && m ? /* @__PURE__ */ e.jsx(ct, {}) : y && b.length > 0 && !v ? /* @__PURE__ */ e.jsx(T.Fragment, { children: /* @__PURE__ */ e.jsx("div", { style: { padding: "10px" }, children: /* @__PURE__ */ e.jsx(
4060
- kn,
4029
+ return !b && !m && g ? /* @__PURE__ */ e.jsx(it, {}) : b && j.length > 0 && !m ? /* @__PURE__ */ e.jsx(E.Fragment, { children: /* @__PURE__ */ e.jsx("div", { style: { padding: "10px" }, children: /* @__PURE__ */ e.jsx(
4030
+ jn,
4061
4031
  {
4062
- data: b,
4032
+ data: j,
4063
4033
  theme: o,
4064
4034
  apcCanvasInstance: t,
4065
4035
  isMobile: l,
4066
4036
  closeMobileModalSecondaryPanel: u
4067
4037
  }
4068
- ) }) }) : /* @__PURE__ */ e.jsx("div", { children: /* @__PURE__ */ e.jsx(at, {}) });
4038
+ ) }) }) : /* @__PURE__ */ e.jsx("div", { children: /* @__PURE__ */ e.jsx(ct, {}) });
4069
4039
  }
4070
- function An(g) {
4040
+ function In(y) {
4071
4041
  const {
4072
- theme: t = yr,
4042
+ theme: t = xr,
4073
4043
  readOnly: o = !1,
4074
4044
  apiKey: i = null,
4075
4045
  handleSaveClick: l,
@@ -4086,18 +4056,18 @@ function An(g) {
4086
4056
  "QRCODE",
4087
4057
  "BARCODE"
4088
4058
  ],
4089
- actionButtons: b = {
4059
+ actionButtons: j = {
4090
4060
  share: !0,
4091
4061
  download: !0,
4092
4062
  submit: !0,
4093
4063
  addToCart: !0
4094
4064
  },
4095
4065
  initInstance: a = null,
4096
- initCategory: v = null,
4066
+ initCategory: m = null,
4097
4067
  additionalActionButton: p = null,
4098
- initProductName: y,
4068
+ initProductName: b,
4099
4069
  isPlainColor: s,
4100
- product: m = {
4070
+ product: g = {
4101
4071
  name: "Premium Crew Neck T-Shirt",
4102
4072
  category: "Tshirts",
4103
4073
  description: "Men's crew neck t-shirts",
@@ -4115,9 +4085,9 @@ function An(g) {
4115
4085
  }
4116
4086
  ]
4117
4087
  }
4118
- } = g, [h, j] = M(d[0]), [n, w] = M(), _ = mt(null), [A, L] = M(), [P, I] = M(!1), [E, V] = M(1), K = 0.1, [Y, ce] = M(1), [ne, se] = M([]), [pe, Te] = M(null), [we, qe] = M(null), [Me, te] = M(0), [Pe, Fe] = M(), [He, ze] = M(null), Ve = mt([]), [Ce, me] = M(null), [G, Re] = M(!1), [Oe, q] = M(!1);
4088
+ } = y, [h, v] = M(d[0]), [n, w] = M(), _ = gt(null), [A, R] = M(), [F, I] = M(!1), [T, V] = M(1), K = 0.1, [Y, ce] = M(1), [ne, se] = M([]), [pe, Ee] = M(null), [we, Qe] = M(null), [Me, te] = M(0), [Fe, Pe] = M(), [He, ze] = M(null), Ve = gt([]), [Ce, me] = M(null), [$, Le] = M(!1), [Oe, q] = M(!1);
4119
4089
  ie(() => {
4120
- const c = () => Re(window.innerWidth < 600);
4090
+ const c = () => Le(window.innerWidth < 600);
4121
4091
  return c(), window.addEventListener("resize", c), () => window.removeEventListener("resize", c);
4122
4092
  }, []), ie(() => {
4123
4093
  const c = document.getElementById("apc-mpx-editor-canvas-container"), O = document.getElementById("apc-mpx-editor-canvas-container");
@@ -4166,7 +4136,7 @@ function An(g) {
4166
4136
  // Horizontal offset of shadow
4167
4137
  offsetY: 5
4168
4138
  // Vertical offset of shadow
4169
- }, k.add(U), m != null && m.mainImage && B.Image.fromURL(m.mainImage, function(X) {
4139
+ }, k.add(U), g != null && g.mainImage && B.Image.fromURL(g.mainImage, function(X) {
4170
4140
  X.height = O.offsetHeight, X.width = c.offsetWidth, X.scaleToWidth(O.offsetHeight), X.scaleToHeight(c.offsetWidth), k.setBackgroundImage(X), k.setActiveObject(U), ue(U), k.renderAll(), S(k);
4171
4141
  }, { crossOrigin: "anonymous" });
4172
4142
  }
@@ -4233,20 +4203,20 @@ function An(g) {
4233
4203
  window.removeEventListener("resize", O);
4234
4204
  };
4235
4205
  }
4236
- }, [n, E]), ie(() => {
4206
+ }, [n, T]), ie(() => {
4237
4207
  const c = () => {
4238
4208
  if (n && _.current) {
4239
- const O = n.getWidth(), z = n.getHeight(), k = window.innerWidth, le = window.innerHeight, U = k / O, X = le / z, rt = Math.min(U, X);
4240
- n.setZoom(rt / 1.4), n.renderAll();
4209
+ const O = n.getWidth(), z = n.getHeight(), k = window.innerWidth, le = window.innerHeight, U = k / O, X = le / z, tt = Math.min(U, X);
4210
+ n.setZoom(tt / 1.4), n.renderAll();
4241
4211
  }
4242
4212
  };
4243
- return G && (c(), window.addEventListener("resize", c)), () => window.removeEventListener("resize", c);
4244
- }, [n, G]);
4213
+ return $ && (c(), window.addEventListener("resize", c)), () => window.removeEventListener("resize", c);
4214
+ }, [n, $]);
4245
4215
  const Ue = () => {
4246
- Ee().then((c) => {
4216
+ Te().then((c) => {
4247
4217
  if (c && c.length > 0) {
4248
4218
  const O = c[0].content;
4249
- y === c[0].id && qe(O);
4219
+ b === c[0].id && Qe(O);
4250
4220
  }
4251
4221
  });
4252
4222
  }, de = (c) => {
@@ -4255,9 +4225,9 @@ function An(g) {
4255
4225
  ze((z) => (Ve.current.push(z), O));
4256
4226
  }
4257
4227
  }, ue = (c) => {
4258
- L(c.type);
4228
+ R(c.type);
4259
4229
  }, Se = () => {
4260
- L(null);
4230
+ R(null);
4261
4231
  }, ve = () => {
4262
4232
  n.getActiveObject() && n.remove(n.getActiveObject());
4263
4233
  }, We = () => {
@@ -4268,11 +4238,11 @@ function An(g) {
4268
4238
  top: c.top + 20
4269
4239
  }), n.add(O);
4270
4240
  }, ke = (c) => {
4271
- Te(c);
4241
+ Ee(c);
4272
4242
  }, Ae = (c) => {
4273
4243
  let O = ne;
4274
4244
  O.push(c), se(O);
4275
- }, $e = (c) => {
4245
+ }, Ge = (c) => {
4276
4246
  c === "lock" ? n.getActiveObject().set({
4277
4247
  lockMovementX: !0,
4278
4248
  lockMovementY: !0
@@ -4280,35 +4250,35 @@ function An(g) {
4280
4250
  lockMovementX: !1,
4281
4251
  lockMovementY: !1
4282
4252
  });
4283
- }, Ze = () => {
4253
+ }, qe = () => {
4284
4254
  n && (n.getActiveObject().bringForward(), n.renderAll());
4285
- }, Le = () => {
4255
+ }, Re = () => {
4286
4256
  n && (n.getActiveObject().sendBackwards(), n.renderAll());
4287
- }, et = () => {
4288
- const c = E + K;
4257
+ }, Ze = () => {
4258
+ const c = T + K;
4289
4259
  V(c), n.setZoom(c);
4290
- }, tt = () => {
4291
- const c = Math.max(E - K, K);
4260
+ }, et = () => {
4261
+ const c = Math.max(T - K, K);
4292
4262
  V(c), n.setZoom(c);
4293
4263
  }, Ie = (c) => {
4294
4264
  n && n.getActiveObject() && n.getActiveObject().type !== "textbox" && c.keyCode === 8 && ve();
4295
4265
  }, S = (c) => {
4296
4266
  const O = localStorage.getItem("apc_x_activeTab");
4297
4267
  if (O)
4298
- Xe(O).then((z) => {
4268
+ Ke(O).then((z) => {
4299
4269
  if (z) {
4300
4270
  const k = JSON.stringify(c);
4301
4271
  De(z.id, z.classification, k, z.misc).then((le) => {
4302
4272
  });
4303
4273
  } else {
4304
4274
  const k = JSON.stringify(c);
4305
- De(m.name ?? "design", "general", k, m).then((le) => {
4275
+ De(g.name ?? "design", "general", k, g).then((le) => {
4306
4276
  });
4307
4277
  }
4308
4278
  });
4309
4279
  else {
4310
4280
  const z = JSON.stringify(c);
4311
- De(m.name ?? "design", "general", z, m).then((k) => {
4281
+ De(g.name ?? "design", "general", z, g).then((k) => {
4312
4282
  });
4313
4283
  }
4314
4284
  }, N = (c, O) => {
@@ -4316,7 +4286,7 @@ function An(g) {
4316
4286
  De(O.id, O.classification, z, O.misc).then((k) => {
4317
4287
  });
4318
4288
  }, J = () => ({
4319
- getPDF: () => Ee().then((c) => {
4289
+ getPDF: () => Te().then((c) => {
4320
4290
  let O = [];
4321
4291
  for (let z in c)
4322
4292
  xe(c[z].content, n.height, n.width, "pdf").then((k) => {
@@ -4324,7 +4294,7 @@ function An(g) {
4324
4294
  });
4325
4295
  return O;
4326
4296
  }),
4327
- getPNG: () => Ee().then((c) => {
4297
+ getPNG: () => Te().then((c) => {
4328
4298
  let O = [];
4329
4299
  for (let z in c)
4330
4300
  xe(c[z].content, n.height, n.width, "png").then((k) => {
@@ -4332,7 +4302,7 @@ function An(g) {
4332
4302
  });
4333
4303
  return O;
4334
4304
  }),
4335
- getSVG: () => Ee().then((c) => {
4305
+ getSVG: () => Te().then((c) => {
4336
4306
  let O = [];
4337
4307
  for (let z in c)
4338
4308
  xe(c[z].content, n.height, n.width, "svg").then((k) => {
@@ -4340,7 +4310,7 @@ function An(g) {
4340
4310
  });
4341
4311
  return O;
4342
4312
  }),
4343
- getJPEG: () => Ee().then((c) => {
4313
+ getJPEG: () => Te().then((c) => {
4344
4314
  let O = [];
4345
4315
  for (let z in c)
4346
4316
  xe(c[z].content, n.height, n.width, "jpeg").then((k) => {
@@ -4348,7 +4318,7 @@ function An(g) {
4348
4318
  });
4349
4319
  return O;
4350
4320
  }),
4351
- getWEBP: () => Ee().then((c) => {
4321
+ getWEBP: () => Te().then((c) => {
4352
4322
  let O = [];
4353
4323
  for (let z in c)
4354
4324
  xe(c[z].content, n.height, n.width, "webp").then((k) => {
@@ -4358,7 +4328,7 @@ function An(g) {
4358
4328
  }),
4359
4329
  getImageActiveTab: () => {
4360
4330
  const c = localStorage.getItem("apc_x_activeTab");
4361
- return Xe(c).then((O) => xe(O.content, n.height, n.width, "png").then((z) => {
4331
+ return Ke(c).then((O) => xe(O.content, n.height, n.width, "png").then((z) => {
4362
4332
  let k = {};
4363
4333
  return k.file = z, k.height = n.height, k.width = n.width, k;
4364
4334
  }));
@@ -4372,8 +4342,8 @@ function An(g) {
4372
4342
  const z = n.getActiveObject(), k = c.target.files[0], le = new FileReader();
4373
4343
  le.onload = function(U) {
4374
4344
  const X = U.target.result;
4375
- z.setSrc(X, function(rt) {
4376
- rt.set({
4345
+ z.setSrc(X, function(tt) {
4346
+ tt.set({
4377
4347
  angle: 30
4378
4348
  }), n && n.renderAll();
4379
4349
  });
@@ -4384,18 +4354,18 @@ function An(g) {
4384
4354
  switch (h) {
4385
4355
  case "ICONS":
4386
4356
  return /* @__PURE__ */ e.jsx(
4387
- fn,
4357
+ an,
4388
4358
  {
4389
4359
  apcCanvasInstance: n,
4390
4360
  theme: t,
4391
4361
  apiKey: i,
4392
- isMobile: G,
4362
+ isMobile: $,
4393
4363
  closeMobileModalSecondaryPanel: (c) => q(!c)
4394
4364
  }
4395
4365
  );
4396
4366
  case "TEMPLATES":
4397
4367
  return /* @__PURE__ */ e.jsx(
4398
- nn,
4368
+ Qr,
4399
4369
  {
4400
4370
  apcCanvasInstance: n,
4401
4371
  theme: t,
@@ -4403,75 +4373,75 @@ function An(g) {
4403
4373
  apiEndpoint: f,
4404
4374
  reloadTabs: (c) => te(c),
4405
4375
  updateActiveSection: (c) => ke(c),
4406
- initCategory: v,
4376
+ initCategory: m,
4407
4377
  currentTabNo: Me,
4408
4378
  initInstance: a,
4409
4379
  setActiveTab: (c) => me(c),
4410
- isMobile: G,
4380
+ isMobile: $,
4411
4381
  closeMobileModalSecondaryPanel: (c) => q(!c)
4412
4382
  }
4413
4383
  );
4414
4384
  case "TXT":
4415
4385
  return /* @__PURE__ */ e.jsx(
4416
- hn,
4386
+ sn,
4417
4387
  {
4418
4388
  apcCanvasInstance: n,
4419
4389
  theme: t,
4420
4390
  apiKey: i,
4421
- isMobile: G,
4391
+ isMobile: $,
4422
4392
  closeMobileModalSecondaryPanel: (c) => q(!c)
4423
4393
  }
4424
4394
  );
4425
4395
  case "IMAGE":
4426
4396
  return /* @__PURE__ */ e.jsx(
4427
- un,
4397
+ cn,
4428
4398
  {
4429
4399
  apcCanvasInstance: n,
4430
4400
  theme: t,
4431
4401
  apiKey: i,
4432
4402
  apiEndpoint: f,
4433
- isMobile: G,
4403
+ isMobile: $,
4434
4404
  closeMobileModalSecondaryPanel: (c) => q(!c)
4435
4405
  }
4436
4406
  );
4437
4407
  case "STICKERS":
4438
4408
  return /* @__PURE__ */ e.jsx(
4439
- On,
4409
+ yn,
4440
4410
  {
4441
4411
  apcCanvasInstance: n,
4442
4412
  theme: t,
4443
4413
  apiEndpoint: f,
4444
- isMobile: G,
4414
+ isMobile: $,
4445
4415
  apiKey: i,
4446
4416
  closeMobileModalSecondaryPanel: (c) => q(!c)
4447
4417
  }
4448
4418
  );
4449
4419
  case "SHAPES":
4450
4420
  return /* @__PURE__ */ e.jsx(
4451
- Rt,
4421
+ Mt,
4452
4422
  {
4453
4423
  apcCanvasInstance: n,
4454
4424
  theme: t,
4455
4425
  apiKey: i,
4456
- isMobile: G,
4426
+ isMobile: $,
4457
4427
  closeMobileModalSecondaryPanel: (c) => q(!c)
4458
4428
  }
4459
4429
  );
4460
4430
  case "QUOTE":
4461
4431
  return /* @__PURE__ */ e.jsx(
4462
- xn,
4432
+ ln,
4463
4433
  {
4464
4434
  apcCanvasInstance: n,
4465
4435
  theme: t,
4466
4436
  apiKey: i,
4467
4437
  apiEndpoint: f,
4468
- isMobile: G,
4438
+ isMobile: $,
4469
4439
  closeMobileModalSecondaryPanel: (c) => q(!c)
4470
4440
  }
4471
4441
  );
4472
4442
  case "BACKGROUND":
4473
4443
  return /* @__PURE__ */ e.jsx(
4474
- gn,
4444
+ dn,
4475
4445
  {
4476
4446
  apcCanvasInstance: n,
4477
4447
  theme: t,
@@ -4480,53 +4450,53 @@ function An(g) {
4480
4450
  updateActiveSection: (c) => ke(c),
4481
4451
  reloadTabs: (c) => te(c),
4482
4452
  currentTabNo: Me,
4483
- isMobile: G,
4453
+ isMobile: $,
4484
4454
  closeMobileModalSecondaryPanel: (c) => q(!c)
4485
4455
  }
4486
4456
  );
4487
4457
  case "QRCODE":
4488
4458
  return /* @__PURE__ */ e.jsx(
4489
- mn,
4459
+ hn,
4490
4460
  {
4491
4461
  apcCanvasInstance: n,
4492
4462
  theme: t,
4493
4463
  apiKey: i,
4494
4464
  apiEndpoint: f,
4495
- isMobile: G,
4465
+ isMobile: $,
4496
4466
  closeMobileModalSecondaryPanel: (c) => q(!c)
4497
4467
  }
4498
4468
  );
4499
4469
  case "BARCODE":
4500
4470
  return /* @__PURE__ */ e.jsx(
4501
- vn,
4471
+ pn,
4502
4472
  {
4503
4473
  apcCanvasInstance: n,
4504
4474
  theme: t,
4505
4475
  apiKey: i,
4506
4476
  apiEndpoint: f,
4507
- isMobile: G,
4477
+ isMobile: $,
4508
4478
  closeMobileModalSecondaryPanel: (c) => q(!c)
4509
4479
  }
4510
4480
  );
4511
4481
  case "SIZE":
4512
4482
  return /* @__PURE__ */ e.jsx(
4513
- jn,
4483
+ un,
4514
4484
  {
4515
4485
  apcCanvasInstance: n,
4516
4486
  theme: t,
4517
4487
  apiKey: i,
4518
- isMobile: G,
4488
+ isMobile: $,
4519
4489
  closeMobileModalSecondaryPanel: (c) => q(!c)
4520
4490
  }
4521
4491
  );
4522
4492
  default:
4523
4493
  return /* @__PURE__ */ e.jsx(
4524
- Rt,
4494
+ Mt,
4525
4495
  {
4526
4496
  apcCanvasInstance: n,
4527
4497
  theme: t,
4528
4498
  apiKey: i,
4529
- isMobile: G,
4499
+ isMobile: $,
4530
4500
  closeMobileModalSecondaryPanel: (c) => q(!c)
4531
4501
  }
4532
4502
  );
@@ -4536,29 +4506,29 @@ function An(g) {
4536
4506
  return null;
4537
4507
  switch (A) {
4538
4508
  case "text":
4539
- return /* @__PURE__ */ e.jsx(Lt, { apcCanvasInstance: n, theme: t, apiKey: i });
4509
+ return /* @__PURE__ */ e.jsx(zt, { apcCanvasInstance: n, theme: t, apiKey: i });
4540
4510
  case "textbox":
4541
- return /* @__PURE__ */ e.jsx(Lt, { apcCanvasInstance: n, theme: t, apiKey: i });
4511
+ return /* @__PURE__ */ e.jsx(zt, { apcCanvasInstance: n, theme: t, apiKey: i });
4542
4512
  case "rect":
4543
- return /* @__PURE__ */ e.jsx(Ke, { apcCanvasInstance: n, theme: t, apiKey: i });
4513
+ return /* @__PURE__ */ e.jsx(Ye, { apcCanvasInstance: n, theme: t, apiKey: i });
4544
4514
  case "circle":
4545
- return /* @__PURE__ */ e.jsx(Ke, { apcCanvasInstance: n, theme: t, apiKey: i });
4515
+ return /* @__PURE__ */ e.jsx(Ye, { apcCanvasInstance: n, theme: t, apiKey: i });
4546
4516
  case "triangle":
4547
- return /* @__PURE__ */ e.jsx(Ke, { apcCanvasInstance: n, theme: t, apiKey: i });
4517
+ return /* @__PURE__ */ e.jsx(Ye, { apcCanvasInstance: n, theme: t, apiKey: i });
4548
4518
  case "line":
4549
- return /* @__PURE__ */ e.jsx(Ke, { apcCanvasInstance: n, theme: t, apiKey: i });
4519
+ return /* @__PURE__ */ e.jsx(Ye, { apcCanvasInstance: n, theme: t, apiKey: i });
4550
4520
  case "path":
4551
- return /* @__PURE__ */ e.jsx(Ke, { apcCanvasInstance: n, theme: t, apiKey: i });
4521
+ return /* @__PURE__ */ e.jsx(Ye, { apcCanvasInstance: n, theme: t, apiKey: i });
4552
4522
  case "polygon":
4553
- return /* @__PURE__ */ e.jsx(Ke, { apcCanvasInstance: n, theme: t, apiKey: i });
4523
+ return /* @__PURE__ */ e.jsx(Ye, { apcCanvasInstance: n, theme: t, apiKey: i });
4554
4524
  case "image":
4555
4525
  return D();
4556
4526
  default:
4557
4527
  return null;
4558
4528
  }
4559
4529
  }, re = (c) => {
4560
- j(c), G && q(!0);
4561
- }, Ge = () => /* @__PURE__ */ e.jsx("div", { id: "selectionRectangle", style: { marginLeft: "auto", position: "relative" }, children: /* @__PURE__ */ e.jsxs("div", { style: { display: "flex", flexDirection: "row", gap: 10, marginTop: "8px" }, children: [
4530
+ v(c), $ && q(!0);
4531
+ }, $e = () => /* @__PURE__ */ e.jsx("div", { id: "selectionRectangle", style: { marginLeft: "auto", position: "relative" }, children: /* @__PURE__ */ e.jsxs("div", { style: { display: "flex", flexDirection: "row", gap: 10, marginTop: "8px" }, children: [
4562
4532
  /* @__PURE__ */ e.jsxs(
4563
4533
  "div",
4564
4534
  {
@@ -4575,7 +4545,7 @@ function An(g) {
4575
4545
  height: "16",
4576
4546
  width: "14",
4577
4547
  viewBox: "0 0 448 512",
4578
- children: /* @__PURE__ */ e.jsx("path", { d: Bt, fill: "#d8d4d4" })
4548
+ children: /* @__PURE__ */ e.jsx("path", { d: Lt, fill: "#d8d4d4" })
4579
4549
  }
4580
4550
  ),
4581
4551
  /* @__PURE__ */ e.jsx("div", { className: "apc-mpx-tooltip-text", children: "Delete" })
@@ -4587,7 +4557,7 @@ function An(g) {
4587
4557
  {
4588
4558
  className: "apc-mpx-tooltip-container",
4589
4559
  role: "button",
4590
- onClick: () => Le(),
4560
+ onClick: () => Re(),
4591
4561
  style: { cursor: "pointer" },
4592
4562
  children: [
4593
4563
  /* @__PURE__ */ e.jsxs(
@@ -4619,7 +4589,7 @@ function An(g) {
4619
4589
  {
4620
4590
  className: "apc-mpx-tooltip-container",
4621
4591
  role: "button",
4622
- onClick: () => Ze(),
4592
+ onClick: () => qe(),
4623
4593
  style: { cursor: "pointer" },
4624
4594
  children: [
4625
4595
  /* @__PURE__ */ e.jsxs(
@@ -4650,7 +4620,7 @@ function An(g) {
4650
4620
  "div",
4651
4621
  {
4652
4622
  className: "apc-mpx-tooltip-container",
4653
- onClick: () => $e("lock"),
4623
+ onClick: () => Ge("lock"),
4654
4624
  style: { cursor: "pointer" },
4655
4625
  children: [
4656
4626
  /* @__PURE__ */ e.jsx(
@@ -4678,7 +4648,7 @@ function An(g) {
4678
4648
  "div",
4679
4649
  {
4680
4650
  className: "apc-mpx-tooltip-container",
4681
- onClick: () => $e("unlock"),
4651
+ onClick: () => Ge("unlock"),
4682
4652
  style: { cursor: "pointer" },
4683
4653
  children: [
4684
4654
  /* @__PURE__ */ e.jsx(
@@ -4730,7 +4700,7 @@ function An(g) {
4730
4700
  ]
4731
4701
  }
4732
4702
  )
4733
- ] }) }), _e = () => n ? /* @__PURE__ */ e.jsx("div", { style: { height: "10vh", overflow: "auto" }, children: /* @__PURE__ */ e.jsx(lt, { isOpen: Oe, onClose: () => q(!1), children: fe() }) }) : null, be = () => n ? G ? _e() : fe() : null;
4703
+ ] }) }), _e = () => n ? /* @__PURE__ */ e.jsx("div", { style: { height: "10vh", overflow: "auto" }, children: /* @__PURE__ */ e.jsx(at, { isOpen: Oe, onClose: () => q(!1), children: fe() }) }) : null, be = () => n ? $ ? _e() : fe() : null;
4734
4704
  return /* @__PURE__ */ e.jsxs("div", { className: "apc-mpc-widget-wrapper", children: [
4735
4705
  /* @__PURE__ */ e.jsxs("div", { style: {
4736
4706
  display: "flex",
@@ -4754,22 +4724,22 @@ function An(g) {
4754
4724
  fontWeight: "bold"
4755
4725
  },
4756
4726
  children: [
4757
- /* @__PURE__ */ e.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", height: "1em", viewBox: "0 0 448 512", children: /* @__PURE__ */ e.jsx("path", { fill: "#ffffff", d: Zr }) }),
4727
+ /* @__PURE__ */ e.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", height: "1em", viewBox: "0 0 448 512", children: /* @__PURE__ */ e.jsx("path", { fill: "#ffffff", d: Jr }) }),
4758
4728
  " Back"
4759
4729
  ]
4760
4730
  }
4761
4731
  ) }) }),
4762
4732
  /* @__PURE__ */ e.jsx("div", { style: { flexBasis: "20%" } }),
4763
4733
  /* @__PURE__ */ e.jsx("div", { style: { flexBasis: "40%" }, children: /* @__PURE__ */ e.jsx("div", { style: { display: "flex", flexDirection: "row", gap: 10 }, children: /* @__PURE__ */ e.jsx("div", { children: /* @__PURE__ */ e.jsxs("div", { style: { display: "flex", flexDirection: "row", gap: 5 }, children: [
4764
- /* @__PURE__ */ e.jsx("div", { children: n && b.share ? /* @__PURE__ */ e.jsx("div", { children: /* @__PURE__ */ e.jsx(
4765
- wn,
4734
+ /* @__PURE__ */ e.jsx("div", { children: n && j.share ? /* @__PURE__ */ e.jsx("div", { children: /* @__PURE__ */ e.jsx(
4735
+ gn,
4766
4736
  {
4767
4737
  apcCanvasInstance: n,
4768
4738
  theme: t
4769
4739
  }
4770
4740
  ) }) : null }),
4771
- /* @__PURE__ */ e.jsx("div", { children: n && b.download ? /* @__PURE__ */ e.jsx("div", { children: /* @__PURE__ */ e.jsx(
4772
- Cn,
4741
+ /* @__PURE__ */ e.jsx("div", { children: n && j.download ? /* @__PURE__ */ e.jsx("div", { children: /* @__PURE__ */ e.jsx(
4742
+ mn,
4773
4743
  {
4774
4744
  apcCanvasInstance: n,
4775
4745
  theme: t,
@@ -4811,7 +4781,7 @@ function An(g) {
4811
4781
  viewBox: "0 0 448 512",
4812
4782
  style: { fill: h === "TXT" ? "#ffffff" : t.primaryColor },
4813
4783
  className: "apc-mypixia-widget-primary-nav-svg",
4814
- children: /* @__PURE__ */ e.jsx("path", { d: Br })
4784
+ children: /* @__PURE__ */ e.jsx("path", { d: Er })
4815
4785
  }
4816
4786
  ),
4817
4787
  /* @__PURE__ */ e.jsx("div", { children: "Text" })
@@ -4830,7 +4800,7 @@ function An(g) {
4830
4800
  viewBox: "0 0 640 512",
4831
4801
  style: { fill: h === "STICKERS" ? "#ffffff" : t.primaryColor },
4832
4802
  className: "apc-mypixia-widget-primary-nav-svg",
4833
- children: /* @__PURE__ */ e.jsx("path", { d: Xr })
4803
+ children: /* @__PURE__ */ e.jsx("path", { d: Wr })
4834
4804
  }
4835
4805
  ),
4836
4806
  /* @__PURE__ */ e.jsx("div", { children: "Stickers" })
@@ -4849,7 +4819,7 @@ function An(g) {
4849
4819
  viewBox: "0 0 512 512",
4850
4820
  style: { fill: h === "SHAPES" ? "#ffffff" : t.primaryColor },
4851
4821
  className: "apc-mypixia-widget-primary-nav-svg",
4852
- children: /* @__PURE__ */ e.jsx("path", { d: Lr })
4822
+ children: /* @__PURE__ */ e.jsx("path", { d: Ir })
4853
4823
  }
4854
4824
  ),
4855
4825
  /* @__PURE__ */ e.jsx("div", { children: "Shapes" })
@@ -4868,7 +4838,7 @@ function An(g) {
4868
4838
  viewBox: "0 0 512 512",
4869
4839
  style: { fill: h === "ICONS" ? "#ffffff" : t.primaryColor },
4870
4840
  className: "apc-mypixia-widget-primary-nav-svg",
4871
- children: /* @__PURE__ */ e.jsx("path", { d: _r })
4841
+ children: /* @__PURE__ */ e.jsx("path", { d: Tr })
4872
4842
  }
4873
4843
  ),
4874
4844
  /* @__PURE__ */ e.jsx("div", { children: "Icons" })
@@ -4887,7 +4857,7 @@ function An(g) {
4887
4857
  viewBox: "0 0 512 512",
4888
4858
  style: { fill: h === "IMAGE" ? "#ffffff" : t.primaryColor },
4889
4859
  className: "apc-mypixia-widget-primary-nav-svg",
4890
- children: /* @__PURE__ */ e.jsx("path", { d: Dt })
4860
+ children: /* @__PURE__ */ e.jsx("path", { d: Rt })
4891
4861
  }
4892
4862
  ),
4893
4863
  /* @__PURE__ */ e.jsx("div", { children: "Upload" })
@@ -4906,7 +4876,7 @@ function An(g) {
4906
4876
  viewBox: "0 0 512 512",
4907
4877
  style: { fill: h === "QUOTE" ? "#ffffff" : t.primaryColor },
4908
4878
  className: "apc-mypixia-widget-primary-nav-svg",
4909
- children: /* @__PURE__ */ e.jsx("path", { d: Dr })
4879
+ children: /* @__PURE__ */ e.jsx("path", { d: Mr })
4910
4880
  }
4911
4881
  ),
4912
4882
  /* @__PURE__ */ e.jsx("div", { children: "Quote" })
@@ -4925,7 +4895,7 @@ function An(g) {
4925
4895
  viewBox: "0 0 640 512",
4926
4896
  style: { fill: h === "BACKGROUND" ? "#ffffff" : t.primaryColor },
4927
4897
  className: "apc-mypixia-widget-primary-nav-svg",
4928
- children: /* @__PURE__ */ e.jsx("path", { d: Pr })
4898
+ children: /* @__PURE__ */ e.jsx("path", { d: zr })
4929
4899
  }
4930
4900
  ),
4931
4901
  /* @__PURE__ */ e.jsx("div", { children: "Background" })
@@ -4944,7 +4914,7 @@ function An(g) {
4944
4914
  viewBox: "0 0 640 512",
4945
4915
  style: { fill: h === "QRCODE" ? "#ffffff" : t.primaryColor },
4946
4916
  className: "apc-mypixia-widget-primary-nav-svg",
4947
- children: /* @__PURE__ */ e.jsx("path", { d: Fr })
4917
+ children: /* @__PURE__ */ e.jsx("path", { d: Lr })
4948
4918
  }
4949
4919
  ),
4950
4920
  /* @__PURE__ */ e.jsx("div", { children: "QR Code" })
@@ -4963,7 +4933,7 @@ function An(g) {
4963
4933
  viewBox: "0 0 512 512",
4964
4934
  style: { fill: h === "BARCODE" ? "#ffffff" : t.primaryColor },
4965
4935
  className: "apc-mypixia-widget-primary-nav-svg",
4966
- children: /* @__PURE__ */ e.jsx("path", { d: Hr })
4936
+ children: /* @__PURE__ */ e.jsx("path", { d: Rr })
4967
4937
  }
4968
4938
  ),
4969
4939
  /* @__PURE__ */ e.jsx("div", { children: "Barcode" })
@@ -4982,7 +4952,7 @@ function An(g) {
4982
4952
  viewBox: "0 0 448 512",
4983
4953
  style: { fill: h === "SIZE" ? "#ffffff" : t.primaryColor },
4984
4954
  className: "apc-mypixia-widget-primary-nav-svg",
4985
- children: /* @__PURE__ */ e.jsx("path", { d: Vr })
4955
+ children: /* @__PURE__ */ e.jsx("path", { d: _r })
4986
4956
  }
4987
4957
  ),
4988
4958
  /* @__PURE__ */ e.jsx("div", { children: "Size" })
@@ -4990,41 +4960,37 @@ function An(g) {
4990
4960
  ] }) }),
4991
4961
  /* @__PURE__ */ e.jsx("div", { className: "apc-mpc-widget-colum-features-container", children: be() }),
4992
4962
  /* @__PURE__ */ e.jsx("div", { className: "apc-mpc-widget-colum-editor-container", children: /* @__PURE__ */ e.jsx(
4993
- Sn,
4963
+ vn,
4994
4964
  {
4995
4965
  theme: t,
4996
4966
  activeSection: pe,
4997
4967
  selectedObjectType: A,
4998
- renderQuickActions: Ge,
4968
+ renderQuickActions: $e,
4999
4969
  renderActionItems: je,
5000
4970
  canvasEl: _,
5001
- zoomIn: () => et(),
5002
- zoomOut: () => tt(),
4971
+ zoomIn: () => Ze(),
4972
+ zoomOut: () => et(),
5003
4973
  apcCanvasInstance: n,
5004
- setActiveSection: (c) => Te(c),
4974
+ setActiveSection: (c) => Ee(c),
5005
4975
  updateActiveDesignSection: (c) => ke(c),
5006
4976
  saveActiveDesign: (c, O) => N(c, O),
5007
4977
  reloadTabs: Me,
5008
4978
  activeTabName: Ce,
5009
- supportedColors: Pe,
5010
- initProductName: y,
4979
+ supportedColors: Fe,
4980
+ initProductName: b,
5011
4981
  historyRef: Ve,
5012
4982
  currentState: He,
5013
4983
  setCurrentState: (c) => ze(c),
5014
4984
  isPlainColor: s,
5015
- selectedProduct: m,
5016
- isMobile: G
4985
+ selectedProduct: g,
4986
+ isMobile: $
5017
4987
  }
5018
4988
  ) })
5019
4989
  ] }),
5020
4990
  /* @__PURE__ */ e.jsx("div", { id: "apc-mpx-editor-modal-root" }),
5021
- G ? _e() : null
4991
+ $ ? _e() : null
5022
4992
  ] });
5023
4993
  }
5024
- function _n(g, t = {}) {
5025
- br.createRoot(g).render(/* @__PURE__ */ e.jsx(An, { ...t }));
5026
- }
5027
4994
  export {
5028
- An as Mypixia,
5029
- _n as render
4995
+ In as default
5030
4996
  };