@mypixia/simplex-designer 1.0.6 → 1.0.8

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,11 +1,14 @@
1
- import K, { useState as S, useEffect as re, useRef as ot } from "react";
2
- import { fabric as _ } from "fabric";
1
+ import T, { useState as M, useEffect as ie, useRef as mt } from "react";
2
+ import _t from "react-dom";
3
+ import { fabric as B } from "fabric";
3
4
  import ye from "axios";
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 lr, InstapaperShareButton as ar, InstapaperIcon as dr } from "react-share";
7
- import hr from "react-dom";
8
- import './index.css';var st = { exports: {} }, rt = {};
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 = {};
9
12
  /**
10
13
  * @license React
11
14
  * react-jsx-runtime.production.min.js
@@ -15,21 +18,21 @@ import './index.css';var st = { exports: {} }, rt = {};
15
18
  * This source code is licensed under the MIT license found in the
16
19
  * LICENSE file in the root directory of this source tree.
17
20
  */
18
- var mt;
19
- function pr() {
20
- if (mt) return rt;
21
- mt = 1;
22
- var y = K, t = Symbol.for("react.element"), o = Symbol.for("react.fragment"), i = Object.prototype.hasOwnProperty, a = 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, l) {
24
- var m, p = {}, b = null, s = null;
25
- l !== void 0 && (b = "" + l), 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: a.current };
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 };
29
32
  }
30
- return rt.Fragment = o, rt.jsx = f, rt.jsxs = f, rt;
33
+ return nt.Fragment = o, nt.jsx = f, nt.jsxs = f, nt;
31
34
  }
32
- var nt = {};
35
+ var st = {};
33
36
  /**
34
37
  * @license React
35
38
  * react-jsx-runtime.development.js
@@ -39,54 +42,54 @@ var nt = {};
39
42
  * This source code is licensed under the MIT license found in the
40
43
  * LICENSE file in the root directory of this source tree.
41
44
  */
42
- var vt;
43
- function ur() {
44
- return vt || (vt = 1, process.env.NODE_ENV !== "production" && function() {
45
- var y = K, t = Symbol.for("react.element"), o = Symbol.for("react.portal"), i = Symbol.for("react.fragment"), a = 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"), l = 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) {
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) {
47
50
  if (r === null || typeof r != "object")
48
51
  return null;
49
- var x = g && r[g] || r[h];
52
+ var x = m && r[m] || r[h];
50
53
  return typeof x == "function" ? x : null;
51
54
  }
52
- var n = y.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
55
+ var n = g.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
53
56
  function w(r) {
54
57
  {
55
- for (var x = arguments.length, C = new Array(x > 1 ? x - 1 : 0), z = 1; z < x; z++)
56
- C[z - 1] = arguments[z];
57
- R("error", r, C);
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];
60
+ _("error", r, C);
58
61
  }
59
62
  }
60
- function R(r, x, C) {
63
+ function _(r, x, C) {
61
64
  {
62
- var z = n.ReactDebugCurrentFrame, U = z.getStackAddendum();
63
- U !== "" && (x += "%s", C = C.concat([U]));
64
- var W = C.map(function(P) {
65
- return String(P);
65
+ var R = n.ReactDebugCurrentFrame, W = R.getStackAddendum();
66
+ W !== "" && (x += "%s", C = C.concat([W]));
67
+ var $ = C.map(function(H) {
68
+ return String(H);
66
69
  });
67
- W.unshift("Warning: " + x), Function.prototype.apply.call(console[r], console, W);
70
+ $.unshift("Warning: " + x), Function.prototype.apply.call(console[r], console, $);
68
71
  }
69
72
  }
70
- var I = !1, L = !1, D = !1, T = !1, E = !1, H;
71
- H = Symbol.for("react.module.reference");
72
- function Y(r) {
73
- return !!(typeof r == "string" || typeof r == "function" || r === i || r === u || E || r === a || r === l || r === m || T || r === s || I || L || D || 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
73
+ var A = !1, L = !1, P = !1, I = !1, E = !1, V;
74
+ V = Symbol.for("react.module.reference");
75
+ 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
74
77
  // types supported by any Flight configuration anywhere since
75
78
  // we don't know which Flight build this will end up being used
76
79
  // with.
77
- r.$$typeof === H || r.getModuleId !== void 0));
80
+ r.$$typeof === V || r.getModuleId !== void 0));
78
81
  }
79
- function J(r, x, C) {
80
- var z = r.displayName;
81
- if (z)
82
- return z;
83
- var U = x.displayName || x.name || "";
84
- return U !== "" ? C + "(" + U + ")" : C;
82
+ function Y(r, x, C) {
83
+ var R = r.displayName;
84
+ if (R)
85
+ return R;
86
+ var W = x.displayName || x.name || "";
87
+ return W !== "" ? C + "(" + W + ")" : C;
85
88
  }
86
89
  function ce(r) {
87
90
  return r.displayName || "Context";
88
91
  }
89
- function se(r) {
92
+ function ne(r) {
90
93
  if (r == null)
91
94
  return null;
92
95
  if (typeof r.tag == "number" && w("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof r == "function")
@@ -100,11 +103,11 @@ function ur() {
100
103
  return "Portal";
101
104
  case u:
102
105
  return "Profiler";
103
- case a:
104
- return "StrictMode";
105
106
  case l:
107
+ return "StrictMode";
108
+ case a:
106
109
  return "Suspense";
107
- case m:
110
+ case v:
108
111
  return "SuspenseList";
109
112
  }
110
113
  if (typeof r == "object")
@@ -115,15 +118,15 @@ function ur() {
115
118
  case f:
116
119
  var C = r;
117
120
  return ce(C._context) + ".Provider";
118
- case j:
119
- return J(r, r.render, "ForwardRef");
121
+ case b:
122
+ return Y(r, r.render, "ForwardRef");
120
123
  case p:
121
- var z = r.displayName || null;
122
- return z !== null ? z : se(r.type) || "Memo";
123
- case b: {
124
- var U = r, W = U._payload, P = U._init;
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;
125
128
  try {
126
- return se(P(W));
129
+ return ne(H($));
127
130
  } catch {
128
131
  return null;
129
132
  }
@@ -131,14 +134,14 @@ function ur() {
131
134
  }
132
135
  return null;
133
136
  }
134
- var oe = Object.assign, pe = 0, Ee, we, Qe, Me, te, Fe, Pe;
137
+ var se = Object.assign, pe = 0, Te, we, qe, Me, te, Pe, Fe;
135
138
  function He() {
136
139
  }
137
140
  He.__reactDisabledLog = !0;
138
141
  function ze() {
139
142
  {
140
143
  if (pe === 0) {
141
- Ee = console.log, we = console.info, Qe = console.warn, Me = console.error, te = console.group, Fe = console.groupCollapsed, Pe = console.groupEnd;
144
+ Te = console.log, we = console.info, qe = console.warn, Me = console.error, te = console.group, Pe = console.groupCollapsed, Fe = console.groupEnd;
142
145
  var r = {
143
146
  configurable: !0,
144
147
  enumerable: !0,
@@ -167,26 +170,26 @@ function ur() {
167
170
  writable: !0
168
171
  };
169
172
  Object.defineProperties(console, {
170
- log: oe({}, r, {
171
- value: Ee
173
+ log: se({}, r, {
174
+ value: Te
172
175
  }),
173
- info: oe({}, r, {
176
+ info: se({}, r, {
174
177
  value: we
175
178
  }),
176
- warn: oe({}, r, {
177
- value: Qe
179
+ warn: se({}, r, {
180
+ value: qe
178
181
  }),
179
- error: oe({}, r, {
182
+ error: se({}, r, {
180
183
  value: Me
181
184
  }),
182
- group: oe({}, r, {
185
+ group: se({}, r, {
183
186
  value: te
184
187
  }),
185
- groupCollapsed: oe({}, r, {
186
- value: Fe
187
- }),
188
- groupEnd: oe({}, r, {
188
+ groupCollapsed: se({}, r, {
189
189
  value: Pe
190
+ }),
191
+ groupEnd: se({}, r, {
192
+ value: Fe
190
193
  })
191
194
  });
192
195
  }
@@ -199,76 +202,76 @@ function ur() {
199
202
  if (me === void 0)
200
203
  try {
201
204
  throw Error();
202
- } catch (U) {
203
- var z = U.stack.trim().match(/\n( *(at )?)/);
204
- me = z && z[1] || "";
205
+ } catch (W) {
206
+ var R = W.stack.trim().match(/\n( *(at )?)/);
207
+ me = R && R[1] || "";
205
208
  }
206
209
  return `
207
210
  ` + me + r;
208
211
  }
209
212
  }
210
- var Le = !1, Oe;
213
+ var Re = !1, Oe;
211
214
  {
212
215
  var q = typeof WeakMap == "function" ? WeakMap : Map;
213
216
  Oe = new q();
214
217
  }
215
218
  function Ue(r, x) {
216
- if (!r || Le)
219
+ if (!r || Re)
217
220
  return "";
218
221
  {
219
222
  var C = Oe.get(r);
220
223
  if (C !== void 0)
221
224
  return C;
222
225
  }
223
- var z;
224
- Le = !0;
225
- var U = Error.prepareStackTrace;
226
+ var R;
227
+ Re = !0;
228
+ var W = Error.prepareStackTrace;
226
229
  Error.prepareStackTrace = void 0;
227
- var W;
228
- W = Ce.current, Ce.current = null, ze();
230
+ var $;
231
+ $ = Ce.current, Ce.current = null, ze();
229
232
  try {
230
233
  if (x) {
231
- var P = function() {
234
+ var H = function() {
232
235
  throw Error();
233
236
  };
234
- if (Object.defineProperty(P.prototype, "props", {
237
+ if (Object.defineProperty(H.prototype, "props", {
235
238
  set: function() {
236
239
  throw Error();
237
240
  }
238
241
  }), typeof Reflect == "object" && Reflect.construct) {
239
242
  try {
240
- Reflect.construct(P, []);
241
- } catch (le) {
242
- z = le;
243
+ Reflect.construct(H, []);
244
+ } catch (ae) {
245
+ R = ae;
243
246
  }
244
- Reflect.construct(r, [], P);
247
+ Reflect.construct(r, [], H);
245
248
  } else {
246
249
  try {
247
- P.call();
248
- } catch (le) {
249
- z = le;
250
+ H.call();
251
+ } catch (ae) {
252
+ R = ae;
250
253
  }
251
- r.call(P.prototype);
254
+ r.call(H.prototype);
252
255
  }
253
256
  } else {
254
257
  try {
255
258
  throw Error();
256
- } catch (le) {
257
- z = le;
259
+ } catch (ae) {
260
+ R = ae;
258
261
  }
259
262
  r();
260
263
  }
261
- } catch (le) {
262
- if (le && z && typeof le.stack == "string") {
263
- for (var F = le.stack.split(`
264
- `), ie = z.stack.split(`
265
- `), Q = F.length - 1, ee = ie.length - 1; Q >= 1 && ee >= 0 && F[Q] !== ie[ee]; )
264
+ } 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]; )
266
269
  ee--;
267
270
  for (; Q >= 1 && ee >= 0; Q--, ee--)
268
- if (F[Q] !== ie[ee]) {
271
+ if (F[Q] !== oe[ee]) {
269
272
  if (Q !== 1 || ee !== 1)
270
273
  do
271
- if (Q--, ee--, ee < 0 || F[Q] !== ie[ee]) {
274
+ if (Q--, ee--, ee < 0 || F[Q] !== oe[ee]) {
272
275
  var he = `
273
276
  ` + F[Q].replace(" at new ", " at ");
274
277
  return r.displayName && he.includes("<anonymous>") && (he = he.replace("<anonymous>", r.displayName)), typeof r == "function" && Oe.set(r, he), he;
@@ -278,7 +281,7 @@ function ur() {
278
281
  }
279
282
  }
280
283
  } finally {
281
- Le = !1, Ce.current = W, Ve(), Error.prepareStackTrace = U;
284
+ Re = !1, Ce.current = $, Ve(), Error.prepareStackTrace = W;
282
285
  }
283
286
  var Je = r ? r.displayName || r.name : "", Be = Je ? G(Je) : "";
284
287
  return typeof r == "function" && Oe.set(r, Be), Be;
@@ -298,21 +301,21 @@ function ur() {
298
301
  if (typeof r == "string")
299
302
  return G(r);
300
303
  switch (r) {
301
- case l:
304
+ case a:
302
305
  return G("Suspense");
303
- case m:
306
+ case v:
304
307
  return G("SuspenseList");
305
308
  }
306
309
  if (typeof r == "object")
307
310
  switch (r.$$typeof) {
308
- case j:
311
+ case b:
309
312
  return de(r.render);
310
313
  case p:
311
314
  return Se(r.type, x, C);
312
- case b: {
313
- var z = r, U = z._payload, W = z._init;
315
+ case y: {
316
+ var R = r, W = R._payload, $ = R._init;
314
317
  try {
315
- return Se(W(U), x, C);
318
+ return Se($(W), x, C);
316
319
  } catch {
317
320
  }
318
321
  }
@@ -327,36 +330,36 @@ function ur() {
327
330
  } else
328
331
  ke.setExtraStackFrame(null);
329
332
  }
330
- function Ge(r, x, C, z, U) {
333
+ function $e(r, x, C, R, W) {
331
334
  {
332
- var W = Function.call.bind(ve);
333
- for (var P in r)
334
- if (W(r, P)) {
335
+ var $ = Function.call.bind(ve);
336
+ for (var H in r)
337
+ if ($(r, H)) {
335
338
  var F = void 0;
336
339
  try {
337
- if (typeof r[P] != "function") {
338
- var ie = Error((z || "React class") + ": " + C + " type `" + P + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof r[P] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
339
- throw ie.name = "Invariant Violation", ie;
340
+ 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`.");
342
+ throw oe.name = "Invariant Violation", oe;
340
343
  }
341
- F = r[P](x, P, z, C, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
344
+ F = r[H](x, H, R, C, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
342
345
  } catch (Q) {
343
346
  F = Q;
344
347
  }
345
- F && !(F instanceof Error) && (Ae(U), 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).", z || "React class", C, P, typeof F), Ae(null)), F instanceof Error && !(F.message in We) && (We[F.message] = !0, Ae(U), w("Failed %s type: %s", C, F.message), Ae(null));
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));
346
349
  }
347
350
  }
348
351
  }
349
- var qe = Array.isArray;
350
- function Re(r) {
351
- return qe(r);
352
+ var Ze = Array.isArray;
353
+ function Le(r) {
354
+ return Ze(r);
352
355
  }
353
- function Ze(r) {
356
+ function et(r) {
354
357
  {
355
358
  var x = typeof Symbol == "function" && Symbol.toStringTag, C = x && r[Symbol.toStringTag] || r.constructor.name || "Object";
356
359
  return C;
357
360
  }
358
361
  }
359
- function et(r) {
362
+ function tt(r) {
360
363
  try {
361
364
  return Ie(r), !1;
362
365
  } catch {
@@ -366,16 +369,16 @@ function ur() {
366
369
  function Ie(r) {
367
370
  return "" + r;
368
371
  }
369
- function k(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);
372
+ 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);
372
375
  }
373
- var O = n.ReactCurrentOwner, $ = {
376
+ var N = n.ReactCurrentOwner, J = {
374
377
  key: !0,
375
378
  ref: !0,
376
379
  __self: !0,
377
380
  __source: !0
378
- }, B, Z;
381
+ }, D, Z;
379
382
  function fe(r) {
380
383
  if (ve.call(r, "ref")) {
381
384
  var x = Object.getOwnPropertyDescriptor(r, "ref").get;
@@ -392,13 +395,13 @@ function ur() {
392
395
  }
393
396
  return r.key !== void 0;
394
397
  }
395
- function ne(r, x) {
396
- typeof r.ref == "string" && O.current;
398
+ function re(r, x) {
399
+ typeof r.ref == "string" && N.current;
397
400
  }
398
- function $e(r, x) {
401
+ function Ge(r, x) {
399
402
  {
400
403
  var C = function() {
401
- B || (B = !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));
404
+ 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));
402
405
  };
403
406
  C.isReactWarning = !0, Object.defineProperty(r, "key", {
404
407
  get: C,
@@ -417,7 +420,7 @@ function ur() {
417
420
  });
418
421
  }
419
422
  }
420
- var be = function(r, x, C, z, U, W, P) {
423
+ var be = function(r, x, C, R, W, $, H) {
421
424
  var F = {
422
425
  // This tag allows us to uniquely identify this as a React Element
423
426
  $$typeof: t,
@@ -425,9 +428,9 @@ function ur() {
425
428
  type: r,
426
429
  key: x,
427
430
  ref: C,
428
- props: P,
431
+ props: H,
429
432
  // Record the component responsible for creating this element.
430
- _owner: W
433
+ _owner: $
431
434
  };
432
435
  return F._store = {}, Object.defineProperty(F._store, "validated", {
433
436
  configurable: !1,
@@ -438,49 +441,49 @@ function ur() {
438
441
  configurable: !1,
439
442
  enumerable: !1,
440
443
  writable: !1,
441
- value: z
444
+ value: R
442
445
  }), Object.defineProperty(F, "_source", {
443
446
  configurable: !1,
444
447
  enumerable: !1,
445
448
  writable: !1,
446
- value: U
449
+ value: W
447
450
  }), Object.freeze && (Object.freeze(F.props), Object.freeze(F)), F;
448
451
  };
449
- function c(r, x, C, z, U) {
452
+ function c(r, x, C, R, W) {
450
453
  {
451
- var W, P = {}, F = null, ie = null;
452
- C !== void 0 && (k(C), F = "" + C), je(x) && (k(x.key), F = "" + x.key), fe(x) && (ie = x.ref, ne(x, U));
453
- for (W in x)
454
- ve.call(x, W) && !$.hasOwnProperty(W) && (P[W] = x[W]);
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[$]);
455
458
  if (r && r.defaultProps) {
456
459
  var Q = r.defaultProps;
457
- for (W in Q)
458
- P[W] === void 0 && (P[W] = Q[W]);
460
+ for ($ in Q)
461
+ H[$] === void 0 && (H[$] = Q[$]);
459
462
  }
460
- if (F || ie) {
463
+ if (F || oe) {
461
464
  var ee = typeof r == "function" ? r.displayName || r.name || "Unknown" : r;
462
- F && $e(P, ee), ie && _e(P, ee);
465
+ F && Ge(H, ee), oe && _e(H, ee);
463
466
  }
464
- return be(r, F, ie, U, z, O.current, P);
467
+ return be(r, F, oe, W, R, N.current, H);
465
468
  }
466
469
  }
467
- var A = n.ReactCurrentOwner, M = n.ReactDebugCurrentFrame;
468
- function N(r) {
470
+ var O = n.ReactCurrentOwner, z = n.ReactDebugCurrentFrame;
471
+ function k(r) {
469
472
  if (r) {
470
473
  var x = r._owner, C = Se(r.type, r._source, x ? x.type : null);
471
- M.setExtraStackFrame(C);
474
+ z.setExtraStackFrame(C);
472
475
  } else
473
- M.setExtraStackFrame(null);
476
+ z.setExtraStackFrame(null);
474
477
  }
475
- var ae;
476
- ae = !1;
477
- function V(r) {
478
+ var le;
479
+ le = !1;
480
+ function U(r) {
478
481
  return typeof r == "object" && r !== null && r.$$typeof === t;
479
482
  }
480
483
  function X() {
481
484
  {
482
- if (A.current) {
483
- var r = se(A.current.type);
485
+ if (O.current) {
486
+ var r = ne(O.current.type);
484
487
  if (r)
485
488
  return `
486
489
 
@@ -489,11 +492,11 @@ Check the render method of \`` + r + "`.";
489
492
  return "";
490
493
  }
491
494
  }
492
- function tt(r) {
495
+ function rt(r) {
493
496
  return "";
494
497
  }
495
498
  var pt = {};
496
- function Dt(r) {
499
+ function Ht(r) {
497
500
  {
498
501
  var x = X();
499
502
  if (!x) {
@@ -510,34 +513,34 @@ Check the top-level render call using <` + C + ">.");
510
513
  if (!r._store || r._store.validated || r.key != null)
511
514
  return;
512
515
  r._store.validated = !0;
513
- var C = Dt(x);
516
+ var C = Ht(x);
514
517
  if (pt[C])
515
518
  return;
516
519
  pt[C] = !0;
517
- var z = "";
518
- r && r._owner && r._owner !== A.current && (z = " It was passed a child from " + se(r._owner.type) + "."), N(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, z), N(null);
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);
519
522
  }
520
523
  }
521
524
  function ft(r, x) {
522
525
  {
523
526
  if (typeof r != "object")
524
527
  return;
525
- if (Re(r))
528
+ if (Le(r))
526
529
  for (var C = 0; C < r.length; C++) {
527
- var z = r[C];
528
- V(z) && ut(z, x);
530
+ var R = r[C];
531
+ U(R) && ut(R, x);
529
532
  }
530
- else if (V(r))
533
+ else if (U(r))
531
534
  r._store && (r._store.validated = !0);
532
535
  else if (r) {
533
- var U = v(r);
534
- if (typeof U == "function" && U !== r.entries)
535
- for (var W = U.call(r), P; !(P = W.next()).done; )
536
- V(P.value) && ut(P.value, x);
536
+ var W = j(r);
537
+ 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);
537
540
  }
538
541
  }
539
542
  }
540
- function Ft(r) {
543
+ function Vt(r) {
541
544
  {
542
545
  var x = r.type;
543
546
  if (x == null || typeof x == "string")
@@ -545,55 +548,55 @@ Check the top-level render call using <` + C + ">.");
545
548
  var C;
546
549
  if (typeof x == "function")
547
550
  C = x.propTypes;
548
- else if (typeof x == "object" && (x.$$typeof === j || // Note: Memo only checks outer props here.
551
+ else if (typeof x == "object" && (x.$$typeof === b || // Note: Memo only checks outer props here.
549
552
  // Inner props are checked in the reconciler.
550
553
  x.$$typeof === p))
551
554
  C = x.propTypes;
552
555
  else
553
556
  return;
554
557
  if (C) {
555
- var z = se(x);
556
- Ge(C, r.props, "prop", z, r);
557
- } else if (x.PropTypes !== void 0 && !ae) {
558
- ae = !0;
559
- var U = se(x);
560
- w("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", U || "Unknown");
558
+ var R = ne(x);
559
+ $e(C, r.props, "prop", R, r);
560
+ } else if (x.PropTypes !== void 0 && !le) {
561
+ le = !0;
562
+ var W = ne(x);
563
+ w("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", W || "Unknown");
561
564
  }
562
565
  typeof x.getDefaultProps == "function" && !x.getDefaultProps.isReactClassApproved && w("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
563
566
  }
564
567
  }
565
- function Pt(r) {
568
+ function Ut(r) {
566
569
  {
567
570
  for (var x = Object.keys(r.props), C = 0; C < x.length; C++) {
568
- var z = x[C];
569
- if (z !== "children" && z !== "key") {
570
- N(r), w("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", z), N(null);
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);
571
574
  break;
572
575
  }
573
576
  }
574
- r.ref !== null && (N(r), w("Invalid attribute `ref` supplied to `React.Fragment`."), N(null));
577
+ r.ref !== null && (k(r), w("Invalid attribute `ref` supplied to `React.Fragment`."), k(null));
575
578
  }
576
579
  }
577
580
  var xt = {};
578
- function gt(r, x, C, z, U, W) {
581
+ function gt(r, x, C, R, W, $) {
579
582
  {
580
- var P = Y(r);
581
- if (!P) {
583
+ var H = K(r);
584
+ if (!H) {
582
585
  var F = "";
583
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.");
584
- var ie = tt();
585
- ie ? F += ie : F += X();
587
+ var oe = rt();
588
+ oe ? F += oe : F += X();
586
589
  var Q;
587
- r === null ? Q = "null" : Re(r) ? Q = "array" : r !== void 0 && r.$$typeof === t ? (Q = "<" + (se(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);
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);
588
591
  }
589
- var ee = c(r, x, C, U, W);
592
+ var ee = c(r, x, C, W, $);
590
593
  if (ee == null)
591
594
  return ee;
592
- if (P) {
595
+ if (H) {
593
596
  var he = x.children;
594
597
  if (he !== void 0)
595
- if (z)
596
- if (Re(he)) {
598
+ if (R)
599
+ if (Le(he)) {
597
600
  for (var Je = 0; Je < he.length; Je++)
598
601
  ft(he[Je], r);
599
602
  Object.freeze && Object.freeze(he);
@@ -603,111 +606,138 @@ Check the top-level render call using <` + C + ">.");
603
606
  ft(he, r);
604
607
  }
605
608
  if (ve.call(x, "key")) {
606
- var Be = se(r), le = Object.keys(x).filter(function($t) {
607
- return $t !== "key";
608
- }), dt = le.length > 0 ? "{key: someKey, " + le.join(": ..., ") + ": ...}" : "{key: someKey}";
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}";
609
612
  if (!xt[Be + dt]) {
610
- var Gt = le.length > 0 ? "{" + le.join(": ..., ") + ": ...}" : "{}";
613
+ var Yt = ae.length > 0 ? "{" + ae.join(": ..., ") + ": ...}" : "{}";
611
614
  w(`A props object containing a "key" prop is being spread into JSX:
612
615
  let props = %s;
613
616
  <%s {...props} />
614
617
  React keys must be passed directly to JSX without using spread:
615
618
  let props = %s;
616
- <%s key={someKey} {...props} />`, dt, Be, Gt, Be), xt[Be + dt] = !0;
619
+ <%s key={someKey} {...props} />`, dt, Be, Yt, Be), xt[Be + dt] = !0;
617
620
  }
618
621
  }
619
- return r === i ? Pt(ee) : Ft(ee), ee;
622
+ return r === i ? Ut(ee) : Vt(ee), ee;
620
623
  }
621
624
  }
622
- function Ht(r, x, C) {
625
+ function Wt(r, x, C) {
623
626
  return gt(r, x, C, !0);
624
627
  }
625
- function Vt(r, x, C) {
628
+ function $t(r, x, C) {
626
629
  return gt(r, x, C, !1);
627
630
  }
628
- var Ut = Vt, Wt = Ht;
629
- nt.Fragment = i, nt.jsx = Ut, nt.jsxs = Wt;
630
- }()), nt;
631
+ var Gt = $t, Jt = Wt;
632
+ st.Fragment = i, st.jsx = Gt, st.jsxs = Jt;
633
+ }()), st;
631
634
  }
632
- var jt;
633
- function fr() {
634
- return jt || (jt = 1, process.env.NODE_ENV === "production" ? st.exports = pr() : st.exports = ur()), st.exports;
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;
635
665
  }
636
- var e = fr();
637
- const xr = {
666
+ var jr = vr();
667
+ const br = /* @__PURE__ */ fr(jr), yr = {
638
668
  primaryColor: "#f88300",
639
669
  primaryColorLight: "#6858c1",
640
670
  secondaryColor: "#005a53",
641
671
  tertiaryColor: "#FFFFFF"
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", 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", 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;
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;
643
673
  function it() {
644
- return new Promise((y, t) => {
645
- const o = indexedDB.open(Yr, Kr);
674
+ return new Promise((g, t) => {
675
+ const o = indexedDB.open(en, tn);
646
676
  o.onupgradeneeded = function(i) {
647
- let a = i.target.result, u;
648
- a.objectStoreNames.contains(Ne) ? u = o.transaction.objectStore(Ne) : u = a.createObjectStore(Ne, { keyPath: "id" }), u.indexNames.contains("nameIndex") || u.createIndex("nameIndex", "name", { unique: !1 });
677
+ let l = i.target.result, u;
678
+ 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 });
649
679
  }, o.onsuccess = function(i) {
650
- y(i.target.result);
680
+ g(i.target.result);
651
681
  }, o.onerror = function(i) {
652
682
  t("Database error: " + i.target.errorCode);
653
683
  };
654
684
  });
655
685
  }
656
- function De(y, t, o, i) {
657
- return it().then((a) => new Promise((u, f) => {
658
- const d = a.transaction(["APCObjectStore"], "readwrite"), j = d.objectStore("APCObjectStore"), l = { id: y, classification: t, content: o, misc: i }, m = j.put(l);
659
- m.onsuccess = () => u(m.result), m.onerror = () => f(m.error), d.oncomplete = () => a.close();
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();
660
690
  }));
661
691
  }
662
- function Ke(y) {
692
+ function Xe(g) {
663
693
  return it().then((t) => new Promise((o, i) => {
664
- const a = t.transaction([Ne], "readonly"), f = a.objectStore(Ne).get(y);
665
- f.onsuccess = () => o(f.result), f.onerror = () => i(f.error), a.oncomplete = () => t.close();
694
+ const l = t.transaction([Ne], "readonly"), f = l.objectStore(Ne).get(g);
695
+ f.onsuccess = () => o(f.result), f.onerror = () => i(f.error), l.oncomplete = () => t.close();
666
696
  }));
667
697
  }
668
- function Xr(y) {
698
+ function rn(g) {
669
699
  return it().then((t) => new Promise((o, i) => {
670
- const a = t.transaction([Ne], "readwrite"), f = a.objectStore(Ne).delete(y);
671
- f.onsuccess = () => o(), f.onerror = () => i(f.error), a.oncomplete = () => t.close();
700
+ const l = t.transaction([Ne], "readwrite"), f = l.objectStore(Ne).delete(g);
701
+ f.onsuccess = () => o(), f.onerror = () => i(f.error), l.oncomplete = () => t.close();
672
702
  }));
673
703
  }
674
- function Te(y = null) {
704
+ function Ee(g = null) {
675
705
  return it().then((t) => new Promise((o, i) => {
676
- const a = t.transaction([Ne], "readonly"), f = a.objectStore(Ne).openCursor(), d = [];
677
- f.onsuccess = (j) => {
678
- const l = j.target.result;
679
- l ? ((!y || y(l.value)) && d.push(l.value), l.continue()) : o(d);
680
- }, f.onerror = (j) => {
681
- i("Failed to retrieve items: " + j.target.errorCode);
682
- }, a.oncomplete = () => {
706
+ 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);
712
+ }, l.oncomplete = () => {
683
713
  t.close();
684
714
  };
685
715
  }));
686
716
  }
687
- function Qr(y) {
688
- const { currentTabNo: t, theme: o, apcCanvasInstance: i, apiEndpoint: a, reloadTabs: u, updateActiveSection: f, initCategory: d, initInstance: j, apiKey: l, setActiveTab: m } = y, [p, b] = S(), [s, g] = S(d || "Hats"), [h, v] = S(!1), [n, w] = S(), R = `${a}/api/v1/designer`;
689
- re(() => {
690
- I();
691
- }, []), re(() => {
692
- i && j && j.fabricID && L(j.fabricID);
693
- }, [j]);
694
- const I = () => {
695
- v(!0);
696
- const T = `${R}/search-designs-images/${s}`;
697
- ye.get(T).then((E) => {
698
- v(!1), E.data.object.length > 0 ? b(E.data) : w("No matching results found");
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`;
719
+ ie(() => {
720
+ A();
721
+ }, []), ie(() => {
722
+ i && b && b.fabricID && L(b.fabricID);
723
+ }, [b]);
724
+ const A = () => {
725
+ j(!0);
726
+ 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");
699
729
  }).catch((E) => {
700
- v(!1), console.error("Error fetching data:", E);
730
+ j(!1), console.error("Error fetching data:", E);
701
731
  });
702
- }, L = (T) => {
703
- const E = R + "/find-public-design/" + T;
704
- ye.get(E).then((H) => {
705
- const { object: Y } = H == null ? void 0 : H.data;
706
- Y && (window.location.href = `/design-center/${Y.pdid}`);
707
- }).catch((H) => {
708
- console.error("Error fetching data:", H);
732
+ }, L = (I) => {
733
+ const E = _ + "/find-public-design/" + I;
734
+ ye.get(E).then((V) => {
735
+ const { object: K } = V == null ? void 0 : V.data;
736
+ K && (window.location.href = `/design-center/${K.pdid}`);
737
+ }).catch((V) => {
738
+ console.error("Error fetching data:", V);
709
739
  });
710
- }, D = () => p ? p.object.map((T, E) => /* @__PURE__ */ e.jsx(K.Fragment, { children: /* @__PURE__ */ e.jsxs(
740
+ }, P = () => p ? p.object.map((I, E) => /* @__PURE__ */ e.jsx(T.Fragment, { children: /* @__PURE__ */ e.jsxs(
711
741
  "div",
712
742
  {
713
743
  style: {
@@ -720,7 +750,7 @@ function Qr(y) {
720
750
  },
721
751
  tabIndex: 0,
722
752
  className: "apc-mpx-widget-responsive-image-container",
723
- onClick: () => L(T.fabricID),
753
+ onClick: () => L(I.fabricID),
724
754
  children: [
725
755
  /* @__PURE__ */ e.jsxs(
726
756
  "div",
@@ -736,23 +766,23 @@ function Qr(y) {
736
766
  },
737
767
  children: [
738
768
  "$",
739
- T.product.price
769
+ I.product.price
740
770
  ]
741
771
  }
742
772
  ),
743
773
  /* @__PURE__ */ e.jsx(
744
774
  "img",
745
775
  {
746
- src: T.imageURL,
747
- alt: T.description,
776
+ src: I.imageURL,
777
+ alt: I.description,
748
778
  className: "apc-mpx-widget-responsive-image"
749
779
  }
750
780
  ),
751
- /* @__PURE__ */ e.jsx("div", { children: T.product.name })
781
+ /* @__PURE__ */ e.jsx("div", { children: I.product.name })
752
782
  ]
753
783
  }
754
784
  ) }, E)) : null;
755
- return /* @__PURE__ */ e.jsxs(K.Fragment, { children: [
785
+ return /* @__PURE__ */ e.jsxs(T.Fragment, { children: [
756
786
  /* @__PURE__ */ e.jsx("br", {}),
757
787
  /* @__PURE__ */ e.jsxs("div", { style: { display: "flex", flexDirection: "row" }, children: [
758
788
  /* @__PURE__ */ e.jsx("div", { children: /* @__PURE__ */ e.jsx(
@@ -760,7 +790,7 @@ function Qr(y) {
760
790
  {
761
791
  placeholder: "Search templates",
762
792
  type: "text",
763
- onChange: (T) => g(T.target.value),
793
+ onChange: (I) => m(I.target.value),
764
794
  className: "apc-mpc-widget-input",
765
795
  style: { border: `solid 3px ${o.primaryColor}`, height: "40px" }
766
796
  }
@@ -769,7 +799,7 @@ function Qr(y) {
769
799
  "button",
770
800
  {
771
801
  className: "apc-mpc-widget-btn",
772
- onClick: () => I(),
802
+ onClick: () => A(),
773
803
  style: {
774
804
  backgroundColor: o.primaryColor,
775
805
  color: "#ffffff",
@@ -788,10 +818,10 @@ function Qr(y) {
788
818
  /* @__PURE__ */ e.jsx("br", {}),
789
819
  " ",
790
820
  /* @__PURE__ */ e.jsx("br", {}),
791
- D()
821
+ P()
792
822
  ] });
793
823
  }
794
- const qr = {
824
+ const sn = {
795
825
  fontFamily: "Arial",
796
826
  fontSize: "40px",
797
827
  // Assuming a default font size
@@ -801,7 +831,7 @@ const qr = {
801
831
  WebkitBackgroundClip: "text",
802
832
  backgroundClip: "text",
803
833
  cursor: "pointer"
804
- }, Zr = {
834
+ }, on = {
805
835
  fontFamily: "comic sans ms",
806
836
  fontSize: "40px",
807
837
  color: "#000",
@@ -812,7 +842,7 @@ const qr = {
812
842
  -1px 1px 0 #ff0000,
813
843
  1px 1px 0 #ff0000`,
814
844
  cursor: "pointer"
815
- }, en = {
845
+ }, cn = {
816
846
  fontFamily: "Arial",
817
847
  fontSize: "40px",
818
848
  // Adjust as needed
@@ -824,7 +854,7 @@ const qr = {
824
854
  // Apply skew transformations
825
855
  textAlign: "center",
826
856
  cursor: "pointer"
827
- }, tn = {
857
+ }, an = {
828
858
  fontFamily: "Arial",
829
859
  fontSize: "40px",
830
860
  // Adjust as needed
@@ -834,7 +864,7 @@ const qr = {
834
864
  // Apply glowing effect
835
865
  textAlign: "center",
836
866
  cursor: "pointer"
837
- }, rn = {
867
+ }, ln = {
838
868
  fontFamily: "Arial",
839
869
  fontSize: "40px",
840
870
  // Adjust the font size as needed
@@ -844,46 +874,46 @@ const qr = {
844
874
  // Background color of the text
845
875
  borderRadius: "5px",
846
876
  cursor: "pointer"
847
- }, nn = {
877
+ }, dn = {
848
878
  color: "black",
849
879
  fontSize: "40px",
850
880
  opacity: "0.5",
851
881
  fontFamily: "Arial, sans-serif",
852
882
  cursor: "pointer"
853
883
  };
854
- function sn(y) {
855
- const { apcCanvasInstance: t, isMobile: o, closeMobileModalSecondaryPanel: i } = y, a = (s, g) => {
856
- const h = new _.Textbox("Stay Humble!", {
884
+ function hn(g) {
885
+ const { apcCanvasInstance: t, isMobile: o, closeMobileModalSecondaryPanel: i } = g, l = (s, m) => {
886
+ const h = new B.Textbox("Stay Humble!", {
857
887
  width: 300,
858
888
  left: 200,
859
889
  top: 200,
860
890
  fontFamily: s,
861
- fill: g,
891
+ fill: m,
862
892
  hasControls: !0
863
893
  });
864
894
  t.add(h), t.setActiveObject(h), o && i(!0);
865
- }, u = ({ primaryTextLabel: s, primaryTextFontFamily: g, primaryTextColor: h, secondaryTextLabel: v, SecondaryTextFontFamily: n, secondaryTextColor: w }) => {
866
- const R = new _.Textbox(s, {
867
- fontFamily: g,
895
+ }, u = ({ primaryTextLabel: s, primaryTextFontFamily: m, primaryTextColor: h, secondaryTextLabel: j, SecondaryTextFontFamily: n, secondaryTextColor: w }) => {
896
+ const _ = new B.Textbox(s, {
897
+ fontFamily: m,
868
898
  width: 300,
869
899
  left: 200,
870
900
  top: 200,
871
901
  fill: h
872
- }), I = new _.Textbox(v, {
902
+ }), A = new B.Textbox(j, {
873
903
  fontFamily: n,
874
904
  fill: w,
875
905
  fontSize: 12,
876
906
  width: 150
877
907
  });
878
- I.top = R.top + R.height + 10, I.left = R.left, t.add(R), t.add(I), t.setActiveObject(R), o && i(!0);
879
- }, f = (s, g) => {
880
- const h = new _.Textbox("Adventure Awaits!", {
908
+ A.top = _.top + _.height + 10, A.left = _.left, t.add(_), t.add(A), t.setActiveObject(_), o && i(!0);
909
+ }, f = (s, m) => {
910
+ const h = new B.Textbox("Adventure Awaits!", {
881
911
  width: 300,
882
912
  left: 200,
883
913
  top: 200,
884
914
  fontFamily: s,
885
- fill: g
886
- }), v = {
915
+ fill: m
916
+ }), j = {
887
917
  color: "rgba(0,0,0,0.5)",
888
918
  // Shadow color
889
919
  blur: 10,
@@ -893,14 +923,14 @@ function sn(y) {
893
923
  offsetY: 5
894
924
  // Vertical offset of shadow
895
925
  };
896
- h.shadow = v, t.add(h), t.setActiveObject(h), o && i(!0);
926
+ h.shadow = j, t.add(h), t.setActiveObject(h), o && i(!0);
897
927
  }, d = () => {
898
- const s = new _.Textbox("Love More", {
928
+ const s = new B.Textbox("Love More", {
899
929
  left: 100,
900
930
  top: 100,
901
931
  width: 300,
902
932
  fontFamily: "Arial",
903
- fill: new _.Gradient({
933
+ fill: new B.Gradient({
904
934
  type: "linear",
905
935
  gradientUnits: "pixels",
906
936
  // or 'percentage'
@@ -912,8 +942,8 @@ function sn(y) {
912
942
  })
913
943
  });
914
944
  t.add(s), t.setActiveObject(s), o && i(!0);
915
- }, j = () => {
916
- const s = new _.Textbox("Good Vibes Only", {
945
+ }, b = () => {
946
+ const s = new B.Textbox("Good Vibes Only", {
917
947
  left: 150,
918
948
  top: 150,
919
949
  fontFamily: "comic sans ms",
@@ -924,8 +954,8 @@ function sn(y) {
924
954
  strokeWidth: 2
925
955
  });
926
956
  t.add(s), t.setActiveObject(s), o && i(!0);
927
- }, l = () => {
928
- const s = new _.Textbox("Dream Big", {
957
+ }, a = () => {
958
+ const s = new B.Textbox("Dream Big", {
929
959
  left: 300,
930
960
  top: 300,
931
961
  width: 300,
@@ -935,8 +965,8 @@ function sn(y) {
935
965
  skewY: 10
936
966
  });
937
967
  t.add(s), t.setActiveObject(s), o && i(!0);
938
- }, m = () => {
939
- const s = new _.Textbox("Choose Joy", {
968
+ }, v = () => {
969
+ const s = new B.Textbox("Choose Joy", {
940
970
  left: 350,
941
971
  top: 350,
942
972
  fontFamily: "Arial",
@@ -945,7 +975,7 @@ function sn(y) {
945
975
  });
946
976
  t.add(s), t.setActiveObject(s), o && i(!0);
947
977
  }, p = () => {
948
- const s = new _.Textbox("Find Your Fire", {
978
+ const s = new B.Textbox("Find Your Fire", {
949
979
  left: 550,
950
980
  top: 550,
951
981
  fontFamily: "Arial",
@@ -953,8 +983,8 @@ function sn(y) {
953
983
  shadow: "yellow 0 0 10px"
954
984
  });
955
985
  t.add(s), t.setActiveObject(s), o && i(!0);
956
- }, b = () => {
957
- const s = new _.Textbox("Be Kind", {
986
+ }, y = () => {
987
+ const s = new B.Textbox("Be Kind", {
958
988
  left: 650,
959
989
  top: 650,
960
990
  fontFamily: "Arial",
@@ -963,12 +993,12 @@ function sn(y) {
963
993
  });
964
994
  t.add(s), t.setActiveObject(s), o && i(!0);
965
995
  };
966
- return /* @__PURE__ */ e.jsx(K.Fragment, { children: /* @__PURE__ */ e.jsxs("div", { style: { display: "flex", flexDirection: "column", gap: 8 }, children: [
996
+ return /* @__PURE__ */ e.jsx(T.Fragment, { children: /* @__PURE__ */ e.jsxs("div", { style: { display: "flex", flexDirection: "column", gap: 8 }, children: [
967
997
  /* @__PURE__ */ e.jsx(
968
998
  "div",
969
999
  {
970
1000
  style: { fontSize: "20px", cursor: "pointer" },
971
- onClick: () => a("Arial, sans-serif", "#6a45d2"),
1001
+ onClick: () => l("Arial, sans-serif", "#6a45d2"),
972
1002
  children: /* @__PURE__ */ e.jsx("span", { style: {
973
1003
  color: "#6a45d2",
974
1004
  fontFamily: "Arial, sans-serif",
@@ -1044,51 +1074,51 @@ function sn(y) {
1044
1074
  }, children: "Adventure Awaits " })
1045
1075
  }
1046
1076
  ),
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: () => l(), 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" })
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" })
1053
1083
  ] }) });
1054
1084
  }
1055
- const _t = async (y) => {
1085
+ const Pt = async (g) => {
1056
1086
  try {
1057
- const o = await (await fetch(y)).blob();
1058
- return new Promise((i, a) => {
1087
+ const o = await (await fetch(g)).blob();
1088
+ return new Promise((i, l) => {
1059
1089
  const u = new FileReader();
1060
- u.onloadend = () => i(u.result), u.onerror = a, u.readAsDataURL(o);
1090
+ u.onloadend = () => i(u.result), u.onerror = l, u.readAsDataURL(o);
1061
1091
  });
1062
1092
  } catch (t) {
1063
1093
  throw console.error("Error converting image to base64:", t), t;
1064
1094
  }
1065
1095
  };
1066
- function on({ apcCanvasInstance: y, theme: t }) {
1067
- const [o, i] = S(!1), a = (l) => {
1068
- const m = l.target.files[0];
1069
- if (m) {
1096
+ function pn({ apcCanvasInstance: g, theme: t }) {
1097
+ const [o, i] = M(!1), l = (a) => {
1098
+ const v = a.target.files[0];
1099
+ if (v) {
1070
1100
  const p = new FileReader();
1071
- p.onload = (b) => f(b.target.result), p.readAsDataURL(m);
1101
+ p.onload = (y) => f(y.target.result), p.readAsDataURL(v);
1072
1102
  }
1073
- }, u = (l) => {
1074
- l.preventDefault(), i(!1);
1075
- const m = l.dataTransfer.files[0];
1076
- if (m) {
1103
+ }, u = (a) => {
1104
+ a.preventDefault(), i(!1);
1105
+ const v = a.dataTransfer.files[0];
1106
+ if (v) {
1077
1107
  const p = new FileReader();
1078
- p.onload = (b) => f(b.target.result), p.readAsDataURL(m);
1108
+ p.onload = (y) => f(y.target.result), p.readAsDataURL(v);
1079
1109
  }
1080
- }, f = (l) => {
1081
- _.Image.fromURL(l, (m) => {
1082
- m.set({
1110
+ }, f = (a) => {
1111
+ B.Image.fromURL(a, (v) => {
1112
+ v.set({
1083
1113
  left: 100,
1084
1114
  top: 100,
1085
1115
  scaleX: 0.5,
1086
1116
  scaleY: 0.5
1087
- }), y.add(m);
1117
+ }), g.add(v);
1088
1118
  });
1089
- }, d = (l) => {
1090
- l.preventDefault(), i(!0);
1091
- }, j = () => {
1119
+ }, d = (a) => {
1120
+ a.preventDefault(), i(!0);
1121
+ }, b = () => {
1092
1122
  i(!1);
1093
1123
  };
1094
1124
  return /* @__PURE__ */ e.jsxs(
@@ -1107,7 +1137,7 @@ function on({ apcCanvasInstance: y, theme: t }) {
1107
1137
  // For overlaying the icon
1108
1138
  },
1109
1139
  onDragOver: d,
1110
- onDragLeave: j,
1140
+ onDragLeave: b,
1111
1141
  onDrop: u,
1112
1142
  onClick: () => document.getElementById("file-input").click(),
1113
1143
  children: [
@@ -1120,7 +1150,7 @@ function on({ apcCanvasInstance: y, theme: t }) {
1120
1150
  display: "none"
1121
1151
  },
1122
1152
  id: "file-input",
1123
- onChange: a
1153
+ onChange: l
1124
1154
  }
1125
1155
  ),
1126
1156
  /* @__PURE__ */ e.jsxs(
@@ -1144,7 +1174,7 @@ function on({ apcCanvasInstance: y, theme: t }) {
1144
1174
  width: "18",
1145
1175
  viewBox: "0 0 512 512",
1146
1176
  style: { fill: t.primaryColor },
1147
- children: /* @__PURE__ */ e.jsx("path", { d: Rt })
1177
+ children: /* @__PURE__ */ e.jsx("path", { d: Dt })
1148
1178
  }
1149
1179
  ),
1150
1180
  /* @__PURE__ */ e.jsx("br", {}),
@@ -1180,8 +1210,8 @@ function on({ apcCanvasInstance: y, theme: t }) {
1180
1210
  }
1181
1211
  );
1182
1212
  }
1183
- function ct(y) {
1184
- const { featureText: t } = y;
1213
+ function ct(g) {
1214
+ const { featureText: t } = g;
1185
1215
  return /* @__PURE__ */ e.jsxs("div", { style: { padding: "10px" }, children: [
1186
1216
  t ?? "This is a premium feature. Get API key here",
1187
1217
  "  ",
@@ -1189,7 +1219,7 @@ function ct(y) {
1189
1219
  /* @__PURE__ */ e.jsx("br", {})
1190
1220
  ] });
1191
1221
  }
1192
- function lt() {
1222
+ function at() {
1193
1223
  return /* @__PURE__ */ e.jsxs("div", { className: "loading-container", children: [
1194
1224
  /* @__PURE__ */ e.jsxs("div", { className: "spinner", children: [
1195
1225
  /* @__PURE__ */ e.jsx("div", { className: "spinner-circle" }),
@@ -1198,54 +1228,54 @@ function lt() {
1198
1228
  /* @__PURE__ */ e.jsx("p", { className: "loading-text", children: "Loading..." })
1199
1229
  ] });
1200
1230
  }
1201
- function cn(y) {
1202
- const { apcCanvasInstance: t, theme: o, apiKey: i, apiEndpoint: a, isMobile: u, closeMobileModalSecondaryPanel: f } = y, [d, j] = S("flowers"), [l, m] = S(!1), [p, b] = S(), [s, g] = S(!1), [h, v] = S(!1), n = sessionStorage.getItem("apc_x_sub_status"), w = `${a}/api/v1/designer`;
1203
- re(() => {
1204
- I();
1205
- }, []), re(() => {
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`;
1233
+ ie(() => {
1234
+ A();
1235
+ }, []), ie(() => {
1206
1236
  (async () => {
1207
- n === "active" ? (g(!0), v(!0)) : (m(!0), await R());
1237
+ n === "active" ? (m(!0), j(!0)) : (v(!0), await _());
1208
1238
  })();
1209
1239
  }, []);
1210
- const R = () => {
1211
- m(!0);
1240
+ const _ = () => {
1241
+ v(!0);
1212
1242
  const E = `${w}/get-subscription-status/${i}`;
1213
- ye.get(E).then((H) => {
1214
- H.data.object && H.data.object === "active" && (sessionStorage.setItem("apc_x_sub_status", "active"), g(!0));
1215
- }).catch((H) => {
1243
+ ye.get(E).then((V) => {
1244
+ V.data.object && V.data.object === "active" && (sessionStorage.setItem("apc_x_sub_status", "active"), m(!0));
1245
+ }).catch((V) => {
1216
1246
  sessionStorage.setItem("apc_x_sub_status", "");
1217
1247
  }).finally(() => {
1218
- m(!1), v(!0);
1248
+ v(!1), j(!0);
1219
1249
  });
1220
- }, I = () => {
1221
- m(!0);
1250
+ }, A = () => {
1251
+ v(!0);
1222
1252
  const E = {
1223
1253
  "X-Api-Key": i
1224
- }, H = `${w}/get-images/${d}`;
1225
- ye.get(H, { headers: E }).then((Y) => {
1226
- var J;
1227
- m(!1), b((J = Y.data) == null ? void 0 : J.object);
1228
- }).catch((Y) => {
1229
- console.error("Error fetching data:", Y), m(!1);
1254
+ }, V = `${w}/get-images/${d}`;
1255
+ ye.get(V, { headers: E }).then((K) => {
1256
+ var Y;
1257
+ v(!1), y((Y = K.data) == null ? void 0 : Y.object);
1258
+ }).catch((K) => {
1259
+ console.error("Error fetching data:", K), v(!1);
1230
1260
  });
1231
1261
  }, L = async (E) => {
1232
- const H = await _t(E);
1233
- H && _.Image.fromURL(H, (Y) => {
1234
- Y.set({
1262
+ const V = await Pt(E);
1263
+ V && B.Image.fromURL(V, (K) => {
1264
+ K.set({
1235
1265
  left: 0,
1236
1266
  top: 0,
1237
1267
  scaleX: 0.3,
1238
1268
  scaleY: 0.3
1239
- }), t.add(Y);
1269
+ }), t.add(K);
1240
1270
  }), u && f(!0);
1241
- }, D = () => 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, T = () => !s && !l && h ? /* @__PURE__ */ e.jsx(ct, { featureText: "Get premium AI images with subscription at " }) : s && !l && h ? /* @__PURE__ */ e.jsxs("div", { children: [
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: [
1242
1272
  /* @__PURE__ */ e.jsx("strong", { children: "- OR -" }),
1243
1273
  /* @__PURE__ */ e.jsxs("div", { children: [
1244
1274
  /* @__PURE__ */ e.jsx(
1245
1275
  "input",
1246
1276
  {
1247
1277
  type: "text",
1248
- onChange: (E) => j(E.target.value),
1278
+ onChange: (E) => b(E.target.value),
1249
1279
  className: "apc-mpc-widget-input",
1250
1280
  style: { border: `solid 3px ${o.primaryColor}` }
1251
1281
  }
@@ -1257,31 +1287,31 @@ function cn(y) {
1257
1287
  "button",
1258
1288
  {
1259
1289
  className: "apc-mpc-widget-btn",
1260
- onClick: () => I(),
1290
+ onClick: () => A(),
1261
1291
  style: {
1262
1292
  backgroundColor: o.primaryColor,
1263
1293
  color: "#ffffff"
1264
1294
  },
1265
- children: l ? "...Processing" : "Search"
1295
+ children: a ? "...Processing" : "Search"
1266
1296
  }
1267
1297
  )
1268
1298
  ] }),
1269
1299
  /* @__PURE__ */ e.jsx("br", {}),
1270
1300
  /* @__PURE__ */ e.jsx("br", {}),
1271
- D()
1272
- ] }) : /* @__PURE__ */ e.jsx(lt, {});
1273
- return /* @__PURE__ */ e.jsxs(K.Fragment, { children: [
1301
+ P()
1302
+ ] }) : /* @__PURE__ */ e.jsx(at, {});
1303
+ return /* @__PURE__ */ e.jsxs(T.Fragment, { children: [
1274
1304
  /* @__PURE__ */ e.jsx("br", {}),
1275
1305
  /* @__PURE__ */ e.jsx("br", {}),
1276
- /* @__PURE__ */ e.jsx(on, { apcCanvasInstance: t, theme: o }),
1306
+ /* @__PURE__ */ e.jsx(pn, { apcCanvasInstance: t, theme: o }),
1277
1307
  /* @__PURE__ */ e.jsx("br", {}),
1278
1308
  /* @__PURE__ */ e.jsx("br", {}),
1279
- T()
1309
+ I()
1280
1310
  ] });
1281
1311
  }
1282
- function Mt(y) {
1283
- const { apcCanvasInstance: t, theme: o, isMobile: i, closeMobileModalSecondaryPanel: a } = y, u = (v) => {
1284
- const n = new _.Rect({
1312
+ function Rt(g) {
1313
+ const { apcCanvasInstance: t, theme: o, isMobile: i, closeMobileModalSecondaryPanel: l } = g, u = (j) => {
1314
+ const n = new B.Rect({
1285
1315
  width: 100,
1286
1316
  height: 60,
1287
1317
  left: 200,
@@ -1289,18 +1319,18 @@ function Mt(y) {
1289
1319
  fill: "",
1290
1320
  stroke: o.primaryColor
1291
1321
  });
1292
- t.add(n), t.setActiveObject(n), i && a(!0);
1293
- }, f = (v) => {
1294
- const n = new _.Circle({
1322
+ t.add(n), t.setActiveObject(n), i && l(!0);
1323
+ }, f = (j) => {
1324
+ const n = new B.Circle({
1295
1325
  radius: 30,
1296
1326
  fill: "",
1297
1327
  stroke: o.primaryColor,
1298
1328
  left: 200,
1299
1329
  top: 200
1300
1330
  });
1301
- t.add(n), t.setActiveObject(n), i && a(!0);
1302
- }, d = (v) => {
1303
- const n = new _.Triangle({
1331
+ t.add(n), t.setActiveObject(n), i && l(!0);
1332
+ }, d = (j) => {
1333
+ const n = new B.Triangle({
1304
1334
  width: 40,
1305
1335
  height: 50,
1306
1336
  fill: "",
@@ -1308,32 +1338,32 @@ function Mt(y) {
1308
1338
  left: 200,
1309
1339
  top: 200
1310
1340
  });
1311
- t.add(n), t.setActiveObject(n), i && a(!0);
1312
- }, j = (v) => {
1313
- const n = new _.Line([50, 10, 250, 10], {
1341
+ t.add(n), t.setActiveObject(n), i && l(!0);
1342
+ }, b = (j) => {
1343
+ const n = new B.Line([50, 10, 250, 10], {
1314
1344
  fill: "",
1315
1345
  stroke: o.primaryColor,
1316
1346
  left: 200,
1317
1347
  top: 200
1318
1348
  });
1319
- t.add(n), t.setActiveObject(n), i && a(!0);
1320
- }, l = (v, n, w) => {
1321
- const R = n, I = n, L = Math.PI / v;
1322
- let D = [], T = 0;
1323
- for (let E = 0; E < v; E++) {
1324
- let H = R + Math.cos(T) * n, Y = I + Math.sin(T) * n;
1325
- D.push({ x: H, y: Y }), T += L, H = R + Math.cos(T) * w, Y = I + Math.sin(T) * w, D.push({ x: H, y: Y }), T += L;
1349
+ 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++) {
1354
+ 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;
1326
1356
  }
1327
- return D;
1328
- }, m = (v, n) => {
1329
- const w = Math.PI * 2 / v, R = n, I = n, L = [];
1330
- for (let D = 0; D < v; D++) {
1331
- const T = R + n * Math.cos(D * w), E = I + n * Math.sin(D * w);
1332
- L.push({ x: T, y: E });
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 });
1333
1363
  }
1334
1364
  return L;
1335
- }, p = (v) => {
1336
- const n = l(5, 60, 30), w = new _.Polygon(n, {
1365
+ }, p = (j) => {
1366
+ const n = a(5, 60, 30), w = new B.Polygon(n, {
1337
1367
  left: 200,
1338
1368
  top: 200,
1339
1369
  fill: "",
@@ -1341,9 +1371,9 @@ function Mt(y) {
1341
1371
  strokeWidth: 2,
1342
1372
  strokeLineJoin: "bevil"
1343
1373
  }, !1);
1344
- t.add(w), t.setActiveObject(w), i && a(!0);
1345
- }, b = (v) => {
1346
- const n = m(6, 30), w = new _.Polygon(n, {
1374
+ t.add(w), t.setActiveObject(w), i && l(!0);
1375
+ }, y = (j) => {
1376
+ const n = v(6, 30), w = new B.Polygon(n, {
1347
1377
  left: 200,
1348
1378
  top: 200,
1349
1379
  fill: "",
@@ -1351,35 +1381,35 @@ function Mt(y) {
1351
1381
  strokeWidth: 2,
1352
1382
  strokeLineJoin: "bevil"
1353
1383
  }, !1);
1354
- t.add(w), t.setActiveObject(w), i && a(!0);
1355
- }, s = (v) => {
1356
- const n = new _.Path(bt, {
1384
+ t.add(w), t.setActiveObject(w), i && l(!0);
1385
+ }, s = (j) => {
1386
+ const n = new B.Path(wt, {
1357
1387
  fill: "",
1358
1388
  stroke: o.primaryColor,
1359
1389
  left: 200,
1360
1390
  top: 200
1361
1391
  });
1362
- t.add(n), t.setActiveObject(n), i && a(!0);
1363
- }, g = (v) => {
1364
- const n = new _.Path(yt, {
1392
+ t.add(n), t.setActiveObject(n), i && l(!0);
1393
+ }, m = (j) => {
1394
+ const n = new B.Path(Ct, {
1365
1395
  fill: "",
1366
1396
  stroke: o.primaryColor,
1367
1397
  left: 200,
1368
1398
  top: 200
1369
1399
  });
1370
- t.add(n), t.setActiveObject(n), i && a(!0);
1371
- }, h = (v) => {
1372
- const n = new _.Path(ht, {
1400
+ t.add(n), t.setActiveObject(n), i && l(!0);
1401
+ }, h = (j) => {
1402
+ const n = new B.Path(ht, {
1373
1403
  fill: "",
1374
1404
  stroke: o.primaryColor,
1375
1405
  left: 200,
1376
1406
  top: 200
1377
1407
  });
1378
- t.add(n), t.setActiveObject(n), i && a(!0);
1408
+ t.add(n), t.setActiveObject(n), i && l(!0);
1379
1409
  };
1380
- return t ? /* @__PURE__ */ e.jsxs(K.Fragment, { children: [
1410
+ return t ? /* @__PURE__ */ e.jsxs(T.Fragment, { children: [
1381
1411
  /* @__PURE__ */ e.jsx("br", {}),
1382
- /* @__PURE__ */ e.jsx("div", { onClick: (v) => u(), style: { fontSize: "50px", cursor: "pointer" }, children: /* @__PURE__ */ e.jsx(
1412
+ /* @__PURE__ */ e.jsx("div", { onClick: (j) => u(), style: { fontSize: "50px", cursor: "pointer" }, children: /* @__PURE__ */ e.jsx(
1383
1413
  "svg",
1384
1414
  {
1385
1415
  xmlns: "http://www.w3.org/2000/svg",
@@ -1395,7 +1425,7 @@ function Mt(y) {
1395
1425
  /* @__PURE__ */ e.jsx(
1396
1426
  "div",
1397
1427
  {
1398
- onClick: (v) => f(),
1428
+ onClick: (j) => f(),
1399
1429
  style: { fontSize: "50px", cursor: "pointer" },
1400
1430
  children: /* @__PURE__ */ e.jsx(
1401
1431
  "svg",
@@ -1415,7 +1445,7 @@ function Mt(y) {
1415
1445
  /* @__PURE__ */ e.jsx(
1416
1446
  "div",
1417
1447
  {
1418
- onClick: (v) => d(),
1448
+ onClick: (j) => d(),
1419
1449
  draggable: !0,
1420
1450
  style: { fontSize: "50px", cursor: "pointer" },
1421
1451
  children: /* @__PURE__ */ e.jsx(
@@ -1441,7 +1471,7 @@ function Mt(y) {
1441
1471
  /* @__PURE__ */ e.jsx(
1442
1472
  "div",
1443
1473
  {
1444
- onClick: (v) => p(),
1474
+ onClick: (j) => p(),
1445
1475
  style: { fontSize: "50px", cursor: "pointer" },
1446
1476
  children: /* @__PURE__ */ e.jsx(
1447
1477
  "svg",
@@ -1466,7 +1496,7 @@ function Mt(y) {
1466
1496
  /* @__PURE__ */ e.jsx(
1467
1497
  "div",
1468
1498
  {
1469
- onClick: (v) => b(),
1499
+ onClick: (j) => y(),
1470
1500
  style: { fontSize: "50px", cursor: "pointer" },
1471
1501
  children: /* @__PURE__ */ e.jsx(
1472
1502
  "svg",
@@ -1488,7 +1518,7 @@ function Mt(y) {
1488
1518
  /* @__PURE__ */ e.jsx(
1489
1519
  "div",
1490
1520
  {
1491
- onClick: (v) => j(),
1521
+ onClick: (j) => b(),
1492
1522
  style: { fontSize: "50px", cursor: "pointer" },
1493
1523
  children: /* @__PURE__ */ e.jsx(
1494
1524
  "svg",
@@ -1509,7 +1539,7 @@ function Mt(y) {
1509
1539
  /* @__PURE__ */ e.jsx(
1510
1540
  "div",
1511
1541
  {
1512
- onClick: (v) => s(),
1542
+ onClick: (j) => s(),
1513
1543
  style: { fontSize: "50px", cursor: "pointer" },
1514
1544
  children: /* @__PURE__ */ e.jsx(
1515
1545
  "svg",
@@ -1524,7 +1554,7 @@ function Mt(y) {
1524
1554
  children: /* @__PURE__ */ e.jsx(
1525
1555
  "path",
1526
1556
  {
1527
- d: bt
1557
+ d: wt
1528
1558
  }
1529
1559
  )
1530
1560
  }
@@ -1534,7 +1564,7 @@ function Mt(y) {
1534
1564
  /* @__PURE__ */ e.jsx(
1535
1565
  "div",
1536
1566
  {
1537
- onClick: (v) => g(),
1567
+ onClick: (j) => m(),
1538
1568
  style: { fontSize: "50px", cursor: "pointer" },
1539
1569
  children: /* @__PURE__ */ e.jsx(
1540
1570
  "svg",
@@ -1546,7 +1576,7 @@ function Mt(y) {
1546
1576
  fill: "none",
1547
1577
  strokeWidth: "4",
1548
1578
  stroke: o.primaryColor,
1549
- children: /* @__PURE__ */ e.jsx("path", { d: yt })
1579
+ children: /* @__PURE__ */ e.jsx("path", { d: Ct })
1550
1580
  }
1551
1581
  )
1552
1582
  }
@@ -1554,7 +1584,7 @@ function Mt(y) {
1554
1584
  /* @__PURE__ */ e.jsx(
1555
1585
  "div",
1556
1586
  {
1557
- onClick: (v) => h(),
1587
+ onClick: (j) => h(),
1558
1588
  style: { fontSize: "50px", cursor: "pointer" },
1559
1589
  children: /* @__PURE__ */ e.jsx(
1560
1590
  "svg",
@@ -1573,92 +1603,92 @@ function Mt(y) {
1573
1603
  )
1574
1604
  ] }) : null;
1575
1605
  }
1576
- function ln(y) {
1577
- const { apcCanvasInstance: t, theme: o, isMobile: i, closeMobileModalSecondaryPanel: a } = y, u = (d) => {
1578
- const j = new _.Path(d, {
1606
+ function fn(g) {
1607
+ const { apcCanvasInstance: t, theme: o, isMobile: i, closeMobileModalSecondaryPanel: l } = g, u = (d) => {
1608
+ const b = new B.Path(d, {
1579
1609
  left: 200,
1580
1610
  top: 200,
1581
1611
  fill: o.primaryColor,
1582
1612
  scaleX: 0.1,
1583
1613
  scaleY: 0.1
1584
1614
  });
1585
- t.add(j), t.setActiveObject(j), i && a(!0);
1615
+ t.add(b), t.setActiveObject(b), i && l(!0);
1586
1616
  }, f = (d) => {
1587
1617
  switch (d) {
1588
1618
  case "icon-phone":
1589
- u(mr);
1619
+ u(Cr);
1590
1620
  break;
1591
1621
  case "icon-question":
1592
- u(gr);
1622
+ u(wr);
1593
1623
  break;
1594
1624
  case "icon-clock":
1595
- u(vr);
1625
+ u(Sr);
1596
1626
  break;
1597
1627
  case "icon-twitter":
1598
- u(jr);
1628
+ u(kr);
1599
1629
  break;
1600
1630
  case "icon-check":
1601
- u(br);
1631
+ u(Nr);
1602
1632
  break;
1603
1633
  case "icon-pointer":
1604
- u(yr);
1634
+ u(Or);
1605
1635
  break;
1606
1636
  case "icon-mail":
1607
- u(wr);
1637
+ u(Ar);
1608
1638
  break;
1609
1639
  case "icon-dollar":
1610
- u(Cr);
1640
+ u(Ir);
1611
1641
  break;
1612
1642
  case "icon-graduation":
1613
- u(wt);
1643
+ u(St);
1614
1644
  break;
1615
1645
  case "icon-business-suit":
1616
- u(Sr);
1646
+ u(Er);
1617
1647
  break;
1618
1648
  case "icon-chat":
1619
- u(kr);
1649
+ u(Tr);
1620
1650
  break;
1621
1651
  case "icon-thumbs-up":
1622
- u(Nr);
1652
+ u(Mr);
1623
1653
  break;
1624
1654
  case "icon-wifi":
1625
- u(Or);
1655
+ u(zr);
1626
1656
  break;
1627
1657
  case "icon-info":
1628
- u(kt);
1658
+ u(Ot);
1629
1659
  break;
1630
1660
  case "icon-cart":
1631
- u(St);
1661
+ u(Nt);
1632
1662
  break;
1633
1663
  case "icon-comment":
1634
- u(Ct);
1664
+ u(kt);
1635
1665
  break;
1636
1666
  case "icon-location-map":
1637
- u(Nt);
1667
+ u(At);
1638
1668
  break;
1639
1669
  case "icon-heart-1":
1640
- u(Ot);
1670
+ u(It);
1641
1671
  break;
1642
1672
  case "icon-arrow-right-1":
1643
1673
  u(ht);
1644
1674
  break;
1645
1675
  case "icon-xmark":
1646
- u(At);
1676
+ u(Et);
1647
1677
  break;
1648
1678
  case "icon-cloud":
1649
- u(It);
1679
+ u(Tt);
1650
1680
  break;
1651
1681
  case "icon-smile":
1652
- u(Tt);
1682
+ u(Mt);
1653
1683
  break;
1654
1684
  case "icon-like":
1655
- u(Et);
1685
+ u(zt);
1656
1686
  break;
1657
1687
  default:
1658
1688
  console.log("no matching type");
1659
1689
  }
1660
1690
  };
1661
- return /* @__PURE__ */ e.jsx(K.Fragment, { children: /* @__PURE__ */ e.jsxs("div", { style: { padding: "5px" }, className: i ? "apc-mpx-widget-secondary-icons-mobile" : "apc-mpx-widget-secondary-icons", children: [
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: [
1662
1692
  /* @__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(
1663
1693
  "path",
1664
1694
  {
@@ -1715,7 +1745,7 @@ function ln(y) {
1715
1745
  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"
1716
1746
  }
1717
1747
  ) }) }),
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 }) }) }),
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 }) }) }),
1719
1749
  /* @__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(
1720
1750
  "path",
1721
1751
  {
@@ -1744,28 +1774,28 @@ function ln(y) {
1744
1774
  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"
1745
1775
  }
1746
1776
  ) }) }),
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 }) }) })
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 }) }) })
1757
1787
  ] }) });
1758
1788
  }
1759
- const Xe = ({ defaultValue: y, size: t, ariaLabel: o, onChange: i }) => {
1760
- const [a, u] = S(y), f = (d) => {
1761
- const j = d.target.value;
1762
- u(j), i(j);
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);
1763
1793
  };
1764
1794
  return /* @__PURE__ */ e.jsx(
1765
1795
  "input",
1766
1796
  {
1767
1797
  type: "range",
1768
- value: a,
1798
+ value: l,
1769
1799
  min: "0",
1770
1800
  max: "100",
1771
1801
  step: "1",
@@ -1775,64 +1805,64 @@ const Xe = ({ defaultValue: y, size: t, ariaLabel: o, onChange: i }) => {
1775
1805
  }
1776
1806
  );
1777
1807
  };
1778
- function zt(y) {
1779
- const { apcCanvasInstance: t, theme: o } = y, [i, a] = K.useState(!1), u = K.useRef(null), f = () => {
1780
- a((s) => !s);
1808
+ function Lt(g) {
1809
+ const { apcCanvasInstance: t, theme: o } = g, [i, l] = T.useState(!1), u = T.useRef(null), f = () => {
1810
+ l((s) => !s);
1781
1811
  }, d = (s) => {
1782
- u.current && u.current.contains(s.target) || a(!1);
1812
+ u.current && u.current.contains(s.target) || l(!1);
1783
1813
  };
1784
- re(() => (document.addEventListener("mousedown", d), () => {
1814
+ ie(() => (document.addEventListener("mousedown", d), () => {
1785
1815
  document.removeEventListener("mousedown", d);
1786
1816
  }), []);
1787
- const j = (s, g) => {
1817
+ const b = (s, m) => {
1788
1818
  if (t.getActiveObject()) {
1789
- if (g === "family" && t.getActiveObject().set({
1819
+ if (m === "family" && t.getActiveObject().set({
1790
1820
  fontFamily: s
1791
- }), g === "bold" && t.getActiveObject().set({
1821
+ }), m === "bold" && t.getActiveObject().set({
1792
1822
  fontWeight: s
1793
- }), g === "italic" && t.getActiveObject().set({
1823
+ }), m === "italic" && t.getActiveObject().set({
1794
1824
  fontStyle: s
1795
- }), g === "underline" && t.getActiveObject().set({
1825
+ }), m === "underline" && t.getActiveObject().set({
1796
1826
  underline: s
1797
- }), g === "line-through" && t.getActiveObject().set({
1827
+ }), m === "line-through" && t.getActiveObject().set({
1798
1828
  linethrough: s
1799
- }), g === "overline" && t.getActiveObject().set({
1829
+ }), m === "overline" && t.getActiveObject().set({
1800
1830
  overline: s
1801
- }), g === "color" && t.getActiveObject().set({
1831
+ }), m === "color" && t.getActiveObject().set({
1802
1832
  fill: s
1803
- }), g === "shadow") {
1833
+ }), m === "shadow") {
1804
1834
  const h = document.getElementById("apc-text-shadow-color").value;
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
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
1808
1838
  });
1809
1839
  }
1810
- if (g === "stroke") {
1840
+ if (m === "stroke") {
1811
1841
  const h = document.getElementById("apc-text-stroke-color").value;
1812
- let v = document.getElementById("apc-text-stroke-width").value;
1813
- v || (v = 1), t.getActiveObject().set({
1842
+ let j = document.getElementById("apc-text-stroke-width").value;
1843
+ j || (j = 1), t.getActiveObject().set({
1814
1844
  stroke: h,
1815
- strokeWidth: v
1845
+ strokeWidth: j
1816
1846
  });
1817
1847
  }
1818
- g === "bg-color" && t.getActiveObject().set({
1848
+ m === "bg-color" && t.getActiveObject().set({
1819
1849
  textBackgroundColor: s
1820
- }), g === "font-size" && t.getActiveObject().set({
1850
+ }), m === "font-size" && t.getActiveObject().set({
1821
1851
  fontSize: s
1822
1852
  }), t && t.renderAll();
1823
1853
  }
1824
- }, l = (s) => {
1854
+ }, a = (s) => {
1825
1855
  if (t.getActiveObject()) {
1826
- const g = parseFloat(s / 100);
1856
+ const m = parseFloat(s / 100);
1827
1857
  t.getActiveObject().set({
1828
- opacity: g.toFixed(1)
1858
+ opacity: m.toFixed(1)
1829
1859
  }), t && t.renderAll();
1830
1860
  }
1831
- }, m = ({ color: s, x: g, y: h, blur: v }) => {
1861
+ }, v = ({ color: s, x: m, y: h, blur: j }) => {
1832
1862
  if (t.getActiveObject()) {
1833
1863
  const n = t.getActiveObject().shadow;
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
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
1836
1866
  }), t && t.renderAll();
1837
1867
  }
1838
1868
  }, p = () => /* @__PURE__ */ e.jsxs("div", { className: "apc-mpx-widget-button-group-container", children: [
@@ -1854,7 +1884,7 @@ function zt(y) {
1854
1884
  "path",
1855
1885
  {
1856
1886
  fill: o.primaryColor,
1857
- d: Vr
1887
+ d: Yr
1858
1888
  }
1859
1889
  )
1860
1890
  }
@@ -1873,19 +1903,19 @@ function zt(y) {
1873
1903
  {
1874
1904
  style: { height: "25px", width: "25px", border: "none" },
1875
1905
  type: "color",
1876
- onChange: (s) => j(s.target.value, "bg-color")
1906
+ onChange: (s) => b(s.target.value, "bg-color")
1877
1907
  }
1878
1908
  )
1879
1909
  ] }),
1880
1910
  /* @__PURE__ */ e.jsxs("div", { style: { marginLeft: "10px" }, children: [
1881
1911
  " Opacity",
1882
1912
  /* @__PURE__ */ e.jsx("div", { children: /* @__PURE__ */ e.jsx(
1883
- Xe,
1913
+ Qe,
1884
1914
  {
1885
1915
  defaultValue: 100,
1886
1916
  size: "small",
1887
1917
  "aria-label": "Opacity",
1888
- onChange: (s) => l(s)
1918
+ onChange: (s) => a(s)
1889
1919
  }
1890
1920
  ) })
1891
1921
  ] })
@@ -1899,7 +1929,7 @@ function zt(y) {
1899
1929
  {
1900
1930
  type: "text",
1901
1931
  style: { height: "22px", width: "20px" },
1902
- onChange: (s) => m({ blur: s.target.value })
1932
+ onChange: (s) => v({ blur: s.target.value })
1903
1933
  }
1904
1934
  )
1905
1935
  ] }),
@@ -1910,31 +1940,31 @@ function zt(y) {
1910
1940
  {
1911
1941
  style: { height: "25px", width: "25px", border: "none" },
1912
1942
  type: "color",
1913
- onChange: (s) => m({ color: s.target.value })
1943
+ onChange: (s) => v({ color: s.target.value })
1914
1944
  }
1915
1945
  )
1916
1946
  ] }),
1917
1947
  /* @__PURE__ */ e.jsxs("div", { style: { marginLeft: "10px" }, children: [
1918
1948
  " Offset X",
1919
1949
  /* @__PURE__ */ e.jsx("div", { children: /* @__PURE__ */ e.jsx(
1920
- Xe,
1950
+ Qe,
1921
1951
  {
1922
1952
  defaultValue: 0,
1923
1953
  size: "small",
1924
1954
  "aria-label": "Opacity",
1925
- onChange: (s) => m({ x: s })
1955
+ onChange: (s) => v({ x: s })
1926
1956
  }
1927
1957
  ) })
1928
1958
  ] }),
1929
1959
  /* @__PURE__ */ e.jsxs("div", { style: { marginLeft: "10px" }, children: [
1930
1960
  " Offset Y",
1931
1961
  /* @__PURE__ */ e.jsx("div", { children: /* @__PURE__ */ e.jsx(
1932
- Xe,
1962
+ Qe,
1933
1963
  {
1934
1964
  defaultValue: 0,
1935
1965
  size: "small",
1936
1966
  "aria-label": "Opacity",
1937
- onChange: (s) => m({ y: s })
1967
+ onChange: (s) => v({ y: s })
1938
1968
  }
1939
1969
  ) })
1940
1970
  ] })
@@ -1942,13 +1972,13 @@ function zt(y) {
1942
1972
  ] })
1943
1973
  ] })
1944
1974
  ] });
1945
- return /* @__PURE__ */ e.jsx(K.Fragment, { children: /* @__PURE__ */ e.jsxs("div", { style: { display: "flex", flexDirection: "row", color: "#ffffff" }, children: [
1975
+ return /* @__PURE__ */ e.jsx(T.Fragment, { children: /* @__PURE__ */ e.jsxs("div", { style: { display: "flex", flexDirection: "row", color: "#ffffff" }, children: [
1946
1976
  /* @__PURE__ */ e.jsx("div", { style: { marginTop: "4px", marginLeft: "2px" }, children: /* @__PURE__ */ e.jsx(
1947
1977
  "input",
1948
1978
  {
1949
1979
  style: { height: "20px", width: "30px", border: "solid 0px #ffffff" },
1950
1980
  type: "color",
1951
- onChange: (s) => j(s.target.value, "color")
1981
+ onChange: (s) => b(s.target.value, "color")
1952
1982
  }
1953
1983
  ) }),
1954
1984
  " ",
@@ -1957,7 +1987,7 @@ function zt(y) {
1957
1987
  {
1958
1988
  style: { height: "20px", border: "solid 0px #ffffff" },
1959
1989
  id: "ffamily",
1960
- onChange: (s) => j(s.target.value, "family"),
1990
+ onChange: (s) => b(s.target.value, "family"),
1961
1991
  children: [
1962
1992
  /* @__PURE__ */ e.jsx("option", { value: "comic sans ms", children: "Comic Sans MS" }),
1963
1993
  /* @__PURE__ */ e.jsx("option", { value: "frankruehl", children: "FrankRuehl" }),
@@ -2013,7 +2043,7 @@ function zt(y) {
2013
2043
  defaultValue: 40,
2014
2044
  style: { width: "50px", height: "20px", border: "solid 0px #ffffff" },
2015
2045
  type: "number",
2016
- onChange: (s) => j(s.target.value, "font-size")
2046
+ onChange: (s) => b(s.target.value, "font-size")
2017
2047
  }
2018
2048
  ) }),
2019
2049
  /* @__PURE__ */ e.jsx(
@@ -2021,7 +2051,7 @@ function zt(y) {
2021
2051
  {
2022
2052
  style: { marginTop: "4px", marginLeft: "2px", cursor: "pointer" },
2023
2053
  role: "button",
2024
- onClick: (s) => t.getActiveObject().fontWeight === "normal" ? j("bold", "bold") : j("normal", "bold"),
2054
+ onClick: (s) => t.getActiveObject().fontWeight === "normal" ? b("bold", "bold") : b("normal", "bold"),
2025
2055
  children: /* @__PURE__ */ e.jsx(
2026
2056
  "svg",
2027
2057
  {
@@ -2045,7 +2075,7 @@ function zt(y) {
2045
2075
  {
2046
2076
  style: { marginTop: "4px", marginLeft: "2px", cursor: "pointer" },
2047
2077
  role: "button",
2048
- onClick: (s) => t.getActiveObject().fontStyle === "normal" ? j("italic", "italic") : j("normal", "italic"),
2078
+ onClick: (s) => t.getActiveObject().fontStyle === "normal" ? b("italic", "italic") : b("normal", "italic"),
2049
2079
  children: /* @__PURE__ */ e.jsx(
2050
2080
  "svg",
2051
2081
  {
@@ -2064,7 +2094,7 @@ function zt(y) {
2064
2094
  )
2065
2095
  }
2066
2096
  ),
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(
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(
2068
2098
  "svg",
2069
2099
  {
2070
2100
  xmlns: "http://www.w3.org/2000/svg",
@@ -2080,7 +2110,7 @@ function zt(y) {
2080
2110
  )
2081
2111
  }
2082
2112
  ) }),
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(
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(
2084
2114
  "svg",
2085
2115
  {
2086
2116
  xmlns: "http://www.w3.org/2000/svg",
@@ -2099,25 +2129,25 @@ function zt(y) {
2099
2129
  /* @__PURE__ */ e.jsx("div", { children: p() })
2100
2130
  ] }) });
2101
2131
  }
2102
- function Ye(y) {
2103
- const { apcCanvasInstance: t, theme: o } = y, i = ot(null), [a, u] = S(!1), f = () => {
2132
+ function Ke(g) {
2133
+ const { apcCanvasInstance: t, theme: o } = g, i = T.useRef(null), [l, u] = T.useState(!1), f = () => {
2104
2134
  u((p) => !p);
2105
- }, d = (p, b) => {
2135
+ }, d = (p, y) => {
2106
2136
  if (t && t.getActiveObject()) {
2107
2137
  if (p === "bg-color" && t.getActiveObject().set({
2108
- fill: b
2138
+ fill: y
2109
2139
  }), p === "border-color" && t.getActiveObject().set({
2110
- stroke: b
2140
+ stroke: y
2111
2141
  }), p === "gradient-bg-color1" || p === "gradient-bg-color2") {
2112
- let s = document.getElementById("apc-object-bg-gradient-color1").value, g = document.getElementById("apc-object-bg-gradient-color2").value;
2113
- const h = new _.Gradient({
2142
+ let s = document.getElementById("apc-object-bg-gradient-color1").value, m = document.getElementById("apc-object-bg-gradient-color2").value;
2143
+ const h = new B.Gradient({
2114
2144
  type: "linear",
2115
2145
  gradientUnits: "pixels",
2116
2146
  // or 'percentage'
2117
2147
  coords: { x1: 0, y1: 0, x2: 0, y2: t.getActiveObject().height },
2118
2148
  colorStops: [
2119
2149
  { offset: 0, color: s || "#000" },
2120
- { offset: 1, color: g || "#fff" }
2150
+ { offset: 1, color: m || "#fff" }
2121
2151
  ]
2122
2152
  });
2123
2153
  t.getActiveObject().set({
@@ -2126,22 +2156,22 @@ function Ye(y) {
2126
2156
  }
2127
2157
  t && t.renderAll();
2128
2158
  }
2129
- }, j = (p) => {
2159
+ }, b = (p) => {
2130
2160
  if (t.getActiveObject()) {
2131
- const b = parseFloat(p / 100);
2161
+ const y = parseFloat(p / 100);
2132
2162
  t.getActiveObject().set({
2133
- opacity: b.toFixed(1)
2163
+ opacity: y.toFixed(1)
2134
2164
  }), t && t.renderAll();
2135
2165
  }
2136
- }, l = ({ color: p, x: b, y: s, blur: g }) => {
2166
+ }, a = ({ color: p, x: y, y: s, blur: m }) => {
2137
2167
  if (t.getActiveObject()) {
2138
2168
  const h = t.getActiveObject().shadow;
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
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
2141
2171
  }), t && t.renderAll();
2142
2172
  }
2143
2173
  };
2144
- return /* @__PURE__ */ e.jsx(K.Fragment, { children: /* @__PURE__ */ e.jsxs("div", { className: "apc-mpx-widget-button-group-container", children: [
2174
+ return /* @__PURE__ */ e.jsx(T.Fragment, { children: /* @__PURE__ */ e.jsxs("div", { className: "apc-mpx-widget-button-group-container", children: [
2145
2175
  /* @__PURE__ */ e.jsx(
2146
2176
  "button",
2147
2177
  {
@@ -2159,14 +2189,14 @@ function Ye(y) {
2159
2189
  "path",
2160
2190
  {
2161
2191
  fill: o.primaryColor,
2162
- d: Ur
2192
+ d: Kr
2163
2193
  }
2164
2194
  )
2165
2195
  }
2166
2196
  )
2167
2197
  }
2168
2198
  ),
2169
- a && /* @__PURE__ */ e.jsxs("div", { className: "apc-mpx-widget-popper-container", ref: i, style: { marginLeft: "20%" }, children: [
2199
+ l && /* @__PURE__ */ e.jsxs("div", { className: "apc-mpx-widget-popper-container", ref: i, style: { marginLeft: "20%" }, children: [
2170
2200
  /* @__PURE__ */ e.jsx("div", { className: "apc-mpx-widget-popper-arrow-up" }),
2171
2201
  /* @__PURE__ */ e.jsxs("ul", { id: "split-button-menu", autoFocus: !0, children: [
2172
2202
  /* @__PURE__ */ e.jsx("li", { className: "apc-mpx-widget-popper-li", children: /* @__PURE__ */ e.jsxs("div", { style: { textAlign: "left" }, children: [
@@ -2208,12 +2238,12 @@ function Ye(y) {
2208
2238
  /* @__PURE__ */ e.jsx("div", { style: { marginLeft: "10px" }, children: /* @__PURE__ */ e.jsxs("div", { children: [
2209
2239
  "Opacity: ",
2210
2240
  /* @__PURE__ */ e.jsx(
2211
- Xe,
2241
+ Qe,
2212
2242
  {
2213
2243
  defaultValue: 100,
2214
2244
  size: "small",
2215
2245
  "aria-label": "Opacity",
2216
- onChange: (p) => j(p)
2246
+ onChange: (p) => b(p)
2217
2247
  }
2218
2248
  )
2219
2249
  ] }) }),
@@ -2233,65 +2263,65 @@ function Ye(y) {
2233
2263
  /* @__PURE__ */ e.jsx("div", { style: { fontWeight: "bold", color: "purple" }, children: "Shadow" }),
2234
2264
  /* @__PURE__ */ e.jsxs("div", { style: { marginLeft: "10px" }, children: [
2235
2265
  "Blur width ",
2236
- /* @__PURE__ */ e.jsx("input", { type: "text", style: { height: "22px", width: "25px" }, onChange: (p) => l({ blur: p.target.value }) })
2266
+ /* @__PURE__ */ e.jsx("input", { type: "text", style: { height: "22px", width: "25px" }, onChange: (p) => a({ blur: p.target.value }) })
2237
2267
  ] }),
2238
2268
  /* @__PURE__ */ e.jsxs("div", { style: { marginLeft: "10px" }, children: [
2239
2269
  " Color",
2240
- /* @__PURE__ */ e.jsx("input", { style: { height: "25px", width: "25px", border: "none" }, type: "color", onChange: (p) => l({ color: p.target.value }) })
2270
+ /* @__PURE__ */ e.jsx("input", { style: { height: "25px", width: "25px", border: "none" }, type: "color", onChange: (p) => a({ color: p.target.value }) })
2241
2271
  ] }),
2242
2272
  /* @__PURE__ */ e.jsx("div", { style: { marginLeft: "10px" }, children: /* @__PURE__ */ e.jsxs("div", { children: [
2243
2273
  "Offset X: ",
2244
- /* @__PURE__ */ e.jsx(Xe, { defaultValue: 0, size: "small", "aria-label": "Opacity", onChange: (p) => l({ x: p }) })
2274
+ /* @__PURE__ */ e.jsx(Qe, { defaultValue: 0, size: "small", "aria-label": "Opacity", onChange: (p) => a({ x: p }) })
2245
2275
  ] }) }),
2246
2276
  /* @__PURE__ */ e.jsx("div", { style: { marginLeft: "10px" }, children: /* @__PURE__ */ e.jsxs("div", { children: [
2247
2277
  "Offset Y: ",
2248
- /* @__PURE__ */ e.jsx(Xe, { defaultValue: 0, size: "small", "aria-label": "Opacity", onChange: (p) => l({ y: p }) })
2278
+ /* @__PURE__ */ e.jsx(Qe, { defaultValue: 0, size: "small", "aria-label": "Opacity", onChange: (p) => a({ y: p }) })
2249
2279
  ] }) })
2250
2280
  ] }) })
2251
2281
  ] })
2252
2282
  ] })
2253
2283
  ] }) });
2254
2284
  }
2255
- function an(y) {
2256
- const { apcCanvasInstance: t, apiEndpoint: o, apiKey: i } = y, [a, u] = S("art"), [f, d] = S(), [j, l] = S(!1), m = o + "/api/v1/designer";
2257
- re(() => {
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(() => {
2258
2288
  p();
2259
2289
  }, []);
2260
2290
  const p = () => {
2261
- l(!0);
2291
+ a(!0);
2262
2292
  const h = {
2263
2293
  "X-Api-Key": i
2264
- }, v = `${m}/get-quote/${a}`;
2265
- ye.get(v, { headers: h }).then((n) => {
2294
+ }, j = `${v}/get-quote/${l}`;
2295
+ ye.get(j, { headers: h }).then((n) => {
2266
2296
  var w;
2267
- l(!1), d((w = n.data) == null ? void 0 : w.object);
2297
+ a(!1), d((w = n.data) == null ? void 0 : w.object);
2268
2298
  }).catch((n) => {
2269
- console.error("Error fetching data:", n), l(!1);
2299
+ console.error("Error fetching data:", n), a(!1);
2270
2300
  });
2271
- }, b = (h, v, n) => {
2272
- const w = new _.Textbox(v, {
2301
+ }, y = (h, j, n) => {
2302
+ const w = new B.Textbox(j, {
2273
2303
  width: 500,
2274
2304
  left: 100,
2275
2305
  top: 200,
2276
2306
  fontSize: 16
2277
- }), R = new _.Textbox(n, {
2307
+ }), _ = new B.Textbox(n, {
2278
2308
  fontSize: 14,
2279
2309
  width: 200,
2280
2310
  fontWeight: "bold"
2281
2311
  });
2282
- R.top = w.top + w.height + 10, R.left = w.left, t.add(w), t.add(R), t.setActiveObject(w);
2312
+ _.top = w.top + w.height + 10, _.left = w.left, t.add(w), t.add(_), t.setActiveObject(w);
2283
2313
  }, s = (h) => {
2284
- l(!0), u(h), p();
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: [
2314
+ 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: [
2286
2316
  /* @__PURE__ */ e.jsx("div", { children: h.quote }),
2287
2317
  /* @__PURE__ */ e.jsx("div", { children: /* @__PURE__ */ e.jsx("strong", { children: /* @__PURE__ */ e.jsx("i", { children: h.author }) }) }),
2288
2318
  /* @__PURE__ */ e.jsx("br", {})
2289
- ] }, v)) }) : null;
2290
- return /* @__PURE__ */ e.jsxs(K.Fragment, { children: [
2319
+ ] }, j)) }) : null;
2320
+ return /* @__PURE__ */ e.jsxs(T.Fragment, { children: [
2291
2321
  /* @__PURE__ */ e.jsx("h3", { children: "Quotes" }),
2292
2322
  /* @__PURE__ */ e.jsx("br", {}),
2293
2323
  /* @__PURE__ */ e.jsx("br", {}),
2294
- /* @__PURE__ */ e.jsx("div", { children: g() }),
2324
+ /* @__PURE__ */ e.jsx("div", { children: m() }),
2295
2325
  /* @__PURE__ */ e.jsx("br", {}),
2296
2326
  /* @__PURE__ */ e.jsx("br", {}),
2297
2327
  /* @__PURE__ */ e.jsx("br", {}),
@@ -2303,7 +2333,7 @@ function an(y) {
2303
2333
  className: "apc-mpx-widget-custom-chip",
2304
2334
  onClick: () => s("best"),
2305
2335
  children: [
2306
- a === "best" ? /* @__PURE__ */ e.jsx("span", { style: { color: "green" }, children: "✓" }) : null,
2336
+ l === "best" ? /* @__PURE__ */ e.jsx("span", { style: { color: "green" }, children: "✓" }) : null,
2307
2337
  "Best"
2308
2338
  ]
2309
2339
  }
@@ -2316,7 +2346,7 @@ function an(y) {
2316
2346
  className: "apc-mpx-widget-custom-chip",
2317
2347
  onClick: () => s("business"),
2318
2348
  children: [
2319
- a === "business" ? /* @__PURE__ */ e.jsx("span", { style: { color: "green" }, children: "✓" }) : null,
2349
+ l === "business" ? /* @__PURE__ */ e.jsx("span", { style: { color: "green" }, children: "✓" }) : null,
2320
2350
  "Business"
2321
2351
  ]
2322
2352
  }
@@ -2329,7 +2359,7 @@ function an(y) {
2329
2359
  className: "apc-mpx-widget-custom-chip",
2330
2360
  onClick: () => s("car"),
2331
2361
  children: [
2332
- a === "car" ? /* @__PURE__ */ e.jsx("span", { style: { color: "green" }, children: "✓" }) : null,
2362
+ l === "car" ? /* @__PURE__ */ e.jsx("span", { style: { color: "green" }, children: "✓" }) : null,
2333
2363
  "Car"
2334
2364
  ]
2335
2365
  }
@@ -2342,7 +2372,7 @@ function an(y) {
2342
2372
  className: "apc-mpx-widget-custom-chip",
2343
2373
  onClick: () => s("change"),
2344
2374
  children: [
2345
- a === "change" ? /* @__PURE__ */ e.jsx("span", { style: { color: "green" }, children: "✓" }) : null,
2375
+ l === "change" ? /* @__PURE__ */ e.jsx("span", { style: { color: "green" }, children: "✓" }) : null,
2346
2376
  "Change"
2347
2377
  ]
2348
2378
  }
@@ -2355,7 +2385,7 @@ function an(y) {
2355
2385
  className: "apc-mpx-widget-custom-chip",
2356
2386
  onClick: () => s("computers"),
2357
2387
  children: [
2358
- a === "computers" ? /* @__PURE__ */ e.jsx("span", { style: { color: "green" }, children: "✓" }) : null,
2388
+ l === "computers" ? /* @__PURE__ */ e.jsx("span", { style: { color: "green" }, children: "✓" }) : null,
2359
2389
  "Computers"
2360
2390
  ]
2361
2391
  }
@@ -2368,7 +2398,7 @@ function an(y) {
2368
2398
  className: "apc-mpx-widget-custom-chip",
2369
2399
  onClick: () => s("cool"),
2370
2400
  children: [
2371
- a === "cool" ? /* @__PURE__ */ e.jsx("span", { style: { color: "green" }, children: "✓" }) : null,
2401
+ l === "cool" ? /* @__PURE__ */ e.jsx("span", { style: { color: "green" }, children: "✓" }) : null,
2372
2402
  "Cool"
2373
2403
  ]
2374
2404
  }
@@ -2381,7 +2411,7 @@ function an(y) {
2381
2411
  className: "apc-mpx-widget-custom-chip",
2382
2412
  onClick: () => s("courage"),
2383
2413
  children: [
2384
- a === "courage" ? /* @__PURE__ */ e.jsx("span", { style: { color: "green" }, children: "✓" }) : null,
2414
+ l === "courage" ? /* @__PURE__ */ e.jsx("span", { style: { color: "green" }, children: "✓" }) : null,
2385
2415
  "Courage"
2386
2416
  ]
2387
2417
  }
@@ -2394,7 +2424,7 @@ function an(y) {
2394
2424
  className: "apc-mpx-widget-custom-chip",
2395
2425
  onClick: () => s("dad"),
2396
2426
  children: [
2397
- a === "dad" ? /* @__PURE__ */ e.jsx("span", { style: { color: "green" }, children: "✓" }) : null,
2427
+ l === "dad" ? /* @__PURE__ */ e.jsx("span", { style: { color: "green" }, children: "✓" }) : null,
2398
2428
  "Dad"
2399
2429
  ]
2400
2430
  }
@@ -2407,7 +2437,7 @@ function an(y) {
2407
2437
  className: "apc-mpx-widget-custom-chip",
2408
2438
  onClick: () => s("dating"),
2409
2439
  children: [
2410
- a === "dating" ? /* @__PURE__ */ e.jsx("span", { style: { color: "green" }, children: "✓" }) : null,
2440
+ l === "dating" ? /* @__PURE__ */ e.jsx("span", { style: { color: "green" }, children: "✓" }) : null,
2411
2441
  "Date"
2412
2442
  ]
2413
2443
  }
@@ -2420,7 +2450,7 @@ function an(y) {
2420
2450
  className: "apc-mpx-widget-custom-chip",
2421
2451
  onClick: () => s("death"),
2422
2452
  children: [
2423
- a === "death" ? /* @__PURE__ */ e.jsx("span", { style: { color: "green" }, children: "✓" }) : null,
2453
+ l === "death" ? /* @__PURE__ */ e.jsx("span", { style: { color: "green" }, children: "✓" }) : null,
2424
2454
  "Death"
2425
2455
  ]
2426
2456
  }
@@ -2433,7 +2463,7 @@ function an(y) {
2433
2463
  className: "apc-mpx-widget-custom-chip",
2434
2464
  onClick: () => s("design"),
2435
2465
  children: [
2436
- a === "design" ? /* @__PURE__ */ e.jsx("span", { style: { color: "green" }, children: "✓" }) : null,
2466
+ l === "design" ? /* @__PURE__ */ e.jsx("span", { style: { color: "green" }, children: "✓" }) : null,
2437
2467
  "Design"
2438
2468
  ]
2439
2469
  }
@@ -2446,7 +2476,7 @@ function an(y) {
2446
2476
  className: "apc-mpx-widget-custom-chip",
2447
2477
  onClick: () => s("dreams"),
2448
2478
  children: [
2449
- a === "dreams" ? /* @__PURE__ */ e.jsx("span", { style: { color: "green" }, children: "✓" }) : null,
2479
+ l === "dreams" ? /* @__PURE__ */ e.jsx("span", { style: { color: "green" }, children: "✓" }) : null,
2450
2480
  "Dreams"
2451
2481
  ]
2452
2482
  }
@@ -2459,7 +2489,7 @@ function an(y) {
2459
2489
  className: "apc-mpx-widget-custom-chip",
2460
2490
  onClick: () => s("education"),
2461
2491
  children: [
2462
- a === "education" ? /* @__PURE__ */ e.jsx("span", { style: { color: "green" }, children: "✓" }) : null,
2492
+ l === "education" ? /* @__PURE__ */ e.jsx("span", { style: { color: "green" }, children: "✓" }) : null,
2463
2493
  "Education"
2464
2494
  ]
2465
2495
  }
@@ -2472,7 +2502,7 @@ function an(y) {
2472
2502
  className: "apc-mpx-widget-custom-chip",
2473
2503
  onClick: () => s("inspirational"),
2474
2504
  children: [
2475
- a === "inspirational" ? /* @__PURE__ */ e.jsx("span", { style: { color: "green" }, children: "✓" }) : null,
2505
+ l === "inspirational" ? /* @__PURE__ */ e.jsx("span", { style: { color: "green" }, children: "✓" }) : null,
2476
2506
  "Inspirational"
2477
2507
  ]
2478
2508
  }
@@ -2485,7 +2515,7 @@ function an(y) {
2485
2515
  className: "apc-mpx-widget-custom-chip",
2486
2516
  onClick: () => s("happiness"),
2487
2517
  children: [
2488
- a === "happiness" ? /* @__PURE__ */ e.jsx("span", { style: { color: "green" }, children: "✓" }) : null,
2518
+ l === "happiness" ? /* @__PURE__ */ e.jsx("span", { style: { color: "green" }, children: "✓" }) : null,
2489
2519
  "Happiness"
2490
2520
  ]
2491
2521
  }
@@ -2498,7 +2528,7 @@ function an(y) {
2498
2528
  className: "apc-mpx-widget-custom-chip",
2499
2529
  onClick: () => s("health"),
2500
2530
  children: [
2501
- a === "health" ? /* @__PURE__ */ e.jsx("span", { style: { color: "green" }, children: "✓" }) : null,
2531
+ l === "health" ? /* @__PURE__ */ e.jsx("span", { style: { color: "green" }, children: "✓" }) : null,
2502
2532
  "Health"
2503
2533
  ]
2504
2534
  }
@@ -2511,7 +2541,7 @@ function an(y) {
2511
2541
  className: "apc-mpx-widget-custom-chip",
2512
2542
  onClick: () => s("humor"),
2513
2543
  children: [
2514
- a === "humor" ? /* @__PURE__ */ e.jsx("span", { style: { color: "green" }, children: "✓" }) : null,
2544
+ l === "humor" ? /* @__PURE__ */ e.jsx("span", { style: { color: "green" }, children: "✓" }) : null,
2515
2545
  "Humor"
2516
2546
  ]
2517
2547
  }
@@ -2524,7 +2554,7 @@ function an(y) {
2524
2554
  className: "apc-mpx-widget-custom-chip",
2525
2555
  onClick: () => s("marriage"),
2526
2556
  children: [
2527
- a === "marriage" ? /* @__PURE__ */ e.jsx("span", { style: { color: "green" }, children: "✓" }) : null,
2557
+ l === "marriage" ? /* @__PURE__ */ e.jsx("span", { style: { color: "green" }, children: "✓" }) : null,
2528
2558
  "Marriage"
2529
2559
  ]
2530
2560
  }
@@ -2537,7 +2567,7 @@ function an(y) {
2537
2567
  className: "apc-mpx-widget-custom-chip",
2538
2568
  onClick: () => s("money"),
2539
2569
  children: [
2540
- a === "money" ? /* @__PURE__ */ e.jsx("span", { style: { color: "green" }, children: "✓" }) : null,
2570
+ l === "money" ? /* @__PURE__ */ e.jsx("span", { style: { color: "green" }, children: "✓" }) : null,
2541
2571
  "Money"
2542
2572
  ]
2543
2573
  }
@@ -2550,7 +2580,7 @@ function an(y) {
2550
2580
  className: "apc-mpx-widget-custom-chip",
2551
2581
  onClick: () => s("graduation"),
2552
2582
  children: [
2553
- a === "graduation" ? /* @__PURE__ */ e.jsx("span", { style: { color: "green" }, children: "✓" }) : null,
2583
+ l === "graduation" ? /* @__PURE__ */ e.jsx("span", { style: { color: "green" }, children: "✓" }) : null,
2554
2584
  "Graduation"
2555
2585
  ]
2556
2586
  }
@@ -2563,7 +2593,7 @@ function an(y) {
2563
2593
  className: "apc-mpx-widget-custom-chip",
2564
2594
  onClick: () => s("hope"),
2565
2595
  children: [
2566
- a === "hope" ? /* @__PURE__ */ e.jsx("span", { style: { color: "green" }, children: "✓" }) : null,
2596
+ l === "hope" ? /* @__PURE__ */ e.jsx("span", { style: { color: "green" }, children: "✓" }) : null,
2567
2597
  "Hope"
2568
2598
  ]
2569
2599
  }
@@ -2576,7 +2606,7 @@ function an(y) {
2576
2606
  className: "apc-mpx-widget-custom-chip",
2577
2607
  onClick: () => s("love"),
2578
2608
  children: [
2579
- a === "love" ? /* @__PURE__ */ e.jsx("span", { style: { color: "green" }, children: "✓" }) : null,
2609
+ l === "love" ? /* @__PURE__ */ e.jsx("span", { style: { color: "green" }, children: "✓" }) : null,
2580
2610
  "Love"
2581
2611
  ]
2582
2612
  }
@@ -2589,7 +2619,7 @@ function an(y) {
2589
2619
  className: "apc-mpx-widget-custom-chip",
2590
2620
  onClick: () => s("god"),
2591
2621
  children: [
2592
- a === "god" ? /* @__PURE__ */ e.jsx("span", { style: { color: "green" }, children: "✓" }) : null,
2622
+ l === "god" ? /* @__PURE__ */ e.jsx("span", { style: { color: "green" }, children: "✓" }) : null,
2593
2623
  "God"
2594
2624
  ]
2595
2625
  }
@@ -2602,7 +2632,7 @@ function an(y) {
2602
2632
  className: "apc-mpx-widget-custom-chip",
2603
2633
  onClick: () => s("equality"),
2604
2634
  children: [
2605
- a === "equality" ? /* @__PURE__ */ e.jsx("span", { style: { color: "green" }, children: "✓" }) : null,
2635
+ l === "equality" ? /* @__PURE__ */ e.jsx("span", { style: { color: "green" }, children: "✓" }) : null,
2606
2636
  "Equality"
2607
2637
  ]
2608
2638
  }
@@ -2615,7 +2645,7 @@ function an(y) {
2615
2645
  className: "apc-mpx-widget-custom-chip",
2616
2646
  onClick: () => s("failure"),
2617
2647
  children: [
2618
- a === "failure" ? /* @__PURE__ */ e.jsx("span", { style: { color: "green" }, children: "✓" }) : null,
2648
+ l === "failure" ? /* @__PURE__ */ e.jsx("span", { style: { color: "green" }, children: "✓" }) : null,
2619
2649
  "Failure"
2620
2650
  ]
2621
2651
  }
@@ -2628,7 +2658,7 @@ function an(y) {
2628
2658
  className: "apc-mpx-widget-custom-chip",
2629
2659
  onClick: () => s("fear"),
2630
2660
  children: [
2631
- a === "fear" ? /* @__PURE__ */ e.jsx("span", { style: { color: "green" }, children: "✓" }) : null,
2661
+ l === "fear" ? /* @__PURE__ */ e.jsx("span", { style: { color: "green" }, children: "✓" }) : null,
2632
2662
  "Fear"
2633
2663
  ]
2634
2664
  }
@@ -2641,7 +2671,7 @@ function an(y) {
2641
2671
  className: "apc-mpx-widget-custom-chip",
2642
2672
  onClick: () => s("legal"),
2643
2673
  children: [
2644
- a === "legal" ? /* @__PURE__ */ e.jsx("span", { style: { color: "green" }, children: "✓" }) : null,
2674
+ l === "legal" ? /* @__PURE__ */ e.jsx("span", { style: { color: "green" }, children: "✓" }) : null,
2645
2675
  "Legal"
2646
2676
  ]
2647
2677
  }
@@ -2654,7 +2684,7 @@ function an(y) {
2654
2684
  className: "apc-mpx-widget-custom-chip",
2655
2685
  onClick: () => s("attitude"),
2656
2686
  children: [
2657
- a === "attitude" ? /* @__PURE__ */ e.jsx("span", { style: { color: "green" }, children: "✓" }) : null,
2687
+ l === "attitude" ? /* @__PURE__ */ e.jsx("span", { style: { color: "green" }, children: "✓" }) : null,
2658
2688
  "Attitude"
2659
2689
  ]
2660
2690
  }
@@ -2667,7 +2697,7 @@ function an(y) {
2667
2697
  className: "apc-mpx-widget-custom-chip",
2668
2698
  onClick: () => s("beauty"),
2669
2699
  children: [
2670
- a === "beauty" ? /* @__PURE__ */ e.jsx("span", { style: { color: "green" }, children: "✓" }) : null,
2700
+ l === "beauty" ? /* @__PURE__ */ e.jsx("span", { style: { color: "green" }, children: "✓" }) : null,
2671
2701
  "Beauty"
2672
2702
  ]
2673
2703
  }
@@ -2680,7 +2710,7 @@ function an(y) {
2680
2710
  className: "apc-mpx-widget-custom-chip",
2681
2711
  onClick: () => s("age"),
2682
2712
  children: [
2683
- a === "age" ? /* @__PURE__ */ e.jsx("span", { style: { color: "green" }, children: "✓" }) : null,
2713
+ l === "age" ? /* @__PURE__ */ e.jsx("span", { style: { color: "green" }, children: "✓" }) : null,
2684
2714
  "Age"
2685
2715
  ]
2686
2716
  }
@@ -2693,7 +2723,7 @@ function an(y) {
2693
2723
  className: "apc-mpx-widget-custom-chip",
2694
2724
  onClick: () => s("art"),
2695
2725
  children: [
2696
- a === "art" ? /* @__PURE__ */ e.jsx("span", { style: { color: "green" }, children: "✓" }) : null,
2726
+ l === "art" ? /* @__PURE__ */ e.jsx("span", { style: { color: "green" }, children: "✓" }) : null,
2697
2727
  "Art"
2698
2728
  ]
2699
2729
  }
@@ -2706,7 +2736,7 @@ function an(y) {
2706
2736
  className: "apc-mpx-widget-custom-chip",
2707
2737
  onClick: () => s("birthday"),
2708
2738
  children: [
2709
- a === "birthday" ? /* @__PURE__ */ e.jsx("span", { style: { color: "green" }, children: "✓" }) : null,
2739
+ l === "birthday" ? /* @__PURE__ */ e.jsx("span", { style: { color: "green" }, children: "✓" }) : null,
2710
2740
  "Birthday"
2711
2741
  ]
2712
2742
  }
@@ -2715,13 +2745,13 @@ function an(y) {
2715
2745
  ] })
2716
2746
  ] });
2717
2747
  }
2718
- function dn(y) {
2719
- const { apcCanvasInstance: t, theme: o, apiKey: i, apiEndpoint: a, updateActiveSection: u, reloadTabs: f, currentTabNo: d, isMobile: j, closeMobileModalSecondaryPanel: l } = y, [m, p] = S("background"), [b, s] = S(!1), [g, h] = S(), v = a + "/api/v1/designer";
2720
- re(() => {
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(() => {
2721
2751
  w();
2722
2752
  }, []);
2723
2753
  const n = (L) => {
2724
- const D = document.getElementById("img-default-id"), T = new _.Image(D, (E) => {
2754
+ const P = document.getElementById("img-default-id"), I = new B.Image(P, (E) => {
2725
2755
  E.set({
2726
2756
  left: 100,
2727
2757
  top: 200,
@@ -2730,28 +2760,28 @@ function dn(y) {
2730
2760
  imageSmoothing: !0
2731
2761
  });
2732
2762
  });
2733
- t.add(T), j && l(!0);
2763
+ t.add(I), b && a(!0);
2734
2764
  }, w = () => {
2735
2765
  s(!0);
2736
2766
  const L = {
2737
2767
  "X-Api-Key": i
2738
- }, D = `${v}/get-images/${m}`;
2739
- ye.get(D, { headers: L }).then((T) => {
2768
+ }, P = `${j}/get-images/${v}`;
2769
+ ye.get(P, { headers: L }).then((I) => {
2740
2770
  var E;
2741
- s(!1), h((E = T.data) == null ? void 0 : E.object);
2742
- }).catch((T) => {
2743
- console.error("Error fetching data:", T), s(!1);
2771
+ s(!1), h((E = I.data) == null ? void 0 : E.object);
2772
+ }).catch((I) => {
2773
+ console.error("Error fetching data:", I), s(!1);
2744
2774
  });
2745
- }, R = (L) => {
2746
- _.Image.fromURL(L, function(D) {
2747
- D.width = t.width, D.height = t.height, D.scaleToWidth(t.width), D.scaleToHeight(t.height), t.setBackgroundImage(D);
2748
- const T = localStorage.getItem("apc_x_activeTab"), E = JSON.stringify(t);
2749
- De(T, "general", E, null).then((H) => {
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) => {
2750
2780
  f(d + 1), t && t.renderAll();
2751
2781
  });
2752
2782
  }, { crossOrigin: "anonymous" });
2753
- }, I = () => g ? /* @__PURE__ */ e.jsx("div", { children: g.map((L) => /* @__PURE__ */ e.jsx("div", { onClick: () => R(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;
2754
- return /* @__PURE__ */ e.jsxs(K.Fragment, { children: [
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: [
2755
2785
  /* @__PURE__ */ e.jsx("br", {}),
2756
2786
  /* @__PURE__ */ e.jsx("br", {}),
2757
2787
  /* @__PURE__ */ e.jsxs("div", { style: { cursor: "pointer" }, onClick: () => n(), children: [
@@ -2785,39 +2815,39 @@ function dn(y) {
2785
2815
  backgroundColor: o.primaryColor,
2786
2816
  color: "#ffffff"
2787
2817
  },
2788
- children: b ? "...Processing" : "Search"
2818
+ children: y ? "...Processing" : "Search"
2789
2819
  }
2790
2820
  )
2791
2821
  ] }),
2792
2822
  /* @__PURE__ */ e.jsx("br", {}),
2793
2823
  /* @__PURE__ */ e.jsx("br", {}),
2794
- I()
2824
+ A()
2795
2825
  ] });
2796
2826
  }
2797
- function hn(y) {
2798
- const [t, o] = S(""), [i, a] = S(""), [u, f] = S(!1), [d, j] = S(!1), [l, m] = S(!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
- re(() => {
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(() => {
2800
2830
  (async () => {
2801
- w === "active" ? (j(!0), m(!0)) : (f(!0), await R());
2831
+ w === "active" ? (b(!0), v(!0)) : (f(!0), await _());
2802
2832
  })();
2803
2833
  }, []);
2804
- const R = () => {
2834
+ const _ = () => {
2805
2835
  f(!0);
2806
- const D = `${n}/get-subscription-status/${h}`;
2807
- ye.get(D).then((T) => {
2808
- T.data.object && T.data.object === "active" && (sessionStorage.setItem("apc_x_sub_status", "active"), j(!0));
2809
- }).catch((T) => {
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));
2839
+ }).catch((I) => {
2810
2840
  sessionStorage.setItem("apc_x_sub_status", "");
2811
2841
  }).finally(() => {
2812
- f(!1), m(!0);
2842
+ f(!1), v(!0);
2813
2843
  });
2814
- }, I = () => {
2815
- Jt.toDataURL(t, { width: 300 }, (D, T) => {
2816
- D && console.error(D), a(T);
2844
+ }, A = () => {
2845
+ Xt.toDataURL(t, { width: 300 }, (P, I) => {
2846
+ P && console.error(P), l(I);
2817
2847
  });
2818
- }, L = (D) => {
2819
- const T = document.getElementById("apc-qr-code-img"), E = new _.Image(T, (H) => {
2820
- H.set({
2848
+ }, L = (P) => {
2849
+ const I = document.getElementById("apc-qr-code-img"), E = new B.Image(I, (V) => {
2850
+ V.set({
2821
2851
  left: 200,
2822
2852
  top: 200,
2823
2853
  scaleX: 0.5,
@@ -2825,9 +2855,9 @@ function hn(y) {
2825
2855
  imageSmoothing: !0
2826
2856
  });
2827
2857
  });
2828
- p.add(E), p.setActiveObject(E), s && g(!0);
2858
+ p.add(E), p.setActiveObject(E), s && m(!0);
2829
2859
  };
2830
- return !d && !u && l ? /* @__PURE__ */ e.jsx(ct, {}) : d && !u && l ? /* @__PURE__ */ e.jsxs(K.Fragment, { children: [
2860
+ return !d && !u && a ? /* @__PURE__ */ e.jsx(ct, {}) : d && !u && a ? /* @__PURE__ */ e.jsxs(T.Fragment, { children: [
2831
2861
  /* @__PURE__ */ e.jsx("br", {}),
2832
2862
  /* @__PURE__ */ e.jsx("br", {}),
2833
2863
  "Enter data such as url",
@@ -2836,9 +2866,9 @@ function hn(y) {
2836
2866
  "input",
2837
2867
  {
2838
2868
  className: "apc-mpc-widget-input",
2839
- style: { border: `solid 3px ${b.primaryColor}` },
2869
+ style: { border: `solid 3px ${y.primaryColor}` },
2840
2870
  type: "text",
2841
- onChange: (D) => o(D.target.value)
2871
+ onChange: (P) => o(P.target.value)
2842
2872
  }
2843
2873
  ),
2844
2874
  /* @__PURE__ */ e.jsx("br", {}),
@@ -2847,9 +2877,9 @@ function hn(y) {
2847
2877
  "button",
2848
2878
  {
2849
2879
  className: "apc-mpc-widget-btn",
2850
- style: { backgroundColor: b.primaryColor, color: "#ffffff" },
2880
+ style: { backgroundColor: y.primaryColor, color: "#ffffff" },
2851
2881
  disabled: !t,
2852
- onClick: I,
2882
+ onClick: A,
2853
2883
  children: "Generate QR code"
2854
2884
  }
2855
2885
  ),
@@ -2867,29 +2897,29 @@ function hn(y) {
2867
2897
  ]
2868
2898
  }
2869
2899
  )
2870
- ] }) : /* @__PURE__ */ e.jsx("div", { children: /* @__PURE__ */ e.jsx(lt, {}) });
2900
+ ] }) : /* @__PURE__ */ e.jsx("div", { children: /* @__PURE__ */ e.jsx(at, {}) });
2871
2901
  }
2872
- function pn(y) {
2873
- const { apcCanvasInstance: t, theme: o, isMobile: i, closeMobileModalSecondaryPanel: a, apiKey: u, apiEndpoint: f } = y, [d, j] = S(""), [l, m] = S(null), [p, b] = S("CODE128"), s = ot(null), [g, h] = S(""), [v, n] = S(!1), [w, R] = S(!1), [I, L] = S(!1), D = sessionStorage.getItem("apc_x_sub_status"), T = `${f}/api/v1/designer`;
2874
- re(() => {
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(() => {
2875
2905
  (async () => {
2876
- D === "active" ? (R(!0), L(!0)) : (n(!0), await E());
2906
+ P === "active" ? (_(!0), L(!0)) : (n(!0), await E());
2877
2907
  })();
2878
2908
  }, []);
2879
2909
  const E = () => {
2880
2910
  n(!0);
2881
- const J = `${T}/get-subscription-status/${u}`;
2882
- ye.get(J).then((ce) => {
2883
- ce.data.object && ce.data.object === "active" && (sessionStorage.setItem("apc_x_sub_status", "active"), R(!0));
2911
+ const Y = `${I}/get-subscription-status/${u}`;
2912
+ ye.get(Y).then((ce) => {
2913
+ ce.data.object && ce.data.object === "active" && (sessionStorage.setItem("apc_x_sub_status", "active"), _(!0));
2884
2914
  }).catch((ce) => {
2885
2915
  sessionStorage.setItem("apc_x_sub_status", "");
2886
2916
  }).finally(() => {
2887
2917
  n(!1), L(!0);
2888
2918
  });
2889
- }, H = () => {
2890
- m(
2919
+ }, V = () => {
2920
+ v(
2891
2921
  /* @__PURE__ */ e.jsx(
2892
- Yt,
2922
+ Qt,
2893
2923
  {
2894
2924
  value: d,
2895
2925
  format: p,
@@ -2897,23 +2927,23 @@ function pn(y) {
2897
2927
  }
2898
2928
  )
2899
2929
  );
2900
- const J = document.getElementById("barcode-element");
2901
- J && h(J.innerHTML);
2902
- }, Y = (J) => {
2930
+ const Y = document.getElementById("barcode-element");
2931
+ Y && h(Y.innerHTML);
2932
+ }, K = (Y) => {
2903
2933
  if (s.current.innerHTML) {
2904
2934
  const ce = s.current.innerHTML;
2905
- let se = new Image();
2906
- se.src = "data:image/svg+xml," + encodeURIComponent(ce), se.onload = function() {
2907
- const oe = new _.Image(se, {
2935
+ let ne = new Image();
2936
+ ne.src = "data:image/svg+xml," + encodeURIComponent(ce), ne.onload = function() {
2937
+ const se = new B.Image(ne, {
2908
2938
  left: 200,
2909
2939
  top: 200
2910
2940
  });
2911
- t.add(oe), t.setActiveObject(oe);
2941
+ t.add(se), t.setActiveObject(se);
2912
2942
  };
2913
2943
  }
2914
- i && a(!0);
2944
+ i && l(!0);
2915
2945
  };
2916
- return !w && !v && I ? /* @__PURE__ */ e.jsx(ct, {}) : w && !v && I ? /* @__PURE__ */ e.jsxs(K.Fragment, { children: [
2946
+ return !w && !j && A ? /* @__PURE__ */ e.jsx(ct, {}) : w && !j && A ? /* @__PURE__ */ e.jsxs(T.Fragment, { children: [
2917
2947
  /* @__PURE__ */ e.jsx("br", {}),
2918
2948
  /* @__PURE__ */ e.jsx("br", {}),
2919
2949
  "Enter number",
@@ -2921,7 +2951,7 @@ function pn(y) {
2921
2951
  "input",
2922
2952
  {
2923
2953
  type: "text",
2924
- onChange: (J) => j(J.target.value),
2954
+ onChange: (Y) => b(Y.target.value),
2925
2955
  className: "apc-mpc-widget-input",
2926
2956
  style: { border: `solid 3px ${o.primaryColor}` }
2927
2957
  }
@@ -2933,7 +2963,7 @@ function pn(y) {
2933
2963
  "select",
2934
2964
  {
2935
2965
  value: p,
2936
- onChange: (J) => b(J.target.value),
2966
+ onChange: (Y) => y(Y.target.value),
2937
2967
  className: "apc-mpc-widget-input",
2938
2968
  style: { border: `solid 3px ${o.primaryColor}` },
2939
2969
  children: [
@@ -2954,7 +2984,7 @@ function pn(y) {
2954
2984
  {
2955
2985
  className: "apc-mpc-widget-btn",
2956
2986
  disabled: !d,
2957
- onClick: () => H(),
2987
+ onClick: () => V(),
2958
2988
  style: { backgroundColor: o.primaryColor, color: "#ffffff" },
2959
2989
  children: "Generate Barcode"
2960
2990
  }
@@ -2964,41 +2994,41 @@ function pn(y) {
2964
2994
  " ",
2965
2995
  /* @__PURE__ */ e.jsx("br", {}),
2966
2996
  /* @__PURE__ */ e.jsx("br", {}),
2967
- /* @__PURE__ */ e.jsx("div", { children: l && /* @__PURE__ */ e.jsx(
2997
+ /* @__PURE__ */ e.jsx("div", { children: a && /* @__PURE__ */ e.jsx(
2968
2998
  "div",
2969
2999
  {
2970
3000
  ref: s,
2971
- onClick: (J) => Y(),
3001
+ onClick: (Y) => K(),
2972
3002
  style: { cursor: "pointer" },
2973
- children: l
3003
+ children: a
2974
3004
  }
2975
3005
  ) })
2976
3006
  ] }) : /* @__PURE__ */ e.jsxs("div", { children: [
2977
3007
  " ",
2978
- /* @__PURE__ */ e.jsx(lt, {})
3008
+ /* @__PURE__ */ e.jsx(at, {})
2979
3009
  ] });
2980
3010
  }
2981
- function un(y) {
2982
- const { apcCanvasInstance: t, theme: o } = y, [i, a] = S(), [u, f] = S(), [d, j] = S(""), l = (b, s) => {
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) => {
2983
3013
  if (t) {
2984
- if (b === "bg-color" && s.target.value && t.set({
3014
+ if (y === "bg-color" && s.target.value && t.set({
2985
3015
  backgroundColor: s.target.value
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;
2990
- _.Image.fromURL(n, function(w) {
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;
3020
+ B.Image.fromURL(n, function(w) {
2991
3021
  t.setBackgroundImage(w, t.renderAll.bind(t), {
2992
3022
  //scaleX: apcCanvasInstance,
2993
3023
  //scaleY: apcCanvasInstance.height
2994
3024
  });
2995
3025
  });
2996
- }, h.readAsDataURL(g);
3026
+ }, h.readAsDataURL(m);
2997
3027
  }
2998
- b === "height" && s.target.value && (a(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();
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();
2999
3029
  }
3000
- }, m = (b, s, g) => {
3001
- f(s), a(b), t.setWidth(s), t.setHeight(b), j(g);
3030
+ }, v = (y, s, m) => {
3031
+ f(s), l(y), t.setWidth(s), t.setHeight(y), b(m);
3002
3032
  }, p = () => /* @__PURE__ */ e.jsxs("div", { children: [
3003
3033
  /* @__PURE__ */ e.jsx("br", {}),
3004
3034
  /* @__PURE__ */ e.jsx("br", {}),
@@ -3009,7 +3039,7 @@ function un(y) {
3009
3039
  {
3010
3040
  type: "number",
3011
3041
  value: t.height,
3012
- onChange: (b) => l("height", b),
3042
+ onChange: (y) => a("height", y),
3013
3043
  className: "apc-mpc-widget-input",
3014
3044
  style: { border: `solid 3px ${o.primaryColor}` }
3015
3045
  }
@@ -3024,7 +3054,7 @@ function un(y) {
3024
3054
  color: "info",
3025
3055
  type: "number",
3026
3056
  value: t.width,
3027
- onChange: (b) => l("width", b),
3057
+ onChange: (y) => a("width", y),
3028
3058
  className: "apc-mpc-widget-input",
3029
3059
  style: { border: `solid 3px ${o.primaryColor}` }
3030
3060
  }
@@ -3042,7 +3072,7 @@ function un(y) {
3042
3072
  {
3043
3073
  style: { backgroundColor: "#e0e0e0" },
3044
3074
  className: "apc-mpx-widget-custom-chip",
3045
- onClick: () => m(1440, 2560, "YOUC"),
3075
+ onClick: () => v(1440, 2560, "YOUC"),
3046
3076
  children: [
3047
3077
  d === "YOUC" ? /* @__PURE__ */ e.jsx("span", { style: { color: "green" }, children: "✓" }) : null,
3048
3078
  " Youtube Channel : 2560 x 1440 px"
@@ -3055,7 +3085,7 @@ function un(y) {
3055
3085
  {
3056
3086
  style: { backgroundColor: "#e0e0e0" },
3057
3087
  className: "apc-mpx-widget-custom-chip",
3058
- onClick: () => m(1080, 1920, "FULLHD"),
3088
+ onClick: () => v(1080, 1920, "FULLHD"),
3059
3089
  children: [
3060
3090
  d === "FULLHD" ? /* @__PURE__ */ e.jsx("span", { style: { color: "green" }, children: "✓" }) : null,
3061
3091
  "Full HD : 1920 x 1080 px"
@@ -3068,7 +3098,7 @@ function un(y) {
3068
3098
  {
3069
3099
  style: { backgroundColor: "#e0e0e0" },
3070
3100
  className: "apc-mpx-widget-custom-chip",
3071
- onClick: () => m(1080, 1080, "INSTAP"),
3101
+ onClick: () => v(1080, 1080, "INSTAP"),
3072
3102
  children: [
3073
3103
  d === "INSTAP" ? /* @__PURE__ */ e.jsx("span", { style: { color: "green" }, children: "✓" }) : null,
3074
3104
  "Instagram Post:1080 x 1080 px"
@@ -3081,7 +3111,7 @@ function un(y) {
3081
3111
  {
3082
3112
  style: { backgroundColor: "#e0e0e0" },
3083
3113
  className: "apc-mpx-widget-custom-chip",
3084
- onClick: () => m(1920, 1080, "INSTAS"),
3114
+ onClick: () => v(1920, 1080, "INSTAS"),
3085
3115
  children: [
3086
3116
  d === "INSTAS" ? /* @__PURE__ */ e.jsx("span", { style: { color: "green" }, children: "✓" }) : null,
3087
3117
  "Instagram Story: 1080 x 1920 px"
@@ -3094,7 +3124,7 @@ function un(y) {
3094
3124
  {
3095
3125
  style: { backgroundColor: "#e0e0e0" },
3096
3126
  className: "apc-mpx-widget-custom-chip",
3097
- onClick: () => m(1080, 1080, "INSTAA"),
3127
+ onClick: () => v(1080, 1080, "INSTAA"),
3098
3128
  children: [
3099
3129
  d === "INSTAA" ? /* @__PURE__ */ e.jsx("span", { style: { color: "green" }, children: "✓" }) : null,
3100
3130
  "Instagram Ad: 1080 x 1080 px"
@@ -3107,7 +3137,7 @@ function un(y) {
3107
3137
  {
3108
3138
  style: { backgroundColor: "#e0e0e0" },
3109
3139
  className: "apc-mpx-widget-custom-chip",
3110
- onClick: () => m(788, 940, "FACEP"),
3140
+ onClick: () => v(788, 940, "FACEP"),
3111
3141
  children: [
3112
3142
  d === "FACEP" ? /* @__PURE__ */ e.jsx("span", { style: { color: "green" }, children: "✓" }) : null,
3113
3143
  "Facebook Post: 940 x 788 px"
@@ -3120,7 +3150,7 @@ function un(y) {
3120
3150
  {
3121
3151
  style: { backgroundColor: "#e0e0e0" },
3122
3152
  className: "apc-mpx-widget-custom-chip",
3123
- onClick: () => m(315, 851, "FACEC"),
3153
+ onClick: () => v(315, 851, "FACEC"),
3124
3154
  children: [
3125
3155
  d === "FACEC" ? /* @__PURE__ */ e.jsx("span", { style: { color: "green" }, children: "✓" }) : null,
3126
3156
  "Facebook Cover: 851 x 315 px"
@@ -3133,7 +3163,7 @@ function un(y) {
3133
3163
  {
3134
3164
  style: { backgroundColor: "#e0e0e0" },
3135
3165
  className: "apc-mpx-widget-custom-chip",
3136
- onClick: () => m(628, 1200, "FACEA"),
3166
+ onClick: () => v(628, 1200, "FACEA"),
3137
3167
  children: [
3138
3168
  d === "FACEA" ? /* @__PURE__ */ e.jsx("span", { style: { color: "green" }, children: "✓" }) : null,
3139
3169
  "Facebook Ad: 1200 x 628 px"
@@ -3146,7 +3176,7 @@ function un(y) {
3146
3176
  {
3147
3177
  style: { backgroundColor: "#e0e0e0" },
3148
3178
  className: "apc-mpx-widget-custom-chip",
3149
- onClick: () => m(720, 1280, "YOUT"),
3179
+ onClick: () => v(720, 1280, "YOUT"),
3150
3180
  children: [
3151
3181
  d === "YOUT" ? /* @__PURE__ */ e.jsx("span", { style: { color: "green" }, children: "✓" }) : null,
3152
3182
  "Youtube Thumbnail: 1280 x 720 px"
@@ -3159,7 +3189,7 @@ function un(y) {
3159
3189
  {
3160
3190
  style: { backgroundColor: "#e0e0e0" },
3161
3191
  className: "apc-mpx-widget-custom-chip",
3162
- onClick: () => m(534, 534, "INVITE"),
3192
+ onClick: () => v(534, 534, "INVITE"),
3163
3193
  children: [
3164
3194
  d === "INVITE" ? /* @__PURE__ */ e.jsx("span", { style: { color: "green" }, children: "✓" }) : null,
3165
3195
  "Invitation : 14 x 14 cm"
@@ -3172,7 +3202,7 @@ function un(y) {
3172
3202
  {
3173
3203
  style: { backgroundColor: "#e0e0e0" },
3174
3204
  className: "apc-mpx-widget-custom-chip",
3175
- onClick: () => m(1112, 788, "A4"),
3205
+ onClick: () => v(1112, 788, "A4"),
3176
3206
  children: [
3177
3207
  d === "A4" ? /* @__PURE__ */ e.jsx("span", { style: { color: "green" }, children: "✓" }) : null,
3178
3208
  "A4 : 788 x 1112 px"
@@ -3185,7 +3215,7 @@ function un(y) {
3185
3215
  {
3186
3216
  style: { backgroundColor: "#e0e0e0" },
3187
3217
  className: "apc-mpx-widget-custom-chip",
3188
- onClick: () => m(192, 336, "BUSINESSCARD"),
3218
+ onClick: () => v(192, 336, "BUSINESSCARD"),
3189
3219
  children: [
3190
3220
  d === "BUSINESSCARD" ? /* @__PURE__ */ e.jsx("span", { style: { color: "green" }, children: "✓" }) : null,
3191
3221
  "Business card 3.5 x 2 in"
@@ -3196,92 +3226,92 @@ function un(y) {
3196
3226
  ] });
3197
3227
  return /* @__PURE__ */ e.jsx("div", { children: p() });
3198
3228
  }
3199
- const xe = (y, t, o, i = "png", a) => new Promise((u, f) => {
3200
- const d = document.createElement("canvas"), j = JSON.parse(y), l = crypto.randomUUID();
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();
3201
3231
  d.width = o, d.height = t;
3202
- const m = new _.StaticCanvas(d, {
3232
+ const v = new B.StaticCanvas(d, {
3203
3233
  selection: !1,
3204
- height: j.height,
3205
- width: j.width
3234
+ height: b.height,
3235
+ width: b.width
3206
3236
  });
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);
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);
3212
3242
  };
3213
3243
  if (i.toLowerCase() === "svg") {
3214
- const b = m.toSVG(), s = new Blob([b], { type: "image/svg+xml" });
3215
- a && p(s, "mypixia.svg"), u(new File([s], `${l}.svg`, { type: "image/svg+xml" }));
3244
+ const y = v.toSVG(), s = new Blob([y], { type: "image/svg+xml" });
3245
+ l && p(s, "mypixia.svg"), u(new File([s], `${a}.svg`, { type: "image/svg+xml" }));
3216
3246
  } else if (i.toLowerCase() === "pdf") {
3217
- const b = m.toDataURL("image/jpeg", 1);
3247
+ const y = v.toDataURL("image/jpeg", 1);
3218
3248
  import("jspdf").then((s) => {
3219
- const g = new s.jsPDF({
3249
+ const m = new s.jsPDF({
3220
3250
  orientation: "landscape",
3221
3251
  unit: "px",
3222
3252
  format: [d.width, d.height]
3223
3253
  });
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], `${l}.pdf`, { type: "application/pdf" }), R = `${l}.pdf`;
3226
- a && p(w, R), u(w);
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`;
3256
+ l && p(w, _), u(w);
3227
3257
  }).catch((s) => {
3228
3258
  console.error("Error loading jsPDF: ", s), f(s);
3229
3259
  });
3230
3260
  } else {
3231
- let b, s = "image/png", g = "png";
3261
+ let y, s = "image/png", m = "png";
3232
3262
  switch (i.toLowerCase()) {
3233
3263
  case "jpeg":
3234
- b = m.toDataURL("image/jpeg", 1), s = "image/jpeg", g = "jpg";
3264
+ y = v.toDataURL("image/jpeg", 1), s = "image/jpeg", m = "jpg";
3235
3265
  break;
3236
3266
  case "webp":
3237
- b = m.toDataURL("image/webp", 1), s = "image/webp", g = "webp";
3267
+ y = v.toDataURL("image/webp", 1), s = "image/webp", m = "webp";
3238
3268
  break;
3239
3269
  default:
3240
- b = m.toDataURL("image/png", 1);
3270
+ y = v.toDataURL("image/png", 1);
3241
3271
  break;
3242
3272
  }
3243
- const h = atob(b.split(",")[1]), v = new Array(h.length);
3244
- for (let I = 0; I < h.length; I++)
3245
- v[I] = h.charCodeAt(I);
3246
- const n = new Uint8Array(v), w = new File([n], `${l}.${g}`, { type: s }), R = `${l}.${g}`;
3247
- a && p(w, R), u(w);
3273
+ const h = atob(y.split(",")[1]), j = new Array(h.length);
3274
+ 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}`;
3277
+ l && p(w, _), u(w);
3248
3278
  }
3249
3279
  });
3250
3280
  });
3251
- function fn(y, t) {
3252
- const o = atob(y), i = new Array(o.length);
3281
+ function bn(g, t) {
3282
+ const o = atob(g), i = new Array(o.length);
3253
3283
  for (let u = 0; u < o.length; u++)
3254
3284
  i[u] = o.charCodeAt(u);
3255
- const a = new Uint8Array(i);
3256
- return new Blob([a], { type: t });
3285
+ const l = new Uint8Array(i);
3286
+ return new Blob([l], { type: t });
3257
3287
  }
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: [
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: [
3262
3292
  /* @__PURE__ */ e.jsx("button", { style: { color: "red" }, className: "apc-mpx-widget-modal-close-btn", onClick: o, children: "Close" }),
3263
3293
  /* @__PURE__ */ e.jsx("div", { className: "apc-mpx-widget-modal-content", children: i })
3264
3294
  ] }) }) }) : null;
3265
3295
  }
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), a = parseInt(y.slice(5, 7), 16);
3269
- return o = parseInt(o * (100 - t) / 100), i = parseInt(i * (100 - t) / 100), a = parseInt(a * (100 - t) / 100), o = o.toString(16).padStart(2, "0"), i = i.toString(16).padStart(2, "0"), a = a.toString(16).padStart(2, "0"), `#${o}${i}${a}`;
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);
3299
+ 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}`;
3270
3300
  };
3271
- function Bt(y) {
3272
- const [t, o] = S(""), { apcCanvasJSON: i, height: a, width: u } = y;
3273
- return re(() => {
3301
+ function Ft(g) {
3302
+ const [t, o] = M(""), { apcCanvasJSON: i, height: l, width: u } = g;
3303
+ return ie(() => {
3274
3304
  const f = document.createElement("canvas"), d = JSON.parse(i);
3275
- f.width = u, f.height = a;
3276
- const j = new _.StaticCanvas(f, {
3305
+ f.width = u, f.height = l;
3306
+ const b = new B.StaticCanvas(f, {
3277
3307
  selection: !1,
3278
3308
  height: d.height,
3279
3309
  width: d.width
3280
3310
  });
3281
- j.loadFromJSON(d, function() {
3282
- j.renderAll();
3283
- const l = j.toDataURL("image/png", 1);
3284
- o(l);
3311
+ b.loadFromJSON(d, function() {
3312
+ b.renderAll();
3313
+ const a = b.toDataURL("image/png", 1);
3314
+ o(a);
3285
3315
  });
3286
3316
  }, []), t ? /* @__PURE__ */ e.jsx("div", { children: /* @__PURE__ */ e.jsx(
3287
3317
  "div",
@@ -3292,62 +3322,62 @@ function Bt(y) {
3292
3322
  }
3293
3323
  ) }) : "...processing";
3294
3324
  }
3295
- function gn(y) {
3296
- const { theme: t, apcCanvasInstance: o } = y, [i, a] = S(!1), [u, f] = S(), d = () => {
3297
- a(!0);
3298
- }, j = () => {
3299
- a(!1);
3300
- }, l = () => {
3325
+ function wn(g) {
3326
+ const { theme: t, apcCanvasInstance: o } = g, [i, l] = M(!1), [u, f] = M(), d = () => {
3327
+ l(!0);
3328
+ }, b = () => {
3329
+ l(!1);
3330
+ }, a = () => {
3301
3331
  if (!o)
3302
3332
  return null;
3303
- const m = JSON.stringify(o);
3304
- return /* @__PURE__ */ e.jsxs(at, { isOpen: i, onClose: j, children: [
3333
+ const v = JSON.stringify(o);
3334
+ return /* @__PURE__ */ e.jsxs(lt, { isOpen: i, onClose: b, children: [
3305
3335
  /* @__PURE__ */ e.jsx(
3306
- Bt,
3336
+ Ft,
3307
3337
  {
3308
- apcCanvasJSON: m,
3338
+ apcCanvasJSON: v,
3309
3339
  height: o.height,
3310
3340
  width: o.width
3311
3341
  }
3312
3342
  ),
3313
3343
  /* @__PURE__ */ e.jsx("div", { children: /* @__PURE__ */ e.jsxs("div", { style: { display: "flex", flexDirection: "row", gap: 5 }, children: [
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 }) }) }),
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 }) }) }),
3316
3346
  /* @__PURE__ */ e.jsx("div", { children: /* @__PURE__ */ e.jsx(
3317
- Zt,
3347
+ rr,
3318
3348
  {
3319
3349
  url: u,
3320
3350
  title: "Hello",
3321
- children: /* @__PURE__ */ e.jsx(er, { size: 32, round: !0 })
3351
+ children: /* @__PURE__ */ e.jsx(nr, { size: 32, round: !0 })
3322
3352
  }
3323
3353
  ) }),
3324
3354
  /* @__PURE__ */ e.jsx("div", { children: /* @__PURE__ */ e.jsx(
3325
- tr,
3355
+ sr,
3326
3356
  {
3327
3357
  url: u,
3328
3358
  title: "Hello",
3329
3359
  separator: ":: ",
3330
- children: /* @__PURE__ */ e.jsx(rr, { size: 32, round: !0 })
3360
+ children: /* @__PURE__ */ e.jsx(or, { size: 32, round: !0 })
3331
3361
  }
3332
3362
  ) }),
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 }) }) }),
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 }) }) }),
3335
3365
  /* @__PURE__ */ e.jsx("div", { children: /* @__PURE__ */ e.jsx(
3336
- cr,
3366
+ dr,
3337
3367
  {
3338
3368
  url: u,
3339
3369
  title: "Hello",
3340
3370
  windowWidth: 660,
3341
3371
  windowHeight: 460,
3342
- children: /* @__PURE__ */ e.jsx(lr, { size: 32, round: !0 })
3372
+ children: /* @__PURE__ */ e.jsx(hr, { size: 32, round: !0 })
3343
3373
  }
3344
3374
  ) }),
3345
3375
  /* @__PURE__ */ e.jsx("div", { children: /* @__PURE__ */ e.jsx(
3346
- ar,
3376
+ pr,
3347
3377
  {
3348
3378
  url: u,
3349
3379
  title: "Hello",
3350
- children: /* @__PURE__ */ e.jsx(dr, { size: 32, round: !0 })
3380
+ children: /* @__PURE__ */ e.jsx(ur, { size: 32, round: !0 })
3351
3381
  }
3352
3382
  ) })
3353
3383
  ] }) }),
@@ -3359,14 +3389,14 @@ function gn(y) {
3359
3389
  autoFocus: !0,
3360
3390
  type: "button",
3361
3391
  className: "apc-mpc-widget-btn",
3362
- onClick: () => j(),
3392
+ onClick: () => b(),
3363
3393
  style: { backgroundColor: "red", color: "#ffffff", float: "right" },
3364
3394
  children: "Close"
3365
3395
  }
3366
3396
  )
3367
3397
  ] });
3368
3398
  };
3369
- return /* @__PURE__ */ e.jsxs(K.Fragment, { children: [
3399
+ return /* @__PURE__ */ e.jsxs(T.Fragment, { children: [
3370
3400
  /* @__PURE__ */ e.jsxs(
3371
3401
  "button",
3372
3402
  {
@@ -3379,51 +3409,51 @@ function gn(y) {
3379
3409
  float: "right"
3380
3410
  },
3381
3411
  children: [
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 }) }),
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 }) }),
3383
3413
  "  Share"
3384
3414
  ]
3385
3415
  }
3386
3416
  ),
3387
- l()
3417
+ a()
3388
3418
  ] });
3389
3419
  }
3390
- function mn(y) {
3391
- const { theme: t, apiKey: o, apcCanvasInstance: i, updateSelectedSections: a, updateActiveSection: u, accesories: f, getDesignFormats: d } = y, [j, l] = S(!1), [m, p] = S(), b = () => {
3392
- l(!0);
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 = () => {
3422
+ a(!0);
3393
3423
  }, s = () => {
3394
- l(!1);
3395
- }, g = () => ({
3424
+ a(!1);
3425
+ }, m = () => ({
3396
3426
  getPDF: () => {
3397
- const v = JSON.stringify(i);
3398
- return xe(v, i.height, i.width, "pdf", !0).then((n) => n);
3427
+ const j = JSON.stringify(i);
3428
+ return xe(j, i.height, i.width, "pdf", !0).then((n) => n);
3399
3429
  },
3400
3430
  getPNG: () => {
3401
- const v = JSON.stringify(i);
3402
- return xe(v, i.height, i.width, "png", !0).then((n) => n);
3431
+ const j = JSON.stringify(i);
3432
+ return xe(j, i.height, i.width, "png", !0).then((n) => n);
3403
3433
  },
3404
3434
  getSVG: () => {
3405
- const v = JSON.stringify(i);
3406
- return xe(v, i.height, i.width, "svg", !0).then((n) => n);
3435
+ const j = JSON.stringify(i);
3436
+ return xe(j, i.height, i.width, "svg", !0).then((n) => n);
3407
3437
  },
3408
3438
  getJPEG: () => {
3409
- const v = JSON.stringify(i);
3410
- return xe(v, i.height, i.width, "jpeg", !0).then((n) => n);
3439
+ const j = JSON.stringify(i);
3440
+ return xe(j, i.height, i.width, "jpeg", !0).then((n) => n);
3411
3441
  },
3412
3442
  getWEBP: () => {
3413
- const v = JSON.stringify(i);
3414
- return xe(v, i.height, i.width, "webp", !0).then((n) => n);
3443
+ const j = JSON.stringify(i);
3444
+ return xe(j, i.height, i.width, "webp", !0).then((n) => n);
3415
3445
  }
3416
3446
  }), h = () => {
3417
3447
  if (!i)
3418
3448
  return null;
3419
- const v = JSON.stringify(i);
3420
- return /* @__PURE__ */ e.jsxs(at, { isOpen: j, onClose: s, children: [
3449
+ const j = JSON.stringify(i);
3450
+ return /* @__PURE__ */ e.jsxs(lt, { isOpen: b, onClose: s, children: [
3421
3451
  /* @__PURE__ */ e.jsxs("div", { style: { display: "flex", flexDirection: "column" }, children: [
3422
3452
  /* @__PURE__ */ e.jsx("h3", { style: { float: "left" }, children: "Download" }),
3423
3453
  /* @__PURE__ */ e.jsx("div", { children: /* @__PURE__ */ e.jsx(
3424
- Bt,
3454
+ Ft,
3425
3455
  {
3426
- apcCanvasJSON: v,
3456
+ apcCanvasJSON: j,
3427
3457
  height: i.height,
3428
3458
  width: i.width
3429
3459
  }
@@ -3434,31 +3464,31 @@ function mn(y) {
3434
3464
  fontWeight: "bold",
3435
3465
  textDecoration: "underline",
3436
3466
  cursor: "pointer"
3437
- }, onClick: () => g().getPDF(), children: "PDF" }),
3467
+ }, onClick: () => m().getPDF(), children: "PDF" }),
3438
3468
  /* @__PURE__ */ e.jsx("div", { style: {
3439
3469
  color: ge(t.primaryColor, 50),
3440
3470
  fontWeight: "bold",
3441
3471
  textDecoration: "underline",
3442
3472
  cursor: "pointer"
3443
- }, onClick: () => g().getSVG(), children: "SVG" }),
3473
+ }, onClick: () => m().getSVG(), children: "SVG" }),
3444
3474
  /* @__PURE__ */ e.jsx("div", { style: {
3445
3475
  color: ge(t.primaryColor, 50),
3446
3476
  fontWeight: "bold",
3447
3477
  textDecoration: "underline",
3448
3478
  cursor: "pointer"
3449
- }, onClick: () => g().getPNG(), children: "PNG" }),
3479
+ }, onClick: () => m().getPNG(), children: "PNG" }),
3450
3480
  /* @__PURE__ */ e.jsx("div", { style: {
3451
3481
  color: ge(t.primaryColor, 50),
3452
3482
  fontWeight: "bold",
3453
3483
  textDecoration: "underline",
3454
3484
  cursor: "pointer"
3455
- }, onClick: () => g().getJPEG(), children: "JPEG" }),
3485
+ }, onClick: () => m().getJPEG(), children: "JPEG" }),
3456
3486
  /* @__PURE__ */ e.jsx("div", { style: {
3457
3487
  color: ge(t.primaryColor, 50),
3458
3488
  fontWeight: "bold",
3459
3489
  textDecoration: "underline",
3460
3490
  cursor: "pointer"
3461
- }, onClick: () => g().getWEBP(), children: "WEBP" })
3491
+ }, onClick: () => m().getWEBP(), children: "WEBP" })
3462
3492
  ] })
3463
3493
  ] }),
3464
3494
  /* @__PURE__ */ e.jsx("br", {}),
@@ -3478,12 +3508,12 @@ function mn(y) {
3478
3508
  )
3479
3509
  ] });
3480
3510
  };
3481
- return /* @__PURE__ */ e.jsxs(K.Fragment, { children: [
3511
+ return /* @__PURE__ */ e.jsxs(T.Fragment, { children: [
3482
3512
  /* @__PURE__ */ e.jsxs(
3483
3513
  "button",
3484
3514
  {
3485
3515
  className: "apc-mpc-widget-btn",
3486
- onClick: () => b(),
3516
+ onClick: () => y(),
3487
3517
  role: "dialog",
3488
3518
  style: {
3489
3519
  backgroundColor: ge(t.primaryColor, 40),
@@ -3491,7 +3521,7 @@ function mn(y) {
3491
3521
  float: "right"
3492
3522
  },
3493
3523
  children: [
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 }) }),
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 }) }),
3495
3525
  "  Download"
3496
3526
  ]
3497
3527
  }
@@ -3499,142 +3529,142 @@ function mn(y) {
3499
3529
  h()
3500
3530
  ] });
3501
3531
  }
3502
- function vn(y) {
3532
+ function Sn(g) {
3503
3533
  var Ie;
3504
3534
  const {
3505
3535
  theme: t,
3506
3536
  activeSection: o,
3507
3537
  selectedObjectType: i,
3508
- renderQuickActions: a,
3538
+ renderQuickActions: l,
3509
3539
  renderActionItems: u,
3510
3540
  canvasEl: f,
3511
3541
  zoomIn: d,
3512
- zoomOut: j,
3513
- apcCanvasInstance: l,
3514
- setActiveSection: m,
3542
+ zoomOut: b,
3543
+ apcCanvasInstance: a,
3544
+ setActiveSection: v,
3515
3545
  saveActiveDesign: p,
3516
- reloadTabs: b,
3546
+ reloadTabs: y,
3517
3547
  initProductName: s,
3518
- historyRef: g,
3548
+ historyRef: m,
3519
3549
  currentState: h,
3520
- setCurrentState: v,
3550
+ setCurrentState: j,
3521
3551
  setHistory: n,
3522
3552
  activeTabName: w,
3523
- isPlainColor: R,
3524
- selectedProduct: I,
3553
+ isPlainColor: _,
3554
+ selectedProduct: A,
3525
3555
  isMobile: L,
3526
- supportedProductColors: D
3527
- } = y, [T, E] = S(), [H, Y] = S([]), [J, ce] = S(0), [se, oe] = K.useState(!1), pe = K.useRef(null), [Ee, we] = S(!1), [Qe, Me] = S(null), [te, Fe] = S(), [Pe, He] = S(), [ze, Ve] = S(), [Ce, me] = S(!0), [G, Le] = S(), Oe = () => {
3528
- we(!0), oe(!1);
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 = () => {
3558
+ we(!0), se(!1);
3529
3559
  }, q = () => {
3530
3560
  we(!1);
3531
3561
  }, Ue = () => {
3532
- oe((k) => !k);
3562
+ se((S) => !S);
3533
3563
  };
3534
- re(() => {
3535
- const k = (O) => {
3536
- pe.current && pe.current.contains(O.target) || oe(!1);
3564
+ ie(() => {
3565
+ const S = (N) => {
3566
+ pe.current && pe.current.contains(N.target) || se(!1);
3537
3567
  };
3538
- return document.addEventListener("mousedown", k), () => {
3539
- document.removeEventListener("mousedown", k);
3568
+ return document.addEventListener("mousedown", S), () => {
3569
+ document.removeEventListener("mousedown", S);
3540
3570
  };
3541
- }, []), re(() => {
3571
+ }, []), ie(() => {
3542
3572
  (async () => {
3543
- var O, $;
3544
- if (T)
3573
+ var N, J;
3574
+ if (I)
3545
3575
  try {
3546
- const B = await Ke(T);
3547
- Ve(B), (O = B == null ? void 0 : B.misc) != null && O.colorSettings && Fe(B.misc.colorSettings), (($ = B == null ? void 0 : B.misc) == null ? void 0 : $.type) !== "subsection" && Le(B);
3548
- } catch (B) {
3549
- console.error("Error fetching tab data: ", B);
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);
3578
+ } catch (D) {
3579
+ console.error("Error fetching tab data: ", D);
3550
3580
  }
3551
3581
  })();
3552
- }, [T, b]), re(() => {
3582
+ }, [I, y]), ie(() => {
3553
3583
  (async () => {
3554
- const O = await Te();
3555
- let $ = O ? O.filter((B) => {
3584
+ const N = await Ee();
3585
+ let J = N ? N.filter((D) => {
3556
3586
  var Z;
3557
- return B.classification !== "cart" && ((Z = B.misc) == null ? void 0 : Z.type) !== "subsection";
3558
- }).map((B) => B.id) : [];
3559
- $.length === 0 && $.push("design"), J === 0 && E($[0]), Y($);
3587
+ return D.classification !== "cart" && ((Z = D.misc) == null ? void 0 : Z.type) !== "subsection";
3588
+ }).map((D) => D.id) : [];
3589
+ J.length === 0 && J.push("design"), Y === 0 && E(J[0]), K(J);
3560
3590
  })();
3561
- }, [J, b]);
3591
+ }, [Y, y]);
3562
3592
  const de = () => {
3563
- l && (l.clear(), l.renderAll());
3564
- }, ue = (k) => {
3565
- if (!l)
3593
+ a && (a.clear(), a.renderAll());
3594
+ }, ue = (S) => {
3595
+ if (!a)
3566
3596
  return;
3567
- l.backgroundColor = "transparent", l && l.requestRenderAll();
3568
- let O = l.backgroundImage;
3569
- O && (O.filters = [], O.filters.push(
3570
- new _.Image.filters.BlendColor({
3571
- color: k
3597
+ a.backgroundColor = "transparent", a && a.requestRenderAll();
3598
+ let N = a.backgroundImage;
3599
+ N && (N.filters = [], N.filters.push(
3600
+ new B.Image.filters.BlendColor({
3601
+ color: S
3572
3602
  })
3573
- ), O.applyFilters(), l && l.requestRenderAll(), He(k), p(l, ze));
3603
+ ), N.applyFilters(), a && a.requestRenderAll(), He(S), p(a, ze));
3574
3604
  }, Se = () => {
3575
3605
  if (!(!te || (te == null ? void 0 : te.length) <= 1))
3576
- return te.map((k, O) => /* @__PURE__ */ e.jsxs(K.Fragment, { children: [
3606
+ return te.map((S, N) => /* @__PURE__ */ e.jsxs(T.Fragment, { children: [
3577
3607
  /* @__PURE__ */ e.jsx(
3578
3608
  "div",
3579
3609
  {
3580
3610
  role: "button",
3581
3611
  className: "apc-mpx-widget-circle",
3582
3612
  style: {
3583
- backgroundColor: k,
3613
+ backgroundColor: S,
3584
3614
  cursor: "pointer",
3585
3615
  border: "solid 1px #ffffff"
3586
3616
  },
3587
- onClick: () => ue(k)
3617
+ onClick: () => ue(S)
3588
3618
  }
3589
3619
  ),
3590
3620
  " "
3591
- ] }, O));
3592
- }, ve = async (k, O) => {
3621
+ ] }, N));
3622
+ }, ve = async (S, N) => {
3593
3623
  var fe, je;
3594
- const $ = (je = (fe = l == null ? void 0 : l.backgroundImage) == null ? void 0 : fe.filters[0]) == null ? void 0 : je.color, B = await Ke(k);
3595
- if (!B)
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);
3625
+ if (!D)
3596
3626
  return;
3597
- const Z = B != null && B.content ? JSON.parse(B.content) : null;
3598
- Z && l ? (l.clear(), l.setBackgroundImage(null), l.loadFromJSON(Z, () => {
3599
- var ne;
3600
- l.renderAll(), m(B), ((ne = B == null ? void 0 : B.misc) == null ? void 0 : ne.type) !== "subsection" ? (localStorage.setItem("apc_x_activeTab", k), me(!0)) : (me(!1), $ && ue($)), E(k);
3601
- })) : console.error("Failed to load JSON content for section:", k);
3602
- }, We = () => H.map((k) => /* @__PURE__ */ e.jsx("button", { className: `tablinks ${T === k ? "active" : null}`, onClick: () => ve(k), children: k }, k)), ke = () => {
3603
- Te().then((k) => {
3604
- if (k && k.length > 0) {
3605
- const O = k[0], $ = JSON.parse(O.content);
3606
- l.loadFromJSON($, function() {
3607
- l.off("object:modified"), l.on({
3608
- "object:modified": (B) => {
3609
- p(l, O);
3627
+ const Z = D != null && D.content ? JSON.parse(D.content) : null;
3628
+ Z && a ? (a.clear(), a.setBackgroundImage(null), a.loadFromJSON(Z, () => {
3629
+ 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);
3631
+ })) : console.error("Failed to load JSON content for section:", S);
3632
+ }, 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) => {
3634
+ if (S && S.length > 0) {
3635
+ const N = S[0], J = JSON.parse(N.content);
3636
+ a.loadFromJSON(J, function() {
3637
+ a.off("object:modified"), a.on({
3638
+ "object:modified": (D) => {
3639
+ p(a, N);
3610
3640
  }
3611
- }), E(O.id), localStorage.setItem("apc_x_activeTab", O.id), m(O), ce(J + 1), l && l.renderAll();
3641
+ }), E(N.id), localStorage.setItem("apc_x_activeTab", N.id), v(N), ce(Y + 1), a && a.renderAll();
3612
3642
  });
3613
3643
  } else {
3614
- let O = "design";
3615
- const $ = JSON.stringify(l);
3616
- De(O, "general", $, null).then((B) => {
3617
- Ke(O).then((Z) => {
3644
+ let N = "design";
3645
+ const J = JSON.stringify(a);
3646
+ De(N, "general", J, null).then((D) => {
3647
+ Xe(N).then((Z) => {
3618
3648
  const fe = JSON.parse(Z.content);
3619
- l.loadFromJSON(fe, function() {
3620
- l.off("object:modified"), l.on({
3649
+ a.loadFromJSON(fe, function() {
3650
+ a.off("object:modified"), a.on({
3621
3651
  "object:modified": (je) => {
3622
- p(l, Z);
3652
+ p(a, Z);
3623
3653
  }
3624
- }), E(O), localStorage.setItem("apc_x_activeTab", O), m(Z), ce(J + 1), l && l.renderAll();
3654
+ }), E(N), localStorage.setItem("apc_x_activeTab", N), v(Z), ce(Y + 1), a && a.renderAll();
3625
3655
  });
3626
3656
  });
3627
3657
  });
3628
3658
  }
3629
3659
  });
3630
3660
  }, Ae = () => {
3631
- Xr(T).then((k) => {
3661
+ rn(I).then((S) => {
3632
3662
  q(), ke();
3633
3663
  });
3634
- }, Ge = () => l ? /* @__PURE__ */ e.jsxs(at, { isOpen: Ee, onClose: q, children: [
3664
+ }, $e = () => a ? /* @__PURE__ */ e.jsxs(lt, { isOpen: Te, onClose: q, children: [
3635
3665
  /* @__PURE__ */ e.jsx("div", { children: /* @__PURE__ */ e.jsxs("h3", { style: { marginLeft: "30%", color: "green" }, children: [
3636
3666
  "Are you sure you want to delete ",
3637
- /* @__PURE__ */ e.jsx("u", { children: T }),
3667
+ /* @__PURE__ */ e.jsx("u", { children: I }),
3638
3668
  " ?"
3639
3669
  ] }) }),
3640
3670
  /* @__PURE__ */ e.jsx("br", {}),
@@ -3665,9 +3695,9 @@ function vn(y) {
3665
3695
  }
3666
3696
  ) })
3667
3697
  ] })
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 }) }) }),
3670
- se && /* @__PURE__ */ e.jsxs("div", { className: "apc-mpx-widget-popper-container", ref: pe, children: [
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 }) }) }),
3700
+ ne && /* @__PURE__ */ e.jsxs("div", { className: "apc-mpx-widget-popper-container", ref: pe, children: [
3671
3701
  /* @__PURE__ */ e.jsx("div", { className: "apc-mpx-widget-popper-arrow-up" }),
3672
3702
  /* @__PURE__ */ e.jsxs("ul", { autoFocus: !0, style: {
3673
3703
  paddingInlineStart: "2px",
@@ -3694,7 +3724,7 @@ function vn(y) {
3694
3724
  height: "16",
3695
3725
  width: "14",
3696
3726
  viewBox: "0 0 448 512",
3697
- children: /* @__PURE__ */ e.jsx("path", { d: Lt, fill: ge(t.primaryColor, 80) })
3727
+ children: /* @__PURE__ */ e.jsx("path", { d: Bt, fill: ge(t.primaryColor, 80) })
3698
3728
  }
3699
3729
  ),
3700
3730
  "  Delete"
@@ -3717,7 +3747,7 @@ function vn(y) {
3717
3747
  className: "apc-mpx-hover-div",
3718
3748
  width: "14",
3719
3749
  viewBox: "0 0 576 512",
3720
- children: /* @__PURE__ */ e.jsx("path", { d: Dr, fill: ge(t.primaryColor, 80) })
3750
+ children: /* @__PURE__ */ e.jsx("path", { d: Wr, fill: ge(t.primaryColor, 80) })
3721
3751
  }
3722
3752
  ),
3723
3753
  "  Clear"
@@ -3726,70 +3756,70 @@ function vn(y) {
3726
3756
  )
3727
3757
  ] })
3728
3758
  ] })
3729
- ] }), Re = (k) => {
3730
- var je, ne, $e, _e;
3731
- const O = l.width * 5, $ = l.height * 5, B = JSON.parse(G.content), Z = (ne = (je = B == null ? void 0 : B.backgroundImage) == null ? void 0 : je.filters[0]) == null ? void 0 : ne.color, fe = (_e = ($e = l == null ? void 0 : l.backgroundImage) == null ? void 0 : $e.filters[0]) == null ? void 0 : _e.color;
3732
- Ke(k.sectionName).then(async (be) => {
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) => {
3733
3763
  if (be) {
3734
3764
  const c = be != null && be.content ? JSON.parse(be.content) : null;
3735
- c && l ? (await l.loadFromJSON(c, () => {
3736
- l.renderAll(), m(be), E(k.sectionName);
3737
- const A = JSON.stringify(l), M = {};
3738
- M.id = k.sectionName, M.classification = I == null ? void 0 : I.name, M.json = A, M.misc = {
3739
- sectionName: k.sectionName,
3740
- sectionImage: k.sectionImage,
3741
- type: k.type
3742
- }, l.off("object:modified"), l.on({
3743
- "object:modified": (N) => {
3744
- p(l, M);
3765
+ c && a ? (await a.loadFromJSON(c, () => {
3766
+ a.renderAll(), v(be), E(S.sectionName);
3767
+ const O = JSON.stringify(a), z = {};
3768
+ z.id = S.sectionName, z.classification = A == null ? void 0 : A.name, z.json = O, z.misc = {
3769
+ sectionName: S.sectionName,
3770
+ sectionImage: S.sectionImage,
3771
+ type: S.type
3772
+ }, a.off("object:modified"), a.on({
3773
+ "object:modified": (k) => {
3774
+ p(a, z);
3745
3775
  }
3746
3776
  });
3747
- }), ue(fe), Ce || me(!0)) : console.error("Failed to load JSON content for section:", k.sectionName);
3777
+ }), ue(fe), Ce || me(!0)) : console.error("Failed to load JSON content for section:", S.sectionName);
3748
3778
  } else
3749
- l && l.clear(), k.type = "subsection", _.Image.fromURL(k.sectionImage, function(c) {
3750
- c.width = O, c.height = $, c.scaleToWidth(O), c.scaleToHeight($), l.setBackgroundImage(c), (Pe || Z) && (c.filters = [], c.filters.push(
3751
- new _.Image.filters.BlendColor({
3752
- color: Pe || Z
3779
+ 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(
3781
+ new B.Image.filters.BlendColor({
3782
+ color: Fe || Z
3753
3783
  })
3754
3784
  ), c.applyFilters());
3755
- const A = JSON.stringify(l), M = {};
3756
- M.id = k.sectionName, M.classification = G.id, M.json = A, M.misc = {
3757
- sectionName: k.sectionName,
3758
- sectionImage: k.sectionImage,
3759
- type: k.type
3760
- }, l.off("object:modified"), l.on({
3761
- "object:modified": (N) => {
3762
- p(l, M);
3785
+ const O = JSON.stringify(a), z = {};
3786
+ z.id = S.sectionName, z.classification = G.id, z.json = O, z.misc = {
3787
+ sectionName: S.sectionName,
3788
+ sectionImage: S.sectionImage,
3789
+ type: S.type
3790
+ }, a.off("object:modified"), a.on({
3791
+ "object:modified": (k) => {
3792
+ p(a, z);
3763
3793
  }
3764
- }), De(k.sectionName, T, A, { ...k }).then((N) => {
3765
- l && (l.renderAll(), Ce && me(!1), E(k.sectionName), ce(J + 1));
3794
+ }), De(S.sectionName, I, O, { ...S }).then((k) => {
3795
+ a && (a.renderAll(), Ce && me(!1), E(S.sectionName), ce(Y + 1));
3766
3796
  });
3767
3797
  }, { crossOrigin: "anonymous" });
3768
3798
  });
3769
- }, Ze = () => {
3799
+ }, et = () => {
3770
3800
  if (!ze)
3771
3801
  return null;
3772
- let k = [];
3773
- if (I) {
3774
- const O = I.sections.map(($) => ({
3775
- ...$,
3802
+ let S = [];
3803
+ if (A) {
3804
+ const N = A.sections.map((J) => ({
3805
+ ...J,
3776
3806
  type: "subsection"
3777
3807
  }));
3778
- k.push(...O), k.push({
3779
- sectionName: I == null ? void 0 : I.name,
3780
- sectionImage: I == null ? void 0 : I.mainImage,
3808
+ S.push(...N), S.push({
3809
+ sectionName: A == null ? void 0 : A.name,
3810
+ sectionImage: A == null ? void 0 : A.mainImage,
3781
3811
  type: "main"
3782
3812
  });
3783
3813
  }
3784
- return k = k == null ? void 0 : k.map((O) => ({
3785
- ...O,
3786
- active: O.sectionName === T
3787
- })), (k == null ? void 0 : k.length) < 1 ? null : k == null ? void 0 : k.map((O, $) => {
3788
- var B, Z;
3814
+ return S = S == null ? void 0 : S.map((N) => ({
3815
+ ...N,
3816
+ active: N.sectionName === I
3817
+ })), (S == null ? void 0 : S.length) < 1 ? null : S == null ? void 0 : S.map((N, J) => {
3818
+ var D, Z;
3789
3819
  return /* @__PURE__ */ e.jsxs(
3790
3820
  "div",
3791
3821
  {
3792
- onClick: () => Re(O),
3822
+ onClick: () => Le(N),
3793
3823
  style: {
3794
3824
  position: "relative",
3795
3825
  // For placing the checkmark
@@ -3802,7 +3832,7 @@ function vn(y) {
3802
3832
  // Centering content within the container
3803
3833
  },
3804
3834
  children: [
3805
- O.active && /* @__PURE__ */ e.jsx(
3835
+ N.active && /* @__PURE__ */ e.jsx(
3806
3836
  "div",
3807
3837
  {
3808
3838
  style: {
@@ -3842,10 +3872,10 @@ function vn(y) {
3842
3872
  children: /* @__PURE__ */ e.jsx(
3843
3873
  "img",
3844
3874
  {
3845
- src: O == null ? void 0 : O.sectionImage,
3875
+ src: N == null ? void 0 : N.sectionImage,
3846
3876
  width: 50,
3847
3877
  height: 50,
3848
- alt: (O == null ? void 0 : O.sectionName) || "section image",
3878
+ alt: (N == null ? void 0 : N.sectionName) || "section image",
3849
3879
  style: {
3850
3880
  borderRadius: "6px"
3851
3881
  }
@@ -3862,23 +3892,23 @@ function vn(y) {
3862
3892
  color: "#333"
3863
3893
  // Adjusted color for better readability
3864
3894
  },
3865
- children: ((B = O == null ? void 0 : O.sectionName) == null ? void 0 : B.length) > 5 ? `${(Z = O == null ? void 0 : O.sectionName) == null ? void 0 : Z.substring(0, 5)}...` : (O == null ? void 0 : O.sectionName) || "view"
3895
+ children: ((D = N == null ? void 0 : N.sectionName) == null ? void 0 : D.length) > 5 ? `${(Z = N == null ? void 0 : N.sectionName) == null ? void 0 : Z.substring(0, 5)}...` : (N == null ? void 0 : N.sectionName) || "view"
3866
3896
  }
3867
3897
  )
3868
3898
  ]
3869
3899
  },
3870
- $
3900
+ J
3871
3901
  );
3872
3902
  });
3873
- }, et = () => {
3874
- if (g.current.length > 0) {
3875
- const k = g.current.pop();
3876
- l.loadFromJSON(k, () => {
3877
- l.renderAll(), v(k);
3903
+ }, tt = () => {
3904
+ if (m.current.length > 0) {
3905
+ const S = m.current.pop();
3906
+ a.loadFromJSON(S, () => {
3907
+ a.renderAll(), j(S);
3878
3908
  });
3879
3909
  }
3880
3910
  };
3881
- return /* @__PURE__ */ e.jsxs(K.Fragment, { children: [
3911
+ return /* @__PURE__ */ e.jsxs(T.Fragment, { children: [
3882
3912
  /* @__PURE__ */ e.jsx("div", { className: "tab", children: We() }),
3883
3913
  /* @__PURE__ */ e.jsxs("div", { style: {
3884
3914
  display: "flex",
@@ -3900,7 +3930,7 @@ function vn(y) {
3900
3930
  cursor: "pointer",
3901
3931
  height: "12px"
3902
3932
  },
3903
- onClick: () => et(),
3933
+ onClick: () => tt(),
3904
3934
  title: "UNDO",
3905
3935
  children: /* @__PURE__ */ e.jsx(
3906
3936
  "svg",
@@ -3910,22 +3940,22 @@ function vn(y) {
3910
3940
  className: "apc-mpx-hover-div",
3911
3941
  width: "25",
3912
3942
  viewBox: "0 0 16 16",
3913
- children: /* @__PURE__ */ e.jsx("path", { d: Fr, fill: "#ffffff" })
3943
+ children: /* @__PURE__ */ e.jsx("path", { d: $r, fill: "#ffffff" })
3914
3944
  }
3915
3945
  )
3916
3946
  }
3917
3947
  ),
3918
3948
  " "
3919
3949
  ] }) }) }),
3920
- /* @__PURE__ */ e.jsx("div", { style: { flexBasis: "20%" }, children: i ? a() : null }),
3950
+ /* @__PURE__ */ e.jsx("div", { style: { flexBasis: "20%" }, children: i ? l() : null }),
3921
3951
  /* @__PURE__ */ e.jsx("div", { style: { flexBasis: "40%", marginTop: "8px" }, children: i ? u() : null }),
3922
- qe()
3952
+ Ze()
3923
3953
  ] }),
3924
3954
  /* @__PURE__ */ e.jsxs("div", { id: "apc-mpx-editor-canvas-container", style: { minHeight: "90vh", padding: "3px", overflowX: "hidden", position: "relative" }, children: [
3925
3955
  /* @__PURE__ */ e.jsxs("div", { style: { display: "flex", flexDirection: "row" }, children: [
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 = I == null ? void 0 : I.sections) == null ? void 0 : Ie.length) > 0 ? Ze() : null }) }),
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 }) }),
3927
3957
  /* @__PURE__ */ e.jsx("div", { children: /* @__PURE__ */ e.jsx("canvas", { id: "apc-mpx-editor-canvas", ref: f, height: 1e3 }) }),
3928
- te && (R || (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: [
3958
+ 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: [
3929
3959
  /* @__PURE__ */ e.jsx("br", {}),
3930
3960
  /* @__PURE__ */ e.jsx("div", { style: {
3931
3961
  backgroundColor: "#ff000026",
@@ -3951,74 +3981,74 @@ function vn(y) {
3951
3981
  {
3952
3982
  style: { height: "35px", width: "65px", cursor: "pointer" },
3953
3983
  "aria-label": "zoom out",
3954
- onClick: () => j(),
3984
+ onClick: () => b(),
3955
3985
  children: "-"
3956
3986
  }
3957
3987
  )
3958
3988
  ] })
3959
3989
  ] }),
3960
- Ge()
3990
+ $e()
3961
3991
  ] });
3962
3992
  }
3963
- function jn({ data: y, theme: t, apcCanvasInstance: o, closeMobileModalSecondaryPanel: i, isMobile: a }) {
3964
- const [u, f] = S({}), d = (p) => {
3965
- f((b) => ({
3966
- ...b,
3967
- [p]: !b[p]
3993
+ function kn({ data: g, theme: t, apcCanvasInstance: o, closeMobileModalSecondaryPanel: i, isMobile: l }) {
3994
+ const [u, f] = M({}), d = (p) => {
3995
+ f((y) => ({
3996
+ ...y,
3997
+ [p]: !y[p]
3968
3998
  }));
3969
- }, j = async (p) => {
3970
- const b = await _t(p);
3971
- b && _.Image.fromURL(b, (s) => {
3999
+ }, b = async (p) => {
4000
+ const y = await Pt(p);
4001
+ y && B.Image.fromURL(y, (s) => {
3972
4002
  s.set({
3973
4003
  left: 100,
3974
4004
  top: 100,
3975
4005
  scaleX: 0.3,
3976
4006
  scaleY: 0.3
3977
- }), o.add(s), o.renderAll(), a && i(!0);
4007
+ }), o.add(s), o.renderAll(), l && i(!0);
3978
4008
  });
3979
- }, l = (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: [
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: [
3982
4012
  /* @__PURE__ */ e.jsxs("div", { onClick: () => d(h), style: { cursor: "pointer", display: "flex", alignItems: "center", fontWeight: "bold", color: t.primaryColorLight }, children: [
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
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
3985
4015
  ] }),
3986
- v && l(p[g], h, s + 1)
4016
+ j && a(p[m], h, s + 1)
3987
4017
  ] }, h);
3988
- }) }), m = bn(y);
3989
- return /* @__PURE__ */ e.jsx("div", { children: l(m) });
4018
+ }) }), v = Nn(g);
4019
+ return /* @__PURE__ */ e.jsx("div", { children: a(v) });
3990
4020
  }
3991
- function bn(y) {
4021
+ function Nn(g) {
3992
4022
  const t = {};
3993
- return y.forEach((o) => {
4023
+ return g.forEach((o) => {
3994
4024
  const i = o.name.split("/");
3995
- let a = t;
4025
+ let l = t;
3996
4026
  i.forEach((u, f) => {
3997
- a[u] || (a[u] = f === i.length - 1 ? o : {}), a = a[u];
4027
+ l[u] || (l[u] = f === i.length - 1 ? o : {}), l = l[u];
3998
4028
  });
3999
4029
  }), t;
4000
4030
  }
4001
- function yn(y) {
4002
- const { apcCanvasInstance: t, theme: o, apiEndpoint: i, isMobile: a, closeMobileModalSecondaryPanel: u, apiKey: f } = y, d = `${i}/api/v1/designer`, [j, l] = S([]), [m, p] = S(!1), [b, s] = S(!1), [g, h] = S(!1), v = sessionStorage.getItem("apc_x_sub_status"), n = sessionStorage.getItem("apc_x_stickers");
4003
- re(() => {
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");
4033
+ ie(() => {
4004
4034
  p(!0), (async () => {
4005
- v === "active" ? s(!0) : await R(), n ? (l(JSON.parse(n)), p(!1)) : await w();
4035
+ j === "active" ? s(!0) : await _(), n ? (a(JSON.parse(n)), p(!1)) : await w();
4006
4036
  })();
4007
4037
  }, []);
4008
4038
  const w = () => {
4009
4039
  p(!0);
4010
- const I = `${d}/get-stickers`;
4011
- ye.get(I).then((L) => {
4012
- L.data.object && (l(L.data.object.contents), sessionStorage.setItem("apc_x_stickers", JSON.stringify(L.data.object.contents)));
4040
+ 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)));
4013
4043
  }).catch((L) => {
4014
4044
  console.error("Error fetching data:", L);
4015
4045
  }).finally(() => {
4016
4046
  p(!1);
4017
4047
  });
4018
- }, R = () => {
4048
+ }, _ = () => {
4019
4049
  p(!0);
4020
- const I = `${d}/get-subscription-status/${f}`;
4021
- ye.get(I).then((L) => {
4050
+ const A = `${d}/get-subscription-status/${f}`;
4051
+ ye.get(A).then((L) => {
4022
4052
  L.data.object && L.data.object === "active" && (sessionStorage.setItem("apc_x_sub_status", "active"), s(!0));
4023
4053
  }).catch((L) => {
4024
4054
  sessionStorage.setItem("apc_x_sub_status", "");
@@ -4026,23 +4056,23 @@ function yn(y) {
4026
4056
  p(!1), h(!0);
4027
4057
  });
4028
4058
  };
4029
- return !b && !m && g ? /* @__PURE__ */ e.jsx(ct, {}) : b && j.length > 0 && !m ? /* @__PURE__ */ e.jsx(K.Fragment, { children: /* @__PURE__ */ e.jsx("div", { style: { padding: "10px" }, children: /* @__PURE__ */ e.jsx(
4030
- jn,
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,
4031
4061
  {
4032
- data: j,
4062
+ data: b,
4033
4063
  theme: o,
4034
4064
  apcCanvasInstance: t,
4035
- isMobile: a,
4065
+ isMobile: l,
4036
4066
  closeMobileModalSecondaryPanel: u
4037
4067
  }
4038
- ) }) }) : /* @__PURE__ */ e.jsx("div", { children: /* @__PURE__ */ e.jsx(lt, {}) });
4068
+ ) }) }) : /* @__PURE__ */ e.jsx("div", { children: /* @__PURE__ */ e.jsx(at, {}) });
4039
4069
  }
4040
- function In(y) {
4070
+ function An(g) {
4041
4071
  const {
4042
- theme: t = xr,
4072
+ theme: t = yr,
4043
4073
  readOnly: o = !1,
4044
4074
  apiKey: i = null,
4045
- handleSaveClick: a,
4075
+ handleSaveClick: l,
4046
4076
  handleCartClick: u,
4047
4077
  apiEndpoint: f,
4048
4078
  enabledModules: d = [
@@ -4056,18 +4086,18 @@ function In(y) {
4056
4086
  "QRCODE",
4057
4087
  "BARCODE"
4058
4088
  ],
4059
- actionButtons: j = {
4089
+ actionButtons: b = {
4060
4090
  share: !0,
4061
4091
  download: !0,
4062
4092
  submit: !0,
4063
4093
  addToCart: !0
4064
4094
  },
4065
- initInstance: l = null,
4066
- initCategory: m = null,
4095
+ initInstance: a = null,
4096
+ initCategory: v = null,
4067
4097
  additionalActionButton: p = null,
4068
- initProductName: b,
4098
+ initProductName: y,
4069
4099
  isPlainColor: s,
4070
- product: g = {
4100
+ product: m = {
4071
4101
  name: "Premium Crew Neck T-Shirt",
4072
4102
  category: "Tshirts",
4073
4103
  description: "Men's crew neck t-shirts",
@@ -4085,41 +4115,41 @@ function In(y) {
4085
4115
  }
4086
4116
  ]
4087
4117
  }
4088
- } = y, [h, v] = S(d[0]), [n, w] = S(), R = ot(null), [I, L] = S(), [D, T] = S(!1), [E, H] = S(1), Y = 0.1, [J, ce] = S(1), [se, oe] = S([]), [pe, Ee] = S(null), [we, Qe] = S(null), [Me, te] = S(0), [Fe, Pe] = S(), [He, ze] = S(null), Ve = ot([]), [Ce, me] = S(null), [G, Le] = S(!1), [Oe, q] = S(!1);
4089
- re(() => {
4090
- const c = () => Le(window.innerWidth < 600);
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);
4119
+ ie(() => {
4120
+ const c = () => Re(window.innerWidth < 600);
4091
4121
  return c(), window.addEventListener("resize", c), () => window.removeEventListener("resize", c);
4092
- }, []), re(() => {
4093
- const c = document.getElementById("apc-mpx-editor-canvas-container"), A = document.getElementById("apc-mpx-editor-canvas-container");
4094
- if (!R.current || !c || !A) {
4122
+ }, []), ie(() => {
4123
+ const c = document.getElementById("apc-mpx-editor-canvas-container"), O = document.getElementById("apc-mpx-editor-canvas-container");
4124
+ if (!_.current || !c || !O) {
4095
4125
  console.error("Canvas element is not mounted yet!");
4096
4126
  return;
4097
4127
  }
4098
- const M = {
4128
+ const z = {
4099
4129
  isDrawingMode: !1,
4100
4130
  selection: !0,
4101
4131
  selectionBorderColor: "#008000",
4102
- height: A.offsetHeight,
4132
+ height: O.offsetHeight,
4103
4133
  width: c.offsetWidth,
4104
4134
  enableRetinaScaling: !0
4105
4135
  };
4106
- let N, ae;
4136
+ let k, le;
4107
4137
  if (o)
4108
- N = new _.StaticCanvas(R.current, M);
4109
- else if (N = new _.Canvas(R.current, M), we)
4110
- ae = JSON.parse(we), N.loadFromJSON(ae, function() {
4138
+ k = new B.StaticCanvas(_.current, z);
4139
+ else if (k = new B.Canvas(_.current, z), we)
4140
+ le = JSON.parse(we), k.loadFromJSON(le, function() {
4111
4141
  });
4112
- else if (l) {
4113
- let V;
4142
+ else if (a) {
4143
+ let U;
4114
4144
  try {
4115
- V = JSON.parse(l);
4145
+ U = JSON.parse(a);
4116
4146
  } catch (X) {
4117
4147
  console.error("Failed to parse initInstance", X);
4118
4148
  }
4119
- N && V ? N.loadFromJSON(V, function() {
4149
+ k && U ? k.loadFromJSON(U, function() {
4120
4150
  }) : console.error("Canvas or InitInstance is not properly initialized");
4121
4151
  } else {
4122
- const V = new _.Textbox("Something cool!", {
4152
+ const U = new B.Textbox("Something cool!", {
4123
4153
  width: 300,
4124
4154
  left: 250,
4125
4155
  top: 300,
@@ -4127,7 +4157,7 @@ function In(y) {
4127
4157
  fill: "#6a45d2",
4128
4158
  rotate: 20
4129
4159
  });
4130
- V.shadow = {
4160
+ U.shadow = {
4131
4161
  color: "rgba(0,0,0,0.5)",
4132
4162
  // Shadow color
4133
4163
  blur: 10,
@@ -4136,93 +4166,93 @@ function In(y) {
4136
4166
  // Horizontal offset of shadow
4137
4167
  offsetY: 5
4138
4168
  // Vertical offset of shadow
4139
- }, N.add(V), g != null && g.mainImage && _.Image.fromURL(g.mainImage, function(X) {
4140
- X.height = A.offsetHeight, X.width = c.offsetWidth, X.scaleToWidth(A.offsetHeight), X.scaleToHeight(c.offsetWidth), N.setBackgroundImage(X), N.setActiveObject(V), ue(V), N.renderAll(), k(N);
4169
+ }, k.add(U), m != null && m.mainImage && B.Image.fromURL(m.mainImage, function(X) {
4170
+ 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);
4141
4171
  }, { crossOrigin: "anonymous" });
4142
4172
  }
4143
- return N.on({
4144
- "selection:updated": (V) => {
4145
- const X = N.getActiveObject();
4173
+ return k.on({
4174
+ "selection:updated": (U) => {
4175
+ const X = k.getActiveObject();
4146
4176
  ue(X);
4147
4177
  },
4148
- "selection:created": (V) => {
4149
- const X = N.getActiveObject();
4178
+ "selection:created": (U) => {
4179
+ const X = k.getActiveObject();
4150
4180
  ue(X);
4151
4181
  },
4152
- "selection:cleared": (V) => {
4182
+ "selection:cleared": (U) => {
4153
4183
  Se();
4154
4184
  },
4155
- "object:modified": (V) => {
4156
- k(N), de(N);
4185
+ "object:modified": (U) => {
4186
+ S(k), de(k);
4157
4187
  },
4158
- "object:added": (V) => {
4159
- de(N);
4188
+ "object:added": (U) => {
4189
+ de(k);
4160
4190
  },
4161
- "object:removed": (V) => {
4162
- de(N);
4191
+ "object:removed": (U) => {
4192
+ de(k);
4163
4193
  },
4164
- "object:created": (V) => {
4165
- de(N);
4194
+ "object:created": (U) => {
4195
+ de(k);
4166
4196
  }
4167
- }), w(N), ce(c.offsetWidth), () => {
4168
- w(null), N.off({
4169
- "selection:updated": (V) => {
4170
- const X = N.getActiveObject();
4197
+ }), w(k), ce(c.offsetWidth), () => {
4198
+ w(null), k.off({
4199
+ "selection:updated": (U) => {
4200
+ const X = k.getActiveObject();
4171
4201
  ue(X);
4172
4202
  },
4173
- "selection:created": (V) => {
4174
- const X = N.getActiveObject();
4203
+ "selection:created": (U) => {
4204
+ const X = k.getActiveObject();
4175
4205
  ue(X);
4176
4206
  },
4177
- "selection:cleared": (V) => {
4207
+ "selection:cleared": (U) => {
4178
4208
  Se();
4179
4209
  },
4180
- "object:modified": (V) => {
4181
- k(N), de(N);
4210
+ "object:modified": (U) => {
4211
+ S(k), de(k);
4182
4212
  },
4183
- "object:added": (V) => {
4184
- de(N);
4213
+ "object:added": (U) => {
4214
+ de(k);
4185
4215
  },
4186
- "object:removed": (V) => {
4187
- de(N);
4216
+ "object:removed": (U) => {
4217
+ de(k);
4188
4218
  },
4189
- "object:created": (V) => {
4190
- de(N);
4219
+ "object:created": (U) => {
4220
+ de(k);
4191
4221
  }
4192
- }), N.dispose();
4222
+ }), k.dispose();
4193
4223
  };
4194
- }, [we]), re(() => (Ue(), document.addEventListener("keydown", (c) => Ie(c)), () => {
4224
+ }, [we]), ie(() => (Ue(), document.addEventListener("keydown", (c) => Ie(c)), () => {
4195
4225
  document.removeEventListener("keydown", (c) => Ie(c));
4196
- }), [n]), re(() => {
4226
+ }), [n]), ie(() => {
4197
4227
  if (n) {
4198
- const c = document.getElementById("apc-mpx-editor-canvas-container"), A = () => {
4199
- const M = c.offsetWidth / J;
4200
- n.setZoom(M);
4228
+ const c = document.getElementById("apc-mpx-editor-canvas-container"), O = () => {
4229
+ const z = c.offsetWidth / Y;
4230
+ n.setZoom(z);
4201
4231
  };
4202
- return window.addEventListener("resize", A), () => {
4203
- window.removeEventListener("resize", A);
4232
+ return window.addEventListener("resize", O), () => {
4233
+ window.removeEventListener("resize", O);
4204
4234
  };
4205
4235
  }
4206
- }, [n, E]), re(() => {
4236
+ }, [n, E]), ie(() => {
4207
4237
  const c = () => {
4208
- if (n && R.current) {
4209
- const A = n.getWidth(), M = n.getHeight(), N = window.innerWidth, ae = window.innerHeight, V = N / A, X = ae / M, tt = Math.min(V, X);
4210
- n.setZoom(tt / 1.4), n.renderAll();
4238
+ 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();
4211
4241
  }
4212
4242
  };
4213
4243
  return G && (c(), window.addEventListener("resize", c)), () => window.removeEventListener("resize", c);
4214
4244
  }, [n, G]);
4215
4245
  const Ue = () => {
4216
- Te().then((c) => {
4246
+ Ee().then((c) => {
4217
4247
  if (c && c.length > 0) {
4218
- const A = c[0].content;
4219
- b === c[0].id && Qe(A);
4248
+ const O = c[0].content;
4249
+ y === c[0].id && qe(O);
4220
4250
  }
4221
4251
  });
4222
4252
  }, de = (c) => {
4223
4253
  if (c) {
4224
- const A = c.toJSON();
4225
- ze((M) => (Ve.current.push(M), A));
4254
+ const O = c.toJSON();
4255
+ ze((z) => (Ve.current.push(z), O));
4226
4256
  }
4227
4257
  }, ue = (c) => {
4228
4258
  L(c.type);
@@ -4231,18 +4261,18 @@ function In(y) {
4231
4261
  }, ve = () => {
4232
4262
  n.getActiveObject() && n.remove(n.getActiveObject());
4233
4263
  }, We = () => {
4234
- const c = n.getActiveObject(), A = _.util.object.clone(c);
4235
- A.set({
4264
+ const c = n.getActiveObject(), O = B.util.object.clone(c);
4265
+ O.set({
4236
4266
  left: c.left + 20,
4237
4267
  // Change the position as needed
4238
4268
  top: c.top + 20
4239
- }), n.add(A);
4269
+ }), n.add(O);
4240
4270
  }, ke = (c) => {
4241
- Ee(c);
4271
+ Te(c);
4242
4272
  }, Ae = (c) => {
4243
- let A = se;
4244
- A.push(c), oe(A);
4245
- }, Ge = (c) => {
4273
+ let O = ne;
4274
+ O.push(c), se(O);
4275
+ }, $e = (c) => {
4246
4276
  c === "lock" ? n.getActiveObject().set({
4247
4277
  lockMovementX: !0,
4248
4278
  lockMovementY: !0
@@ -4250,111 +4280,111 @@ function In(y) {
4250
4280
  lockMovementX: !1,
4251
4281
  lockMovementY: !1
4252
4282
  });
4253
- }, qe = () => {
4283
+ }, Ze = () => {
4254
4284
  n && (n.getActiveObject().bringForward(), n.renderAll());
4255
- }, Re = () => {
4285
+ }, Le = () => {
4256
4286
  n && (n.getActiveObject().sendBackwards(), n.renderAll());
4257
- }, Ze = () => {
4258
- const c = E + Y;
4259
- H(c), n.setZoom(c);
4260
4287
  }, et = () => {
4261
- const c = Math.max(E - Y, Y);
4262
- H(c), n.setZoom(c);
4288
+ const c = E + K;
4289
+ V(c), n.setZoom(c);
4290
+ }, tt = () => {
4291
+ const c = Math.max(E - K, K);
4292
+ V(c), n.setZoom(c);
4263
4293
  }, Ie = (c) => {
4264
4294
  n && n.getActiveObject() && n.getActiveObject().type !== "textbox" && c.keyCode === 8 && ve();
4265
- }, k = (c) => {
4266
- const A = localStorage.getItem("apc_x_activeTab");
4267
- if (A)
4268
- Ke(A).then((M) => {
4269
- if (M) {
4270
- const N = JSON.stringify(c);
4271
- De(M.id, M.classification, N, M.misc).then((ae) => {
4295
+ }, S = (c) => {
4296
+ const O = localStorage.getItem("apc_x_activeTab");
4297
+ if (O)
4298
+ Xe(O).then((z) => {
4299
+ if (z) {
4300
+ const k = JSON.stringify(c);
4301
+ De(z.id, z.classification, k, z.misc).then((le) => {
4272
4302
  });
4273
4303
  } else {
4274
- const N = JSON.stringify(c);
4275
- De(g.name ?? "design", "general", N, g).then((ae) => {
4304
+ const k = JSON.stringify(c);
4305
+ De(m.name ?? "design", "general", k, m).then((le) => {
4276
4306
  });
4277
4307
  }
4278
4308
  });
4279
4309
  else {
4280
- const M = JSON.stringify(c);
4281
- De(g.name ?? "design", "general", M, g).then((N) => {
4310
+ const z = JSON.stringify(c);
4311
+ De(m.name ?? "design", "general", z, m).then((k) => {
4282
4312
  });
4283
4313
  }
4284
- }, O = (c, A) => {
4285
- const M = JSON.stringify(c);
4286
- De(A.id, A.classification, M, A.misc).then((N) => {
4314
+ }, N = (c, O) => {
4315
+ const z = JSON.stringify(c);
4316
+ De(O.id, O.classification, z, O.misc).then((k) => {
4287
4317
  });
4288
- }, $ = () => ({
4289
- getPDF: () => Te().then((c) => {
4290
- let A = [];
4291
- for (let M in c)
4292
- xe(c[M].content, n.height, n.width, "pdf").then((N) => {
4293
- A.push(N);
4318
+ }, J = () => ({
4319
+ getPDF: () => Ee().then((c) => {
4320
+ let O = [];
4321
+ for (let z in c)
4322
+ xe(c[z].content, n.height, n.width, "pdf").then((k) => {
4323
+ O.push(k);
4294
4324
  });
4295
- return A;
4325
+ return O;
4296
4326
  }),
4297
- getPNG: () => Te().then((c) => {
4298
- let A = [];
4299
- for (let M in c)
4300
- xe(c[M].content, n.height, n.width, "png").then((N) => {
4301
- A.push(N);
4327
+ getPNG: () => Ee().then((c) => {
4328
+ let O = [];
4329
+ for (let z in c)
4330
+ xe(c[z].content, n.height, n.width, "png").then((k) => {
4331
+ O.push(k);
4302
4332
  });
4303
- return A;
4333
+ return O;
4304
4334
  }),
4305
- getSVG: () => Te().then((c) => {
4306
- let A = [];
4307
- for (let M in c)
4308
- xe(c[M].content, n.height, n.width, "svg").then((N) => {
4309
- A.push(N);
4335
+ getSVG: () => Ee().then((c) => {
4336
+ let O = [];
4337
+ for (let z in c)
4338
+ xe(c[z].content, n.height, n.width, "svg").then((k) => {
4339
+ O.push(k);
4310
4340
  });
4311
- return A;
4341
+ return O;
4312
4342
  }),
4313
- getJPEG: () => Te().then((c) => {
4314
- let A = [];
4315
- for (let M in c)
4316
- xe(c[M].content, n.height, n.width, "jpeg").then((N) => {
4317
- A.push(N);
4343
+ getJPEG: () => Ee().then((c) => {
4344
+ let O = [];
4345
+ for (let z in c)
4346
+ xe(c[z].content, n.height, n.width, "jpeg").then((k) => {
4347
+ O.push(k);
4318
4348
  });
4319
- return A;
4349
+ return O;
4320
4350
  }),
4321
- getWEBP: () => Te().then((c) => {
4322
- let A = [];
4323
- for (let M in c)
4324
- xe(c[M].content, n.height, n.width, "webp").then((N) => {
4325
- A.push(N);
4351
+ getWEBP: () => Ee().then((c) => {
4352
+ let O = [];
4353
+ for (let z in c)
4354
+ xe(c[z].content, n.height, n.width, "webp").then((k) => {
4355
+ O.push(k);
4326
4356
  });
4327
- return A;
4357
+ return O;
4328
4358
  }),
4329
4359
  getImageActiveTab: () => {
4330
4360
  const c = localStorage.getItem("apc_x_activeTab");
4331
- return Ke(c).then((A) => xe(A.content, n.height, n.width, "png").then((M) => {
4332
- let N = {};
4333
- return N.file = M, N.height = n.height, N.width = n.width, N;
4361
+ return Xe(c).then((O) => xe(O.content, n.height, n.width, "png").then((z) => {
4362
+ let k = {};
4363
+ return k.file = z, k.height = n.height, k.width = n.width, k;
4334
4364
  }));
4335
4365
  }
4336
- }), B = () => /* @__PURE__ */ e.jsxs("div", { style: { marginTop: "6px", fontWeight: "bold" }, children: [
4366
+ }), D = () => /* @__PURE__ */ e.jsxs("div", { style: { marginTop: "6px", fontWeight: "bold" }, children: [
4337
4367
  "Replace Image: ",
4338
4368
  /* @__PURE__ */ e.jsx("input", { type: "file", accept: "image/*", onChange: (c) => Z(c) }),
4339
4369
  /* @__PURE__ */ e.jsx("br", {})
4340
- ] }), Z = (c, A) => {
4370
+ ] }), Z = (c, O) => {
4341
4371
  {
4342
- const M = n.getActiveObject(), N = c.target.files[0], ae = new FileReader();
4343
- ae.onload = function(V) {
4344
- const X = V.target.result;
4345
- M.setSrc(X, function(tt) {
4346
- tt.set({
4372
+ const z = n.getActiveObject(), k = c.target.files[0], le = new FileReader();
4373
+ le.onload = function(U) {
4374
+ const X = U.target.result;
4375
+ z.setSrc(X, function(rt) {
4376
+ rt.set({
4347
4377
  angle: 30
4348
4378
  }), n && n.renderAll();
4349
4379
  });
4350
- }, ae.readAsDataURL(N);
4380
+ }, le.readAsDataURL(k);
4351
4381
  }
4352
4382
  n && n.renderAll();
4353
4383
  }, fe = () => {
4354
4384
  switch (h) {
4355
4385
  case "ICONS":
4356
4386
  return /* @__PURE__ */ e.jsx(
4357
- ln,
4387
+ fn,
4358
4388
  {
4359
4389
  apcCanvasInstance: n,
4360
4390
  theme: t,
@@ -4365,7 +4395,7 @@ function In(y) {
4365
4395
  );
4366
4396
  case "TEMPLATES":
4367
4397
  return /* @__PURE__ */ e.jsx(
4368
- Qr,
4398
+ nn,
4369
4399
  {
4370
4400
  apcCanvasInstance: n,
4371
4401
  theme: t,
@@ -4373,9 +4403,9 @@ function In(y) {
4373
4403
  apiEndpoint: f,
4374
4404
  reloadTabs: (c) => te(c),
4375
4405
  updateActiveSection: (c) => ke(c),
4376
- initCategory: m,
4406
+ initCategory: v,
4377
4407
  currentTabNo: Me,
4378
- initInstance: l,
4408
+ initInstance: a,
4379
4409
  setActiveTab: (c) => me(c),
4380
4410
  isMobile: G,
4381
4411
  closeMobileModalSecondaryPanel: (c) => q(!c)
@@ -4383,7 +4413,7 @@ function In(y) {
4383
4413
  );
4384
4414
  case "TXT":
4385
4415
  return /* @__PURE__ */ e.jsx(
4386
- sn,
4416
+ hn,
4387
4417
  {
4388
4418
  apcCanvasInstance: n,
4389
4419
  theme: t,
@@ -4394,7 +4424,7 @@ function In(y) {
4394
4424
  );
4395
4425
  case "IMAGE":
4396
4426
  return /* @__PURE__ */ e.jsx(
4397
- cn,
4427
+ un,
4398
4428
  {
4399
4429
  apcCanvasInstance: n,
4400
4430
  theme: t,
@@ -4406,7 +4436,7 @@ function In(y) {
4406
4436
  );
4407
4437
  case "STICKERS":
4408
4438
  return /* @__PURE__ */ e.jsx(
4409
- yn,
4439
+ On,
4410
4440
  {
4411
4441
  apcCanvasInstance: n,
4412
4442
  theme: t,
@@ -4418,7 +4448,7 @@ function In(y) {
4418
4448
  );
4419
4449
  case "SHAPES":
4420
4450
  return /* @__PURE__ */ e.jsx(
4421
- Mt,
4451
+ Rt,
4422
4452
  {
4423
4453
  apcCanvasInstance: n,
4424
4454
  theme: t,
@@ -4429,7 +4459,7 @@ function In(y) {
4429
4459
  );
4430
4460
  case "QUOTE":
4431
4461
  return /* @__PURE__ */ e.jsx(
4432
- an,
4462
+ xn,
4433
4463
  {
4434
4464
  apcCanvasInstance: n,
4435
4465
  theme: t,
@@ -4441,7 +4471,7 @@ function In(y) {
4441
4471
  );
4442
4472
  case "BACKGROUND":
4443
4473
  return /* @__PURE__ */ e.jsx(
4444
- dn,
4474
+ gn,
4445
4475
  {
4446
4476
  apcCanvasInstance: n,
4447
4477
  theme: t,
@@ -4456,7 +4486,7 @@ function In(y) {
4456
4486
  );
4457
4487
  case "QRCODE":
4458
4488
  return /* @__PURE__ */ e.jsx(
4459
- hn,
4489
+ mn,
4460
4490
  {
4461
4491
  apcCanvasInstance: n,
4462
4492
  theme: t,
@@ -4468,7 +4498,7 @@ function In(y) {
4468
4498
  );
4469
4499
  case "BARCODE":
4470
4500
  return /* @__PURE__ */ e.jsx(
4471
- pn,
4501
+ vn,
4472
4502
  {
4473
4503
  apcCanvasInstance: n,
4474
4504
  theme: t,
@@ -4480,7 +4510,7 @@ function In(y) {
4480
4510
  );
4481
4511
  case "SIZE":
4482
4512
  return /* @__PURE__ */ e.jsx(
4483
- un,
4513
+ jn,
4484
4514
  {
4485
4515
  apcCanvasInstance: n,
4486
4516
  theme: t,
@@ -4491,7 +4521,7 @@ function In(y) {
4491
4521
  );
4492
4522
  default:
4493
4523
  return /* @__PURE__ */ e.jsx(
4494
- Mt,
4524
+ Rt,
4495
4525
  {
4496
4526
  apcCanvasInstance: n,
4497
4527
  theme: t,
@@ -4502,33 +4532,33 @@ function In(y) {
4502
4532
  );
4503
4533
  }
4504
4534
  }, je = () => {
4505
- if (!I)
4535
+ if (!A)
4506
4536
  return null;
4507
- switch (I) {
4537
+ switch (A) {
4508
4538
  case "text":
4509
- return /* @__PURE__ */ e.jsx(zt, { apcCanvasInstance: n, theme: t, apiKey: i });
4539
+ return /* @__PURE__ */ e.jsx(Lt, { apcCanvasInstance: n, theme: t, apiKey: i });
4510
4540
  case "textbox":
4511
- return /* @__PURE__ */ e.jsx(zt, { apcCanvasInstance: n, theme: t, apiKey: i });
4541
+ return /* @__PURE__ */ e.jsx(Lt, { apcCanvasInstance: n, theme: t, apiKey: i });
4512
4542
  case "rect":
4513
- return /* @__PURE__ */ e.jsx(Ye, { apcCanvasInstance: n, theme: t, apiKey: i });
4543
+ return /* @__PURE__ */ e.jsx(Ke, { apcCanvasInstance: n, theme: t, apiKey: i });
4514
4544
  case "circle":
4515
- return /* @__PURE__ */ e.jsx(Ye, { apcCanvasInstance: n, theme: t, apiKey: i });
4545
+ return /* @__PURE__ */ e.jsx(Ke, { apcCanvasInstance: n, theme: t, apiKey: i });
4516
4546
  case "triangle":
4517
- return /* @__PURE__ */ e.jsx(Ye, { apcCanvasInstance: n, theme: t, apiKey: i });
4547
+ return /* @__PURE__ */ e.jsx(Ke, { apcCanvasInstance: n, theme: t, apiKey: i });
4518
4548
  case "line":
4519
- return /* @__PURE__ */ e.jsx(Ye, { apcCanvasInstance: n, theme: t, apiKey: i });
4549
+ return /* @__PURE__ */ e.jsx(Ke, { apcCanvasInstance: n, theme: t, apiKey: i });
4520
4550
  case "path":
4521
- return /* @__PURE__ */ e.jsx(Ye, { apcCanvasInstance: n, theme: t, apiKey: i });
4551
+ return /* @__PURE__ */ e.jsx(Ke, { apcCanvasInstance: n, theme: t, apiKey: i });
4522
4552
  case "polygon":
4523
- return /* @__PURE__ */ e.jsx(Ye, { apcCanvasInstance: n, theme: t, apiKey: i });
4553
+ return /* @__PURE__ */ e.jsx(Ke, { apcCanvasInstance: n, theme: t, apiKey: i });
4524
4554
  case "image":
4525
- return B();
4555
+ return D();
4526
4556
  default:
4527
4557
  return null;
4528
4558
  }
4529
- }, ne = (c) => {
4530
- v(c), G && 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: [
4559
+ }, 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: [
4532
4562
  /* @__PURE__ */ e.jsxs(
4533
4563
  "div",
4534
4564
  {
@@ -4545,7 +4575,7 @@ function In(y) {
4545
4575
  height: "16",
4546
4576
  width: "14",
4547
4577
  viewBox: "0 0 448 512",
4548
- children: /* @__PURE__ */ e.jsx("path", { d: Lt, fill: "#d8d4d4" })
4578
+ children: /* @__PURE__ */ e.jsx("path", { d: Bt, fill: "#d8d4d4" })
4549
4579
  }
4550
4580
  ),
4551
4581
  /* @__PURE__ */ e.jsx("div", { className: "apc-mpx-tooltip-text", children: "Delete" })
@@ -4557,7 +4587,7 @@ function In(y) {
4557
4587
  {
4558
4588
  className: "apc-mpx-tooltip-container",
4559
4589
  role: "button",
4560
- onClick: () => Re(),
4590
+ onClick: () => Le(),
4561
4591
  style: { cursor: "pointer" },
4562
4592
  children: [
4563
4593
  /* @__PURE__ */ e.jsxs(
@@ -4589,7 +4619,7 @@ function In(y) {
4589
4619
  {
4590
4620
  className: "apc-mpx-tooltip-container",
4591
4621
  role: "button",
4592
- onClick: () => qe(),
4622
+ onClick: () => Ze(),
4593
4623
  style: { cursor: "pointer" },
4594
4624
  children: [
4595
4625
  /* @__PURE__ */ e.jsxs(
@@ -4620,7 +4650,7 @@ function In(y) {
4620
4650
  "div",
4621
4651
  {
4622
4652
  className: "apc-mpx-tooltip-container",
4623
- onClick: () => Ge("lock"),
4653
+ onClick: () => $e("lock"),
4624
4654
  style: { cursor: "pointer" },
4625
4655
  children: [
4626
4656
  /* @__PURE__ */ e.jsx(
@@ -4648,7 +4678,7 @@ function In(y) {
4648
4678
  "div",
4649
4679
  {
4650
4680
  className: "apc-mpx-tooltip-container",
4651
- onClick: () => Ge("unlock"),
4681
+ onClick: () => $e("unlock"),
4652
4682
  style: { cursor: "pointer" },
4653
4683
  children: [
4654
4684
  /* @__PURE__ */ e.jsx(
@@ -4700,7 +4730,7 @@ function In(y) {
4700
4730
  ]
4701
4731
  }
4702
4732
  )
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 ? G ? _e() : fe() : null;
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;
4704
4734
  return /* @__PURE__ */ e.jsxs("div", { className: "apc-mpc-widget-wrapper", children: [
4705
4735
  /* @__PURE__ */ e.jsxs("div", { style: {
4706
4736
  display: "flex",
@@ -4724,22 +4754,22 @@ function In(y) {
4724
4754
  fontWeight: "bold"
4725
4755
  },
4726
4756
  children: [
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 }) }),
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 }) }),
4728
4758
  " Back"
4729
4759
  ]
4730
4760
  }
4731
4761
  ) }) }),
4732
4762
  /* @__PURE__ */ e.jsx("div", { style: { flexBasis: "20%" } }),
4733
4763
  /* @__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: [
4734
- /* @__PURE__ */ e.jsx("div", { children: n && j.share ? /* @__PURE__ */ e.jsx("div", { children: /* @__PURE__ */ e.jsx(
4735
- gn,
4764
+ /* @__PURE__ */ e.jsx("div", { children: n && b.share ? /* @__PURE__ */ e.jsx("div", { children: /* @__PURE__ */ e.jsx(
4765
+ wn,
4736
4766
  {
4737
4767
  apcCanvasInstance: n,
4738
4768
  theme: t
4739
4769
  }
4740
4770
  ) }) : null }),
4741
- /* @__PURE__ */ e.jsx("div", { children: n && j.download ? /* @__PURE__ */ e.jsx("div", { children: /* @__PURE__ */ e.jsx(
4742
- mn,
4771
+ /* @__PURE__ */ e.jsx("div", { children: n && b.download ? /* @__PURE__ */ e.jsx("div", { children: /* @__PURE__ */ e.jsx(
4772
+ Cn,
4743
4773
  {
4744
4774
  apcCanvasInstance: n,
4745
4775
  theme: t,
@@ -4747,14 +4777,14 @@ function In(y) {
4747
4777
  updateSelectedSections: (c) => Ae(c),
4748
4778
  updateActiveSection: (c) => ke(c),
4749
4779
  accesories,
4750
- getDesignFormats: $()
4780
+ getDesignFormats: J()
4751
4781
  }
4752
4782
  ) }) : null }),
4753
4783
  /* @__PURE__ */ e.jsx("div", { children: n && p ? /* @__PURE__ */ e.jsx("div", { children: /* @__PURE__ */ e.jsx(
4754
4784
  "button",
4755
4785
  {
4756
4786
  className: "apc-mpc-widget-btn",
4757
- onClick: () => a($()),
4787
+ onClick: () => l(J()),
4758
4788
  style: {
4759
4789
  backgroundColor: p.btnColor ?? t.primaryColorLight,
4760
4790
  color: "#ffffff",
@@ -4767,7 +4797,7 @@ function In(y) {
4767
4797
  ] }),
4768
4798
  /* @__PURE__ */ e.jsxs("div", { className: "apc-mpc-widget-colums", children: [
4769
4799
  /* @__PURE__ */ e.jsx("div", { className: "apc-mpc-widget-colum-modules-container", children: /* @__PURE__ */ e.jsxs("div", { className: "apc-mypixia-widget-primary-nav-container", children: [
4770
- d.indexOf("TXT") > -1 ? /* @__PURE__ */ e.jsxs("div", { tabIndex: "0", role: "button", onClick: () => ne("TXT"), style: {
4800
+ d.indexOf("TXT") > -1 ? /* @__PURE__ */ e.jsxs("div", { tabIndex: "0", role: "button", onClick: () => re("TXT"), style: {
4771
4801
  padding: "10px",
4772
4802
  backgroundColor: h === "TXT" ? t.primaryColorLight : "inherit",
4773
4803
  color: h === "TXT" ? "#ffffff" : "inherit"
@@ -4781,12 +4811,12 @@ function In(y) {
4781
4811
  viewBox: "0 0 448 512",
4782
4812
  style: { fill: h === "TXT" ? "#ffffff" : t.primaryColor },
4783
4813
  className: "apc-mypixia-widget-primary-nav-svg",
4784
- children: /* @__PURE__ */ e.jsx("path", { d: Er })
4814
+ children: /* @__PURE__ */ e.jsx("path", { d: Br })
4785
4815
  }
4786
4816
  ),
4787
4817
  /* @__PURE__ */ e.jsx("div", { children: "Text" })
4788
4818
  ] }) : null,
4789
- d.indexOf("STICKERS") > -1 ? /* @__PURE__ */ e.jsxs("div", { tabIndex: "0", role: "button", onClick: () => ne("STICKERS"), style: {
4819
+ d.indexOf("STICKERS") > -1 ? /* @__PURE__ */ e.jsxs("div", { tabIndex: "0", role: "button", onClick: () => re("STICKERS"), style: {
4790
4820
  padding: "10px",
4791
4821
  backgroundColor: h === "STICKERS" ? t.primaryColorLight : "inherit",
4792
4822
  color: h === "STICKERS" ? "#ffffff" : "inherit"
@@ -4800,12 +4830,12 @@ function In(y) {
4800
4830
  viewBox: "0 0 640 512",
4801
4831
  style: { fill: h === "STICKERS" ? "#ffffff" : t.primaryColor },
4802
4832
  className: "apc-mypixia-widget-primary-nav-svg",
4803
- children: /* @__PURE__ */ e.jsx("path", { d: Wr })
4833
+ children: /* @__PURE__ */ e.jsx("path", { d: Xr })
4804
4834
  }
4805
4835
  ),
4806
4836
  /* @__PURE__ */ e.jsx("div", { children: "Stickers" })
4807
4837
  ] }) : null,
4808
- d.indexOf("SHAPES") > -1 ? /* @__PURE__ */ e.jsxs("div", { tabIndex: "0", role: "button", onClick: () => ne("SHAPES"), style: {
4838
+ d.indexOf("SHAPES") > -1 ? /* @__PURE__ */ e.jsxs("div", { tabIndex: "0", role: "button", onClick: () => re("SHAPES"), style: {
4809
4839
  padding: "10px",
4810
4840
  backgroundColor: h === "SHAPES" ? t.primaryColorLight : "inherit",
4811
4841
  color: h === "SHAPES" ? "#ffffff" : "inherit"
@@ -4819,12 +4849,12 @@ function In(y) {
4819
4849
  viewBox: "0 0 512 512",
4820
4850
  style: { fill: h === "SHAPES" ? "#ffffff" : t.primaryColor },
4821
4851
  className: "apc-mypixia-widget-primary-nav-svg",
4822
- children: /* @__PURE__ */ e.jsx("path", { d: Ir })
4852
+ children: /* @__PURE__ */ e.jsx("path", { d: Lr })
4823
4853
  }
4824
4854
  ),
4825
4855
  /* @__PURE__ */ e.jsx("div", { children: "Shapes" })
4826
4856
  ] }) : null,
4827
- d.indexOf("ICONS") > -1 ? /* @__PURE__ */ e.jsxs("div", { tabIndex: "0", role: "button", onClick: () => ne("ICONS"), style: {
4857
+ d.indexOf("ICONS") > -1 ? /* @__PURE__ */ e.jsxs("div", { tabIndex: "0", role: "button", onClick: () => re("ICONS"), style: {
4828
4858
  padding: "10px",
4829
4859
  backgroundColor: h === "ICONS" ? t.primaryColorLight : "inherit",
4830
4860
  color: h === "ICONS" ? "#ffffff" : "inherit"
@@ -4838,12 +4868,12 @@ function In(y) {
4838
4868
  viewBox: "0 0 512 512",
4839
4869
  style: { fill: h === "ICONS" ? "#ffffff" : t.primaryColor },
4840
4870
  className: "apc-mypixia-widget-primary-nav-svg",
4841
- children: /* @__PURE__ */ e.jsx("path", { d: Tr })
4871
+ children: /* @__PURE__ */ e.jsx("path", { d: _r })
4842
4872
  }
4843
4873
  ),
4844
4874
  /* @__PURE__ */ e.jsx("div", { children: "Icons" })
4845
4875
  ] }) : null,
4846
- d.indexOf("IMAGE") > -1 ? /* @__PURE__ */ e.jsxs("div", { tabIndex: "0", role: "button", onClick: () => ne("IMAGE"), style: {
4876
+ d.indexOf("IMAGE") > -1 ? /* @__PURE__ */ e.jsxs("div", { tabIndex: "0", role: "button", onClick: () => re("IMAGE"), style: {
4847
4877
  padding: "10px",
4848
4878
  backgroundColor: h === "IMAGE" ? t.primaryColorLight : "inherit",
4849
4879
  color: h === "IMAGE" ? "#ffffff" : "inherit"
@@ -4857,12 +4887,12 @@ function In(y) {
4857
4887
  viewBox: "0 0 512 512",
4858
4888
  style: { fill: h === "IMAGE" ? "#ffffff" : t.primaryColor },
4859
4889
  className: "apc-mypixia-widget-primary-nav-svg",
4860
- children: /* @__PURE__ */ e.jsx("path", { d: Rt })
4890
+ children: /* @__PURE__ */ e.jsx("path", { d: Dt })
4861
4891
  }
4862
4892
  ),
4863
4893
  /* @__PURE__ */ e.jsx("div", { children: "Upload" })
4864
4894
  ] }) : null,
4865
- d.indexOf("QUOTE") > -1 ? /* @__PURE__ */ e.jsxs("div", { tabIndex: "0", role: "button", onClick: () => ne("QUOTE"), style: {
4895
+ d.indexOf("QUOTE") > -1 ? /* @__PURE__ */ e.jsxs("div", { tabIndex: "0", role: "button", onClick: () => re("QUOTE"), style: {
4866
4896
  padding: "10px",
4867
4897
  backgroundColor: h === "QUOTE" ? t.primaryColorLight : "inherit",
4868
4898
  color: h === "QUOTE" ? "#ffffff" : "inherit"
@@ -4876,12 +4906,12 @@ function In(y) {
4876
4906
  viewBox: "0 0 512 512",
4877
4907
  style: { fill: h === "QUOTE" ? "#ffffff" : t.primaryColor },
4878
4908
  className: "apc-mypixia-widget-primary-nav-svg",
4879
- children: /* @__PURE__ */ e.jsx("path", { d: Mr })
4909
+ children: /* @__PURE__ */ e.jsx("path", { d: Dr })
4880
4910
  }
4881
4911
  ),
4882
4912
  /* @__PURE__ */ e.jsx("div", { children: "Quote" })
4883
4913
  ] }) : null,
4884
- d.indexOf("BACKGROUND") > -1 ? /* @__PURE__ */ e.jsxs("div", { tabIndex: "0", role: "button", onClick: () => ne("BACKGROUND"), style: {
4914
+ d.indexOf("BACKGROUND") > -1 ? /* @__PURE__ */ e.jsxs("div", { tabIndex: "0", role: "button", onClick: () => re("BACKGROUND"), style: {
4885
4915
  padding: "10px",
4886
4916
  backgroundColor: h === "BACKGROUND" ? t.primaryColorLight : "inherit",
4887
4917
  color: h === "BACKGROUND" ? "#ffffff" : "inherit"
@@ -4895,12 +4925,12 @@ function In(y) {
4895
4925
  viewBox: "0 0 640 512",
4896
4926
  style: { fill: h === "BACKGROUND" ? "#ffffff" : t.primaryColor },
4897
4927
  className: "apc-mypixia-widget-primary-nav-svg",
4898
- children: /* @__PURE__ */ e.jsx("path", { d: zr })
4928
+ children: /* @__PURE__ */ e.jsx("path", { d: Pr })
4899
4929
  }
4900
4930
  ),
4901
4931
  /* @__PURE__ */ e.jsx("div", { children: "Background" })
4902
4932
  ] }) : null,
4903
- d.indexOf("QRCODE") > -1 ? /* @__PURE__ */ e.jsxs("div", { tabIndex: "0", role: "button", onClick: () => ne("QRCODE"), style: {
4933
+ d.indexOf("QRCODE") > -1 ? /* @__PURE__ */ e.jsxs("div", { tabIndex: "0", role: "button", onClick: () => re("QRCODE"), style: {
4904
4934
  padding: "10px",
4905
4935
  backgroundColor: h === "QRCODE" ? t.primaryColorLight : "inherit",
4906
4936
  color: h === "QRCODE" ? "#ffffff" : "inherit"
@@ -4914,12 +4944,12 @@ function In(y) {
4914
4944
  viewBox: "0 0 640 512",
4915
4945
  style: { fill: h === "QRCODE" ? "#ffffff" : t.primaryColor },
4916
4946
  className: "apc-mypixia-widget-primary-nav-svg",
4917
- children: /* @__PURE__ */ e.jsx("path", { d: Lr })
4947
+ children: /* @__PURE__ */ e.jsx("path", { d: Fr })
4918
4948
  }
4919
4949
  ),
4920
4950
  /* @__PURE__ */ e.jsx("div", { children: "QR Code" })
4921
4951
  ] }) : null,
4922
- d.indexOf("BARCODE") > -1 ? /* @__PURE__ */ e.jsxs("div", { tabIndex: "0", role: "button", onClick: () => ne("BARCODE"), style: {
4952
+ d.indexOf("BARCODE") > -1 ? /* @__PURE__ */ e.jsxs("div", { tabIndex: "0", role: "button", onClick: () => re("BARCODE"), style: {
4923
4953
  padding: "10px",
4924
4954
  backgroundColor: h === "BARCODE" ? t.primaryColorLight : "inherit",
4925
4955
  color: h === "BARCODE" ? "#ffffff" : "inherit"
@@ -4933,12 +4963,12 @@ function In(y) {
4933
4963
  viewBox: "0 0 512 512",
4934
4964
  style: { fill: h === "BARCODE" ? "#ffffff" : t.primaryColor },
4935
4965
  className: "apc-mypixia-widget-primary-nav-svg",
4936
- children: /* @__PURE__ */ e.jsx("path", { d: Rr })
4966
+ children: /* @__PURE__ */ e.jsx("path", { d: Hr })
4937
4967
  }
4938
4968
  ),
4939
4969
  /* @__PURE__ */ e.jsx("div", { children: "Barcode" })
4940
4970
  ] }) : null,
4941
- d.indexOf("SIZE") > -1 ? /* @__PURE__ */ e.jsxs("div", { tabIndex: "0", role: "button", onClick: () => ne("SIZE"), style: {
4971
+ d.indexOf("SIZE") > -1 ? /* @__PURE__ */ e.jsxs("div", { tabIndex: "0", role: "button", onClick: () => re("SIZE"), style: {
4942
4972
  padding: "10px",
4943
4973
  backgroundColor: h === "SIZE" ? t.primaryColorLight : "inherit",
4944
4974
  color: h === "SIZE" ? "#ffffff" : "inherit"
@@ -4952,7 +4982,7 @@ function In(y) {
4952
4982
  viewBox: "0 0 448 512",
4953
4983
  style: { fill: h === "SIZE" ? "#ffffff" : t.primaryColor },
4954
4984
  className: "apc-mypixia-widget-primary-nav-svg",
4955
- children: /* @__PURE__ */ e.jsx("path", { d: _r })
4985
+ children: /* @__PURE__ */ e.jsx("path", { d: Vr })
4956
4986
  }
4957
4987
  ),
4958
4988
  /* @__PURE__ */ e.jsx("div", { children: "Size" })
@@ -4960,29 +4990,29 @@ function In(y) {
4960
4990
  ] }) }),
4961
4991
  /* @__PURE__ */ e.jsx("div", { className: "apc-mpc-widget-colum-features-container", children: be() }),
4962
4992
  /* @__PURE__ */ e.jsx("div", { className: "apc-mpc-widget-colum-editor-container", children: /* @__PURE__ */ e.jsx(
4963
- vn,
4993
+ Sn,
4964
4994
  {
4965
4995
  theme: t,
4966
4996
  activeSection: pe,
4967
- selectedObjectType: I,
4968
- renderQuickActions: $e,
4997
+ selectedObjectType: A,
4998
+ renderQuickActions: Ge,
4969
4999
  renderActionItems: je,
4970
- canvasEl: R,
4971
- zoomIn: () => Ze(),
4972
- zoomOut: () => et(),
5000
+ canvasEl: _,
5001
+ zoomIn: () => et(),
5002
+ zoomOut: () => tt(),
4973
5003
  apcCanvasInstance: n,
4974
- setActiveSection: (c) => Ee(c),
5004
+ setActiveSection: (c) => Te(c),
4975
5005
  updateActiveDesignSection: (c) => ke(c),
4976
- saveActiveDesign: (c, A) => O(c, A),
5006
+ saveActiveDesign: (c, O) => N(c, O),
4977
5007
  reloadTabs: Me,
4978
5008
  activeTabName: Ce,
4979
- supportedColors: Fe,
4980
- initProductName: b,
5009
+ supportedColors: Pe,
5010
+ initProductName: y,
4981
5011
  historyRef: Ve,
4982
5012
  currentState: He,
4983
5013
  setCurrentState: (c) => ze(c),
4984
5014
  isPlainColor: s,
4985
- selectedProduct: g,
5015
+ selectedProduct: m,
4986
5016
  isMobile: G
4987
5017
  }
4988
5018
  ) })
@@ -4991,6 +5021,10 @@ function In(y) {
4991
5021
  G ? _e() : null
4992
5022
  ] });
4993
5023
  }
5024
+ function _n(g, t = {}) {
5025
+ br.createRoot(g).render(/* @__PURE__ */ e.jsx(An, { ...t }));
5026
+ }
4994
5027
  export {
4995
- In as default
5028
+ An as Mypixia,
5029
+ _n as render
4996
5030
  };