@mypixia/simplex-designer 1.0.17 → 1.1.0

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,11 @@
1
- import I, { useState as M, useEffect as ce, forwardRef as Kt, useRef as vt, useImperativeHandle as Xt } from "react";
1
+ import E, { useState as M, useEffect as ae, forwardRef as Kt, useRef as yt, useImperativeHandle as Xt } from "react";
2
2
  import { fabric as D } from "fabric";
3
- import je from "axios";
3
+ import Se from "axios";
4
4
  import Qt from "qrcode";
5
5
  import qt from "react-barcode";
6
- import { FacebookShareButton as Zt, FacebookIcon as er, TwitterShareButton as tr, XIcon as rr, TelegramShareButton as nr, TelegramIcon as sr, WhatsappShareButton as or, WhatsappIcon as ir, LinkedinShareButton as cr, LinkedinIcon as ar, PinterestShareButton as lr, PinterestIcon as dr, RedditShareButton as hr, RedditIcon as pr, InstapaperShareButton as ur, InstapaperIcon as fr } from "react-share";
6
+ import { FacebookShareButton as Zt, FacebookIcon as er, TwitterShareButton as tr, XIcon as rr, TelegramShareButton as nr, TelegramIcon as sr, WhatsappShareButton as or, WhatsappIcon as ir, LinkedinShareButton as cr, LinkedinIcon as ar, PinterestShareButton as lr, PinterestIcon as dr, RedditShareButton as pr, RedditIcon as hr, InstapaperShareButton as ur, InstapaperIcon as fr } from "react-share";
7
7
  import xr from "react-dom";
8
- import './index_external.css';var ot = { exports: {} }, rt = {};
8
+ import './index_external.css';var pt = { exports: {} }, at = {};
9
9
  /**
10
10
  * @license React
11
11
  * react-jsx-runtime.production.min.js
@@ -15,21 +15,21 @@ import './index_external.css';var ot = { exports: {} }, rt = {};
15
15
  * This source code is licensed under the MIT license found in the
16
16
  * LICENSE file in the root directory of this source tree.
17
17
  */
18
- var jt;
18
+ var wt;
19
19
  function gr() {
20
- if (jt) return rt;
21
- jt = 1;
22
- var y = I, r = Symbol.for("react.element"), n = Symbol.for("react.fragment"), c = Object.prototype.hasOwnProperty, l = y.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, d = { key: !0, ref: !0, __self: !0, __source: !0 };
23
- function f(h, m, i) {
24
- var g, p = {}, b = null, o = null;
25
- i !== void 0 && (b = "" + i), m.key !== void 0 && (b = "" + m.key), m.ref !== void 0 && (o = m.ref);
26
- for (g in m) c.call(m, g) && !d.hasOwnProperty(g) && (p[g] = m[g]);
27
- if (h && h.defaultProps) for (g in m = h.defaultProps, m) p[g] === void 0 && (p[g] = m[g]);
28
- return { $$typeof: r, type: h, key: b, ref: o, props: p, _owner: l.current };
20
+ if (wt) return at;
21
+ wt = 1;
22
+ var y = E, r = Symbol.for("react.element"), n = Symbol.for("react.fragment"), a = Object.prototype.hasOwnProperty, l = y.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, d = { key: !0, ref: !0, __self: !0, __source: !0 };
23
+ function f(p, m, c) {
24
+ var g, h = {}, b = null, o = null;
25
+ c !== void 0 && (b = "" + c), m.key !== void 0 && (b = "" + m.key), m.ref !== void 0 && (o = m.ref);
26
+ for (g in m) a.call(m, g) && !d.hasOwnProperty(g) && (h[g] = m[g]);
27
+ if (p && p.defaultProps) for (g in m = p.defaultProps, m) h[g] === void 0 && (h[g] = m[g]);
28
+ return { $$typeof: r, type: p, key: b, ref: o, props: h, _owner: l.current };
29
29
  }
30
- return rt.Fragment = n, rt.jsx = f, rt.jsxs = f, rt;
30
+ return at.Fragment = n, at.jsx = f, at.jsxs = f, at;
31
31
  }
32
- var nt = {};
32
+ var lt = {};
33
33
  /**
34
34
  * @license React
35
35
  * react-jsx-runtime.development.js
@@ -39,10 +39,10 @@ var nt = {};
39
39
  * This source code is licensed under the MIT license found in the
40
40
  * LICENSE file in the root directory of this source tree.
41
41
  */
42
- var bt;
42
+ var Ct;
43
43
  function mr() {
44
- return bt || (bt = 1, process.env.NODE_ENV !== "production" && function() {
45
- var y = I, r = Symbol.for("react.element"), n = Symbol.for("react.portal"), c = Symbol.for("react.fragment"), l = Symbol.for("react.strict_mode"), d = Symbol.for("react.profiler"), f = Symbol.for("react.provider"), h = Symbol.for("react.context"), m = Symbol.for("react.forward_ref"), i = Symbol.for("react.suspense"), g = Symbol.for("react.suspense_list"), p = Symbol.for("react.memo"), b = Symbol.for("react.lazy"), o = Symbol.for("react.offscreen"), j = Symbol.iterator, u = "@@iterator";
44
+ return Ct || (Ct = 1, process.env.NODE_ENV !== "production" && function() {
45
+ var y = E, r = Symbol.for("react.element"), n = Symbol.for("react.portal"), a = Symbol.for("react.fragment"), l = Symbol.for("react.strict_mode"), d = Symbol.for("react.profiler"), f = Symbol.for("react.provider"), p = Symbol.for("react.context"), m = Symbol.for("react.forward_ref"), c = Symbol.for("react.suspense"), g = Symbol.for("react.suspense_list"), h = Symbol.for("react.memo"), b = Symbol.for("react.lazy"), o = Symbol.for("react.offscreen"), j = Symbol.iterator, u = "@@iterator";
46
46
  function v(t) {
47
47
  if (t === null || typeof t != "object")
48
48
  return null;
@@ -52,41 +52,41 @@ function mr() {
52
52
  var s = y.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
53
53
  function S(t) {
54
54
  {
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];
55
+ for (var x = arguments.length, C = new Array(x > 1 ? x - 1 : 0), R = 1; R < x; R++)
56
+ C[R - 1] = arguments[R];
57
57
  B("error", t, C);
58
58
  }
59
59
  }
60
60
  function B(t, x, C) {
61
61
  {
62
- var z = s.ReactDebugCurrentFrame, J = z.getStackAddendum();
62
+ var R = s.ReactDebugCurrentFrame, J = R.getStackAddendum();
63
63
  J !== "" && (x += "%s", C = C.concat([J]));
64
- var Y = C.map(function(W) {
64
+ var K = C.map(function(W) {
65
65
  return String(W);
66
66
  });
67
- Y.unshift("Warning: " + x), Function.prototype.apply.call(console[t], console, Y);
67
+ K.unshift("Warning: " + x), Function.prototype.apply.call(console[t], console, K);
68
68
  }
69
69
  }
70
- var E = !1, L = !1, H = !1, R = !1, A = !1, V;
70
+ var z = !1, _ = !1, H = !1, L = !1, I = !1, V;
71
71
  V = Symbol.for("react.module.reference");
72
72
  function Q(t) {
73
- return !!(typeof t == "string" || typeof t == "function" || t === c || t === d || A || t === l || t === i || t === g || R || t === o || E || L || H || typeof t == "object" && t !== null && (t.$$typeof === b || t.$$typeof === p || t.$$typeof === f || t.$$typeof === h || t.$$typeof === m || // This needs to include all possible module reference object
73
+ return !!(typeof t == "string" || typeof t == "function" || t === a || t === d || I || t === l || t === c || t === g || L || t === o || z || _ || H || typeof t == "object" && t !== null && (t.$$typeof === b || t.$$typeof === h || t.$$typeof === f || t.$$typeof === p || t.$$typeof === m || // This needs to include all possible module reference object
74
74
  // types supported by any Flight configuration anywhere since
75
75
  // we don't know which Flight build this will end up being used
76
76
  // with.
77
77
  t.$$typeof === V || t.getModuleId !== void 0));
78
78
  }
79
79
  function Z(t, x, C) {
80
- var z = t.displayName;
81
- if (z)
82
- return z;
80
+ var R = t.displayName;
81
+ if (R)
82
+ return R;
83
83
  var J = x.displayName || x.name || "";
84
84
  return J !== "" ? C + "(" + J + ")" : C;
85
85
  }
86
- function ie(t) {
86
+ function ce(t) {
87
87
  return t.displayName || "Context";
88
88
  }
89
- function ne(t) {
89
+ function re(t) {
90
90
  if (t == null)
91
91
  return null;
92
92
  if (typeof t.tag == "number" && S("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof t == "function")
@@ -94,7 +94,7 @@ function mr() {
94
94
  if (typeof t == "string")
95
95
  return t;
96
96
  switch (t) {
97
- case c:
97
+ case a:
98
98
  return "Fragment";
99
99
  case n:
100
100
  return "Portal";
@@ -102,28 +102,28 @@ function mr() {
102
102
  return "Profiler";
103
103
  case l:
104
104
  return "StrictMode";
105
- case i:
105
+ case c:
106
106
  return "Suspense";
107
107
  case g:
108
108
  return "SuspenseList";
109
109
  }
110
110
  if (typeof t == "object")
111
111
  switch (t.$$typeof) {
112
- case h:
112
+ case p:
113
113
  var x = t;
114
- return ie(x) + ".Consumer";
114
+ return ce(x) + ".Consumer";
115
115
  case f:
116
116
  var C = t;
117
- return ie(C._context) + ".Provider";
117
+ return ce(C._context) + ".Provider";
118
118
  case m:
119
119
  return Z(t, t.render, "ForwardRef");
120
- case p:
121
- var z = t.displayName || null;
122
- return z !== null ? z : ne(t.type) || "Memo";
120
+ case h:
121
+ var R = t.displayName || null;
122
+ return R !== null ? R : re(t.type) || "Memo";
123
123
  case b: {
124
- var J = t, Y = J._payload, W = J._init;
124
+ var J = t, K = J._payload, W = J._init;
125
125
  try {
126
- return ne(W(Y));
126
+ return re(W(K));
127
127
  } catch {
128
128
  return null;
129
129
  }
@@ -131,18 +131,18 @@ function mr() {
131
131
  }
132
132
  return null;
133
133
  }
134
- var le = Object.assign, ue = 0, be, Oe, ze, Re, Ue, se, qe;
135
- function Le() {
134
+ var pe = Object.assign, ge = 0, ke, Te, Be, De, Ge, ne, nt;
135
+ function Fe() {
136
136
  }
137
- Le.__reactDisabledLog = !0;
138
- function We() {
137
+ Fe.__reactDisabledLog = !0;
138
+ function Ye() {
139
139
  {
140
- if (ue === 0) {
141
- be = console.log, Oe = console.info, ze = console.warn, Re = console.error, Ue = console.group, se = console.groupCollapsed, qe = console.groupEnd;
140
+ if (ge === 0) {
141
+ ke = console.log, Te = console.info, Be = console.warn, De = console.error, Ge = console.group, ne = console.groupCollapsed, nt = console.groupEnd;
142
142
  var t = {
143
143
  configurable: !0,
144
144
  enumerable: !0,
145
- value: Le,
145
+ value: Fe,
146
146
  writable: !0
147
147
  };
148
148
  Object.defineProperties(console, {
@@ -155,77 +155,77 @@ function mr() {
155
155
  groupEnd: t
156
156
  });
157
157
  }
158
- ue++;
158
+ ge++;
159
159
  }
160
160
  }
161
- function _e() {
161
+ function He() {
162
162
  {
163
- if (ue--, ue === 0) {
163
+ if (ge--, ge === 0) {
164
164
  var t = {
165
165
  configurable: !0,
166
166
  enumerable: !0,
167
167
  writable: !0
168
168
  };
169
169
  Object.defineProperties(console, {
170
- log: le({}, t, {
171
- value: be
170
+ log: pe({}, t, {
171
+ value: ke
172
172
  }),
173
- info: le({}, t, {
174
- value: Oe
173
+ info: pe({}, t, {
174
+ value: Te
175
175
  }),
176
- warn: le({}, t, {
177
- value: ze
176
+ warn: pe({}, t, {
177
+ value: Be
178
178
  }),
179
- error: le({}, t, {
180
- value: Re
179
+ error: pe({}, t, {
180
+ value: De
181
181
  }),
182
- group: le({}, t, {
183
- value: Ue
182
+ group: pe({}, t, {
183
+ value: Ge
184
184
  }),
185
- groupCollapsed: le({}, t, {
186
- value: se
185
+ groupCollapsed: pe({}, t, {
186
+ value: ne
187
187
  }),
188
- groupEnd: le({}, t, {
189
- value: qe
188
+ groupEnd: pe({}, t, {
189
+ value: nt
190
190
  })
191
191
  });
192
192
  }
193
- ue < 0 && S("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
193
+ ge < 0 && S("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
194
194
  }
195
195
  }
196
- var Be = s.ReactCurrentDispatcher, ye;
196
+ var Pe = s.ReactCurrentDispatcher, Ne;
197
197
  function G(t, x, C) {
198
198
  {
199
- if (ye === void 0)
199
+ if (Ne === void 0)
200
200
  try {
201
201
  throw Error();
202
202
  } catch (J) {
203
- var z = J.stack.trim().match(/\n( *(at )?)/);
204
- ye = z && z[1] || "";
203
+ var R = J.stack.trim().match(/\n( *(at )?)/);
204
+ Ne = R && R[1] || "";
205
205
  }
206
206
  return `
207
- ` + ye + t;
207
+ ` + Ne + t;
208
208
  }
209
209
  }
210
- var Ae = !1, Ie;
210
+ var Ee = !1, ze;
211
211
  {
212
- var oe = typeof WeakMap == "function" ? WeakMap : Map;
213
- Ie = new oe();
212
+ var se = typeof WeakMap == "function" ? WeakMap : Map;
213
+ ze = new se();
214
214
  }
215
- function Te(t, x) {
216
- if (!t || Ae)
215
+ function Me(t, x) {
216
+ if (!t || Ee)
217
217
  return "";
218
218
  {
219
- var C = Ie.get(t);
219
+ var C = ze.get(t);
220
220
  if (C !== void 0)
221
221
  return C;
222
222
  }
223
- var z;
224
- Ae = !0;
223
+ var R;
224
+ Ee = !0;
225
225
  var J = Error.prepareStackTrace;
226
226
  Error.prepareStackTrace = void 0;
227
- var Y;
228
- Y = Be.current, Be.current = null, We();
227
+ var K;
228
+ K = Pe.current, Pe.current = null, Ye();
229
229
  try {
230
230
  if (x) {
231
231
  var W = function() {
@@ -238,67 +238,67 @@ function mr() {
238
238
  }), typeof Reflect == "object" && Reflect.construct) {
239
239
  try {
240
240
  Reflect.construct(W, []);
241
- } catch (de) {
242
- z = de;
241
+ } catch (ue) {
242
+ R = ue;
243
243
  }
244
244
  Reflect.construct(t, [], W);
245
245
  } else {
246
246
  try {
247
247
  W.call();
248
- } catch (de) {
249
- z = de;
248
+ } catch (ue) {
249
+ R = ue;
250
250
  }
251
251
  t.call(W.prototype);
252
252
  }
253
253
  } else {
254
254
  try {
255
255
  throw Error();
256
- } catch (de) {
257
- z = de;
256
+ } catch (ue) {
257
+ R = ue;
258
258
  }
259
259
  t();
260
260
  }
261
- } catch (de) {
262
- if (de && z && typeof de.stack == "string") {
263
- for (var U = de.stack.split(`
264
- `), ae = z.stack.split(`
265
- `), q = U.length - 1, te = ae.length - 1; q >= 1 && te >= 0 && U[q] !== ae[te]; )
266
- te--;
267
- for (; q >= 1 && te >= 0; q--, te--)
268
- if (U[q] !== ae[te]) {
269
- if (q !== 1 || te !== 1)
261
+ } catch (ue) {
262
+ if (ue && R && typeof ue.stack == "string") {
263
+ for (var U = ue.stack.split(`
264
+ `), de = R.stack.split(`
265
+ `), q = U.length - 1, ee = de.length - 1; q >= 1 && ee >= 0 && U[q] !== de[ee]; )
266
+ ee--;
267
+ for (; q >= 1 && ee >= 0; q--, ee--)
268
+ if (U[q] !== de[ee]) {
269
+ if (q !== 1 || ee !== 1)
270
270
  do
271
- if (q--, te--, te < 0 || U[q] !== ae[te]) {
272
- var pe = `
271
+ if (q--, ee--, ee < 0 || U[q] !== de[ee]) {
272
+ var xe = `
273
273
  ` + U[q].replace(" at new ", " at ");
274
- return t.displayName && pe.includes("<anonymous>") && (pe = pe.replace("<anonymous>", t.displayName)), typeof t == "function" && Ie.set(t, pe), pe;
274
+ return t.displayName && xe.includes("<anonymous>") && (xe = xe.replace("<anonymous>", t.displayName)), typeof t == "function" && ze.set(t, xe), xe;
275
275
  }
276
- while (q >= 1 && te >= 0);
276
+ while (q >= 1 && ee >= 0);
277
277
  break;
278
278
  }
279
279
  }
280
280
  } finally {
281
- Ae = !1, Be.current = Y, _e(), Error.prepareStackTrace = J;
281
+ Ee = !1, Pe.current = K, He(), Error.prepareStackTrace = J;
282
282
  }
283
- var Ye = t ? t.displayName || t.name : "", He = Ye ? G(Ye) : "";
284
- return typeof t == "function" && Ie.set(t, He), He;
283
+ var Ze = t ? t.displayName || t.name : "", $e = Ze ? G(Ze) : "";
284
+ return typeof t == "function" && ze.set(t, $e), $e;
285
285
  }
286
- function he(t, x, C) {
287
- return Te(t, !1);
286
+ function st(t, x, C) {
287
+ return Me(t, !1);
288
288
  }
289
- function we(t) {
289
+ function fe(t) {
290
290
  var x = t.prototype;
291
291
  return !!(x && x.isReactComponent);
292
292
  }
293
- function fe(t, x, C) {
293
+ function he(t, x, C) {
294
294
  if (t == null)
295
295
  return "";
296
296
  if (typeof t == "function")
297
- return Te(t, we(t));
297
+ return Me(t, fe(t));
298
298
  if (typeof t == "string")
299
299
  return G(t);
300
300
  switch (t) {
301
- case i:
301
+ case c:
302
302
  return G("Suspense");
303
303
  case g:
304
304
  return G("SuspenseList");
@@ -306,78 +306,78 @@ function mr() {
306
306
  if (typeof t == "object")
307
307
  switch (t.$$typeof) {
308
308
  case m:
309
- return he(t.render);
310
- case p:
311
- return fe(t.type, x, C);
309
+ return st(t.render);
310
+ case h:
311
+ return he(t.type, x, C);
312
312
  case b: {
313
- var z = t, J = z._payload, Y = z._init;
313
+ var R = t, J = R._payload, K = R._init;
314
314
  try {
315
- return fe(Y(J), x, C);
315
+ return he(K(J), x, C);
316
316
  } catch {
317
317
  }
318
318
  }
319
319
  }
320
320
  return "";
321
321
  }
322
- var me = Object.prototype.hasOwnProperty, $e = {}, Ce = s.ReactDebugCurrentFrame;
323
- function Ee(t) {
322
+ var ye = Object.prototype.hasOwnProperty, Ve = {}, Ke = s.ReactDebugCurrentFrame;
323
+ function me(t) {
324
324
  if (t) {
325
- var x = t._owner, C = fe(t.type, t._source, x ? x.type : null);
326
- Ce.setExtraStackFrame(C);
325
+ var x = t._owner, C = he(t.type, t._source, x ? x.type : null);
326
+ Ke.setExtraStackFrame(C);
327
327
  } else
328
- Ce.setExtraStackFrame(null);
328
+ Ke.setExtraStackFrame(null);
329
329
  }
330
- function Je(t, x, C, z, J) {
330
+ function ot(t, x, C, R, J) {
331
331
  {
332
- var Y = Function.call.bind(me);
332
+ var K = Function.call.bind(ye);
333
333
  for (var W in t)
334
- if (Y(t, W)) {
334
+ if (K(t, W)) {
335
335
  var U = void 0;
336
336
  try {
337
337
  if (typeof t[W] != "function") {
338
- var ae = Error((z || "React class") + ": " + C + " type `" + W + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof t[W] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
339
- throw ae.name = "Invariant Violation", ae;
338
+ var de = Error((R || "React class") + ": " + C + " type `" + W + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof t[W] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
339
+ throw de.name = "Invariant Violation", de;
340
340
  }
341
- U = t[W](x, W, z, C, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
341
+ U = t[W](x, W, R, C, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
342
342
  } catch (q) {
343
343
  U = q;
344
344
  }
345
- U && !(U instanceof Error) && (Ee(J), S("%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, W, typeof U), Ee(null)), U instanceof Error && !(U.message in $e) && ($e[U.message] = !0, Ee(J), S("Failed %s type: %s", C, U.message), Ee(null));
345
+ U && !(U instanceof Error) && (me(J), S("%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, W, typeof U), me(null)), U instanceof Error && !(U.message in Ve) && (Ve[U.message] = !0, me(J), S("Failed %s type: %s", C, U.message), me(null));
346
346
  }
347
347
  }
348
348
  }
349
- var Ze = Array.isArray;
350
- function De(t) {
351
- return Ze(t);
349
+ var Xe = Array.isArray;
350
+ function Ue(t) {
351
+ return Xe(t);
352
352
  }
353
- function et(t) {
353
+ function it(t) {
354
354
  {
355
355
  var x = typeof Symbol == "function" && Symbol.toStringTag, C = x && t[Symbol.toStringTag] || t.constructor.name || "Object";
356
356
  return C;
357
357
  }
358
358
  }
359
- function tt(t) {
359
+ function ct(t) {
360
360
  try {
361
- return Fe(t), !1;
361
+ return Qe(t), !1;
362
362
  } catch {
363
363
  return !0;
364
364
  }
365
365
  }
366
- function Fe(t) {
366
+ function Qe(t) {
367
367
  return "" + t;
368
368
  }
369
- function Se(t) {
370
- if (tt(t))
371
- return S("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", et(t)), Fe(t);
369
+ function Re(t) {
370
+ if (ct(t))
371
+ return S("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", it(t)), Qe(t);
372
372
  }
373
373
  var k = s.ReactCurrentOwner, O = {
374
374
  key: !0,
375
375
  ref: !0,
376
376
  __self: !0,
377
377
  __source: !0
378
- }, K, P;
379
- function ee(t) {
380
- if (me.call(t, "ref")) {
378
+ }, Y, F;
379
+ function te(t) {
380
+ if (ye.call(t, "ref")) {
381
381
  var x = Object.getOwnPropertyDescriptor(t, "ref").get;
382
382
  if (x && x.isReactWarning)
383
383
  return !1;
@@ -385,20 +385,20 @@ function mr() {
385
385
  return t.ref !== void 0;
386
386
  }
387
387
  function ve(t) {
388
- if (me.call(t, "key")) {
388
+ if (ye.call(t, "key")) {
389
389
  var x = Object.getOwnPropertyDescriptor(t, "key").get;
390
390
  if (x && x.isReactWarning)
391
391
  return !1;
392
392
  }
393
393
  return t.key !== void 0;
394
394
  }
395
- function re(t, x) {
395
+ function we(t, x) {
396
396
  typeof t.ref == "string" && k.current;
397
397
  }
398
- function ke(t, x) {
398
+ function oe(t, x) {
399
399
  {
400
400
  var C = function() {
401
- K || (K = !0, S("%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));
401
+ Y || (Y = !0, S("%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
402
  };
403
403
  C.isReactWarning = !0, Object.defineProperty(t, "key", {
404
404
  get: C,
@@ -406,10 +406,10 @@ function mr() {
406
406
  });
407
407
  }
408
408
  }
409
- function Pe(t, x) {
409
+ function qe(t, x) {
410
410
  {
411
411
  var C = function() {
412
- P || (P = !0, S("%s: `ref` 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));
412
+ F || (F = !0, S("%s: `ref` 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));
413
413
  };
414
414
  C.isReactWarning = !0, Object.defineProperty(t, "ref", {
415
415
  get: C,
@@ -417,7 +417,7 @@ function mr() {
417
417
  });
418
418
  }
419
419
  }
420
- var Ge = function(t, x, C, z, J, Y, W) {
420
+ var We = function(t, x, C, R, J, K, W) {
421
421
  var U = {
422
422
  // This tag allows us to uniquely identify this as a React Element
423
423
  $$typeof: r,
@@ -427,7 +427,7 @@ function mr() {
427
427
  ref: C,
428
428
  props: W,
429
429
  // Record the component responsible for creating this element.
430
- _owner: Y
430
+ _owner: K
431
431
  };
432
432
  return U._store = {}, Object.defineProperty(U._store, "validated", {
433
433
  configurable: !1,
@@ -438,7 +438,7 @@ function mr() {
438
438
  configurable: !1,
439
439
  enumerable: !1,
440
440
  writable: !1,
441
- value: z
441
+ value: R
442
442
  }), Object.defineProperty(U, "_source", {
443
443
  configurable: !1,
444
444
  enumerable: !1,
@@ -446,41 +446,41 @@ function mr() {
446
446
  value: J
447
447
  }), Object.freeze && (Object.freeze(U.props), Object.freeze(U)), U;
448
448
  };
449
- function a(t, x, C, z, J) {
449
+ function Ce(t, x, C, R, J) {
450
450
  {
451
- var Y, W = {}, U = null, ae = null;
452
- C !== void 0 && (Se(C), U = "" + C), ve(x) && (Se(x.key), U = "" + x.key), ee(x) && (ae = x.ref, re(x, J));
453
- for (Y in x)
454
- me.call(x, Y) && !O.hasOwnProperty(Y) && (W[Y] = x[Y]);
451
+ var K, W = {}, U = null, de = null;
452
+ C !== void 0 && (Re(C), U = "" + C), ve(x) && (Re(x.key), U = "" + x.key), te(x) && (de = x.ref, we(x, J));
453
+ for (K in x)
454
+ ye.call(x, K) && !O.hasOwnProperty(K) && (W[K] = x[K]);
455
455
  if (t && t.defaultProps) {
456
456
  var q = t.defaultProps;
457
- for (Y in q)
458
- W[Y] === void 0 && (W[Y] = q[Y]);
457
+ for (K in q)
458
+ W[K] === void 0 && (W[K] = q[K]);
459
459
  }
460
- if (U || ae) {
461
- var te = typeof t == "function" ? t.displayName || t.name || "Unknown" : t;
462
- U && ke(W, te), ae && Pe(W, te);
460
+ if (U || de) {
461
+ var ee = typeof t == "function" ? t.displayName || t.name || "Unknown" : t;
462
+ U && oe(W, ee), de && qe(W, ee);
463
463
  }
464
- return Ge(t, U, ae, J, z, k.current, W);
464
+ return We(t, U, de, J, R, k.current, W);
465
465
  }
466
466
  }
467
- var N = s.ReactCurrentOwner, T = s.ReactDebugCurrentFrame;
468
- function w(t) {
467
+ var i = s.ReactCurrentOwner, A = s.ReactDebugCurrentFrame;
468
+ function N(t) {
469
469
  if (t) {
470
- var x = t._owner, C = fe(t.type, t._source, x ? x.type : null);
471
- T.setExtraStackFrame(C);
470
+ var x = t._owner, C = he(t.type, t._source, x ? x.type : null);
471
+ A.setExtraStackFrame(C);
472
472
  } else
473
- T.setExtraStackFrame(null);
473
+ A.setExtraStackFrame(null);
474
474
  }
475
- var $;
476
- $ = !1;
477
- function X(t) {
475
+ var w;
476
+ w = !1;
477
+ function $(t) {
478
478
  return typeof t == "object" && t !== null && t.$$typeof === r;
479
479
  }
480
- function _() {
480
+ function X() {
481
481
  {
482
- if (N.current) {
483
- var t = ne(N.current.type);
482
+ if (i.current) {
483
+ var t = re(i.current.type);
484
484
  if (t)
485
485
  return `
486
486
 
@@ -489,13 +489,13 @@ Check the render method of \`` + t + "`.";
489
489
  return "";
490
490
  }
491
491
  }
492
- function F(t) {
492
+ function P(t) {
493
493
  return "";
494
494
  }
495
- var ut = {};
496
- function Pt(t) {
495
+ var T = {};
496
+ function le(t) {
497
497
  {
498
- var x = _();
498
+ var x = X();
499
499
  if (!x) {
500
500
  var C = typeof t == "string" ? t : t.displayName || t.name;
501
501
  C && (x = `
@@ -505,39 +505,39 @@ Check the top-level render call using <` + C + ">.");
505
505
  return x;
506
506
  }
507
507
  }
508
- function ft(t, x) {
508
+ function ie(t, x) {
509
509
  {
510
510
  if (!t._store || t._store.validated || t.key != null)
511
511
  return;
512
512
  t._store.validated = !0;
513
- var C = Pt(x);
514
- if (ut[C])
513
+ var C = le(x);
514
+ if (T[C])
515
515
  return;
516
- ut[C] = !0;
517
- var z = "";
518
- t && t._owner && t._owner !== N.current && (z = " It was passed a child from " + ne(t._owner.type) + "."), w(t), S('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), w(null);
516
+ T[C] = !0;
517
+ var R = "";
518
+ t && t._owner && t._owner !== i.current && (R = " It was passed a child from " + re(t._owner.type) + "."), N(t), S('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), N(null);
519
519
  }
520
520
  }
521
- function xt(t, x) {
521
+ function Le(t, x) {
522
522
  {
523
523
  if (typeof t != "object")
524
524
  return;
525
- if (De(t))
525
+ if (Ue(t))
526
526
  for (var C = 0; C < t.length; C++) {
527
- var z = t[C];
528
- X(z) && ft(z, x);
527
+ var R = t[C];
528
+ $(R) && ie(R, x);
529
529
  }
530
- else if (X(t))
530
+ else if ($(t))
531
531
  t._store && (t._store.validated = !0);
532
532
  else if (t) {
533
533
  var J = v(t);
534
534
  if (typeof J == "function" && J !== t.entries)
535
- for (var Y = J.call(t), W; !(W = Y.next()).done; )
536
- X(W.value) && ft(W.value, x);
535
+ for (var K = J.call(t), W; !(W = K.next()).done; )
536
+ $(W.value) && ie(W.value, x);
537
537
  }
538
538
  }
539
539
  }
540
- function Ht(t) {
540
+ function Oe(t) {
541
541
  {
542
542
  var x = t.type;
543
543
  if (x == null || typeof x == "string")
@@ -547,91 +547,91 @@ Check the top-level render call using <` + C + ">.");
547
547
  C = x.propTypes;
548
548
  else if (typeof x == "object" && (x.$$typeof === m || // Note: Memo only checks outer props here.
549
549
  // Inner props are checked in the reconciler.
550
- x.$$typeof === p))
550
+ x.$$typeof === h))
551
551
  C = x.propTypes;
552
552
  else
553
553
  return;
554
554
  if (C) {
555
- var z = ne(x);
556
- Je(C, t.props, "prop", z, t);
557
- } else if (x.PropTypes !== void 0 && !$) {
558
- $ = !0;
559
- var J = ne(x);
555
+ var R = re(x);
556
+ ot(C, t.props, "prop", R, t);
557
+ } else if (x.PropTypes !== void 0 && !w) {
558
+ w = !0;
559
+ var J = re(x);
560
560
  S("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", J || "Unknown");
561
561
  }
562
562
  typeof x.getDefaultProps == "function" && !x.getDefaultProps.isReactClassApproved && S("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
563
563
  }
564
564
  }
565
- function Vt(t) {
565
+ function Ae(t) {
566
566
  {
567
567
  for (var x = Object.keys(t.props), C = 0; C < x.length; C++) {
568
- var z = x[C];
569
- if (z !== "children" && z !== "key") {
570
- w(t), S("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", z), w(null);
568
+ var R = x[C];
569
+ if (R !== "children" && R !== "key") {
570
+ N(t), S("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", R), N(null);
571
571
  break;
572
572
  }
573
573
  }
574
- t.ref !== null && (w(t), S("Invalid attribute `ref` supplied to `React.Fragment`."), w(null));
574
+ t.ref !== null && (N(t), S("Invalid attribute `ref` supplied to `React.Fragment`."), N(null));
575
575
  }
576
576
  }
577
- var gt = {};
578
- function mt(t, x, C, z, J, Y) {
577
+ var jt = {};
578
+ function bt(t, x, C, R, J, K) {
579
579
  {
580
580
  var W = Q(t);
581
581
  if (!W) {
582
582
  var U = "";
583
583
  (t === void 0 || typeof t == "object" && t !== null && Object.keys(t).length === 0) && (U += " 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 ae = F();
585
- ae ? U += ae : U += _();
584
+ var de = P();
585
+ de ? U += de : U += X();
586
586
  var q;
587
- t === null ? q = "null" : De(t) ? q = "array" : t !== void 0 && t.$$typeof === r ? (q = "<" + (ne(t.type) || "Unknown") + " />", U = " Did you accidentally export a JSX literal instead of a component?") : q = typeof t, S("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", q, U);
587
+ t === null ? q = "null" : Ue(t) ? q = "array" : t !== void 0 && t.$$typeof === r ? (q = "<" + (re(t.type) || "Unknown") + " />", U = " Did you accidentally export a JSX literal instead of a component?") : q = typeof t, S("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", q, U);
588
588
  }
589
- var te = a(t, x, C, J, Y);
590
- if (te == null)
591
- return te;
589
+ var ee = Ce(t, x, C, J, K);
590
+ if (ee == null)
591
+ return ee;
592
592
  if (W) {
593
- var pe = x.children;
594
- if (pe !== void 0)
595
- if (z)
596
- if (De(pe)) {
597
- for (var Ye = 0; Ye < pe.length; Ye++)
598
- xt(pe[Ye], t);
599
- Object.freeze && Object.freeze(pe);
593
+ var xe = x.children;
594
+ if (xe !== void 0)
595
+ if (R)
596
+ if (Ue(xe)) {
597
+ for (var Ze = 0; Ze < xe.length; Ze++)
598
+ Le(xe[Ze], t);
599
+ Object.freeze && Object.freeze(xe);
600
600
  } else
601
601
  S("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
602
602
  else
603
- xt(pe, t);
603
+ Le(xe, t);
604
604
  }
605
- if (me.call(x, "key")) {
606
- var He = ne(t), de = Object.keys(x).filter(function(Yt) {
605
+ if (ye.call(x, "key")) {
606
+ var $e = re(t), ue = Object.keys(x).filter(function(Yt) {
607
607
  return Yt !== "key";
608
- }), ht = de.length > 0 ? "{key: someKey, " + de.join(": ..., ") + ": ...}" : "{key: someKey}";
609
- if (!gt[He + ht]) {
610
- var Gt = de.length > 0 ? "{" + de.join(": ..., ") + ": ...}" : "{}";
608
+ }), mt = ue.length > 0 ? "{key: someKey, " + ue.join(": ..., ") + ": ...}" : "{key: someKey}";
609
+ if (!jt[$e + mt]) {
610
+ var Gt = ue.length > 0 ? "{" + ue.join(": ..., ") + ": ...}" : "{}";
611
611
  S(`A props object containing a "key" prop is being spread into JSX:
612
612
  let props = %s;
613
613
  <%s {...props} />
614
614
  React keys must be passed directly to JSX without using spread:
615
615
  let props = %s;
616
- <%s key={someKey} {...props} />`, ht, He, Gt, He), gt[He + ht] = !0;
616
+ <%s key={someKey} {...props} />`, mt, $e, Gt, $e), jt[$e + mt] = !0;
617
617
  }
618
618
  }
619
- return t === c ? Vt(te) : Ht(te), te;
619
+ return t === a ? Ae(ee) : Oe(ee), ee;
620
620
  }
621
621
  }
622
622
  function Ut(t, x, C) {
623
- return mt(t, x, C, !0);
623
+ return bt(t, x, C, !0);
624
624
  }
625
625
  function Wt(t, x, C) {
626
- return mt(t, x, C, !1);
626
+ return bt(t, x, C, !1);
627
627
  }
628
628
  var $t = Wt, Jt = Ut;
629
- nt.Fragment = c, nt.jsx = $t, nt.jsxs = Jt;
630
- }()), nt;
629
+ lt.Fragment = a, lt.jsx = $t, lt.jsxs = Jt;
630
+ }()), lt;
631
631
  }
632
- var yt;
632
+ var St;
633
633
  function vr() {
634
- return yt || (yt = 1, process.env.NODE_ENV === "production" ? ot.exports = gr() : ot.exports = mr()), ot.exports;
634
+ return St || (St = 1, process.env.NODE_ENV === "production" ? pt.exports = gr() : pt.exports = mr()), pt.exports;
635
635
  }
636
636
  var e = vr();
637
637
  const jr = {
@@ -639,75 +639,75 @@ const jr = {
639
639
  primaryColorLight: "#6858c1",
640
640
  secondaryColor: "#005a53",
641
641
  tertiaryColor: "#FFFFFF"
642
- }, br = "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", yr = "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", wr = "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", Cr = "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", Sr = "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", kr = "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", Nr = "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", Or = "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", pt = "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", Ar = "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", Ir = "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", Tr = "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", Er = "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", Mr = "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", Tt = "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", Et = "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", zr = "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", Rr = "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", Lr = "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", _r = "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", Br = "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", Dr = "M0 224h192V32H0v192zM64 96h64v64H64V96zm192-64v192h192V32H256zm128 128h-64V96h64v64zM0 480h192V288H0v192zm64-128h64v64H64v-64zm352-64h32v128h-96v-32h-32v96h-64V288h96v32h64v-32zm0 160h32v32h-32v-32zm-64 0h32v32h-32v-32z", Fr = "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", Pr = "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", _t = "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", Hr = "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", Vr = "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", Ur = "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", Wr = "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", $r = "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", Jr = "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", Gr = "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", Yr = "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", Kr = "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", Xr = "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", Bt = "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", Qr = "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", qr = "apcDB", Ne = "APCObjectStore", Zr = 1;
643
- function ct() {
642
+ }, br = "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", yr = "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", wr = "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", Cr = "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", Sr = "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", kr = "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", Nr = "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", Or = "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", kt = "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", Nt = "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", vt = "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", Ot = "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", Ar = "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", Ir = "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", Tr = "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", Er = "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", At = "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", It = "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", Tt = "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", Et = "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", zt = "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", zr = "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", Mt = "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", Rt = "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", Lt = "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", _t = "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", Mr = "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", Rr = "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", Lr = "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", _r = "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", Br = "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", Dr = "M0 224h192V32H0v192zM64 96h64v64H64V96zm192-64v192h192V32H256zm128 128h-64V96h64v64zM0 480h192V288H0v192zm64-128h64v64H64v-64zm352-64h32v128h-96v-32h-32v96h-64V288h96v32h64v-32zm0 160h32v32h-32v-32zm-64 0h32v32h-32v-32z", Fr = "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", Hr = "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", Ft = "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", Pr = "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", Vr = "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", Ur = "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", Wr = "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", $r = "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", Jr = "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", Gr = "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", Yr = "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", Kr = "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", Xr = "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", Ht = "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", Qr = "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", qr = "apcDB", Ie = "APCObjectStore", Zr = 1;
643
+ function ut() {
644
644
  return new Promise((y, r) => {
645
645
  const n = indexedDB.open(qr, Zr);
646
- n.onupgradeneeded = function(c) {
647
- let l = c.target.result, d;
648
- l.objectStoreNames.contains(Ne) ? d = n.transaction.objectStore(Ne) : d = l.createObjectStore(Ne, { keyPath: "id" }), d.indexNames.contains("nameIndex") || d.createIndex("nameIndex", "name", { unique: !1 });
649
- }, n.onsuccess = function(c) {
650
- y(c.target.result);
651
- }, n.onerror = function(c) {
652
- r("Database error: " + c.target.errorCode);
646
+ n.onupgradeneeded = function(a) {
647
+ let l = a.target.result, d;
648
+ l.objectStoreNames.contains(Ie) ? d = n.transaction.objectStore(Ie) : d = l.createObjectStore(Ie, { keyPath: "id" }), d.indexNames.contains("nameIndex") || d.createIndex("nameIndex", "name", { unique: !1 });
649
+ }, n.onsuccess = function(a) {
650
+ y(a.target.result);
651
+ }, n.onerror = function(a) {
652
+ r("Database error: " + a.target.errorCode);
653
653
  };
654
654
  });
655
655
  }
656
- function Ve(y, r, n, c) {
657
- return ct().then((l) => new Promise((d, f) => {
658
- const h = l.transaction(["APCObjectStore"], "readwrite"), m = h.objectStore("APCObjectStore"), i = { id: y, classification: r, content: n, misc: c }, g = m.put(i);
659
- g.onsuccess = () => d(g.result), g.onerror = () => f(g.error), h.oncomplete = () => l.close();
656
+ function Je(y, r, n, a) {
657
+ return ut().then((l) => new Promise((d, f) => {
658
+ const p = l.transaction(["APCObjectStore"], "readwrite"), m = p.objectStore("APCObjectStore"), c = { id: y, classification: r, content: n, misc: a }, g = m.put(c);
659
+ g.onsuccess = () => d(g.result), g.onerror = () => f(g.error), p.oncomplete = () => l.close();
660
660
  }));
661
661
  }
662
- function Xe(y) {
663
- return ct().then((r) => new Promise((n, c) => {
664
- const l = r.transaction([Ne], "readonly"), f = l.objectStore(Ne).get(y);
665
- f.onsuccess = () => n(f.result), f.onerror = () => c(f.error), l.oncomplete = () => r.close();
662
+ function tt(y) {
663
+ return ut().then((r) => new Promise((n, a) => {
664
+ const l = r.transaction([Ie], "readonly"), f = l.objectStore(Ie).get(y);
665
+ f.onsuccess = () => n(f.result), f.onerror = () => a(f.error), l.oncomplete = () => r.close();
666
666
  }));
667
667
  }
668
668
  function en(y) {
669
- return ct().then((r) => new Promise((n, c) => {
670
- const l = r.transaction([Ne], "readwrite"), f = l.objectStore(Ne).delete(y);
671
- f.onsuccess = () => n(), f.onerror = () => c(f.error), l.oncomplete = () => r.close();
669
+ return ut().then((r) => new Promise((n, a) => {
670
+ const l = r.transaction([Ie], "readwrite"), f = l.objectStore(Ie).delete(y);
671
+ f.onsuccess = () => n(), f.onerror = () => a(f.error), l.oncomplete = () => r.close();
672
672
  }));
673
673
  }
674
- function Me(y = null) {
675
- return ct().then((r) => new Promise((n, c) => {
676
- const l = r.transaction([Ne], "readonly"), f = l.objectStore(Ne).openCursor(), h = [];
674
+ function _e(y = null) {
675
+ return ut().then((r) => new Promise((n, a) => {
676
+ const l = r.transaction([Ie], "readonly"), f = l.objectStore(Ie).openCursor(), p = [];
677
677
  f.onsuccess = (m) => {
678
- const i = m.target.result;
679
- i ? ((!y || y(i.value)) && h.push(i.value), i.continue()) : n(h);
678
+ const c = m.target.result;
679
+ c ? ((!y || y(c.value)) && p.push(c.value), c.continue()) : n(p);
680
680
  }, f.onerror = (m) => {
681
- c("Failed to retrieve items: " + m.target.errorCode);
681
+ a("Failed to retrieve items: " + m.target.errorCode);
682
682
  }, l.oncomplete = () => {
683
683
  r.close();
684
684
  };
685
685
  }));
686
686
  }
687
687
  function tn(y) {
688
- const { currentTabNo: r, theme: n, apcCanvasInstance: c, apiEndpoint: l, reloadTabs: d, updateActiveSection: f, initCategory: h, initInstance: m, apiKey: i, setActiveTab: g } = y, [p, b] = M(), [o, j] = M(h || "Hats"), [u, v] = M(!1), [s, S] = M(), B = `${l}/api/v1/designer`;
689
- ce(() => {
690
- E();
691
- }, []), ce(() => {
692
- c && m && m.fabricID && L(m.fabricID);
688
+ const { currentTabNo: r, theme: n, apcCanvasInstance: a, apiEndpoint: l, reloadTabs: d, updateActiveSection: f, initCategory: p, initInstance: m, apiKey: c, setActiveTab: g } = y, [h, b] = M(), [o, j] = M(p || "Hats"), [u, v] = M(!1), [s, S] = M(), B = `${l}/api/v1/designer`;
689
+ ae(() => {
690
+ z();
691
+ }, []), ae(() => {
692
+ a && m && m.fabricID && _(m.fabricID);
693
693
  }, [m]);
694
- const E = () => {
694
+ const z = () => {
695
695
  v(!0);
696
- const R = `${B}/search-designs-images/${o}`;
697
- je.get(R).then((A) => {
698
- v(!1), A.data.object.length > 0 ? b(A.data) : S("No matching results found");
699
- }).catch((A) => {
700
- v(!1), console.error("Error fetching data:", A);
696
+ const L = `${B}/search-designs-images/${o}`;
697
+ Se.get(L).then((I) => {
698
+ v(!1), I.data.object.length > 0 ? b(I.data) : S("No matching results found");
699
+ }).catch((I) => {
700
+ v(!1), console.error("Error fetching data:", I);
701
701
  });
702
- }, L = (R) => {
703
- const A = B + "/find-public-design/" + R;
704
- je.get(A).then((V) => {
702
+ }, _ = (L) => {
703
+ const I = B + "/find-public-design/" + L;
704
+ Se.get(I).then((V) => {
705
705
  const { object: Q } = V == null ? void 0 : V.data;
706
706
  Q && (window.location.href = `/design-center/${Q.pdid}`);
707
707
  }).catch((V) => {
708
708
  console.error("Error fetching data:", V);
709
709
  });
710
- }, H = () => p ? p.object.map((R, A) => /* @__PURE__ */ e.jsx(I.Fragment, { children: /* @__PURE__ */ e.jsxs(
710
+ }, H = () => h ? h.object.map((L, I) => /* @__PURE__ */ e.jsx(E.Fragment, { children: /* @__PURE__ */ e.jsxs(
711
711
  "div",
712
712
  {
713
713
  style: {
@@ -720,7 +720,7 @@ function tn(y) {
720
720
  },
721
721
  tabIndex: 0,
722
722
  className: "apc-mpx-widget-responsive-image-container",
723
- onClick: () => L(R.fabricID),
723
+ onClick: () => _(L.fabricID),
724
724
  children: [
725
725
  /* @__PURE__ */ e.jsxs(
726
726
  "div",
@@ -736,23 +736,23 @@ function tn(y) {
736
736
  },
737
737
  children: [
738
738
  "$",
739
- R.product.price
739
+ L.product.price
740
740
  ]
741
741
  }
742
742
  ),
743
743
  /* @__PURE__ */ e.jsx(
744
744
  "img",
745
745
  {
746
- src: R.imageURL,
747
- alt: R.description,
746
+ src: L.imageURL,
747
+ alt: L.description,
748
748
  className: "apc-mpx-widget-responsive-image"
749
749
  }
750
750
  ),
751
- /* @__PURE__ */ e.jsx("div", { children: R.product.name })
751
+ /* @__PURE__ */ e.jsx("div", { children: L.product.name })
752
752
  ]
753
753
  }
754
- ) }, A)) : null;
755
- return /* @__PURE__ */ e.jsxs(I.Fragment, { children: [
754
+ ) }, I)) : null;
755
+ return /* @__PURE__ */ e.jsxs(E.Fragment, { children: [
756
756
  /* @__PURE__ */ e.jsx("br", {}),
757
757
  /* @__PURE__ */ e.jsxs("div", { style: { display: "flex", flexDirection: "row" }, children: [
758
758
  /* @__PURE__ */ e.jsx("div", { children: /* @__PURE__ */ e.jsx(
@@ -760,7 +760,7 @@ function tn(y) {
760
760
  {
761
761
  placeholder: "Search templates",
762
762
  type: "text",
763
- onChange: (R) => j(R.target.value),
763
+ onChange: (L) => j(L.target.value),
764
764
  className: "apc-mpc-widget-input",
765
765
  style: { border: `solid 3px ${n.primaryColor}`, height: "40px" }
766
766
  }
@@ -769,7 +769,7 @@ function tn(y) {
769
769
  "button",
770
770
  {
771
771
  className: "apc-mpc-widget-btn",
772
- onClick: () => E(),
772
+ onClick: () => z(),
773
773
  style: {
774
774
  backgroundColor: n.primaryColor,
775
775
  color: "#ffffff",
@@ -852,7 +852,7 @@ const rn = {
852
852
  cursor: "pointer"
853
853
  };
854
854
  function ln(y) {
855
- const { apcCanvasInstance: r, isMobile: n, closeMobileModalSecondaryPanel: c } = y, l = (o, j) => {
855
+ const { apcCanvasInstance: r, isMobile: n, closeMobileModalSecondaryPanel: a } = y, l = (o, j) => {
856
856
  const u = new D.Textbox("Stay Humble!", {
857
857
  width: 300,
858
858
  left: 200,
@@ -861,7 +861,7 @@ function ln(y) {
861
861
  fill: j,
862
862
  hasControls: !0
863
863
  });
864
- r.add(u), r.setActiveObject(u), n && c(!0);
864
+ r.add(u), r.setActiveObject(u), n && a(!0);
865
865
  }, d = ({ primaryTextLabel: o, primaryTextFontFamily: j, primaryTextColor: u, secondaryTextLabel: v, SecondaryTextFontFamily: s, secondaryTextColor: S }) => {
866
866
  const B = new D.Textbox(o, {
867
867
  fontFamily: j,
@@ -869,13 +869,13 @@ function ln(y) {
869
869
  left: 200,
870
870
  top: 200,
871
871
  fill: u
872
- }), E = new D.Textbox(v, {
872
+ }), z = new D.Textbox(v, {
873
873
  fontFamily: s,
874
874
  fill: S,
875
875
  fontSize: 12,
876
876
  width: 150
877
877
  });
878
- E.top = B.top + B.height + 10, E.left = B.left, r.add(B), r.add(E), r.setActiveObject(B), n && c(!0);
878
+ z.top = B.top + B.height + 10, z.left = B.left, r.add(B), r.add(z), r.setActiveObject(B), n && a(!0);
879
879
  }, f = (o, j) => {
880
880
  const u = new D.Textbox("Adventure Awaits!", {
881
881
  width: 300,
@@ -893,8 +893,8 @@ function ln(y) {
893
893
  offsetY: 5
894
894
  // Vertical offset of shadow
895
895
  };
896
- u.shadow = v, r.add(u), r.setActiveObject(u), n && c(!0);
897
- }, h = () => {
896
+ u.shadow = v, r.add(u), r.setActiveObject(u), n && a(!0);
897
+ }, p = () => {
898
898
  const o = new D.Textbox("Love More", {
899
899
  left: 100,
900
900
  top: 100,
@@ -911,7 +911,7 @@ function ln(y) {
911
911
  ]
912
912
  })
913
913
  });
914
- r.add(o), r.setActiveObject(o), n && c(!0);
914
+ r.add(o), r.setActiveObject(o), n && a(!0);
915
915
  }, m = () => {
916
916
  const o = new D.Textbox("Good Vibes Only", {
917
917
  left: 150,
@@ -923,8 +923,8 @@ function ln(y) {
923
923
  stroke: "#ff0000",
924
924
  strokeWidth: 2
925
925
  });
926
- r.add(o), r.setActiveObject(o), n && c(!0);
927
- }, i = () => {
926
+ r.add(o), r.setActiveObject(o), n && a(!0);
927
+ }, c = () => {
928
928
  const o = new D.Textbox("Dream Big", {
929
929
  left: 300,
930
930
  top: 300,
@@ -934,7 +934,7 @@ function ln(y) {
934
934
  skewX: 20,
935
935
  skewY: 10
936
936
  });
937
- r.add(o), r.setActiveObject(o), n && c(!0);
937
+ r.add(o), r.setActiveObject(o), n && a(!0);
938
938
  }, g = () => {
939
939
  const o = new D.Textbox("Choose Joy", {
940
940
  left: 350,
@@ -943,8 +943,8 @@ function ln(y) {
943
943
  fill: "#000",
944
944
  opacity: 0.5
945
945
  });
946
- r.add(o), r.setActiveObject(o), n && c(!0);
947
- }, p = () => {
946
+ r.add(o), r.setActiveObject(o), n && a(!0);
947
+ }, h = () => {
948
948
  const o = new D.Textbox("Find Your Fire", {
949
949
  left: 550,
950
950
  top: 550,
@@ -952,7 +952,7 @@ function ln(y) {
952
952
  fill: "#000",
953
953
  shadow: "yellow 0 0 10px"
954
954
  });
955
- r.add(o), r.setActiveObject(o), n && c(!0);
955
+ r.add(o), r.setActiveObject(o), n && a(!0);
956
956
  }, b = () => {
957
957
  const o = new D.Textbox("Be Kind", {
958
958
  left: 650,
@@ -961,9 +961,9 @@ function ln(y) {
961
961
  fill: "#000",
962
962
  backgroundColor: "orange"
963
963
  });
964
- r.add(o), r.setActiveObject(o), n && c(!0);
964
+ r.add(o), r.setActiveObject(o), n && a(!0);
965
965
  };
966
- return /* @__PURE__ */ e.jsx(I.Fragment, { children: /* @__PURE__ */ e.jsxs("div", { style: { display: "flex", flexDirection: "column", gap: 8 }, children: [
966
+ return /* @__PURE__ */ e.jsx(E.Fragment, { children: /* @__PURE__ */ e.jsxs("div", { style: { display: "flex", flexDirection: "column", gap: 8 }, children: [
967
967
  /* @__PURE__ */ e.jsx(
968
968
  "div",
969
969
  {
@@ -1044,41 +1044,41 @@ function ln(y) {
1044
1044
  }, children: "Adventure Awaits " })
1045
1045
  }
1046
1046
  ),
1047
- /* @__PURE__ */ e.jsx("div", { onClick: () => h(), style: rn, children: "Love More" }),
1047
+ /* @__PURE__ */ e.jsx("div", { onClick: () => p(), style: rn, children: "Love More" }),
1048
1048
  /* @__PURE__ */ e.jsx("div", { onClick: () => m(), style: nn, children: "Good Vibes Only" }),
1049
- /* @__PURE__ */ e.jsx("div", { onClick: () => i(), style: sn, children: "Dream Big" }),
1050
- /* @__PURE__ */ e.jsx("div", { onClick: () => p(), style: on, children: "Find Your Fire" }),
1049
+ /* @__PURE__ */ e.jsx("div", { onClick: () => c(), style: sn, children: "Dream Big" }),
1050
+ /* @__PURE__ */ e.jsx("div", { onClick: () => h(), style: on, children: "Find Your Fire" }),
1051
1051
  /* @__PURE__ */ e.jsx("div", { onClick: () => b(), style: cn, children: "Be Kind" }),
1052
1052
  /* @__PURE__ */ e.jsx("div", { onClick: () => g(), style: an, children: "Choose Joy" })
1053
1053
  ] }) });
1054
1054
  }
1055
- const Dt = async (y) => {
1055
+ const Pt = async (y) => {
1056
1056
  try {
1057
1057
  const n = await (await fetch(y)).blob();
1058
- return new Promise((c, l) => {
1058
+ return new Promise((a, l) => {
1059
1059
  const d = new FileReader();
1060
- d.onloadend = () => c(d.result), d.onerror = l, d.readAsDataURL(n);
1060
+ d.onloadend = () => a(d.result), d.onerror = l, d.readAsDataURL(n);
1061
1061
  });
1062
1062
  } catch (r) {
1063
1063
  throw console.error("Error converting image to base64:", r), r;
1064
1064
  }
1065
1065
  };
1066
1066
  function dn({ apcCanvasInstance: y, theme: r }) {
1067
- const [n, c] = M(!1), l = (i) => {
1068
- const g = i.target.files[0];
1067
+ const [n, a] = M(!1), l = (c) => {
1068
+ const g = c.target.files[0];
1069
1069
  if (g) {
1070
- const p = new FileReader();
1071
- p.onload = (b) => f(b.target.result), p.readAsDataURL(g);
1070
+ const h = new FileReader();
1071
+ h.onload = (b) => f(b.target.result), h.readAsDataURL(g);
1072
1072
  }
1073
- }, d = (i) => {
1074
- i.preventDefault(), c(!1);
1075
- const g = i.dataTransfer.files[0];
1073
+ }, d = (c) => {
1074
+ c.preventDefault(), a(!1);
1075
+ const g = c.dataTransfer.files[0];
1076
1076
  if (g) {
1077
- const p = new FileReader();
1078
- p.onload = (b) => f(b.target.result), p.readAsDataURL(g);
1077
+ const h = new FileReader();
1078
+ h.onload = (b) => f(b.target.result), h.readAsDataURL(g);
1079
1079
  }
1080
- }, f = (i) => {
1081
- D.Image.fromURL(i, (g) => {
1080
+ }, f = (c) => {
1081
+ D.Image.fromURL(c, (g) => {
1082
1082
  g.set({
1083
1083
  left: 100,
1084
1084
  top: 100,
@@ -1086,10 +1086,10 @@ function dn({ apcCanvasInstance: y, theme: r }) {
1086
1086
  scaleY: 0.5
1087
1087
  }), y.add(g);
1088
1088
  });
1089
- }, h = (i) => {
1090
- i.preventDefault(), c(!0);
1089
+ }, p = (c) => {
1090
+ c.preventDefault(), a(!0);
1091
1091
  }, m = () => {
1092
- c(!1);
1092
+ a(!1);
1093
1093
  };
1094
1094
  return /* @__PURE__ */ e.jsxs(
1095
1095
  "div",
@@ -1106,7 +1106,7 @@ function dn({ apcCanvasInstance: y, theme: r }) {
1106
1106
  position: "relative"
1107
1107
  // For overlaying the icon
1108
1108
  },
1109
- onDragOver: h,
1109
+ onDragOver: p,
1110
1110
  onDragLeave: m,
1111
1111
  onDrop: d,
1112
1112
  onClick: () => document.getElementById("file-input").click(),
@@ -1144,7 +1144,7 @@ function dn({ apcCanvasInstance: y, theme: r }) {
1144
1144
  width: "18",
1145
1145
  viewBox: "0 0 512 512",
1146
1146
  style: { fill: r.primaryColor },
1147
- children: /* @__PURE__ */ e.jsx("path", { d: Bt })
1147
+ children: /* @__PURE__ */ e.jsx("path", { d: Ht })
1148
1148
  }
1149
1149
  ),
1150
1150
  /* @__PURE__ */ e.jsx("br", {}),
@@ -1180,8 +1180,8 @@ function dn({ apcCanvasInstance: y, theme: r }) {
1180
1180
  }
1181
1181
  );
1182
1182
  }
1183
- function at(y) {
1184
- const { featureText: r, theme: n, featureName: c } = y;
1183
+ function ft(y) {
1184
+ const { featureText: r, theme: n, featureName: a } = y;
1185
1185
  return /* @__PURE__ */ e.jsxs("div", { className: "premium-feature-container", style: {
1186
1186
  padding: "20px",
1187
1187
  backgroundColor: "#f8f9fa",
@@ -1200,7 +1200,7 @@ function at(y) {
1200
1200
  fontSize: "18px",
1201
1201
  fontWeight: "600",
1202
1202
  marginBottom: "12px"
1203
- }, children: c ?? "Premium Feature Access" }),
1203
+ }, children: a ?? "Premium Feature Access" }),
1204
1204
  /* @__PURE__ */ e.jsx("p", { style: {
1205
1205
  color: "#555",
1206
1206
  fontSize: "15px",
@@ -1244,7 +1244,7 @@ function at(y) {
1244
1244
  }, children: "Unlock premium design features to create your perfect custom product" })
1245
1245
  ] });
1246
1246
  }
1247
- function lt() {
1247
+ function xt() {
1248
1248
  return /* @__PURE__ */ e.jsxs("div", { className: "loading-container", children: [
1249
1249
  /* @__PURE__ */ e.jsxs("div", { className: "spinner", children: [
1250
1250
  /* @__PURE__ */ e.jsx("div", { className: "spinner-circle" }),
@@ -1253,38 +1253,38 @@ function lt() {
1253
1253
  /* @__PURE__ */ e.jsx("p", { className: "loading-text", children: "Loading..." })
1254
1254
  ] });
1255
1255
  }
1256
- function hn(y) {
1257
- const { apcCanvasInstance: r, theme: n, apiKey: c, apiEndpoint: l, isMobile: d, closeMobileModalSecondaryPanel: f } = y, [h, m] = M("flowers"), [i, g] = M(!1), [p, b] = M(), [o, j] = M(!1), [u, v] = M(!1), s = sessionStorage.getItem("apc_x_sub_status"), S = `${l}/api/v1/designer`;
1258
- ce(() => {
1259
- E();
1260
- }, []), ce(() => {
1256
+ function pn(y) {
1257
+ const { apcCanvasInstance: r, theme: n, apiKey: a, apiEndpoint: l, isMobile: d, closeMobileModalSecondaryPanel: f } = y, [p, m] = M("flowers"), [c, g] = M(!1), [h, b] = M(), [o, j] = M(!1), [u, v] = M(!1), s = sessionStorage.getItem("apc_x_sub_status"), S = `${l}/api/v1/designer`;
1258
+ ae(() => {
1259
+ z();
1260
+ }, []), ae(() => {
1261
1261
  (async () => {
1262
1262
  s === "active" ? (j(!0), v(!0)) : (g(!0), await B());
1263
1263
  })();
1264
1264
  }, []);
1265
1265
  const B = () => {
1266
1266
  g(!0);
1267
- const A = `${S}/get-subscription-status/${c}`;
1268
- je.get(A).then((V) => {
1267
+ const I = `${S}/get-subscription-status/${a}`;
1268
+ Se.get(I).then((V) => {
1269
1269
  V.data.object && V.data.object === "active" && (sessionStorage.setItem("apc_x_sub_status", "active"), j(!0));
1270
1270
  }).catch((V) => {
1271
1271
  sessionStorage.setItem("apc_x_sub_status", "");
1272
1272
  }).finally(() => {
1273
1273
  g(!1), v(!0);
1274
1274
  });
1275
- }, E = () => {
1275
+ }, z = () => {
1276
1276
  g(!0);
1277
- const A = {
1278
- "X-Api-Key": c
1279
- }, V = `${S}/get-images/${h}`;
1280
- je.get(V, { headers: A }).then((Q) => {
1277
+ const I = {
1278
+ "X-Api-Key": a
1279
+ }, V = `${S}/get-images/${p}`;
1280
+ Se.get(V, { headers: I }).then((Q) => {
1281
1281
  var Z;
1282
1282
  g(!1), b((Z = Q.data) == null ? void 0 : Z.object);
1283
1283
  }).catch((Q) => {
1284
1284
  console.error("Error fetching data:", Q), g(!1);
1285
1285
  });
1286
- }, L = async (A) => {
1287
- const V = await Dt(A);
1286
+ }, _ = async (I) => {
1287
+ const V = await Pt(I);
1288
1288
  V && D.Image.fromURL(V, (Q) => {
1289
1289
  Q.set({
1290
1290
  left: 0,
@@ -1293,14 +1293,14 @@ function hn(y) {
1293
1293
  scaleY: 0.3
1294
1294
  }), r.add(Q);
1295
1295
  }), d && f(!0);
1296
- }, H = () => p ? /* @__PURE__ */ e.jsx("div", { children: p.map((A) => /* @__PURE__ */ e.jsx("div", { onClick: () => L(A.urls.regular), style: { cursor: "pointer" }, children: /* @__PURE__ */ e.jsx("img", { height: 300, width: 300, src: A.urls.regular, alt: A.description || "No description" }) }, A.id)) }) : null, R = () => !o && !i && u ? /* @__PURE__ */ e.jsx(at, { theme: n, isPartial: !0, featureName: "AI image generation or search" }) : o && !i && u ? /* @__PURE__ */ e.jsxs("div", { children: [
1296
+ }, H = () => h ? /* @__PURE__ */ e.jsx("div", { children: h.map((I) => /* @__PURE__ */ e.jsx("div", { onClick: () => _(I.urls.regular), style: { cursor: "pointer" }, children: /* @__PURE__ */ e.jsx("img", { height: 300, width: 300, src: I.urls.regular, alt: I.description || "No description" }) }, I.id)) }) : null, L = () => !o && !c && u ? /* @__PURE__ */ e.jsx(ft, { theme: n, isPartial: !0, featureName: "AI image generation or search" }) : o && !c && u ? /* @__PURE__ */ e.jsxs("div", { children: [
1297
1297
  /* @__PURE__ */ e.jsx("strong", { children: "- OR -" }),
1298
1298
  /* @__PURE__ */ e.jsxs("div", { children: [
1299
1299
  /* @__PURE__ */ e.jsx(
1300
1300
  "input",
1301
1301
  {
1302
1302
  type: "text",
1303
- onChange: (A) => m(A.target.value),
1303
+ onChange: (I) => m(I.target.value),
1304
1304
  className: "apc-mpc-widget-input",
1305
1305
  style: { border: `solid 3px ${n.primaryColor}` }
1306
1306
  }
@@ -1312,30 +1312,30 @@ function hn(y) {
1312
1312
  "button",
1313
1313
  {
1314
1314
  className: "apc-mpc-widget-btn",
1315
- onClick: () => E(),
1315
+ onClick: () => z(),
1316
1316
  style: {
1317
1317
  backgroundColor: n.primaryColor,
1318
1318
  color: "#ffffff"
1319
1319
  },
1320
- children: i ? "...Processing" : "Search"
1320
+ children: c ? "...Processing" : "Search"
1321
1321
  }
1322
1322
  )
1323
1323
  ] }),
1324
1324
  /* @__PURE__ */ e.jsx("br", {}),
1325
1325
  /* @__PURE__ */ e.jsx("br", {}),
1326
1326
  H()
1327
- ] }) : /* @__PURE__ */ e.jsx(lt, {});
1328
- return /* @__PURE__ */ e.jsxs(I.Fragment, { children: [
1327
+ ] }) : /* @__PURE__ */ e.jsx(xt, {});
1328
+ return /* @__PURE__ */ e.jsxs(E.Fragment, { children: [
1329
1329
  /* @__PURE__ */ e.jsx("br", {}),
1330
1330
  /* @__PURE__ */ e.jsx("br", {}),
1331
1331
  /* @__PURE__ */ e.jsx(dn, { apcCanvasInstance: r, theme: n }),
1332
1332
  /* @__PURE__ */ e.jsx("br", {}),
1333
1333
  /* @__PURE__ */ e.jsx("br", {}),
1334
- R()
1334
+ L()
1335
1335
  ] });
1336
1336
  }
1337
- function Rt(y) {
1338
- const { apcCanvasInstance: r, theme: n, isMobile: c, closeMobileModalSecondaryPanel: l } = y, d = (v) => {
1337
+ function Bt(y) {
1338
+ const { apcCanvasInstance: r, theme: n, isMobile: a, closeMobileModalSecondaryPanel: l } = y, d = (v) => {
1339
1339
  const s = new D.Rect({
1340
1340
  width: 100,
1341
1341
  height: 60,
@@ -1344,7 +1344,7 @@ function Rt(y) {
1344
1344
  fill: "",
1345
1345
  stroke: n.primaryColor
1346
1346
  });
1347
- r.add(s), r.setActiveObject(s), c && l(!0);
1347
+ r.add(s), r.setActiveObject(s), a && l(!0);
1348
1348
  }, f = (v) => {
1349
1349
  const s = new D.Circle({
1350
1350
  radius: 30,
@@ -1353,8 +1353,8 @@ function Rt(y) {
1353
1353
  left: 200,
1354
1354
  top: 200
1355
1355
  });
1356
- r.add(s), r.setActiveObject(s), c && l(!0);
1357
- }, h = (v) => {
1356
+ r.add(s), r.setActiveObject(s), a && l(!0);
1357
+ }, p = (v) => {
1358
1358
  const s = new D.Triangle({
1359
1359
  width: 40,
1360
1360
  height: 50,
@@ -1363,7 +1363,7 @@ function Rt(y) {
1363
1363
  left: 200,
1364
1364
  top: 200
1365
1365
  });
1366
- r.add(s), r.setActiveObject(s), c && l(!0);
1366
+ r.add(s), r.setActiveObject(s), a && l(!0);
1367
1367
  }, m = (v) => {
1368
1368
  const s = new D.Line([50, 10, 250, 10], {
1369
1369
  fill: "",
@@ -1371,24 +1371,24 @@ function Rt(y) {
1371
1371
  left: 200,
1372
1372
  top: 200
1373
1373
  });
1374
- r.add(s), r.setActiveObject(s), c && l(!0);
1375
- }, i = (v, s, S) => {
1376
- const B = s, E = s, L = Math.PI / v;
1377
- let H = [], R = 0;
1378
- for (let A = 0; A < v; A++) {
1379
- let V = B + Math.cos(R) * s, Q = E + Math.sin(R) * s;
1380
- H.push({ x: V, y: Q }), R += L, V = B + Math.cos(R) * S, Q = E + Math.sin(R) * S, H.push({ x: V, y: Q }), R += L;
1374
+ r.add(s), r.setActiveObject(s), a && l(!0);
1375
+ }, c = (v, s, S) => {
1376
+ const B = s, z = s, _ = Math.PI / v;
1377
+ let H = [], L = 0;
1378
+ for (let I = 0; I < v; I++) {
1379
+ let V = B + Math.cos(L) * s, Q = z + Math.sin(L) * s;
1380
+ H.push({ x: V, y: Q }), L += _, V = B + Math.cos(L) * S, Q = z + Math.sin(L) * S, H.push({ x: V, y: Q }), L += _;
1381
1381
  }
1382
1382
  return H;
1383
1383
  }, g = (v, s) => {
1384
- const S = Math.PI * 2 / v, B = s, E = s, L = [];
1384
+ const S = Math.PI * 2 / v, B = s, z = s, _ = [];
1385
1385
  for (let H = 0; H < v; H++) {
1386
- const R = B + s * Math.cos(H * S), A = E + s * Math.sin(H * S);
1387
- L.push({ x: R, y: A });
1386
+ const L = B + s * Math.cos(H * S), I = z + s * Math.sin(H * S);
1387
+ _.push({ x: L, y: I });
1388
1388
  }
1389
- return L;
1390
- }, p = (v) => {
1391
- const s = i(5, 60, 30), S = new D.Polygon(s, {
1389
+ return _;
1390
+ }, h = (v) => {
1391
+ const s = c(5, 60, 30), S = new D.Polygon(s, {
1392
1392
  left: 200,
1393
1393
  top: 200,
1394
1394
  fill: "",
@@ -1396,7 +1396,7 @@ function Rt(y) {
1396
1396
  strokeWidth: 2,
1397
1397
  strokeLineJoin: "bevil"
1398
1398
  }, !1);
1399
- r.add(S), r.setActiveObject(S), c && l(!0);
1399
+ r.add(S), r.setActiveObject(S), a && l(!0);
1400
1400
  }, b = (v) => {
1401
1401
  const s = g(6, 30), S = new D.Polygon(s, {
1402
1402
  left: 200,
@@ -1406,33 +1406,33 @@ function Rt(y) {
1406
1406
  strokeWidth: 2,
1407
1407
  strokeLineJoin: "bevil"
1408
1408
  }, !1);
1409
- r.add(S), r.setActiveObject(S), c && l(!0);
1409
+ r.add(S), r.setActiveObject(S), a && l(!0);
1410
1410
  }, o = (v) => {
1411
- const s = new D.Path(wt, {
1411
+ const s = new D.Path(kt, {
1412
1412
  fill: "",
1413
1413
  stroke: n.primaryColor,
1414
1414
  left: 200,
1415
1415
  top: 200
1416
1416
  });
1417
- r.add(s), r.setActiveObject(s), c && l(!0);
1417
+ r.add(s), r.setActiveObject(s), a && l(!0);
1418
1418
  }, j = (v) => {
1419
- const s = new D.Path(Ct, {
1419
+ const s = new D.Path(Nt, {
1420
1420
  fill: "",
1421
1421
  stroke: n.primaryColor,
1422
1422
  left: 200,
1423
1423
  top: 200
1424
1424
  });
1425
- r.add(s), r.setActiveObject(s), c && l(!0);
1425
+ r.add(s), r.setActiveObject(s), a && l(!0);
1426
1426
  }, u = (v) => {
1427
- const s = new D.Path(pt, {
1427
+ const s = new D.Path(vt, {
1428
1428
  fill: "",
1429
1429
  stroke: n.primaryColor,
1430
1430
  left: 200,
1431
1431
  top: 200
1432
1432
  });
1433
- r.add(s), r.setActiveObject(s), c && l(!0);
1433
+ r.add(s), r.setActiveObject(s), a && l(!0);
1434
1434
  };
1435
- return r ? /* @__PURE__ */ e.jsxs(I.Fragment, { children: [
1435
+ return r ? /* @__PURE__ */ e.jsxs(E.Fragment, { children: [
1436
1436
  /* @__PURE__ */ e.jsx("br", {}),
1437
1437
  /* @__PURE__ */ e.jsx("div", { onClick: (v) => d(), style: { fontSize: "50px", cursor: "pointer" }, children: /* @__PURE__ */ e.jsx(
1438
1438
  "svg",
@@ -1470,7 +1470,7 @@ function Rt(y) {
1470
1470
  /* @__PURE__ */ e.jsx(
1471
1471
  "div",
1472
1472
  {
1473
- onClick: (v) => h(),
1473
+ onClick: (v) => p(),
1474
1474
  draggable: !0,
1475
1475
  style: { fontSize: "50px", cursor: "pointer" },
1476
1476
  children: /* @__PURE__ */ e.jsx(
@@ -1496,7 +1496,7 @@ function Rt(y) {
1496
1496
  /* @__PURE__ */ e.jsx(
1497
1497
  "div",
1498
1498
  {
1499
- onClick: (v) => p(),
1499
+ onClick: (v) => h(),
1500
1500
  style: { fontSize: "50px", cursor: "pointer" },
1501
1501
  children: /* @__PURE__ */ e.jsx(
1502
1502
  "svg",
@@ -1579,7 +1579,7 @@ function Rt(y) {
1579
1579
  children: /* @__PURE__ */ e.jsx(
1580
1580
  "path",
1581
1581
  {
1582
- d: wt
1582
+ d: kt
1583
1583
  }
1584
1584
  )
1585
1585
  }
@@ -1601,7 +1601,7 @@ function Rt(y) {
1601
1601
  fill: "none",
1602
1602
  strokeWidth: "4",
1603
1603
  stroke: n.primaryColor,
1604
- children: /* @__PURE__ */ e.jsx("path", { d: Ct })
1604
+ children: /* @__PURE__ */ e.jsx("path", { d: Nt })
1605
1605
  }
1606
1606
  )
1607
1607
  }
@@ -1621,25 +1621,25 @@ function Rt(y) {
1621
1621
  fill: "none",
1622
1622
  strokeWidth: "4",
1623
1623
  stroke: n.primaryColor,
1624
- children: /* @__PURE__ */ e.jsx("path", { d: pt })
1624
+ children: /* @__PURE__ */ e.jsx("path", { d: vt })
1625
1625
  }
1626
1626
  )
1627
1627
  }
1628
1628
  )
1629
1629
  ] }) : null;
1630
1630
  }
1631
- function pn(y) {
1632
- const { apcCanvasInstance: r, theme: n, isMobile: c, closeMobileModalSecondaryPanel: l } = y, d = (h) => {
1633
- const m = new D.Path(h, {
1631
+ function hn(y) {
1632
+ const { apcCanvasInstance: r, theme: n, isMobile: a, closeMobileModalSecondaryPanel: l } = y, d = (p) => {
1633
+ const m = new D.Path(p, {
1634
1634
  left: 200,
1635
1635
  top: 200,
1636
1636
  fill: n.primaryColor,
1637
1637
  scaleX: 0.1,
1638
1638
  scaleY: 0.1
1639
1639
  });
1640
- r.add(m), r.setActiveObject(m), c && l(!0);
1641
- }, f = (h) => {
1642
- switch (h) {
1640
+ r.add(m), r.setActiveObject(m), a && l(!0);
1641
+ }, f = (p) => {
1642
+ switch (p) {
1643
1643
  case "icon-phone":
1644
1644
  d(yr);
1645
1645
  break;
@@ -1665,7 +1665,7 @@ function pn(y) {
1665
1665
  d(Or);
1666
1666
  break;
1667
1667
  case "icon-graduation":
1668
- d(St);
1668
+ d(Ot);
1669
1669
  break;
1670
1670
  case "icon-business-suit":
1671
1671
  d(Ar);
@@ -1680,141 +1680,141 @@ function pn(y) {
1680
1680
  d(Er);
1681
1681
  break;
1682
1682
  case "icon-info":
1683
- d(Ot);
1683
+ d(Tt);
1684
1684
  break;
1685
1685
  case "icon-cart":
1686
- d(Nt);
1686
+ d(It);
1687
1687
  break;
1688
1688
  case "icon-comment":
1689
- d(kt);
1689
+ d(At);
1690
1690
  break;
1691
1691
  case "icon-location-map":
1692
- d(At);
1692
+ d(Et);
1693
1693
  break;
1694
1694
  case "icon-heart-1":
1695
- d(It);
1695
+ d(zt);
1696
1696
  break;
1697
1697
  case "icon-arrow-right-1":
1698
- d(pt);
1698
+ d(vt);
1699
1699
  break;
1700
1700
  case "icon-xmark":
1701
- d(Tt);
1701
+ d(Mt);
1702
1702
  break;
1703
1703
  case "icon-cloud":
1704
- d(Et);
1704
+ d(Rt);
1705
1705
  break;
1706
1706
  case "icon-smile":
1707
- d(Mt);
1707
+ d(Lt);
1708
1708
  break;
1709
1709
  case "icon-like":
1710
- d(zt);
1710
+ d(_t);
1711
1711
  break;
1712
1712
  default:
1713
1713
  console.log("no matching type");
1714
1714
  }
1715
1715
  };
1716
- return /* @__PURE__ */ e.jsx(I.Fragment, { children: /* @__PURE__ */ e.jsxs("div", { style: { padding: "5px" }, className: c ? "apc-mpx-widget-secondary-icons-mobile" : "apc-mpx-widget-secondary-icons", children: [
1717
- /* @__PURE__ */ e.jsx("div", { className: "apc-mpx-widget-secondary-icon", onClick: (h) => 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(
1716
+ return /* @__PURE__ */ e.jsx(E.Fragment, { children: /* @__PURE__ */ e.jsxs("div", { style: { padding: "5px" }, className: a ? "apc-mpx-widget-secondary-icons-mobile" : "apc-mpx-widget-secondary-icons", children: [
1717
+ /* @__PURE__ */ e.jsx("div", { className: "apc-mpx-widget-secondary-icon", onClick: (p) => 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(
1718
1718
  "path",
1719
1719
  {
1720
1720
  fill: n.primaryColor,
1721
1721
  d: "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"
1722
1722
  }
1723
1723
  ) }) }),
1724
- /* @__PURE__ */ e.jsx("div", { className: "apc-mpx-widget-secondary-icon", onClick: (h) => f("icon-question"), children: /* @__PURE__ */ e.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", height: "1em", viewBox: "0 0 320 512", children: /* @__PURE__ */ e.jsx(
1724
+ /* @__PURE__ */ e.jsx("div", { className: "apc-mpx-widget-secondary-icon", onClick: (p) => f("icon-question"), children: /* @__PURE__ */ e.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", height: "1em", viewBox: "0 0 320 512", children: /* @__PURE__ */ e.jsx(
1725
1725
  "path",
1726
1726
  {
1727
1727
  fill: n.primaryColor,
1728
1728
  d: "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"
1729
1729
  }
1730
1730
  ) }) }),
1731
- /* @__PURE__ */ e.jsx("div", { className: "apc-mpx-widget-secondary-icon", onClick: (h) => f("icon-clock"), children: /* @__PURE__ */ e.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", height: "1em", viewBox: "0 0 512 512", children: /* @__PURE__ */ e.jsx(
1731
+ /* @__PURE__ */ e.jsx("div", { className: "apc-mpx-widget-secondary-icon", onClick: (p) => f("icon-clock"), children: /* @__PURE__ */ e.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", height: "1em", viewBox: "0 0 512 512", children: /* @__PURE__ */ e.jsx(
1732
1732
  "path",
1733
1733
  {
1734
1734
  fill: n.primaryColor,
1735
1735
  d: "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"
1736
1736
  }
1737
1737
  ) }) }),
1738
- /* @__PURE__ */ e.jsx("div", { className: "apc-mpx-widget-secondary-icon", onClick: (h) => f("icon-twitter"), children: /* @__PURE__ */ e.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", height: "1em", viewBox: "0 0 512 512", children: /* @__PURE__ */ e.jsx(
1738
+ /* @__PURE__ */ e.jsx("div", { className: "apc-mpx-widget-secondary-icon", onClick: (p) => f("icon-twitter"), children: /* @__PURE__ */ e.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", height: "1em", viewBox: "0 0 512 512", children: /* @__PURE__ */ e.jsx(
1739
1739
  "path",
1740
1740
  {
1741
1741
  fill: n.primaryColor,
1742
1742
  d: "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"
1743
1743
  }
1744
1744
  ) }) }),
1745
- /* @__PURE__ */ e.jsx("div", { className: "apc-mpx-widget-secondary-icon", onClick: (h) => f("icon-check"), children: /* @__PURE__ */ e.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", height: "1em", viewBox: "0 0 448 512", children: /* @__PURE__ */ e.jsx(
1745
+ /* @__PURE__ */ e.jsx("div", { className: "apc-mpx-widget-secondary-icon", onClick: (p) => f("icon-check"), children: /* @__PURE__ */ e.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", height: "1em", viewBox: "0 0 448 512", children: /* @__PURE__ */ e.jsx(
1746
1746
  "path",
1747
1747
  {
1748
1748
  fill: n.primaryColor,
1749
1749
  d: "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"
1750
1750
  }
1751
1751
  ) }) }),
1752
- /* @__PURE__ */ e.jsx("div", { className: "apc-mpx-widget-secondary-icon", onClick: (h) => f("icon-pointer"), children: /* @__PURE__ */ e.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", height: "1em", viewBox: "0 0 448 512", children: /* @__PURE__ */ e.jsx(
1752
+ /* @__PURE__ */ e.jsx("div", { className: "apc-mpx-widget-secondary-icon", onClick: (p) => f("icon-pointer"), children: /* @__PURE__ */ e.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", height: "1em", viewBox: "0 0 448 512", children: /* @__PURE__ */ e.jsx(
1753
1753
  "path",
1754
1754
  {
1755
1755
  fill: n.primaryColor,
1756
1756
  d: "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"
1757
1757
  }
1758
1758
  ) }) }),
1759
- /* @__PURE__ */ e.jsx("div", { className: "apc-mpx-widget-secondary-icon", onClick: (h) => f("icon-mail"), children: /* @__PURE__ */ e.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", height: "1em", viewBox: "0 0 512 512", children: /* @__PURE__ */ e.jsx(
1759
+ /* @__PURE__ */ e.jsx("div", { className: "apc-mpx-widget-secondary-icon", onClick: (p) => f("icon-mail"), children: /* @__PURE__ */ e.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", height: "1em", viewBox: "0 0 512 512", children: /* @__PURE__ */ e.jsx(
1760
1760
  "path",
1761
1761
  {
1762
1762
  fill: n.primaryColor,
1763
1763
  d: "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"
1764
1764
  }
1765
1765
  ) }) }),
1766
- /* @__PURE__ */ e.jsx("div", { className: "apc-mpx-widget-secondary-icon", onClick: (h) => f("icon-dollar"), children: /* @__PURE__ */ e.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", height: "1em", viewBox: "0 0 320 512", children: /* @__PURE__ */ e.jsx(
1766
+ /* @__PURE__ */ e.jsx("div", { className: "apc-mpx-widget-secondary-icon", onClick: (p) => f("icon-dollar"), children: /* @__PURE__ */ e.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", height: "1em", viewBox: "0 0 320 512", children: /* @__PURE__ */ e.jsx(
1767
1767
  "path",
1768
1768
  {
1769
1769
  fill: n.primaryColor,
1770
1770
  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"
1771
1771
  }
1772
1772
  ) }) }),
1773
- /* @__PURE__ */ e.jsx("div", { className: "apc-mpx-widget-secondary-icon", onClick: (h) => 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: n.primaryColor, d: St }) }) }),
1774
- /* @__PURE__ */ e.jsx("div", { className: "apc-mpx-widget-secondary-icon", onClick: (h) => 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(
1773
+ /* @__PURE__ */ e.jsx("div", { className: "apc-mpx-widget-secondary-icon", onClick: (p) => 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: n.primaryColor, d: Ot }) }) }),
1774
+ /* @__PURE__ */ e.jsx("div", { className: "apc-mpx-widget-secondary-icon", onClick: (p) => 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(
1775
1775
  "path",
1776
1776
  {
1777
1777
  fill: n.primaryColor,
1778
1778
  d: "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"
1779
1779
  }
1780
1780
  ) }) }),
1781
- /* @__PURE__ */ e.jsx("div", { className: "apc-mpx-widget-secondary-icon", onClick: (h) => f("icon-chat"), children: /* @__PURE__ */ e.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", height: "1em", viewBox: "0 0 640 512", children: /* @__PURE__ */ e.jsx(
1781
+ /* @__PURE__ */ e.jsx("div", { className: "apc-mpx-widget-secondary-icon", onClick: (p) => f("icon-chat"), children: /* @__PURE__ */ e.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", height: "1em", viewBox: "0 0 640 512", children: /* @__PURE__ */ e.jsx(
1782
1782
  "path",
1783
1783
  {
1784
1784
  fill: n.primaryColor,
1785
1785
  d: "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"
1786
1786
  }
1787
1787
  ) }) }),
1788
- /* @__PURE__ */ e.jsx("div", { className: "apc-mpx-widget-secondary-icon", onClick: (h) => f("icon-thumbs-up"), children: /* @__PURE__ */ e.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", height: "1em", viewBox: "0 0 512 512", children: /* @__PURE__ */ e.jsx(
1788
+ /* @__PURE__ */ e.jsx("div", { className: "apc-mpx-widget-secondary-icon", onClick: (p) => f("icon-thumbs-up"), children: /* @__PURE__ */ e.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", height: "1em", viewBox: "0 0 512 512", children: /* @__PURE__ */ e.jsx(
1789
1789
  "path",
1790
1790
  {
1791
1791
  fill: n.primaryColor,
1792
1792
  d: "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"
1793
1793
  }
1794
1794
  ) }) }),
1795
- /* @__PURE__ */ e.jsx("div", { className: "apc-mpx-widget-secondary-icon", onClick: (h) => f("icon-wifi"), children: /* @__PURE__ */ e.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", height: "1em", viewBox: "0 0 640 512", children: /* @__PURE__ */ e.jsx(
1795
+ /* @__PURE__ */ e.jsx("div", { className: "apc-mpx-widget-secondary-icon", onClick: (p) => f("icon-wifi"), children: /* @__PURE__ */ e.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", height: "1em", viewBox: "0 0 640 512", children: /* @__PURE__ */ e.jsx(
1796
1796
  "path",
1797
1797
  {
1798
1798
  fill: n.primaryColor,
1799
1799
  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"
1800
1800
  }
1801
1801
  ) }) }),
1802
- /* @__PURE__ */ e.jsx("div", { className: "apc-mpx-widget-secondary-icon", onClick: (h) => 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: n.primaryColor, d: Ot }) }) }),
1803
- /* @__PURE__ */ e.jsx("div", { className: "apc-mpx-widget-secondary-icon", onClick: (h) => 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: n.primaryColor, d: Nt }) }) }),
1804
- /* @__PURE__ */ e.jsx("div", { className: "apc-mpx-widget-secondary-icon", onClick: (h) => 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: n.primaryColor, d: kt }) }) }),
1805
- /* @__PURE__ */ e.jsx("div", { className: "apc-mpx-widget-secondary-icon", onClick: (h) => 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: n.primaryColor, d: At }) }) }),
1806
- /* @__PURE__ */ e.jsx("div", { className: "apc-mpx-widget-secondary-icon", onClick: (h) => 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: n.primaryColor, d: It }) }) }),
1807
- /* @__PURE__ */ e.jsx("div", { className: "apc-mpx-widget-secondary-icon", onClick: (h) => 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: n.primaryColor, d: Mr }) }) }),
1808
- /* @__PURE__ */ e.jsx("div", { className: "apc-mpx-widget-secondary-icon", onClick: (h) => 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: n.primaryColor, d: Tt }) }) }),
1809
- /* @__PURE__ */ e.jsx("div", { className: "apc-mpx-widget-secondary-icon", onClick: (h) => 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: n.primaryColor, d: Et }) }) }),
1810
- /* @__PURE__ */ e.jsx("div", { className: "apc-mpx-widget-secondary-icon", onClick: (h) => 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: n.primaryColor, d: Mt }) }) }),
1811
- /* @__PURE__ */ e.jsx("div", { className: "apc-mpx-widget-secondary-icon", onClick: (h) => 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: n.primaryColor, d: zt }) }) })
1802
+ /* @__PURE__ */ e.jsx("div", { className: "apc-mpx-widget-secondary-icon", onClick: (p) => 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: n.primaryColor, d: Tt }) }) }),
1803
+ /* @__PURE__ */ e.jsx("div", { className: "apc-mpx-widget-secondary-icon", onClick: (p) => 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: n.primaryColor, d: It }) }) }),
1804
+ /* @__PURE__ */ e.jsx("div", { className: "apc-mpx-widget-secondary-icon", onClick: (p) => 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: n.primaryColor, d: At }) }) }),
1805
+ /* @__PURE__ */ e.jsx("div", { className: "apc-mpx-widget-secondary-icon", onClick: (p) => 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: n.primaryColor, d: Et }) }) }),
1806
+ /* @__PURE__ */ e.jsx("div", { className: "apc-mpx-widget-secondary-icon", onClick: (p) => 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: n.primaryColor, d: zt }) }) }),
1807
+ /* @__PURE__ */ e.jsx("div", { className: "apc-mpx-widget-secondary-icon", onClick: (p) => 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: n.primaryColor, d: zr }) }) }),
1808
+ /* @__PURE__ */ e.jsx("div", { className: "apc-mpx-widget-secondary-icon", onClick: (p) => 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: n.primaryColor, d: Mt }) }) }),
1809
+ /* @__PURE__ */ e.jsx("div", { className: "apc-mpx-widget-secondary-icon", onClick: (p) => 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: n.primaryColor, d: Rt }) }) }),
1810
+ /* @__PURE__ */ e.jsx("div", { className: "apc-mpx-widget-secondary-icon", onClick: (p) => 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: n.primaryColor, d: Lt }) }) }),
1811
+ /* @__PURE__ */ e.jsx("div", { className: "apc-mpx-widget-secondary-icon", onClick: (p) => 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: n.primaryColor, d: _t }) }) })
1812
1812
  ] }) });
1813
1813
  }
1814
- const Qe = ({ defaultValue: y, size: r, ariaLabel: n, onChange: c }) => {
1815
- const [l, d] = M(y), f = (h) => {
1816
- const m = h.target.value;
1817
- d(m), c(m);
1814
+ const rt = ({ defaultValue: y, size: r, ariaLabel: n, onChange: a }) => {
1815
+ const [l, d] = M(y), f = (p) => {
1816
+ const m = p.target.value;
1817
+ d(m), a(m);
1818
1818
  };
1819
1819
  return /* @__PURE__ */ e.jsx(
1820
1820
  "input",
@@ -1830,14 +1830,14 @@ const Qe = ({ defaultValue: y, size: r, ariaLabel: n, onChange: c }) => {
1830
1830
  }
1831
1831
  );
1832
1832
  };
1833
- function Lt(y) {
1834
- const { apcCanvasInstance: r, theme: n } = y, [c, l] = I.useState(!1), d = I.useRef(null), f = () => {
1833
+ function Dt(y) {
1834
+ const { apcCanvasInstance: r, theme: n } = y, [a, l] = E.useState(!1), d = E.useRef(null), f = () => {
1835
1835
  l((o) => !o);
1836
- }, h = (o) => {
1836
+ }, p = (o) => {
1837
1837
  d.current && d.current.contains(o.target) || l(!1);
1838
1838
  };
1839
- ce(() => (document.addEventListener("mousedown", h), () => {
1840
- document.removeEventListener("mousedown", h);
1839
+ ae(() => (document.addEventListener("mousedown", p), () => {
1840
+ document.removeEventListener("mousedown", p);
1841
1841
  }), []);
1842
1842
  const m = (o, j) => {
1843
1843
  if (r.getActiveObject()) {
@@ -1876,7 +1876,7 @@ function Lt(y) {
1876
1876
  fontSize: o
1877
1877
  }), r && r.renderAll();
1878
1878
  }
1879
- }, i = (o) => {
1879
+ }, c = (o) => {
1880
1880
  if (r.getActiveObject()) {
1881
1881
  const j = parseFloat(o / 100);
1882
1882
  r.getActiveObject().set({
@@ -1890,7 +1890,7 @@ function Lt(y) {
1890
1890
  shadow: o + " " + j + " " + u + " " + v
1891
1891
  }), r && r.renderAll();
1892
1892
  }
1893
- }, p = () => /* @__PURE__ */ e.jsxs("div", { className: "apc-mpx-widget-button-group-container", children: [
1893
+ }, h = () => /* @__PURE__ */ e.jsxs("div", { className: "apc-mpx-widget-button-group-container", children: [
1894
1894
  " ",
1895
1895
  /* @__PURE__ */ e.jsx(
1896
1896
  "button",
@@ -1916,7 +1916,7 @@ function Lt(y) {
1916
1916
  )
1917
1917
  }
1918
1918
  ),
1919
- c && /* @__PURE__ */ e.jsxs("div", { className: "apc-mpx-widget-popper-container", ref: d, children: [
1919
+ a && /* @__PURE__ */ e.jsxs("div", { className: "apc-mpx-widget-popper-container", ref: d, children: [
1920
1920
  /* @__PURE__ */ e.jsx("div", { className: "apc-mpx-widget-popper-arrow-up" }),
1921
1921
  /* @__PURE__ */ e.jsxs("ul", { id: "split-button-menu", autoFocus: !0, children: [
1922
1922
  /* @__PURE__ */ e.jsx("li", { className: "apc-mpx-widget-popper-li", children: /* @__PURE__ */ e.jsxs("div", { style: { textAlign: "left" }, children: [
@@ -1935,12 +1935,12 @@ function Lt(y) {
1935
1935
  /* @__PURE__ */ e.jsxs("div", { style: { marginLeft: "10px" }, children: [
1936
1936
  " Opacity",
1937
1937
  /* @__PURE__ */ e.jsx("div", { children: /* @__PURE__ */ e.jsx(
1938
- Qe,
1938
+ rt,
1939
1939
  {
1940
1940
  defaultValue: 100,
1941
1941
  size: "small",
1942
1942
  "aria-label": "Opacity",
1943
- onChange: (o) => i(o)
1943
+ onChange: (o) => c(o)
1944
1944
  }
1945
1945
  ) })
1946
1946
  ] })
@@ -1972,7 +1972,7 @@ function Lt(y) {
1972
1972
  /* @__PURE__ */ e.jsxs("div", { style: { marginLeft: "10px" }, children: [
1973
1973
  " Offset X",
1974
1974
  /* @__PURE__ */ e.jsx("div", { children: /* @__PURE__ */ e.jsx(
1975
- Qe,
1975
+ rt,
1976
1976
  {
1977
1977
  defaultValue: 0,
1978
1978
  size: "small",
@@ -1984,7 +1984,7 @@ function Lt(y) {
1984
1984
  /* @__PURE__ */ e.jsxs("div", { style: { marginLeft: "10px" }, children: [
1985
1985
  " Offset Y",
1986
1986
  /* @__PURE__ */ e.jsx("div", { children: /* @__PURE__ */ e.jsx(
1987
- Qe,
1987
+ rt,
1988
1988
  {
1989
1989
  defaultValue: 0,
1990
1990
  size: "small",
@@ -1997,7 +1997,7 @@ function Lt(y) {
1997
1997
  ] })
1998
1998
  ] })
1999
1999
  ] });
2000
- return /* @__PURE__ */ e.jsx(I.Fragment, { children: /* @__PURE__ */ e.jsxs("div", { style: { display: "flex", flexDirection: "row", color: "#ffffff" }, children: [
2000
+ return /* @__PURE__ */ e.jsx(E.Fragment, { children: /* @__PURE__ */ e.jsxs("div", { style: { display: "flex", flexDirection: "row", color: "#ffffff" }, children: [
2001
2001
  /* @__PURE__ */ e.jsx("div", { style: { marginTop: "4px", marginLeft: "2px" }, children: /* @__PURE__ */ e.jsx(
2002
2002
  "input",
2003
2003
  {
@@ -2151,19 +2151,19 @@ function Lt(y) {
2151
2151
  )
2152
2152
  }
2153
2153
  ) }),
2154
- /* @__PURE__ */ e.jsx("div", { children: p() })
2154
+ /* @__PURE__ */ e.jsx("div", { children: h() })
2155
2155
  ] }) });
2156
2156
  }
2157
- function Ke(y) {
2158
- const { apcCanvasInstance: r, theme: n } = y, c = I.useRef(null), [l, d] = I.useState(!1), f = () => {
2159
- d((p) => !p);
2160
- }, h = (p, b) => {
2157
+ function et(y) {
2158
+ const { apcCanvasInstance: r, theme: n } = y, a = E.useRef(null), [l, d] = E.useState(!1), f = () => {
2159
+ d((h) => !h);
2160
+ }, p = (h, b) => {
2161
2161
  if (r && r.getActiveObject()) {
2162
- if (p === "bg-color" && r.getActiveObject().set({
2162
+ if (h === "bg-color" && r.getActiveObject().set({
2163
2163
  fill: b
2164
- }), p === "border-color" && r.getActiveObject().set({
2164
+ }), h === "border-color" && r.getActiveObject().set({
2165
2165
  stroke: b
2166
- }), p === "gradient-bg-color1" || p === "gradient-bg-color2") {
2166
+ }), h === "gradient-bg-color1" || h === "gradient-bg-color2") {
2167
2167
  let o = document.getElementById("apc-object-bg-gradient-color1").value, j = document.getElementById("apc-object-bg-gradient-color2").value;
2168
2168
  const u = new D.Gradient({
2169
2169
  type: "linear",
@@ -2181,22 +2181,22 @@ function Ke(y) {
2181
2181
  }
2182
2182
  r && r.renderAll();
2183
2183
  }
2184
- }, m = (p) => {
2184
+ }, m = (h) => {
2185
2185
  if (r.getActiveObject()) {
2186
- const b = parseFloat(p / 100);
2186
+ const b = parseFloat(h / 100);
2187
2187
  r.getActiveObject().set({
2188
2188
  opacity: b.toFixed(1)
2189
2189
  }), r && r.renderAll();
2190
2190
  }
2191
- }, i = ({ color: p, x: b, y: o, blur: j }) => {
2191
+ }, c = ({ color: h, x: b, y: o, blur: j }) => {
2192
2192
  if (r.getActiveObject()) {
2193
2193
  const u = r.getActiveObject().shadow;
2194
- p || (p = u ? u.color : "#6a45d2"), b || (b = u ? u.offsetX : 5), o || (o = u ? u.offsetY : 5), j || (j = u ? u.blur : 5), r.getActiveObject().set({
2195
- shadow: p + " " + b + " " + o + " " + j
2194
+ h || (h = u ? u.color : "#6a45d2"), b || (b = u ? u.offsetX : 5), o || (o = u ? u.offsetY : 5), j || (j = u ? u.blur : 5), r.getActiveObject().set({
2195
+ shadow: h + " " + b + " " + o + " " + j
2196
2196
  }), r && r.renderAll();
2197
2197
  }
2198
2198
  };
2199
- return /* @__PURE__ */ e.jsx(I.Fragment, { children: /* @__PURE__ */ e.jsxs("div", { className: "apc-mpx-widget-button-group-container", children: [
2199
+ return /* @__PURE__ */ e.jsx(E.Fragment, { children: /* @__PURE__ */ e.jsxs("div", { className: "apc-mpx-widget-button-group-container", children: [
2200
2200
  /* @__PURE__ */ e.jsx(
2201
2201
  "button",
2202
2202
  {
@@ -2221,7 +2221,7 @@ function Ke(y) {
2221
2221
  )
2222
2222
  }
2223
2223
  ),
2224
- l && /* @__PURE__ */ e.jsxs("div", { className: "apc-mpx-widget-popper-container", ref: c, style: { marginLeft: "20%" }, children: [
2224
+ l && /* @__PURE__ */ e.jsxs("div", { className: "apc-mpx-widget-popper-container", ref: a, style: { marginLeft: "20%" }, children: [
2225
2225
  /* @__PURE__ */ e.jsx("div", { className: "apc-mpx-widget-popper-arrow-up" }),
2226
2226
  /* @__PURE__ */ e.jsxs("ul", { id: "split-button-menu", autoFocus: !0, children: [
2227
2227
  /* @__PURE__ */ e.jsx("li", { className: "apc-mpx-widget-popper-li", children: /* @__PURE__ */ e.jsxs("div", { style: { textAlign: "left" }, children: [
@@ -2233,7 +2233,7 @@ function Ke(y) {
2233
2233
  {
2234
2234
  style: { height: "25px", width: "25px", border: "none" },
2235
2235
  type: "color",
2236
- onChange: (p) => h("bg-color", p.target.value)
2236
+ onChange: (h) => p("bg-color", h.target.value)
2237
2237
  }
2238
2238
  )
2239
2239
  ] }),
@@ -2246,7 +2246,7 @@ function Ke(y) {
2246
2246
  className: "editor-color-input-selector",
2247
2247
  id: "apc-object-bg-gradient-color1",
2248
2248
  type: "color",
2249
- onChange: (p) => h("gradient-bg-color1", p.target.value)
2249
+ onChange: (h) => p("gradient-bg-color1", h.target.value)
2250
2250
  }
2251
2251
  ),
2252
2252
  /* @__PURE__ */ e.jsx(
@@ -2256,19 +2256,19 @@ function Ke(y) {
2256
2256
  className: "editor-color-input-selector",
2257
2257
  id: "apc-object-bg-gradient-color2",
2258
2258
  type: "color",
2259
- onChange: (p) => h("gradient-bg-color2", p.target.value)
2259
+ onChange: (h) => p("gradient-bg-color2", h.target.value)
2260
2260
  }
2261
2261
  )
2262
2262
  ] }),
2263
2263
  /* @__PURE__ */ e.jsx("div", { style: { marginLeft: "10px" }, children: /* @__PURE__ */ e.jsxs("div", { children: [
2264
2264
  "Opacity: ",
2265
2265
  /* @__PURE__ */ e.jsx(
2266
- Qe,
2266
+ rt,
2267
2267
  {
2268
2268
  defaultValue: 100,
2269
2269
  size: "small",
2270
2270
  "aria-label": "Opacity",
2271
- onChange: (p) => m(p)
2271
+ onChange: (h) => m(h)
2272
2272
  }
2273
2273
  )
2274
2274
  ] }) }),
@@ -2279,7 +2279,7 @@ function Ke(y) {
2279
2279
  {
2280
2280
  style: { height: "25px", width: "25px", border: "none" },
2281
2281
  type: "color",
2282
- onChange: (p) => h("border-color", p.target.value)
2282
+ onChange: (h) => p("border-color", h.target.value)
2283
2283
  }
2284
2284
  )
2285
2285
  ] })
@@ -2288,19 +2288,19 @@ function Ke(y) {
2288
2288
  /* @__PURE__ */ e.jsx("div", { style: { fontWeight: "bold", color: "purple" }, children: "Shadow" }),
2289
2289
  /* @__PURE__ */ e.jsxs("div", { style: { marginLeft: "10px" }, children: [
2290
2290
  "Blur width ",
2291
- /* @__PURE__ */ e.jsx("input", { type: "text", style: { height: "22px", width: "25px" }, onChange: (p) => i({ blur: p.target.value }) })
2291
+ /* @__PURE__ */ e.jsx("input", { type: "text", style: { height: "22px", width: "25px" }, onChange: (h) => c({ blur: h.target.value }) })
2292
2292
  ] }),
2293
2293
  /* @__PURE__ */ e.jsxs("div", { style: { marginLeft: "10px" }, children: [
2294
2294
  " Color",
2295
- /* @__PURE__ */ e.jsx("input", { style: { height: "25px", width: "25px", border: "none" }, type: "color", onChange: (p) => i({ color: p.target.value }) })
2295
+ /* @__PURE__ */ e.jsx("input", { style: { height: "25px", width: "25px", border: "none" }, type: "color", onChange: (h) => c({ color: h.target.value }) })
2296
2296
  ] }),
2297
2297
  /* @__PURE__ */ e.jsx("div", { style: { marginLeft: "10px" }, children: /* @__PURE__ */ e.jsxs("div", { children: [
2298
2298
  "Offset X: ",
2299
- /* @__PURE__ */ e.jsx(Qe, { defaultValue: 0, size: "small", "aria-label": "Opacity", onChange: (p) => i({ x: p }) })
2299
+ /* @__PURE__ */ e.jsx(rt, { defaultValue: 0, size: "small", "aria-label": "Opacity", onChange: (h) => c({ x: h }) })
2300
2300
  ] }) }),
2301
2301
  /* @__PURE__ */ e.jsx("div", { style: { marginLeft: "10px" }, children: /* @__PURE__ */ e.jsxs("div", { children: [
2302
2302
  "Offset Y: ",
2303
- /* @__PURE__ */ e.jsx(Qe, { defaultValue: 0, size: "small", "aria-label": "Opacity", onChange: (p) => i({ y: p }) })
2303
+ /* @__PURE__ */ e.jsx(rt, { defaultValue: 0, size: "small", "aria-label": "Opacity", onChange: (h) => c({ y: h }) })
2304
2304
  ] }) })
2305
2305
  ] }) })
2306
2306
  ] })
@@ -2308,20 +2308,20 @@ function Ke(y) {
2308
2308
  ] }) });
2309
2309
  }
2310
2310
  function un(y) {
2311
- const { apcCanvasInstance: r, apiEndpoint: n, apiKey: c } = y, [l, d] = I.useState("art"), [f, h] = I.useState(), [m, i] = I.useState(!1), g = n + "/api/v1/designer";
2312
- I.useEffect(() => {
2313
- p();
2311
+ const { apcCanvasInstance: r, apiEndpoint: n, apiKey: a } = y, [l, d] = E.useState("art"), [f, p] = E.useState(), [m, c] = E.useState(!1), g = n + "/api/v1/designer";
2312
+ E.useEffect(() => {
2313
+ h();
2314
2314
  }, []);
2315
- const p = () => {
2316
- i(!0);
2315
+ const h = () => {
2316
+ c(!0);
2317
2317
  const u = {
2318
- "X-Api-Key": c
2318
+ "X-Api-Key": a
2319
2319
  }, v = `${g}/get-quote/${l}`;
2320
- je.get(v, { headers: u }).then((s) => {
2320
+ Se.get(v, { headers: u }).then((s) => {
2321
2321
  var S;
2322
- i(!1), h((S = s.data) == null ? void 0 : S.object);
2322
+ c(!1), p((S = s.data) == null ? void 0 : S.object);
2323
2323
  }).catch((s) => {
2324
- console.error("Error fetching data:", s), i(!1);
2324
+ console.error("Error fetching data:", s), c(!1);
2325
2325
  });
2326
2326
  }, b = (u, v, s) => {
2327
2327
  const S = new D.Textbox(v, {
@@ -2336,13 +2336,13 @@ function un(y) {
2336
2336
  });
2337
2337
  B.top = S.top + S.height + 10, B.left = S.left, r.add(S), r.add(B), r.setActiveObject(S);
2338
2338
  }, o = (u) => {
2339
- i(!0), d(u), p();
2339
+ c(!0), d(u), h();
2340
2340
  }, j = () => f ? /* @__PURE__ */ e.jsx("div", { style: { display: "flex", flexDirection: "column", gap: 5 }, children: f.map((u, v) => /* @__PURE__ */ e.jsxs("div", { onClick: (s) => b(s, u.quote, u.author), style: { cursor: "pointer", padding: "3px", textAlign: "left", color: "#210080", fontFamily: "ui-monospace", border: "1px solid #dedcdc", borderRadius: "8px" }, children: [
2341
2341
  /* @__PURE__ */ e.jsx("div", { children: u.quote }),
2342
2342
  /* @__PURE__ */ e.jsx("div", { children: /* @__PURE__ */ e.jsx("strong", { children: /* @__PURE__ */ e.jsx("i", { children: u.author }) }) }),
2343
2343
  /* @__PURE__ */ e.jsx("br", {})
2344
2344
  ] }, v)) }) : null;
2345
- return /* @__PURE__ */ e.jsxs(I.Fragment, { children: [
2345
+ return /* @__PURE__ */ e.jsxs(E.Fragment, { children: [
2346
2346
  /* @__PURE__ */ e.jsx("h3", { children: "Quotes" }),
2347
2347
  /* @__PURE__ */ e.jsx("br", {}),
2348
2348
  /* @__PURE__ */ e.jsx("br", {}),
@@ -2771,13 +2771,13 @@ function un(y) {
2771
2771
  ] });
2772
2772
  }
2773
2773
  function fn(y) {
2774
- const { apcCanvasInstance: r, theme: n, apiKey: c, apiEndpoint: l, updateActiveSection: d, reloadTabs: f, currentTabNo: h, isMobile: m, closeMobileModalSecondaryPanel: i } = y, [g, p] = I.useState("background"), [b, o] = I.useState(!1), [j, u] = I.useState(), v = l + "/api/v1/designer";
2775
- I.useEffect(() => {
2774
+ const { apcCanvasInstance: r, theme: n, apiKey: a, apiEndpoint: l, updateActiveSection: d, reloadTabs: f, currentTabNo: p, isMobile: m, closeMobileModalSecondaryPanel: c } = y, [g, h] = E.useState("background"), [b, o] = E.useState(!1), [j, u] = E.useState(), v = l + "/api/v1/designer";
2775
+ E.useEffect(() => {
2776
2776
  S();
2777
2777
  }, []);
2778
- const s = (L) => {
2779
- const H = document.getElementById("img-default-id"), R = new D.Image(H, (A) => {
2780
- A.set({
2778
+ const s = (_) => {
2779
+ const H = document.getElementById("img-default-id"), L = new D.Image(H, (I) => {
2780
+ I.set({
2781
2781
  left: 100,
2782
2782
  top: 200,
2783
2783
  scaleX: 0.5,
@@ -2785,28 +2785,28 @@ function fn(y) {
2785
2785
  imageSmoothing: !0
2786
2786
  });
2787
2787
  });
2788
- r.add(R), m && i(!0);
2788
+ r.add(L), m && c(!0);
2789
2789
  }, S = () => {
2790
2790
  o(!0);
2791
- const L = {
2792
- "X-Api-Key": c
2791
+ const _ = {
2792
+ "X-Api-Key": a
2793
2793
  }, H = `${v}/get-images/${g}`;
2794
- je.get(H, { headers: L }).then((R) => {
2795
- var A;
2796
- o(!1), u((A = R.data) == null ? void 0 : A.object);
2797
- }).catch((R) => {
2798
- console.error("Error fetching data:", R), o(!1);
2794
+ Se.get(H, { headers: _ }).then((L) => {
2795
+ var I;
2796
+ o(!1), u((I = L.data) == null ? void 0 : I.object);
2797
+ }).catch((L) => {
2798
+ console.error("Error fetching data:", L), o(!1);
2799
2799
  });
2800
- }, B = (L) => {
2801
- D.Image.fromURL(L, function(H) {
2800
+ }, B = (_) => {
2801
+ D.Image.fromURL(_, function(H) {
2802
2802
  H.width = r.width, H.height = r.height, H.scaleToWidth(r.width), H.scaleToHeight(r.height), r.setBackgroundImage(H);
2803
- const R = sessionStorage.getItem("apc_x_activeTab"), A = JSON.stringify(r);
2804
- Ve(R, "general", A, null).then((V) => {
2805
- f(h + 1), r && r.renderAll();
2803
+ const L = sessionStorage.getItem("apc_x_activeTab"), I = JSON.stringify(r);
2804
+ Je(L, "general", I, null).then((V) => {
2805
+ f(p + 1), r && r.renderAll();
2806
2806
  });
2807
2807
  }, { crossOrigin: "anonymous" });
2808
- }, E = () => j ? /* @__PURE__ */ e.jsx("div", { children: j.map((L) => /* @__PURE__ */ e.jsx("div", { onClick: () => B(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;
2809
- return /* @__PURE__ */ e.jsxs(I.Fragment, { children: [
2808
+ }, z = () => j ? /* @__PURE__ */ e.jsx("div", { children: j.map((_) => /* @__PURE__ */ e.jsx("div", { onClick: () => B(_.urls.regular), style: { cursor: "pointer" }, children: /* @__PURE__ */ e.jsx("img", { height: 300, width: 300, src: _.urls.regular, alt: _.description || "No description" }) }, _.id)) }) : null;
2809
+ return /* @__PURE__ */ e.jsxs(E.Fragment, { children: [
2810
2810
  /* @__PURE__ */ e.jsx("br", {}),
2811
2811
  /* @__PURE__ */ e.jsx("br", {}),
2812
2812
  /* @__PURE__ */ e.jsxs("div", { style: { cursor: "pointer" }, onClick: () => s(), children: [
@@ -2823,7 +2823,7 @@ function fn(y) {
2823
2823
  "input",
2824
2824
  {
2825
2825
  type: "text",
2826
- onChange: (L) => p(L.target.value),
2826
+ onChange: (_) => h(_.target.value),
2827
2827
  className: "apc-mpc-widget-input",
2828
2828
  style: { border: `solid 3px ${n.primaryColor}` }
2829
2829
  }
@@ -2846,12 +2846,12 @@ function fn(y) {
2846
2846
  ] }),
2847
2847
  /* @__PURE__ */ e.jsx("br", {}),
2848
2848
  /* @__PURE__ */ e.jsx("br", {}),
2849
- E()
2849
+ z()
2850
2850
  ] });
2851
2851
  }
2852
2852
  function xn(y) {
2853
- const [r, n] = I.useState(""), [c, l] = I.useState(""), [d, f] = I.useState(!1), [h, m] = I.useState(!1), [i, g] = I.useState(!1), { apcCanvasInstance: p, theme: b, isMobile: o, closeMobileModalSecondaryPanel: j, apiKey: u, apiEndpoint: v } = y, s = `${v}/api/v1/designer`, S = sessionStorage.getItem("apc_x_sub_status");
2854
- I.useEffect(() => {
2853
+ const [r, n] = E.useState(""), [a, l] = E.useState(""), [d, f] = E.useState(!1), [p, m] = E.useState(!1), [c, g] = E.useState(!1), { apcCanvasInstance: h, theme: b, isMobile: o, closeMobileModalSecondaryPanel: j, apiKey: u, apiEndpoint: v } = y, s = `${v}/api/v1/designer`, S = sessionStorage.getItem("apc_x_sub_status");
2854
+ E.useEffect(() => {
2855
2855
  (async () => {
2856
2856
  S === "active" ? (m(!0), g(!0)) : (f(!0), await B());
2857
2857
  })();
@@ -2859,19 +2859,19 @@ function xn(y) {
2859
2859
  const B = () => {
2860
2860
  f(!0);
2861
2861
  const H = `${s}/get-subscription-status/${u}`;
2862
- je.get(H).then((R) => {
2863
- R.data.object && R.data.object === "active" && (sessionStorage.setItem("apc_x_sub_status", "active"), m(!0));
2864
- }).catch((R) => {
2862
+ Se.get(H).then((L) => {
2863
+ L.data.object && L.data.object === "active" && (sessionStorage.setItem("apc_x_sub_status", "active"), m(!0));
2864
+ }).catch((L) => {
2865
2865
  sessionStorage.setItem("apc_x_sub_status", "");
2866
2866
  }).finally(() => {
2867
2867
  f(!1), g(!0);
2868
2868
  });
2869
- }, E = () => {
2870
- Qt.toDataURL(r, { width: 300 }, (H, R) => {
2871
- H && console.error(H), l(R);
2869
+ }, z = () => {
2870
+ Qt.toDataURL(r, { width: 300 }, (H, L) => {
2871
+ H && console.error(H), l(L);
2872
2872
  });
2873
- }, L = (H) => {
2874
- const R = document.getElementById("apc-qr-code-img"), A = new D.Image(R, (V) => {
2873
+ }, _ = (H) => {
2874
+ const L = document.getElementById("apc-qr-code-img"), I = new D.Image(L, (V) => {
2875
2875
  V.set({
2876
2876
  left: 200,
2877
2877
  top: 200,
@@ -2880,9 +2880,9 @@ function xn(y) {
2880
2880
  imageSmoothing: !0
2881
2881
  });
2882
2882
  });
2883
- p.add(A), p.setActiveObject(A), o && j(!0);
2883
+ h.add(I), h.setActiveObject(I), o && j(!0);
2884
2884
  };
2885
- return !h && !d && i ? /* @__PURE__ */ e.jsx(at, { theme: b }) : h && !d && i ? /* @__PURE__ */ e.jsxs(I.Fragment, { children: [
2885
+ return !p && !d && c ? /* @__PURE__ */ e.jsx(ft, { theme: b }) : p && !d && c ? /* @__PURE__ */ e.jsxs(E.Fragment, { children: [
2886
2886
  /* @__PURE__ */ e.jsx("br", {}),
2887
2887
  /* @__PURE__ */ e.jsx("br", {}),
2888
2888
  "Enter data such as url",
@@ -2904,50 +2904,50 @@ function xn(y) {
2904
2904
  className: "apc-mpc-widget-btn",
2905
2905
  style: { backgroundColor: b.primaryColor, color: "#ffffff" },
2906
2906
  disabled: !r,
2907
- onClick: E,
2907
+ onClick: z,
2908
2908
  children: "Generate QR code"
2909
2909
  }
2910
2910
  ),
2911
2911
  /* @__PURE__ */ e.jsx("br", {}),
2912
2912
  /* @__PURE__ */ e.jsx("br", {}),
2913
- c && /* @__PURE__ */ e.jsxs(
2913
+ a && /* @__PURE__ */ e.jsxs(
2914
2914
  "div",
2915
2915
  {
2916
2916
  className: "generated-view",
2917
- onClick: () => L(),
2917
+ onClick: () => _(),
2918
2918
  style: { cursor: "pointer" },
2919
2919
  children: [
2920
- /* @__PURE__ */ e.jsx("img", { src: c, alt: "qr code", id: "apc-qr-code-img" }),
2921
- /* @__PURE__ */ e.jsx("a", { href: c })
2920
+ /* @__PURE__ */ e.jsx("img", { src: a, alt: "qr code", id: "apc-qr-code-img" }),
2921
+ /* @__PURE__ */ e.jsx("a", { href: a })
2922
2922
  ]
2923
2923
  }
2924
2924
  )
2925
- ] }) : /* @__PURE__ */ e.jsx("div", { children: /* @__PURE__ */ e.jsx(lt, {}) });
2925
+ ] }) : /* @__PURE__ */ e.jsx("div", { children: /* @__PURE__ */ e.jsx(xt, {}) });
2926
2926
  }
2927
2927
  function gn(y) {
2928
- const { apcCanvasInstance: r, theme: n, isMobile: c, closeMobileModalSecondaryPanel: l, apiKey: d, apiEndpoint: f } = y, [h, m] = I.useState(""), [i, g] = I.useState(null), [p, b] = I.useState("CODE128"), o = I.useRef(null), [j, u] = I.useState(""), [v, s] = I.useState(!1), [S, B] = I.useState(!1), [E, L] = M(!1), H = sessionStorage.getItem("apc_x_sub_status"), R = `${f}/api/v1/designer`;
2929
- I.useEffect(() => {
2928
+ const { apcCanvasInstance: r, theme: n, isMobile: a, closeMobileModalSecondaryPanel: l, apiKey: d, apiEndpoint: f } = y, [p, m] = E.useState(""), [c, g] = E.useState(null), [h, b] = E.useState("CODE128"), o = E.useRef(null), [j, u] = E.useState(""), [v, s] = E.useState(!1), [S, B] = E.useState(!1), [z, _] = M(!1), H = sessionStorage.getItem("apc_x_sub_status"), L = `${f}/api/v1/designer`;
2929
+ E.useEffect(() => {
2930
2930
  (async () => {
2931
- H === "active" ? (B(!0), L(!0)) : (s(!0), await A());
2931
+ H === "active" ? (B(!0), _(!0)) : (s(!0), await I());
2932
2932
  })();
2933
2933
  }, []);
2934
- const A = () => {
2934
+ const I = () => {
2935
2935
  s(!0);
2936
- const Z = `${R}/get-subscription-status/${d}`;
2937
- je.get(Z).then((ie) => {
2938
- ie.data.object && ie.data.object === "active" && (sessionStorage.setItem("apc_x_sub_status", "active"), B(!0));
2939
- }).catch((ie) => {
2936
+ const Z = `${L}/get-subscription-status/${d}`;
2937
+ Se.get(Z).then((ce) => {
2938
+ ce.data.object && ce.data.object === "active" && (sessionStorage.setItem("apc_x_sub_status", "active"), B(!0));
2939
+ }).catch((ce) => {
2940
2940
  sessionStorage.setItem("apc_x_sub_status", "");
2941
2941
  }).finally(() => {
2942
- s(!1), L(!0);
2942
+ s(!1), _(!0);
2943
2943
  });
2944
2944
  }, V = () => {
2945
2945
  g(
2946
2946
  /* @__PURE__ */ e.jsx(
2947
2947
  qt,
2948
2948
  {
2949
- value: h,
2950
- format: p,
2949
+ value: p,
2950
+ format: h,
2951
2951
  id: "barcode-element"
2952
2952
  }
2953
2953
  )
@@ -2956,19 +2956,19 @@ function gn(y) {
2956
2956
  Z && u(Z.innerHTML);
2957
2957
  }, Q = (Z) => {
2958
2958
  if (o.current.innerHTML) {
2959
- const ie = o.current.innerHTML;
2960
- let ne = new Image();
2961
- ne.src = "data:image/svg+xml," + encodeURIComponent(ie), ne.onload = function() {
2962
- const le = new D.Image(ne, {
2959
+ const ce = o.current.innerHTML;
2960
+ let re = new Image();
2961
+ re.src = "data:image/svg+xml," + encodeURIComponent(ce), re.onload = function() {
2962
+ const pe = new D.Image(re, {
2963
2963
  left: 200,
2964
2964
  top: 200
2965
2965
  });
2966
- r.add(le), r.setActiveObject(le);
2966
+ r.add(pe), r.setActiveObject(pe);
2967
2967
  };
2968
2968
  }
2969
- c && l(!0);
2969
+ a && l(!0);
2970
2970
  };
2971
- return !S && !v && E ? /* @__PURE__ */ e.jsx(at, { theme: n }) : S && !v && E ? /* @__PURE__ */ e.jsxs(I.Fragment, { children: [
2971
+ return !S && !v && z ? /* @__PURE__ */ e.jsx(ft, { theme: n }) : S && !v && z ? /* @__PURE__ */ e.jsxs(E.Fragment, { children: [
2972
2972
  /* @__PURE__ */ e.jsx("br", {}),
2973
2973
  /* @__PURE__ */ e.jsx("br", {}),
2974
2974
  "Enter number",
@@ -2987,7 +2987,7 @@ function gn(y) {
2987
2987
  /* @__PURE__ */ e.jsxs(
2988
2988
  "select",
2989
2989
  {
2990
- value: p,
2990
+ value: h,
2991
2991
  onChange: (Z) => b(Z.target.value),
2992
2992
  className: "apc-mpc-widget-input",
2993
2993
  style: { border: `solid 3px ${n.primaryColor}` },
@@ -3008,7 +3008,7 @@ function gn(y) {
3008
3008
  "button",
3009
3009
  {
3010
3010
  className: "apc-mpc-widget-btn",
3011
- disabled: !h,
3011
+ disabled: !p,
3012
3012
  onClick: () => V(),
3013
3013
  style: { backgroundColor: n.primaryColor, color: "#ffffff" },
3014
3014
  children: "Generate Barcode"
@@ -3019,22 +3019,22 @@ function gn(y) {
3019
3019
  " ",
3020
3020
  /* @__PURE__ */ e.jsx("br", {}),
3021
3021
  /* @__PURE__ */ e.jsx("br", {}),
3022
- /* @__PURE__ */ e.jsx("div", { children: i && /* @__PURE__ */ e.jsx(
3022
+ /* @__PURE__ */ e.jsx("div", { children: c && /* @__PURE__ */ e.jsx(
3023
3023
  "div",
3024
3024
  {
3025
3025
  ref: o,
3026
3026
  onClick: (Z) => Q(),
3027
3027
  style: { cursor: "pointer" },
3028
- children: i
3028
+ children: c
3029
3029
  }
3030
3030
  ) })
3031
3031
  ] }) : /* @__PURE__ */ e.jsxs("div", { children: [
3032
3032
  " ",
3033
- /* @__PURE__ */ e.jsx(lt, {})
3033
+ /* @__PURE__ */ e.jsx(xt, {})
3034
3034
  ] });
3035
3035
  }
3036
3036
  function mn(y) {
3037
- const { apcCanvasInstance: r, theme: n } = y, [c, l] = I.useState(), [d, f] = I.useState(), [h, m] = I.useState(""), i = (b, o) => {
3037
+ const { apcCanvasInstance: r, theme: n } = y, [a, l] = E.useState(), [d, f] = E.useState(), [p, m] = E.useState(""), c = (b, o) => {
3038
3038
  if (r) {
3039
3039
  if (b === "bg-color" && o.target.value && r.set({
3040
3040
  backgroundColor: o.target.value
@@ -3054,7 +3054,7 @@ function mn(y) {
3054
3054
  }
3055
3055
  }, g = (b, o, j) => {
3056
3056
  f(o), l(b), r.setWidth(o), r.setHeight(b), m(j);
3057
- }, p = () => /* @__PURE__ */ e.jsxs("div", { children: [
3057
+ }, h = () => /* @__PURE__ */ e.jsxs("div", { children: [
3058
3058
  /* @__PURE__ */ e.jsx("br", {}),
3059
3059
  /* @__PURE__ */ e.jsx("br", {}),
3060
3060
  /* @__PURE__ */ e.jsx("div", { style: { display: "flex", flexDirection: "row" }, children: /* @__PURE__ */ e.jsxs("div", { children: [
@@ -3064,7 +3064,7 @@ function mn(y) {
3064
3064
  {
3065
3065
  type: "number",
3066
3066
  value: r.height,
3067
- onChange: (b) => i("height", b),
3067
+ onChange: (b) => c("height", b),
3068
3068
  className: "apc-mpc-widget-input",
3069
3069
  style: { border: `solid 3px ${n.primaryColor}` }
3070
3070
  }
@@ -3079,7 +3079,7 @@ function mn(y) {
3079
3079
  color: "info",
3080
3080
  type: "number",
3081
3081
  value: r.width,
3082
- onChange: (b) => i("width", b),
3082
+ onChange: (b) => c("width", b),
3083
3083
  className: "apc-mpc-widget-input",
3084
3084
  style: { border: `solid 3px ${n.primaryColor}` }
3085
3085
  }
@@ -3099,7 +3099,7 @@ function mn(y) {
3099
3099
  className: "apc-mpx-widget-custom-chip",
3100
3100
  onClick: () => g(1440, 2560, "YOUC"),
3101
3101
  children: [
3102
- h === "YOUC" ? /* @__PURE__ */ e.jsx("span", { style: { color: "green" }, children: "✓" }) : null,
3102
+ p === "YOUC" ? /* @__PURE__ */ e.jsx("span", { style: { color: "green" }, children: "✓" }) : null,
3103
3103
  " Youtube Channel : 2560 x 1440 px"
3104
3104
  ]
3105
3105
  }
@@ -3112,7 +3112,7 @@ function mn(y) {
3112
3112
  className: "apc-mpx-widget-custom-chip",
3113
3113
  onClick: () => g(1080, 1920, "FULLHD"),
3114
3114
  children: [
3115
- h === "FULLHD" ? /* @__PURE__ */ e.jsx("span", { style: { color: "green" }, children: "✓" }) : null,
3115
+ p === "FULLHD" ? /* @__PURE__ */ e.jsx("span", { style: { color: "green" }, children: "✓" }) : null,
3116
3116
  "Full HD : 1920 x 1080 px"
3117
3117
  ]
3118
3118
  }
@@ -3125,7 +3125,7 @@ function mn(y) {
3125
3125
  className: "apc-mpx-widget-custom-chip",
3126
3126
  onClick: () => g(1080, 1080, "INSTAP"),
3127
3127
  children: [
3128
- h === "INSTAP" ? /* @__PURE__ */ e.jsx("span", { style: { color: "green" }, children: "✓" }) : null,
3128
+ p === "INSTAP" ? /* @__PURE__ */ e.jsx("span", { style: { color: "green" }, children: "✓" }) : null,
3129
3129
  "Instagram Post:1080 x 1080 px"
3130
3130
  ]
3131
3131
  }
@@ -3138,7 +3138,7 @@ function mn(y) {
3138
3138
  className: "apc-mpx-widget-custom-chip",
3139
3139
  onClick: () => g(1920, 1080, "INSTAS"),
3140
3140
  children: [
3141
- h === "INSTAS" ? /* @__PURE__ */ e.jsx("span", { style: { color: "green" }, children: "✓" }) : null,
3141
+ p === "INSTAS" ? /* @__PURE__ */ e.jsx("span", { style: { color: "green" }, children: "✓" }) : null,
3142
3142
  "Instagram Story: 1080 x 1920 px"
3143
3143
  ]
3144
3144
  }
@@ -3151,7 +3151,7 @@ function mn(y) {
3151
3151
  className: "apc-mpx-widget-custom-chip",
3152
3152
  onClick: () => g(1080, 1080, "INSTAA"),
3153
3153
  children: [
3154
- h === "INSTAA" ? /* @__PURE__ */ e.jsx("span", { style: { color: "green" }, children: "✓" }) : null,
3154
+ p === "INSTAA" ? /* @__PURE__ */ e.jsx("span", { style: { color: "green" }, children: "✓" }) : null,
3155
3155
  "Instagram Ad: 1080 x 1080 px"
3156
3156
  ]
3157
3157
  }
@@ -3164,7 +3164,7 @@ function mn(y) {
3164
3164
  className: "apc-mpx-widget-custom-chip",
3165
3165
  onClick: () => g(788, 940, "FACEP"),
3166
3166
  children: [
3167
- h === "FACEP" ? /* @__PURE__ */ e.jsx("span", { style: { color: "green" }, children: "✓" }) : null,
3167
+ p === "FACEP" ? /* @__PURE__ */ e.jsx("span", { style: { color: "green" }, children: "✓" }) : null,
3168
3168
  "Facebook Post: 940 x 788 px"
3169
3169
  ]
3170
3170
  }
@@ -3177,7 +3177,7 @@ function mn(y) {
3177
3177
  className: "apc-mpx-widget-custom-chip",
3178
3178
  onClick: () => g(315, 851, "FACEC"),
3179
3179
  children: [
3180
- h === "FACEC" ? /* @__PURE__ */ e.jsx("span", { style: { color: "green" }, children: "✓" }) : null,
3180
+ p === "FACEC" ? /* @__PURE__ */ e.jsx("span", { style: { color: "green" }, children: "✓" }) : null,
3181
3181
  "Facebook Cover: 851 x 315 px"
3182
3182
  ]
3183
3183
  }
@@ -3190,7 +3190,7 @@ function mn(y) {
3190
3190
  className: "apc-mpx-widget-custom-chip",
3191
3191
  onClick: () => g(628, 1200, "FACEA"),
3192
3192
  children: [
3193
- h === "FACEA" ? /* @__PURE__ */ e.jsx("span", { style: { color: "green" }, children: "✓" }) : null,
3193
+ p === "FACEA" ? /* @__PURE__ */ e.jsx("span", { style: { color: "green" }, children: "✓" }) : null,
3194
3194
  "Facebook Ad: 1200 x 628 px"
3195
3195
  ]
3196
3196
  }
@@ -3203,7 +3203,7 @@ function mn(y) {
3203
3203
  className: "apc-mpx-widget-custom-chip",
3204
3204
  onClick: () => g(720, 1280, "YOUT"),
3205
3205
  children: [
3206
- h === "YOUT" ? /* @__PURE__ */ e.jsx("span", { style: { color: "green" }, children: "✓" }) : null,
3206
+ p === "YOUT" ? /* @__PURE__ */ e.jsx("span", { style: { color: "green" }, children: "✓" }) : null,
3207
3207
  "Youtube Thumbnail: 1280 x 720 px"
3208
3208
  ]
3209
3209
  }
@@ -3216,7 +3216,7 @@ function mn(y) {
3216
3216
  className: "apc-mpx-widget-custom-chip",
3217
3217
  onClick: () => g(534, 534, "INVITE"),
3218
3218
  children: [
3219
- h === "INVITE" ? /* @__PURE__ */ e.jsx("span", { style: { color: "green" }, children: "✓" }) : null,
3219
+ p === "INVITE" ? /* @__PURE__ */ e.jsx("span", { style: { color: "green" }, children: "✓" }) : null,
3220
3220
  "Invitation : 14 x 14 cm"
3221
3221
  ]
3222
3222
  }
@@ -3229,7 +3229,7 @@ function mn(y) {
3229
3229
  className: "apc-mpx-widget-custom-chip",
3230
3230
  onClick: () => g(1112, 788, "A4"),
3231
3231
  children: [
3232
- h === "A4" ? /* @__PURE__ */ e.jsx("span", { style: { color: "green" }, children: "✓" }) : null,
3232
+ p === "A4" ? /* @__PURE__ */ e.jsx("span", { style: { color: "green" }, children: "✓" }) : null,
3233
3233
  "A4 : 788 x 1112 px"
3234
3234
  ]
3235
3235
  }
@@ -3242,114 +3242,114 @@ function mn(y) {
3242
3242
  className: "apc-mpx-widget-custom-chip",
3243
3243
  onClick: () => g(192, 336, "BUSINESSCARD"),
3244
3244
  children: [
3245
- h === "BUSINESSCARD" ? /* @__PURE__ */ e.jsx("span", { style: { color: "green" }, children: "✓" }) : null,
3245
+ p === "BUSINESSCARD" ? /* @__PURE__ */ e.jsx("span", { style: { color: "green" }, children: "✓" }) : null,
3246
3246
  "Business card 3.5 x 2 in"
3247
3247
  ]
3248
3248
  }
3249
3249
  ) })
3250
3250
  ] })
3251
3251
  ] });
3252
- return /* @__PURE__ */ e.jsx("div", { children: p() });
3252
+ return /* @__PURE__ */ e.jsx("div", { children: h() });
3253
3253
  }
3254
- const xe = (y, r, n, c = "png", l) => new Promise((d, f) => {
3255
- const h = document.createElement("canvas"), m = JSON.parse(y), i = crypto.randomUUID();
3256
- h.width = n, h.height = r;
3257
- const g = new D.StaticCanvas(h, {
3254
+ const je = (y, r, n, a = "png", l) => new Promise((d, f) => {
3255
+ const p = document.createElement("canvas"), m = JSON.parse(y), c = crypto.randomUUID();
3256
+ p.width = n, p.height = r;
3257
+ const g = new D.StaticCanvas(p, {
3258
3258
  selection: !1,
3259
3259
  height: m.height,
3260
3260
  width: m.width
3261
3261
  });
3262
3262
  g.loadFromJSON(m, function() {
3263
- if (g.renderAll(), c.toLowerCase() === "svg") {
3264
- const p = g.toSVG(), b = new Blob([p], { type: "image/svg+xml" });
3265
- l && it(b, "mypixia.svg"), d(new File([b], `${i}.svg`, { type: "image/svg+xml" }));
3266
- } else if (c.toLowerCase() === "pdf") {
3267
- const p = g.toDataURL("image/jpeg", 1);
3263
+ if (g.renderAll(), a.toLowerCase() === "svg") {
3264
+ const h = g.toSVG(), b = new Blob([h], { type: "image/svg+xml" });
3265
+ l && ht(b, "mypixia.svg"), d(new File([b], `${c}.svg`, { type: "image/svg+xml" }));
3266
+ } else if (a.toLowerCase() === "pdf") {
3267
+ const h = g.toDataURL("image/jpeg", 1);
3268
3268
  import("jspdf").then((b) => {
3269
3269
  const o = new b.jsPDF({
3270
3270
  orientation: "landscape",
3271
3271
  unit: "px",
3272
- format: [h.width, h.height]
3272
+ format: [p.width, p.height]
3273
3273
  });
3274
- o.addImage(p, "JPEG", 0, 0, h.width, h.height);
3275
- const u = o.output("datauristring").split(",")[1], v = vn(u, "application/pdf"), s = new File([v], `${i}.pdf`, { type: "application/pdf" }), S = `${i}.pdf`;
3276
- l && it(s, S), d(s);
3274
+ o.addImage(h, "JPEG", 0, 0, p.width, p.height);
3275
+ const u = o.output("datauristring").split(",")[1], v = vn(u, "application/pdf"), s = new File([v], `${c}.pdf`, { type: "application/pdf" }), S = `${c}.pdf`;
3276
+ l && ht(s, S), d(s);
3277
3277
  }).catch((b) => {
3278
3278
  console.error("Error loading jsPDF: ", b), f(b);
3279
3279
  });
3280
3280
  } else {
3281
- let p, b = "image/png", o = "png";
3282
- switch (c.toLowerCase()) {
3281
+ let h, b = "image/png", o = "png";
3282
+ switch (a.toLowerCase()) {
3283
3283
  case "jpeg":
3284
- p = g.toDataURL("image/jpeg", 1), b = "image/jpeg", o = "jpg";
3284
+ h = g.toDataURL("image/jpeg", 1), b = "image/jpeg", o = "jpg";
3285
3285
  break;
3286
3286
  case "webp":
3287
- p = g.toDataURL("image/webp", 1), b = "image/webp", o = "webp";
3287
+ h = g.toDataURL("image/webp", 1), b = "image/webp", o = "webp";
3288
3288
  break;
3289
3289
  default:
3290
- p = g.toDataURL("image/png", 1);
3290
+ h = g.toDataURL("image/png", 1);
3291
3291
  break;
3292
3292
  }
3293
- const j = atob(p.split(",")[1]), u = new Array(j.length);
3293
+ const j = atob(h.split(",")[1]), u = new Array(j.length);
3294
3294
  for (let B = 0; B < j.length; B++)
3295
3295
  u[B] = j.charCodeAt(B);
3296
- const v = new Uint8Array(u), s = new File([v], `${i}.${o}`, { type: b }), S = `${i}.${o}`;
3297
- l && it(s, S), d(s);
3296
+ const v = new Uint8Array(u), s = new File([v], `${c}.${o}`, { type: b }), S = `${c}.${o}`;
3297
+ l && ht(s, S), d(s);
3298
3298
  }
3299
3299
  });
3300
- }), st = async ({ fabricString: y, height: r, width: n, download: c }) => {
3300
+ }), dt = async ({ fabricString: y, height: r, width: n, download: a }) => {
3301
3301
  const l = JSON.parse(y), d = crypto.randomUUID();
3302
- return new Promise((f, h) => {
3303
- const m = document.createElement("canvas"), i = new D.Canvas(m, { height: r, width: n });
3304
- i.loadFromJSON(l, () => {
3305
- i.setBackgroundImage(null, i.renderAll.bind(i));
3306
- const g = i.toDataURL({
3302
+ return new Promise((f, p) => {
3303
+ const m = document.createElement("canvas"), c = new D.Canvas(m, { height: r, width: n });
3304
+ c.loadFromJSON(l, () => {
3305
+ c.setBackgroundImage(null, c.renderAll.bind(c));
3306
+ const g = c.toDataURL({
3307
3307
  format: "png"
3308
3308
  });
3309
- fetch(g).then((p) => p.blob()).then((p) => {
3310
- const b = new File([p], `${d}.png`, { type: "image/png" }), o = `${d}.png`;
3311
- c && it(b, o), f(b);
3312
- }).catch((p) => h(p));
3309
+ fetch(g).then((h) => h.blob()).then((h) => {
3310
+ const b = new File([h], `${d}.png`, { type: "image/png" }), o = `${d}.png`;
3311
+ a && ht(b, o), f(b);
3312
+ }).catch((h) => p(h));
3313
3313
  });
3314
3314
  });
3315
- }, it = (y, r) => {
3316
- const n = URL.createObjectURL(y), c = document.createElement("a");
3317
- c.href = n, c.download = r, document.body.appendChild(c), c.click(), document.body.removeChild(c), URL.revokeObjectURL(n);
3315
+ }, ht = (y, r) => {
3316
+ const n = URL.createObjectURL(y), a = document.createElement("a");
3317
+ a.href = n, a.download = r, document.body.appendChild(a), a.click(), document.body.removeChild(a), URL.revokeObjectURL(n);
3318
3318
  };
3319
3319
  function vn(y, r) {
3320
- const n = atob(y), c = new Array(n.length);
3320
+ const n = atob(y), a = new Array(n.length);
3321
3321
  for (let d = 0; d < n.length; d++)
3322
- c[d] = n.charCodeAt(d);
3323
- const l = new Uint8Array(c);
3322
+ a[d] = n.charCodeAt(d);
3323
+ const l = new Uint8Array(a);
3324
3324
  return new Blob([l], { type: r });
3325
3325
  }
3326
3326
  const jn = ({ children: y }) => xr.createPortal(y, document.getElementById("apc-mpx-editor-modal-root"));
3327
- function dt(y) {
3328
- const { isOpen: r, onClose: n, children: c } = y;
3327
+ function gt(y) {
3328
+ const { isOpen: r, onClose: n, children: a } = y;
3329
3329
  return r ? /* @__PURE__ */ e.jsx(jn, { children: /* @__PURE__ */ e.jsx("div", { className: "apc-mpx-widget-modal-overlay", children: /* @__PURE__ */ e.jsxs("div", { className: "apc-mpx-widget-modal", children: [
3330
3330
  /* @__PURE__ */ e.jsx("button", { style: { color: "red" }, className: "apc-mpx-widget-modal-close-btn", onClick: n, children: "Close" }),
3331
- /* @__PURE__ */ e.jsx("div", { className: "apc-mpx-widget-modal-content", children: c })
3331
+ /* @__PURE__ */ e.jsx("div", { className: "apc-mpx-widget-modal-content", children: a })
3332
3332
  ] }) }) }) : null;
3333
3333
  }
3334
- const ge = (y, r) => {
3334
+ const be = (y, r) => {
3335
3335
  y = y.startsWith("#") ? y : `#${y}`;
3336
- let n = parseInt(y.slice(1, 3), 16), c = parseInt(y.slice(3, 5), 16), l = parseInt(y.slice(5, 7), 16);
3337
- return n = parseInt(n * (100 - r) / 100), c = parseInt(c * (100 - r) / 100), l = parseInt(l * (100 - r) / 100), n = n.toString(16).padStart(2, "0"), c = c.toString(16).padStart(2, "0"), l = l.toString(16).padStart(2, "0"), `#${n}${c}${l}`;
3336
+ let n = parseInt(y.slice(1, 3), 16), a = parseInt(y.slice(3, 5), 16), l = parseInt(y.slice(5, 7), 16);
3337
+ return n = parseInt(n * (100 - r) / 100), a = parseInt(a * (100 - r) / 100), l = parseInt(l * (100 - r) / 100), n = n.toString(16).padStart(2, "0"), a = a.toString(16).padStart(2, "0"), l = l.toString(16).padStart(2, "0"), `#${n}${a}${l}`;
3338
3338
  };
3339
- function Ft(y) {
3340
- const [r, n] = M(""), { apcCanvasJSON: c, height: l, width: d } = y;
3341
- return ce(() => {
3342
- const f = document.createElement("canvas"), h = JSON.parse(c);
3339
+ function Vt(y) {
3340
+ const [r, n] = M(""), { apcCanvasJSON: a, height: l, width: d } = y;
3341
+ return ae(() => {
3342
+ const f = document.createElement("canvas"), p = JSON.parse(a);
3343
3343
  f.width = d, f.height = l;
3344
3344
  const m = new D.StaticCanvas(f, {
3345
3345
  selection: !1,
3346
- height: h.height,
3347
- width: h.width
3346
+ height: p.height,
3347
+ width: p.width
3348
3348
  });
3349
- m.loadFromJSON(h, function() {
3349
+ m.loadFromJSON(p, function() {
3350
3350
  m.renderAll();
3351
- const i = m.toDataURL("image/png", 1);
3352
- n(i);
3351
+ const c = m.toDataURL("image/png", 1);
3352
+ n(c);
3353
3353
  });
3354
3354
  }, []), r ? /* @__PURE__ */ e.jsx("div", { children: /* @__PURE__ */ e.jsx(
3355
3355
  "div",
@@ -3361,17 +3361,17 @@ function Ft(y) {
3361
3361
  ) }) : "...processing";
3362
3362
  }
3363
3363
  function bn(y) {
3364
- const { theme: r, apcCanvasInstance: n } = y, [c, l] = M(!1), [d, f] = M(), h = () => {
3364
+ const { theme: r, apcCanvasInstance: n } = y, [a, l] = M(!1), [d, f] = M(), p = () => {
3365
3365
  l(!0);
3366
3366
  }, m = () => {
3367
3367
  l(!1);
3368
- }, i = () => {
3368
+ }, c = () => {
3369
3369
  if (!n)
3370
3370
  return null;
3371
3371
  const g = JSON.stringify(n);
3372
- return /* @__PURE__ */ e.jsxs(dt, { isOpen: c, onClose: m, children: [
3372
+ return /* @__PURE__ */ e.jsxs(gt, { isOpen: a, onClose: m, children: [
3373
3373
  /* @__PURE__ */ e.jsx(
3374
- Ft,
3374
+ Vt,
3375
3375
  {
3376
3376
  apcCanvasJSON: g,
3377
3377
  height: n.height,
@@ -3401,13 +3401,13 @@ function bn(y) {
3401
3401
  /* @__PURE__ */ e.jsx("div", { children: /* @__PURE__ */ e.jsx(cr, { url: d, children: /* @__PURE__ */ e.jsx(ar, { size: 32, round: !0 }) }) }),
3402
3402
  /* @__PURE__ */ e.jsx("div", { children: /* @__PURE__ */ e.jsx(lr, { url: "https://static.mypixia.com", media: d, children: /* @__PURE__ */ e.jsx(dr, { size: 32, round: !0 }) }) }),
3403
3403
  /* @__PURE__ */ e.jsx("div", { children: /* @__PURE__ */ e.jsx(
3404
- hr,
3404
+ pr,
3405
3405
  {
3406
3406
  url: d,
3407
3407
  title: "Hello",
3408
3408
  windowWidth: 660,
3409
3409
  windowHeight: 460,
3410
- children: /* @__PURE__ */ e.jsx(pr, { size: 32, round: !0 })
3410
+ children: /* @__PURE__ */ e.jsx(hr, { size: 32, round: !0 })
3411
3411
  }
3412
3412
  ) }),
3413
3413
  /* @__PURE__ */ e.jsx("div", { children: /* @__PURE__ */ e.jsx(
@@ -3434,15 +3434,15 @@ function bn(y) {
3434
3434
  )
3435
3435
  ] });
3436
3436
  };
3437
- return /* @__PURE__ */ e.jsxs(I.Fragment, { children: [
3437
+ return /* @__PURE__ */ e.jsxs(E.Fragment, { children: [
3438
3438
  /* @__PURE__ */ e.jsxs(
3439
3439
  "button",
3440
3440
  {
3441
3441
  className: "apc-mpc-widget-btn",
3442
- onClick: () => h(),
3442
+ onClick: () => p(),
3443
3443
  role: "dialog",
3444
3444
  style: {
3445
- backgroundColor: ge(r.primaryColor, 40),
3445
+ backgroundColor: be(r.primaryColor, 40),
3446
3446
  color: "#ffffff",
3447
3447
  float: "right"
3448
3448
  },
@@ -3452,77 +3452,77 @@ function bn(y) {
3452
3452
  ]
3453
3453
  }
3454
3454
  ),
3455
- i()
3455
+ c()
3456
3456
  ] });
3457
3457
  }
3458
3458
  function yn(y) {
3459
- const { theme: r, apiKey: n, apcCanvasInstance: c, updateSelectedSections: l, updateActiveSection: d, accesories: f, getDesignFormats: h } = y, [m, i] = M(!1), [g, p] = M(), b = () => {
3460
- i(!0);
3459
+ const { theme: r, apiKey: n, apcCanvasInstance: a, updateSelectedSections: l, updateActiveSection: d, accesories: f, getDesignFormats: p } = y, [m, c] = M(!1), [g, h] = M(), b = () => {
3460
+ c(!0);
3461
3461
  }, o = () => {
3462
- i(!1);
3462
+ c(!1);
3463
3463
  }, j = () => ({
3464
3464
  getPDF: () => {
3465
- const v = JSON.stringify(c);
3466
- return xe(v, c.height, c.width, "pdf", !0).then((s) => s);
3465
+ const v = JSON.stringify(a);
3466
+ return je(v, a.height, a.width, "pdf", !0).then((s) => s);
3467
3467
  },
3468
3468
  getPNG: () => {
3469
- const v = JSON.stringify(c);
3470
- return xe(v, c.height, c.width, "png", !0).then((s) => s);
3469
+ const v = JSON.stringify(a);
3470
+ return je(v, a.height, a.width, "png", !0).then((s) => s);
3471
3471
  },
3472
3472
  getSVG: () => {
3473
- const v = JSON.stringify(c);
3474
- return xe(v, c.height, c.width, "svg", !0).then((s) => s);
3473
+ const v = JSON.stringify(a);
3474
+ return je(v, a.height, a.width, "svg", !0).then((s) => s);
3475
3475
  },
3476
3476
  getJPEG: () => {
3477
- const v = JSON.stringify(c);
3478
- return xe(v, c.height, c.width, "jpeg", !0).then((s) => s);
3477
+ const v = JSON.stringify(a);
3478
+ return je(v, a.height, a.width, "jpeg", !0).then((s) => s);
3479
3479
  },
3480
3480
  getWEBP: () => {
3481
- const v = JSON.stringify(c);
3482
- return xe(v, c.height, c.width, "webp", !0).then((s) => s);
3481
+ const v = JSON.stringify(a);
3482
+ return je(v, a.height, a.width, "webp", !0).then((s) => s);
3483
3483
  }
3484
3484
  }), u = () => {
3485
- if (!c)
3485
+ if (!a)
3486
3486
  return null;
3487
- const v = JSON.stringify(c);
3488
- return /* @__PURE__ */ e.jsxs(dt, { isOpen: m, onClose: o, children: [
3487
+ const v = JSON.stringify(a);
3488
+ return /* @__PURE__ */ e.jsxs(gt, { isOpen: m, onClose: o, children: [
3489
3489
  /* @__PURE__ */ e.jsxs("div", { style: { display: "flex", flexDirection: "column" }, children: [
3490
3490
  /* @__PURE__ */ e.jsx("h3", { style: { float: "left" }, children: "Download" }),
3491
3491
  /* @__PURE__ */ e.jsx("div", { children: /* @__PURE__ */ e.jsx(
3492
- Ft,
3492
+ Vt,
3493
3493
  {
3494
3494
  apcCanvasJSON: v,
3495
- height: c.height,
3496
- width: c.width
3495
+ height: a.height,
3496
+ width: a.width
3497
3497
  }
3498
3498
  ) }),
3499
3499
  /* @__PURE__ */ e.jsxs("div", { style: { display: "flex", flexDirection: "row", gap: 5 }, children: [
3500
3500
  /* @__PURE__ */ e.jsx("div", { style: {
3501
- color: ge(r.primaryColor, 50),
3501
+ color: be(r.primaryColor, 50),
3502
3502
  fontWeight: "bold",
3503
3503
  textDecoration: "underline",
3504
3504
  cursor: "pointer"
3505
3505
  }, onClick: () => j().getPDF(), children: "PDF" }),
3506
3506
  /* @__PURE__ */ e.jsx("div", { style: {
3507
- color: ge(r.primaryColor, 50),
3507
+ color: be(r.primaryColor, 50),
3508
3508
  fontWeight: "bold",
3509
3509
  textDecoration: "underline",
3510
3510
  cursor: "pointer"
3511
3511
  }, onClick: () => j().getSVG(), children: "SVG" }),
3512
3512
  /* @__PURE__ */ e.jsx("div", { style: {
3513
- color: ge(r.primaryColor, 50),
3513
+ color: be(r.primaryColor, 50),
3514
3514
  fontWeight: "bold",
3515
3515
  textDecoration: "underline",
3516
3516
  cursor: "pointer"
3517
3517
  }, onClick: () => j().getPNG(), children: "PNG" }),
3518
3518
  /* @__PURE__ */ e.jsx("div", { style: {
3519
- color: ge(r.primaryColor, 50),
3519
+ color: be(r.primaryColor, 50),
3520
3520
  fontWeight: "bold",
3521
3521
  textDecoration: "underline",
3522
3522
  cursor: "pointer"
3523
3523
  }, onClick: () => j().getJPEG(), children: "JPEG" }),
3524
3524
  /* @__PURE__ */ e.jsx("div", { style: {
3525
- color: ge(r.primaryColor, 50),
3525
+ color: be(r.primaryColor, 50),
3526
3526
  fontWeight: "bold",
3527
3527
  textDecoration: "underline",
3528
3528
  cursor: "pointer"
@@ -3546,7 +3546,7 @@ function yn(y) {
3546
3546
  )
3547
3547
  ] });
3548
3548
  };
3549
- return /* @__PURE__ */ e.jsxs(I.Fragment, { children: [
3549
+ return /* @__PURE__ */ e.jsxs(E.Fragment, { children: [
3550
3550
  /* @__PURE__ */ e.jsxs(
3551
3551
  "button",
3552
3552
  {
@@ -3554,7 +3554,7 @@ function yn(y) {
3554
3554
  onClick: () => b(),
3555
3555
  role: "dialog",
3556
3556
  style: {
3557
- backgroundColor: ge(r.primaryColor, 40),
3557
+ backgroundColor: be(r.primaryColor, 40),
3558
3558
  color: "#ffffff",
3559
3559
  float: "right"
3560
3560
  },
@@ -3568,19 +3568,19 @@ function yn(y) {
3568
3568
  ] });
3569
3569
  }
3570
3570
  function wn(y) {
3571
- var Se;
3571
+ var Re;
3572
3572
  const {
3573
3573
  theme: r,
3574
3574
  activeSection: n,
3575
- selectedObjectType: c,
3575
+ selectedObjectType: a,
3576
3576
  renderQuickActions: l,
3577
3577
  renderActionItems: d,
3578
3578
  canvasEl: f,
3579
- zoomIn: h,
3579
+ zoomIn: p,
3580
3580
  zoomOut: m,
3581
- apcCanvasInstance: i,
3581
+ apcCanvasInstance: c,
3582
3582
  setActiveSection: g,
3583
- saveActiveDesign: p,
3583
+ saveActiveDesign: h,
3584
3584
  reloadTabs: b,
3585
3585
  initProductName: o,
3586
3586
  historyRef: j,
@@ -3589,60 +3589,60 @@ function wn(y) {
3589
3589
  setHistory: s,
3590
3590
  activeTabName: S,
3591
3591
  isPlainColor: B,
3592
- selectedProduct: E,
3593
- isMobile: L,
3592
+ selectedProduct: z,
3593
+ isMobile: _,
3594
3594
  supportedProductColors: H,
3595
- canvasId: R
3596
- } = y, [A, V] = M(), [Q, Z] = M([]), [ie, ne] = M(0), [le, ue] = I.useState(!1), be = I.useRef(null), [Oe, ze] = M(!1), [Re, Ue] = M(null), [se, qe] = M(), [Le, We] = M(), [_e, Be] = M(), [ye, G] = M(!0), [Ae, Ie] = M(), oe = () => {
3597
- ze(!0), ue(!1);
3598
- }, Te = () => {
3599
- ze(!1);
3600
- }, he = () => {
3601
- ue((k) => !k);
3595
+ canvasId: L
3596
+ } = y, [I, V] = M(), [Q, Z] = M([]), [ce, re] = M(0), [pe, ge] = E.useState(!1), ke = E.useRef(null), [Te, Be] = M(!1), [De, Ge] = M(null), [ne, nt] = M(), [Fe, Ye] = M(), [He, Pe] = M(), [Ne, G] = M(!0), [Ee, ze] = M(), se = () => {
3597
+ Be(!0), ge(!1);
3598
+ }, Me = () => {
3599
+ Be(!1);
3600
+ }, st = () => {
3601
+ ge((k) => !k);
3602
3602
  };
3603
- ce(() => {
3603
+ ae(() => {
3604
3604
  const k = (O) => {
3605
- be.current && be.current.contains(O.target) || ue(!1);
3605
+ ke.current && ke.current.contains(O.target) || ge(!1);
3606
3606
  };
3607
3607
  return document.addEventListener("mousedown", k), () => {
3608
3608
  document.removeEventListener("mousedown", k);
3609
3609
  };
3610
- }, []), ce(() => {
3610
+ }, []), ae(() => {
3611
3611
  (async () => {
3612
- var O, K;
3613
- if (A)
3612
+ var O, Y;
3613
+ if (I)
3614
3614
  try {
3615
- const P = await Xe(A);
3616
- Be(P), (O = P == null ? void 0 : P.misc) != null && O.colorSettings && qe(P.misc.colorSettings), ((K = P == null ? void 0 : P.misc) == null ? void 0 : K.type) !== "subsection" && Ie(P);
3617
- } catch (P) {
3618
- console.error("Error fetching tab data: ", P);
3615
+ const F = await tt(I);
3616
+ Pe(F), (O = F == null ? void 0 : F.misc) != null && O.colorSettings && nt(F.misc.colorSettings), ((Y = F == null ? void 0 : F.misc) == null ? void 0 : Y.type) !== "subsection" && ze(F);
3617
+ } catch (F) {
3618
+ console.error("Error fetching tab data: ", F);
3619
3619
  }
3620
3620
  })();
3621
- }, [A, b]), ce(() => {
3621
+ }, [I, b]), ae(() => {
3622
3622
  (async () => {
3623
- const O = await Me();
3624
- let K = O ? O.filter((P) => {
3625
- var ee;
3626
- return P.classification !== "cart" && ((ee = P.misc) == null ? void 0 : ee.type) !== "subsection";
3627
- }).map((P) => P.id) : [];
3628
- K.length === 0 && K.push("design"), ie === 0 && V(K[0]), Z(K);
3623
+ const O = await _e();
3624
+ let Y = O ? O.filter((F) => {
3625
+ var te;
3626
+ return F.classification !== "cart" && ((te = F.misc) == null ? void 0 : te.type) !== "subsection";
3627
+ }).map((F) => F.id) : [];
3628
+ Y.length === 0 && Y.push("design"), ce === 0 && V(Y[0]), Z(Y);
3629
3629
  })();
3630
- }, [ie, b]);
3631
- const we = () => {
3632
- i && (i.clear(), i.renderAll());
3633
- }, fe = (k) => {
3634
- if (!i)
3630
+ }, [ce, b]);
3631
+ const fe = () => {
3632
+ c && (c.clear(), c.renderAll());
3633
+ }, he = (k) => {
3634
+ if (!c)
3635
3635
  return;
3636
- i.backgroundColor = "transparent", i && i.requestRenderAll();
3637
- let O = i.backgroundImage;
3636
+ c.backgroundColor = "transparent", c && c.requestRenderAll();
3637
+ let O = c.backgroundImage;
3638
3638
  O && (O.filters = [], O.filters.push(
3639
3639
  new D.Image.filters.BlendColor({
3640
3640
  color: k
3641
3641
  })
3642
- ), O.applyFilters(), i && i.requestRenderAll(), We(k), p(i, _e));
3643
- }, me = () => {
3644
- if (!(!se || (se == null ? void 0 : se.length) <= 1))
3645
- return se.map((k, O) => /* @__PURE__ */ e.jsxs(I.Fragment, { children: [
3642
+ ), O.applyFilters(), c && c.requestRenderAll(), Ye(k), h(c, He));
3643
+ }, ye = () => {
3644
+ if (!(!ne || (ne == null ? void 0 : ne.length) <= 1))
3645
+ return ne.map((k, O) => /* @__PURE__ */ e.jsxs(E.Fragment, { children: [
3646
3646
  /* @__PURE__ */ e.jsx(
3647
3647
  "div",
3648
3648
  {
@@ -3653,57 +3653,57 @@ function wn(y) {
3653
3653
  cursor: "pointer",
3654
3654
  border: "solid 1px #ffffff"
3655
3655
  },
3656
- onClick: () => fe(k)
3656
+ onClick: () => he(k)
3657
3657
  }
3658
3658
  ),
3659
3659
  " "
3660
3660
  ] }, O));
3661
- }, $e = async (k, O) => {
3662
- var ve, re;
3663
- const K = (re = (ve = i == null ? void 0 : i.backgroundImage) == null ? void 0 : ve.filters[0]) == null ? void 0 : re.color, P = await Xe(k);
3664
- if (!P)
3661
+ }, Ve = async (k, O) => {
3662
+ var ve, we;
3663
+ const Y = (we = (ve = c == null ? void 0 : c.backgroundImage) == null ? void 0 : ve.filters[0]) == null ? void 0 : we.color, F = await tt(k);
3664
+ if (!F)
3665
3665
  return;
3666
- const ee = P != null && P.content ? JSON.parse(P.content) : null;
3667
- ee && i ? (i.clear(), i.setBackgroundImage(null), i.loadFromJSON(ee, () => {
3668
- var ke;
3669
- i.renderAll(), g(P), ((ke = P == null ? void 0 : P.misc) == null ? void 0 : ke.type) !== "subsection" ? (sessionStorage.setItem("apc_x_activeTab", k), G(!0)) : (G(!1), K && fe(K)), V(k);
3666
+ const te = F != null && F.content ? JSON.parse(F.content) : null;
3667
+ te && c ? (c.clear(), c.setBackgroundImage(null), c.loadFromJSON(te, () => {
3668
+ var oe;
3669
+ c.renderAll(), g(F), ((oe = F == null ? void 0 : F.misc) == null ? void 0 : oe.type) !== "subsection" ? (sessionStorage.setItem("apc_x_activeTab", k), G(!0)) : (G(!1), Y && he(Y)), V(k);
3670
3670
  })) : console.error("Failed to load JSON content for section:", k);
3671
- }, Ce = () => Q.map((k) => /* @__PURE__ */ e.jsx("button", { className: `tablinks ${A === k ? "active" : null}`, onClick: () => $e(k), children: k }, k)), Ee = () => {
3672
- Me().then((k) => {
3671
+ }, Ke = () => Q.map((k) => /* @__PURE__ */ e.jsx("button", { className: `tablinks ${I === k ? "active" : null}`, onClick: () => Ve(k), children: k }, k)), me = () => {
3672
+ _e().then((k) => {
3673
3673
  if (k && k.length > 0) {
3674
- const O = k[0], K = JSON.parse(O.content);
3675
- i.loadFromJSON(K, function() {
3676
- i.off("object:modified"), i.on({
3677
- "object:modified": (P) => {
3678
- p(i, O);
3674
+ const O = k[0], Y = JSON.parse(O.content);
3675
+ c.loadFromJSON(Y, function() {
3676
+ c.off("object:modified"), c.on({
3677
+ "object:modified": (F) => {
3678
+ h(c, O);
3679
3679
  }
3680
- }), V(O.id), sessionStorage.setItem("apc_x_activeTab", O.id), g(O), ne(ie + 1), i && i.renderAll();
3680
+ }), V(O.id), sessionStorage.setItem("apc_x_activeTab", O.id), g(O), re(ce + 1), c && c.renderAll();
3681
3681
  });
3682
3682
  } else {
3683
3683
  let O = "design";
3684
- const K = JSON.stringify(i);
3685
- Ve(O, "general", K, null).then((P) => {
3686
- Xe(O).then((ee) => {
3687
- const ve = JSON.parse(ee.content);
3688
- i.loadFromJSON(ve, function() {
3689
- i.off("object:modified"), i.on({
3690
- "object:modified": (re) => {
3691
- p(i, ee);
3684
+ const Y = JSON.stringify(c);
3685
+ Je(O, "general", Y, null).then((F) => {
3686
+ tt(O).then((te) => {
3687
+ const ve = JSON.parse(te.content);
3688
+ c.loadFromJSON(ve, function() {
3689
+ c.off("object:modified"), c.on({
3690
+ "object:modified": (we) => {
3691
+ h(c, te);
3692
3692
  }
3693
- }), V(O), sessionStorage.setItem("apc_x_activeTab", O), g(ee), ne(ie + 1), i && i.renderAll();
3693
+ }), V(O), sessionStorage.setItem("apc_x_activeTab", O), g(te), re(ce + 1), c && c.renderAll();
3694
3694
  });
3695
3695
  });
3696
3696
  });
3697
3697
  }
3698
3698
  });
3699
- }, Je = () => {
3700
- en(A).then((k) => {
3701
- Te(), Ee();
3699
+ }, ot = () => {
3700
+ en(I).then((k) => {
3701
+ Me(), me();
3702
3702
  });
3703
- }, Ze = () => i ? /* @__PURE__ */ e.jsxs(dt, { isOpen: Oe, onClose: Te, children: [
3703
+ }, Xe = () => c ? /* @__PURE__ */ e.jsxs(gt, { isOpen: Te, onClose: Me, children: [
3704
3704
  /* @__PURE__ */ e.jsx("div", { children: /* @__PURE__ */ e.jsxs("h3", { style: { marginLeft: "30%", color: "green" }, children: [
3705
3705
  "Are you sure you want to delete ",
3706
- /* @__PURE__ */ e.jsx("u", { children: A }),
3706
+ /* @__PURE__ */ e.jsx("u", { children: I }),
3707
3707
  " ?"
3708
3708
  ] }) }),
3709
3709
  /* @__PURE__ */ e.jsx("br", {}),
@@ -3717,7 +3717,7 @@ function wn(y) {
3717
3717
  autoFocus: !0,
3718
3718
  type: "button",
3719
3719
  className: "apc-mpc-widget-btn",
3720
- onClick: () => Je(),
3720
+ onClick: () => ot(),
3721
3721
  style: { backgroundColor: "green", color: "#ffffff" },
3722
3722
  children: "Yes"
3723
3723
  }
@@ -3728,15 +3728,15 @@ function wn(y) {
3728
3728
  autoFocus: !0,
3729
3729
  type: "button",
3730
3730
  className: "apc-mpc-widget-btn",
3731
- onClick: () => Te(),
3731
+ onClick: () => Me(),
3732
3732
  style: { backgroundColor: "red", color: "#ffffff", float: "right" },
3733
3733
  children: "Close"
3734
3734
  }
3735
3735
  ) })
3736
3736
  ] })
3737
- ] }) : null, De = () => /* @__PURE__ */ e.jsxs("div", { className: "apc-mpx-widget-button-group-container", children: [
3738
- /* @__PURE__ */ e.jsx("div", { className: "apc-mpx-widget-generic-icon", onClick: he, 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: Hr }) }) }),
3739
- le && /* @__PURE__ */ e.jsxs("div", { className: "apc-mpx-widget-popper-container", ref: be, children: [
3737
+ ] }) : null, Ue = () => /* @__PURE__ */ e.jsxs("div", { className: "apc-mpx-widget-button-group-container", children: [
3738
+ /* @__PURE__ */ e.jsx("div", { className: "apc-mpx-widget-generic-icon", onClick: st, 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: Pr }) }) }),
3739
+ pe && /* @__PURE__ */ e.jsxs("div", { className: "apc-mpx-widget-popper-container", ref: ke, children: [
3740
3740
  /* @__PURE__ */ e.jsx("div", { className: "apc-mpx-widget-popper-arrow-up" }),
3741
3741
  /* @__PURE__ */ e.jsxs("ul", { autoFocus: !0, style: {
3742
3742
  paddingInlineStart: "2px",
@@ -3744,7 +3744,7 @@ function wn(y) {
3744
3744
  marginBlockEnd: "2px",
3745
3745
  fontSize: "13px",
3746
3746
  padding: "3px",
3747
- color: ge(r.primaryColor, 80),
3747
+ color: be(r.primaryColor, 80),
3748
3748
  width: "max-content"
3749
3749
  }, children: [
3750
3750
  /* @__PURE__ */ e.jsxs(
@@ -3752,7 +3752,7 @@ function wn(y) {
3752
3752
  {
3753
3753
  className: "apc-mpx-widget-popper-li",
3754
3754
  style: { height: "25px", cursor: "pointer", borderBottom: "1px solid #d7d7d7" },
3755
- onClick: () => oe(),
3755
+ onClick: () => se(),
3756
3756
  role: "dialog",
3757
3757
  children: [
3758
3758
  /* @__PURE__ */ e.jsx(
@@ -3763,7 +3763,7 @@ function wn(y) {
3763
3763
  height: "16",
3764
3764
  width: "14",
3765
3765
  viewBox: "0 0 448 512",
3766
- children: /* @__PURE__ */ e.jsx("path", { d: _t, fill: ge(r.primaryColor, 80) })
3766
+ children: /* @__PURE__ */ e.jsx("path", { d: Ft, fill: be(r.primaryColor, 80) })
3767
3767
  }
3768
3768
  ),
3769
3769
  "  Delete"
@@ -3775,7 +3775,7 @@ function wn(y) {
3775
3775
  {
3776
3776
  className: "apc-mpx-widget-popper-li",
3777
3777
  style: { height: "25px", cursor: "pointer", marginBlockStart: "5px" },
3778
- onClick: () => we(),
3778
+ onClick: () => fe(),
3779
3779
  role: "dialog",
3780
3780
  children: [
3781
3781
  /* @__PURE__ */ e.jsx(
@@ -3786,7 +3786,7 @@ function wn(y) {
3786
3786
  className: "apc-mpx-hover-div",
3787
3787
  width: "14",
3788
3788
  viewBox: "0 0 576 512",
3789
- children: /* @__PURE__ */ e.jsx("path", { d: Vr, fill: ge(r.primaryColor, 80) })
3789
+ children: /* @__PURE__ */ e.jsx("path", { d: Vr, fill: be(r.primaryColor, 80) })
3790
3790
  }
3791
3791
  ),
3792
3792
  "  Clear"
@@ -3795,70 +3795,70 @@ function wn(y) {
3795
3795
  )
3796
3796
  ] })
3797
3797
  ] })
3798
- ] }), et = (k) => {
3799
- var re, ke, Pe, Ge;
3800
- const O = i.width * 5, K = i.height * 5, P = JSON.parse(Ae.content), ee = (ke = (re = P == null ? void 0 : P.backgroundImage) == null ? void 0 : re.filters[0]) == null ? void 0 : ke.color, ve = (Ge = (Pe = i == null ? void 0 : i.backgroundImage) == null ? void 0 : Pe.filters[0]) == null ? void 0 : Ge.color;
3801
- Xe(k.sectionName).then(async (a) => {
3802
- if (a) {
3803
- const N = a != null && a.content ? JSON.parse(a.content) : null;
3804
- N && i ? (await i.loadFromJSON(N, () => {
3805
- i.renderAll(), g(a), V(k.sectionName);
3806
- const T = JSON.stringify(i), w = {};
3807
- w.id = k.sectionName, w.classification = E == null ? void 0 : E.name, w.json = T, w.misc = {
3798
+ ] }), it = (k) => {
3799
+ var we, oe, qe, We;
3800
+ const O = c.width * 5, Y = c.height * 5, F = JSON.parse(Ee.content), te = (oe = (we = F == null ? void 0 : F.backgroundImage) == null ? void 0 : we.filters[0]) == null ? void 0 : oe.color, ve = (We = (qe = c == null ? void 0 : c.backgroundImage) == null ? void 0 : qe.filters[0]) == null ? void 0 : We.color;
3801
+ tt(k.sectionName).then(async (Ce) => {
3802
+ if (Ce) {
3803
+ const i = Ce != null && Ce.content ? JSON.parse(Ce.content) : null;
3804
+ i && c ? (await c.loadFromJSON(i, () => {
3805
+ c.renderAll(), g(Ce), V(k.sectionName);
3806
+ const A = JSON.stringify(c), N = {};
3807
+ N.id = k.sectionName, N.classification = z == null ? void 0 : z.name, N.json = A, N.misc = {
3808
3808
  sectionName: k.sectionName,
3809
3809
  sectionImage: k.sectionImage,
3810
3810
  type: k.type
3811
- }, i.off("object:modified"), i.on({
3812
- "object:modified": ($) => {
3813
- p(i, w);
3811
+ }, c.off("object:modified"), c.on({
3812
+ "object:modified": (w) => {
3813
+ h(c, N);
3814
3814
  }
3815
3815
  });
3816
- }), fe(ve), ye || G(!0)) : console.error("Failed to load JSON content for section:", k.sectionName);
3816
+ }), he(ve), Ne || G(!0)) : console.error("Failed to load JSON content for section:", k.sectionName);
3817
3817
  } else
3818
- i && i.clear(), k.type = "subsection", D.Image.fromURL(k.sectionImage, function(N) {
3819
- N.width = O, N.height = K, N.scaleToWidth(O), N.scaleToHeight(K), i.setBackgroundImage(N), (Le || ee) && (N.filters = [], N.filters.push(
3818
+ c && c.clear(), k.type = "subsection", D.Image.fromURL(k.sectionImage, function(i) {
3819
+ i.width = O, i.height = Y, i.scaleToWidth(O), i.scaleToHeight(Y), c.setBackgroundImage(i), (Fe || te) && (i.filters = [], i.filters.push(
3820
3820
  new D.Image.filters.BlendColor({
3821
- color: Le || ee
3821
+ color: Fe || te
3822
3822
  })
3823
- ), N.applyFilters());
3824
- const T = JSON.stringify(i), w = {};
3825
- w.id = k.sectionName, w.classification = Ae.id, w.json = T, w.misc = {
3823
+ ), i.applyFilters());
3824
+ const A = JSON.stringify(c), N = {};
3825
+ N.id = k.sectionName, N.classification = Ee.id, N.json = A, N.misc = {
3826
3826
  sectionName: k.sectionName,
3827
3827
  sectionImage: k.sectionImage,
3828
3828
  type: k.type
3829
- }, i.off("object:modified"), i.on({
3830
- "object:modified": ($) => {
3831
- p(i, w);
3829
+ }, c.off("object:modified"), c.on({
3830
+ "object:modified": (w) => {
3831
+ h(c, N);
3832
3832
  }
3833
- }), Ve(k.sectionName, A, T, { ...k }).then(($) => {
3834
- i && (i.renderAll(), ye && G(!1), V(k.sectionName), ne(ie + 1));
3833
+ }), Je(k.sectionName, I, A, { ...k }).then((w) => {
3834
+ c && (c.renderAll(), Ne && G(!1), V(k.sectionName), re(ce + 1));
3835
3835
  });
3836
3836
  }, { crossOrigin: "anonymous" });
3837
3837
  });
3838
- }, tt = () => {
3839
- if (!_e)
3838
+ }, ct = () => {
3839
+ if (!He)
3840
3840
  return null;
3841
3841
  let k = [];
3842
- if (E) {
3843
- const O = E.sections.map((K) => ({
3844
- ...K,
3842
+ if (z) {
3843
+ const O = z.sections.map((Y) => ({
3844
+ ...Y,
3845
3845
  type: "subsection"
3846
3846
  }));
3847
3847
  k.push(...O), k.push({
3848
- sectionName: E == null ? void 0 : E.name,
3849
- sectionImage: E == null ? void 0 : E.mainImage,
3848
+ sectionName: z == null ? void 0 : z.name,
3849
+ sectionImage: z == null ? void 0 : z.mainImage,
3850
3850
  type: "main"
3851
3851
  });
3852
3852
  }
3853
3853
  return k = k == null ? void 0 : k.map((O) => ({
3854
3854
  ...O,
3855
- active: O.sectionName === A
3856
- })), (k == null ? void 0 : k.length) < 1 ? null : k == null ? void 0 : k.map((O, K) => {
3857
- var P, ee;
3855
+ active: O.sectionName === I
3856
+ })), (k == null ? void 0 : k.length) < 1 ? null : k == null ? void 0 : k.map((O, Y) => {
3857
+ var F, te;
3858
3858
  return /* @__PURE__ */ e.jsxs(
3859
3859
  "div",
3860
3860
  {
3861
- onClick: () => et(O),
3861
+ onClick: () => it(O),
3862
3862
  style: {
3863
3863
  position: "relative",
3864
3864
  // For placing the checkmark
@@ -3899,7 +3899,7 @@ function wn(y) {
3899
3899
  )
3900
3900
  }
3901
3901
  ),
3902
- !L && /* @__PURE__ */ e.jsx(
3902
+ !_ && /* @__PURE__ */ e.jsx(
3903
3903
  "div",
3904
3904
  {
3905
3905
  style: {
@@ -3931,24 +3931,24 @@ function wn(y) {
3931
3931
  color: "#333"
3932
3932
  // Adjusted color for better readability
3933
3933
  },
3934
- children: ((P = O == null ? void 0 : O.sectionName) == null ? void 0 : P.length) > 5 ? `${(ee = O == null ? void 0 : O.sectionName) == null ? void 0 : ee.substring(0, 5)}...` : (O == null ? void 0 : O.sectionName) || "view"
3934
+ children: ((F = O == null ? void 0 : O.sectionName) == null ? void 0 : F.length) > 5 ? `${(te = O == null ? void 0 : O.sectionName) == null ? void 0 : te.substring(0, 5)}...` : (O == null ? void 0 : O.sectionName) || "view"
3935
3935
  }
3936
3936
  )
3937
3937
  ]
3938
3938
  },
3939
- K
3939
+ Y
3940
3940
  );
3941
3941
  });
3942
- }, Fe = () => {
3942
+ }, Qe = () => {
3943
3943
  if (j.current.length > 0) {
3944
3944
  const k = j.current.pop();
3945
- i.loadFromJSON(k, () => {
3946
- i.renderAll(), v(k);
3945
+ c.loadFromJSON(k, () => {
3946
+ c.renderAll(), v(k);
3947
3947
  });
3948
3948
  }
3949
3949
  };
3950
- return /* @__PURE__ */ e.jsxs(I.Fragment, { children: [
3951
- /* @__PURE__ */ e.jsx("div", { className: "tab", children: Ce() }),
3950
+ return /* @__PURE__ */ e.jsxs(E.Fragment, { children: [
3951
+ /* @__PURE__ */ e.jsx("div", { className: "tab", children: Ke() }),
3952
3952
  /* @__PURE__ */ e.jsxs("div", { style: {
3953
3953
  display: "flex",
3954
3954
  backgroundColor: r.primaryColor,
@@ -3969,7 +3969,7 @@ function wn(y) {
3969
3969
  cursor: "pointer",
3970
3970
  height: "12px"
3971
3971
  },
3972
- onClick: () => Fe(),
3972
+ onClick: () => Qe(),
3973
3973
  title: "UNDO",
3974
3974
  children: /* @__PURE__ */ e.jsx(
3975
3975
  "svg",
@@ -3986,22 +3986,22 @@ function wn(y) {
3986
3986
  ),
3987
3987
  " "
3988
3988
  ] }) }) }),
3989
- /* @__PURE__ */ e.jsx("div", { style: { flexBasis: "20%" }, children: c ? l() : null }),
3990
- /* @__PURE__ */ e.jsx("div", { style: { flexBasis: "40%", marginTop: "8px" }, children: c ? d() : null }),
3991
- De()
3989
+ /* @__PURE__ */ e.jsx("div", { style: { flexBasis: "20%" }, children: a ? l() : null }),
3990
+ /* @__PURE__ */ e.jsx("div", { style: { flexBasis: "40%", marginTop: "8px" }, children: a ? d() : null }),
3991
+ Ue()
3992
3992
  ] }),
3993
3993
  /* @__PURE__ */ e.jsxs("div", { id: "apc-mpx-editor-canvas-container", style: { minHeight: "90vh", padding: "3px", overflowX: "hidden", position: "relative" }, children: [
3994
3994
  /* @__PURE__ */ e.jsxs("div", { style: { display: "flex", flexDirection: "row" }, children: [
3995
- /* @__PURE__ */ e.jsx("div", { children: /* @__PURE__ */ e.jsx("div", { style: { zIndex: 1e3, overflow: "hidden", position: "absolute", marginLeft: "1%", display: "flex", flexDirection: "row" }, children: ((Se = E == null ? void 0 : E.sections) == null ? void 0 : Se.length) > 0 ? tt() : null }) }),
3996
- /* @__PURE__ */ e.jsx("div", { children: /* @__PURE__ */ e.jsx("canvas", { id: R ?? "apc-mpx-editor-canvas", ref: f, height: 1e3 }) }),
3997
- se && (B || (n == null ? void 0 : n.plainColor) === "Y") && ye && (se == null ? void 0 : se.length) > 1 ? /* @__PURE__ */ e.jsxs("div", { style: { zIndex: 1e3, overflow: "hidden", position: "absolute", marginLeft: "90%" }, children: [
3995
+ /* @__PURE__ */ e.jsx("div", { children: /* @__PURE__ */ e.jsx("div", { style: { zIndex: 1e3, overflow: "hidden", position: "absolute", marginLeft: "1%", display: "flex", flexDirection: "row", marginTop: "1.3rem" }, children: ((Re = z == null ? void 0 : z.sections) == null ? void 0 : Re.length) > 0 ? ct() : null }) }),
3996
+ /* @__PURE__ */ e.jsx("div", { children: /* @__PURE__ */ e.jsx("canvas", { id: L ?? "apc-mpx-editor-canvas", ref: f, height: 1e3 }) }),
3997
+ ne && (B || (n == null ? void 0 : n.plainColor) === "Y") && Ne && (ne == null ? void 0 : ne.length) > 1 ? /* @__PURE__ */ e.jsxs("div", { style: { zIndex: 1e3, overflow: "hidden", position: "absolute", marginLeft: "90%" }, children: [
3998
3998
  /* @__PURE__ */ e.jsx("br", {}),
3999
3999
  /* @__PURE__ */ e.jsx("div", { style: {
4000
4000
  backgroundColor: "#ff000026",
4001
4001
  border: "solid 1px #ccc",
4002
4002
  padding: "3px",
4003
4003
  borderRadius: "6px"
4004
- }, children: se && (se == null ? void 0 : se.length) > 1 ? me() : null })
4004
+ }, children: ne && (ne == null ? void 0 : ne.length) > 1 ? ye() : null })
4005
4005
  ] }) : null
4006
4006
  ] }),
4007
4007
  /* @__PURE__ */ e.jsxs("div", { style: { marginLeft: "45%" }, children: [
@@ -4011,7 +4011,7 @@ function wn(y) {
4011
4011
  {
4012
4012
  style: { height: "35px", width: "65px", cursor: "pointer" },
4013
4013
  "aria-label": "zoom in",
4014
- onClick: () => h(),
4014
+ onClick: () => p(),
4015
4015
  children: "+"
4016
4016
  }
4017
4017
  ),
@@ -4026,76 +4026,76 @@ function wn(y) {
4026
4026
  )
4027
4027
  ] })
4028
4028
  ] }),
4029
- Ze()
4029
+ Xe()
4030
4030
  ] });
4031
4031
  }
4032
- function Cn({ data: y, theme: r, apcCanvasInstance: n, closeMobileModalSecondaryPanel: c, isMobile: l }) {
4033
- const [d, f] = M({}), h = (p) => {
4032
+ function Cn({ data: y, theme: r, apcCanvasInstance: n, closeMobileModalSecondaryPanel: a, isMobile: l }) {
4033
+ const [d, f] = M({}), p = (h) => {
4034
4034
  f((b) => ({
4035
4035
  ...b,
4036
- [p]: !b[p]
4036
+ [h]: !b[h]
4037
4037
  }));
4038
- }, m = async (p) => {
4039
- const b = await Dt(p);
4038
+ }, m = async (h) => {
4039
+ const b = await Pt(h);
4040
4040
  b && D.Image.fromURL(b, (o) => {
4041
4041
  o.set({
4042
4042
  left: 100,
4043
4043
  top: 100,
4044
4044
  scaleX: 0.3,
4045
4045
  scaleY: 0.3
4046
- }), n.add(o), n.renderAll(), l && c(!0);
4046
+ }), n.add(o), n.renderAll(), l && a(!0);
4047
4047
  });
4048
- }, i = (p, b = "", o = 0) => /* @__PURE__ */ e.jsx("ul", { style: { listStyleType: "none", paddingLeft: `${o * 20}px`, margin: "0" }, children: Object.keys(p).map((j) => {
4048
+ }, c = (h, b = "", o = 0) => /* @__PURE__ */ e.jsx("ul", { style: { listStyleType: "none", paddingLeft: `${o * 20}px`, margin: "0" }, children: Object.keys(h).map((j) => {
4049
4049
  const u = `${b}/${j}`, v = d[u];
4050
- return p[j].type === "image" ? /* @__PURE__ */ e.jsx("li", { children: /* @__PURE__ */ e.jsx("div", { onClick: () => m(p[j].url), style: { cursor: "pointer" }, children: /* @__PURE__ */ e.jsx("img", { src: p[j].url, alt: j, style: { width: "100px", height: "auto" } }) }) }, u) : /* @__PURE__ */ e.jsxs("li", { children: [
4051
- /* @__PURE__ */ e.jsxs("div", { onClick: () => h(u), style: { cursor: "pointer", display: "flex", alignItems: "center", fontWeight: "bold", color: r.primaryColorLight }, children: [
4050
+ return h[j].type === "image" ? /* @__PURE__ */ e.jsx("li", { children: /* @__PURE__ */ e.jsx("div", { onClick: () => m(h[j].url), style: { cursor: "pointer" }, children: /* @__PURE__ */ e.jsx("img", { src: h[j].url, alt: j, style: { width: "100px", height: "auto" } }) }) }, u) : /* @__PURE__ */ e.jsxs("li", { children: [
4051
+ /* @__PURE__ */ e.jsxs("div", { onClick: () => p(u), style: { cursor: "pointer", display: "flex", alignItems: "center", fontWeight: "bold", color: r.primaryColorLight }, children: [
4052
4052
  /* @__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: Kr, fill: r.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: Xr, fill: r.primaryColorLight }) }) }),
4053
4053
  j
4054
4054
  ] }),
4055
- v && i(p[j], u, o + 1)
4055
+ v && c(h[j], u, o + 1)
4056
4056
  ] }, u);
4057
4057
  }) }), g = Sn(y);
4058
- return /* @__PURE__ */ e.jsx("div", { children: i(g) });
4058
+ return /* @__PURE__ */ e.jsx("div", { children: c(g) });
4059
4059
  }
4060
4060
  function Sn(y) {
4061
4061
  const r = {};
4062
4062
  return y.forEach((n) => {
4063
- const c = n.name.split("/");
4063
+ const a = n.name.split("/");
4064
4064
  let l = r;
4065
- c.forEach((d, f) => {
4066
- l[d] || (l[d] = f === c.length - 1 ? n : {}), l = l[d];
4065
+ a.forEach((d, f) => {
4066
+ l[d] || (l[d] = f === a.length - 1 ? n : {}), l = l[d];
4067
4067
  });
4068
4068
  }), r;
4069
4069
  }
4070
4070
  function kn(y) {
4071
- const { apcCanvasInstance: r, theme: n, apiEndpoint: c, isMobile: l, closeMobileModalSecondaryPanel: d, apiKey: f } = y, h = `${c}/api/v1/designer`, [m, i] = M([]), [g, p] = M(!1), [b, o] = M(!1), [j, u] = M(!1), v = sessionStorage.getItem("apc_x_sub_status"), s = sessionStorage.getItem("apc_x_stickers");
4072
- ce(() => {
4073
- p(!0), (async () => {
4074
- v === "active" ? o(!0) : await B(), s ? (i(JSON.parse(s)), p(!1)) : await S();
4071
+ const { apcCanvasInstance: r, theme: n, apiEndpoint: a, isMobile: l, closeMobileModalSecondaryPanel: d, apiKey: f } = y, p = `${a}/api/v1/designer`, [m, c] = M([]), [g, h] = M(!1), [b, o] = M(!1), [j, u] = M(!1), v = sessionStorage.getItem("apc_x_sub_status"), s = sessionStorage.getItem("apc_x_stickers");
4072
+ ae(() => {
4073
+ h(!0), (async () => {
4074
+ v === "active" ? o(!0) : await B(), s ? (c(JSON.parse(s)), h(!1)) : await S();
4075
4075
  })();
4076
4076
  }, []);
4077
4077
  const S = () => {
4078
- p(!0);
4079
- const E = `${h}/get-stickers`;
4080
- je.get(E).then((L) => {
4081
- L.data.object && (i(L.data.object.contents), sessionStorage.setItem("apc_x_stickers", JSON.stringify(L.data.object.contents)));
4082
- }).catch((L) => {
4083
- console.error("Error fetching data:", L);
4078
+ h(!0);
4079
+ const z = `${p}/get-stickers`;
4080
+ Se.get(z).then((_) => {
4081
+ _.data.object && (c(_.data.object.contents), sessionStorage.setItem("apc_x_stickers", JSON.stringify(_.data.object.contents)));
4082
+ }).catch((_) => {
4083
+ console.error("Error fetching data:", _);
4084
4084
  }).finally(() => {
4085
- p(!1);
4085
+ h(!1);
4086
4086
  });
4087
4087
  }, B = () => {
4088
- p(!0);
4089
- const E = `${h}/get-subscription-status/${f}`;
4090
- je.get(E).then((L) => {
4091
- L.data.object && L.data.object === "active" && (sessionStorage.setItem("apc_x_sub_status", "active"), o(!0));
4092
- }).catch((L) => {
4088
+ h(!0);
4089
+ const z = `${p}/get-subscription-status/${f}`;
4090
+ Se.get(z).then((_) => {
4091
+ _.data.object && _.data.object === "active" && (sessionStorage.setItem("apc_x_sub_status", "active"), o(!0));
4092
+ }).catch((_) => {
4093
4093
  sessionStorage.setItem("apc_x_sub_status", "");
4094
4094
  }).finally(() => {
4095
- p(!1), u(!0);
4095
+ h(!1), u(!0);
4096
4096
  });
4097
4097
  };
4098
- return !b && !g && j ? /* @__PURE__ */ e.jsx(at, { theme: n }) : b && m.length > 0 && !g ? /* @__PURE__ */ e.jsx(I.Fragment, { children: /* @__PURE__ */ e.jsx("div", { style: { padding: "10px" }, children: /* @__PURE__ */ e.jsx(
4098
+ return !b && !g && j ? /* @__PURE__ */ e.jsx(ft, { theme: n }) : b && m.length > 0 && !g ? /* @__PURE__ */ e.jsx(E.Fragment, { children: /* @__PURE__ */ e.jsx("div", { style: { padding: "10px" }, children: /* @__PURE__ */ e.jsx(
4099
4099
  Cn,
4100
4100
  {
4101
4101
  data: m,
@@ -4104,16 +4104,16 @@ function kn(y) {
4104
4104
  isMobile: l,
4105
4105
  closeMobileModalSecondaryPanel: d
4106
4106
  }
4107
- ) }) }) : /* @__PURE__ */ e.jsx("div", { children: /* @__PURE__ */ e.jsx(lt, {}) });
4107
+ ) }) }) : /* @__PURE__ */ e.jsx("div", { children: /* @__PURE__ */ e.jsx(xt, {}) });
4108
4108
  }
4109
4109
  const Nn = Kt((y, r) => {
4110
4110
  const {
4111
4111
  theme: n = jr,
4112
- canvasId: c = null,
4112
+ canvasId: a = null,
4113
4113
  readOnly: l = !1,
4114
4114
  apiKey: d = null,
4115
4115
  apiEndpoint: f,
4116
- enabledModules: h = [
4116
+ enabledModules: p = [
4117
4117
  "TXT",
4118
4118
  "STICKERS",
4119
4119
  "SHAPES",
@@ -4128,9 +4128,9 @@ const Nn = Kt((y, r) => {
4128
4128
  share: !1,
4129
4129
  download: !0
4130
4130
  },
4131
- initInstance: i = null,
4131
+ initInstance: c = null,
4132
4132
  initCategory: g = null,
4133
- additionalActionButton: p = null,
4133
+ additionalActionButton: h = null,
4134
4134
  initProductName: b,
4135
4135
  isPlainColor: o,
4136
4136
  product: j = {
@@ -4151,42 +4151,43 @@ const Nn = Kt((y, r) => {
4151
4151
  }
4152
4152
  ]
4153
4153
  }
4154
- } = y, [u, v] = M(h[0]), [s, S] = M(), B = vt(null), [E, L] = M(), [H, R] = M(!1), [A, V] = M(1), Q = 0.1, [Z, ie] = M(1), [ne, le] = M([]), [ue, be] = M(null), [Oe, ze] = M(null), [Re, Ue] = M(0), [se, qe] = M(), [Le, We] = M(null), _e = vt([]), [Be, ye] = M(null), [G, Ae] = M(!1), [Ie, oe] = M(!1);
4155
- ce(() => {
4156
- const a = () => Ae(window.innerWidth < 600);
4157
- return a(), window.addEventListener("resize", a), () => window.removeEventListener("resize", a);
4158
- }, []), ce(() => {
4154
+ } = y, [u, v] = M(p[0]), [s, S] = M(), B = yt(null), [z, _] = M(), [H, L] = M(!1), [I, V] = M(1), Q = 0.1, [Z, ce] = M(1), [re, pe] = M([]), [ge, ke] = M(null), [Te, Be] = M(null), [De, Ge] = M(0), [ne, nt] = M(), [Fe, Ye] = M(null), He = yt([]), [Pe, Ne] = M(null), [G, Ee] = M(!1), [ze, se] = M(!1);
4155
+ ae(() => {
4156
+ const i = () => Ee(window.innerWidth < 600);
4157
+ return i(), window.addEventListener("resize", i), () => window.removeEventListener("resize", i);
4158
+ }, []), ae(() => {
4159
4159
  var X;
4160
- const a = document.getElementById("apc-mpx-editor-canvas-container"), N = document.getElementById("apc-mpx-editor-canvas-container");
4161
- if (!B.current || !a || !N) {
4160
+ const i = document.getElementById("apc-mpx-editor-canvas-container"), A = document.getElementById("apc-mpx-editor-canvas-container");
4161
+ if (!B.current || !i || !A) {
4162
4162
  console.error("Canvas element is not mounted yet!");
4163
4163
  return;
4164
4164
  }
4165
- const T = {
4165
+ i.style.position = "relative";
4166
+ const N = {
4166
4167
  isDrawingMode: !1,
4167
4168
  selection: !0,
4168
4169
  selectionBorderColor: "#008000",
4169
- height: N.offsetHeight,
4170
- width: a.offsetWidth,
4170
+ height: A.offsetHeight,
4171
+ width: i.offsetWidth,
4171
4172
  enableRetinaScaling: !0
4172
4173
  };
4173
4174
  let w, $;
4174
4175
  if (l)
4175
- w = new D.StaticCanvas(B.current, T);
4176
- else if (w = new D.Canvas(B.current, T), Oe)
4177
- $ = JSON.parse(Oe), w.loadFromJSON($, function() {
4176
+ w = new D.StaticCanvas(B.current, N);
4177
+ else if (w = new D.Canvas(B.current, N), Me(i).updateRulers(w.getWidth(), w.getHeight()), Te)
4178
+ $ = JSON.parse(Te), w.loadFromJSON($, function() {
4178
4179
  });
4179
- else if (i) {
4180
- let _;
4180
+ else if (c) {
4181
+ let T;
4181
4182
  try {
4182
- _ = JSON.parse(i);
4183
- } catch (F) {
4184
- console.error("Failed to parse initInstance", F);
4183
+ T = JSON.parse(c);
4184
+ } catch (le) {
4185
+ console.error("Failed to parse initInstance", le);
4185
4186
  }
4186
- w && _ ? w.loadFromJSON(_, function() {
4187
+ w && T ? w.loadFromJSON(T, function() {
4187
4188
  }) : console.error("Canvas or InitInstance is not properly initialized");
4188
4189
  } else {
4189
- const _ = new D.Textbox("Something cool!", {
4190
+ const T = new D.Textbox("Something cool!", {
4190
4191
  width: 300,
4191
4192
  left: 250,
4192
4193
  top: 300,
@@ -4194,7 +4195,7 @@ const Nn = Kt((y, r) => {
4194
4195
  fill: "#6a45d2",
4195
4196
  rotate: 20
4196
4197
  });
4197
- _.shadow = {
4198
+ T.shadow = {
4198
4199
  color: "rgba(0,0,0,0.5)",
4199
4200
  // Shadow color
4200
4201
  blur: 10,
@@ -4203,275 +4204,369 @@ const Nn = Kt((y, r) => {
4203
4204
  // Horizontal offset of shadow
4204
4205
  offsetY: 5
4205
4206
  // Vertical offset of shadow
4206
- }, w.add(_), j != null && j.mainImage && ((X = D.Image) == null || X.fromURL(j.mainImage, function(F) {
4207
- F.height = N.offsetHeight, F.width = a.offsetWidth, F.scaleToWidth(N.offsetHeight), F.scaleToHeight(a.offsetWidth), w.setBackgroundImage(F), w.setActiveObject(_), we(_), w && (w.renderAll(), Se(w));
4207
+ }, w.add(T), j != null && j.mainImage && ((X = D.Image) == null || X.fromURL(j.mainImage, function(le) {
4208
+ le.height = A.offsetHeight, le.width = i.offsetWidth, le.scaleToWidth(A.offsetHeight), le.scaleToHeight(i.offsetWidth), w.setBackgroundImage(le), w.setActiveObject(T), he(T), w && (w.renderAll(), k(w));
4208
4209
  }, { crossOrigin: "anonymous" }));
4209
4210
  }
4210
4211
  return w.on({
4211
- "selection:updated": (_) => {
4212
- const F = w.getActiveObject();
4213
- we(F);
4212
+ "selection:updated": (P) => {
4213
+ const T = w.getActiveObject();
4214
+ he(T);
4214
4215
  },
4215
- "selection:created": (_) => {
4216
- const F = w.getActiveObject();
4217
- we(F);
4216
+ "selection:created": (P) => {
4217
+ const T = w.getActiveObject();
4218
+ he(T);
4218
4219
  },
4219
- "selection:cleared": (_) => {
4220
- fe();
4220
+ "selection:cleared": (P) => {
4221
+ ye();
4221
4222
  },
4222
- "object:modified": (_) => {
4223
- Se(w), he(w);
4223
+ "object:modified": (P) => {
4224
+ k(w), fe(w);
4224
4225
  },
4225
- "object:added": (_) => {
4226
- he(w);
4226
+ "object:added": (P) => {
4227
+ fe(w);
4227
4228
  },
4228
- "object:removed": (_) => {
4229
- he(w);
4229
+ "object:removed": (P) => {
4230
+ fe(w);
4230
4231
  },
4231
- "object:created": (_) => {
4232
- he(w);
4232
+ "object:created": (P) => {
4233
+ fe(w);
4233
4234
  }
4234
- }), S(w), ie(a.offsetWidth), () => {
4235
+ }), S(w), ce(i.offsetWidth), () => {
4235
4236
  S(null), w.off({
4236
- "selection:updated": (_) => {
4237
- const F = w.getActiveObject();
4238
- we(F);
4237
+ "selection:updated": (P) => {
4238
+ const T = w.getActiveObject();
4239
+ he(T);
4239
4240
  },
4240
- "selection:created": (_) => {
4241
- const F = w.getActiveObject();
4242
- we(F);
4241
+ "selection:created": (P) => {
4242
+ const T = w.getActiveObject();
4243
+ he(T);
4243
4244
  },
4244
- "selection:cleared": (_) => {
4245
- fe();
4245
+ "selection:cleared": (P) => {
4246
+ ye();
4246
4247
  },
4247
- "object:modified": (_) => {
4248
- Se(w), he(w);
4248
+ "object:modified": (P) => {
4249
+ k(w), fe(w);
4249
4250
  },
4250
- "object:added": (_) => {
4251
- he(w);
4251
+ "object:added": (P) => {
4252
+ fe(w);
4252
4253
  },
4253
- "object:removed": (_) => {
4254
- he(w);
4254
+ "object:removed": (P) => {
4255
+ fe(w);
4255
4256
  },
4256
- "object:created": (_) => {
4257
- he(w);
4257
+ "object:created": (P) => {
4258
+ fe(w);
4258
4259
  }
4259
4260
  }), w.dispose();
4260
4261
  };
4261
- }, [Oe]), ce(() => (Te(), document.addEventListener("keydown", (a) => Fe(a)), () => {
4262
- document.removeEventListener("keydown", (a) => Fe(a));
4263
- }), [s]), ce(() => {
4262
+ }, [Te]), ae(() => (st(), document.addEventListener("keydown", (i) => Re(i)), () => {
4263
+ document.removeEventListener("keydown", (i) => Re(i));
4264
+ }), [s]), ae(() => {
4264
4265
  if (s) {
4265
- const a = document.getElementById("apc-mpx-editor-canvas-container"), N = () => {
4266
- const T = a.offsetWidth / Z;
4267
- s.setZoom(T);
4266
+ const i = document.getElementById("apc-mpx-editor-canvas-container"), A = () => {
4267
+ const N = i.offsetWidth / Z;
4268
+ s.setZoom(N);
4268
4269
  };
4269
- return window.addEventListener("resize", N), () => {
4270
- window.removeEventListener("resize", N);
4270
+ return window.addEventListener("resize", A), () => {
4271
+ window.removeEventListener("resize", A);
4271
4272
  };
4272
4273
  }
4273
- }, [s, A]), ce(() => {
4274
- const a = () => {
4274
+ }, [s, I]), ae(() => {
4275
+ const i = () => {
4275
4276
  if (s && B.current) {
4276
- const N = s.getWidth(), T = s.getHeight(), w = window.innerWidth, $ = window.innerHeight, X = w / N, _ = $ / T, F = Math.min(X, _);
4277
- s.setZoom(F / 1.4), s.renderAll();
4277
+ const A = s.getWidth(), N = s.getHeight(), w = window.innerWidth, $ = window.innerHeight, X = w / A, P = $ / N, T = Math.min(X, P);
4278
+ s.setZoom(T / 1.4), s.renderAll();
4278
4279
  }
4279
4280
  };
4280
- return G && (a(), window.addEventListener("resize", a)), () => window.removeEventListener("resize", a);
4281
+ return G && (i(), window.addEventListener("resize", i)), () => window.removeEventListener("resize", i);
4281
4282
  }, [s, G]), Xt(r, () => ({
4282
- getDesign: () => O()
4283
- }), [s]), ce(() => {
4284
- if (c && s) {
4285
- const a = document.getElementById(c);
4286
- a && (a.instance = {
4287
- getDesignFormats: O
4283
+ getDesign: () => Y()
4284
+ }), [s]), ae(() => {
4285
+ if (a && s) {
4286
+ const i = document.getElementById(a);
4287
+ i && (i.instance = {
4288
+ getDesignFormats: Y
4288
4289
  });
4289
4290
  }
4290
- }, [c, s]);
4291
- const Te = () => {
4292
- Me().then((a) => {
4293
- if (a && a.length > 0) {
4294
- const N = a[0].content;
4295
- b === a[0].id && ze(N);
4291
+ }, [a, s]);
4292
+ const Me = (i) => {
4293
+ const N = document.createElement("div");
4294
+ N.id = "horizontal-ruler", N.style.cssText = `
4295
+ position: absolute;
4296
+ top: 0;
4297
+ left: 20px;
4298
+ right: 0;
4299
+ height: 20px;
4300
+ background: #f0f0f0;
4301
+ border-bottom: 1px solid #ccc;
4302
+ z-index: 1000;
4303
+ overflow: hidden;
4304
+ `;
4305
+ const w = document.createElement("div");
4306
+ w.id = "vertical-ruler", w.style.cssText = `
4307
+ position: absolute;
4308
+ top: 20px;
4309
+ left: 0;
4310
+ bottom: 0;
4311
+ width: 20px;
4312
+ background: #f0f0f0;
4313
+ border-right: 1px solid #ccc;
4314
+ z-index: 1000;
4315
+ overflow: hidden;
4316
+ `;
4317
+ const $ = document.createElement("div");
4318
+ $.style.cssText = `
4319
+ position: absolute;
4320
+ top: 0;
4321
+ left: 0;
4322
+ width: 20px;
4323
+ height: 20px;
4324
+ background: #e0e0e0;
4325
+ border-right: 1px solid #ccc;
4326
+ border-bottom: 1px solid #ccc;
4327
+ z-index: 1001;
4328
+ `;
4329
+ const X = (T, le) => {
4330
+ T.innerHTML = "";
4331
+ for (let ie = 0; ie <= le; ie += 10) {
4332
+ const Le = document.createElement("div"), Oe = ie % 50 === 0;
4333
+ if (Le.style.cssText = `
4334
+ position: absolute;
4335
+ left: ${ie}px;
4336
+ top: ${Oe ? "8px" : "12px"};
4337
+ width: 1px;
4338
+ height: ${Oe ? "12px" : "8px"};
4339
+ background: #666;
4340
+ `, T.appendChild(Le), Oe && ie > 0) {
4341
+ const Ae = document.createElement("span");
4342
+ Ae.textContent = ie, Ae.style.cssText = `
4343
+ position: absolute;
4344
+ left: ${ie - 8}px;
4345
+ top: 2px;
4346
+ font-size: 10px;
4347
+ color: #333;
4348
+ font-family: Arial, sans-serif;
4349
+ `, T.appendChild(Ae);
4350
+ }
4351
+ }
4352
+ }, P = (T, le) => {
4353
+ T.innerHTML = "";
4354
+ for (let ie = 0; ie <= le; ie += 10) {
4355
+ const Le = document.createElement("div"), Oe = ie % 50 === 0;
4356
+ if (Le.style.cssText = `
4357
+ position: absolute;
4358
+ top: ${ie}px;
4359
+ left: ${Oe ? "8px" : "12px"};
4360
+ height: 1px;
4361
+ width: ${Oe ? "12px" : "8px"};
4362
+ background: #666;
4363
+ `, T.appendChild(Le), Oe && ie > 0) {
4364
+ const Ae = document.createElement("span");
4365
+ Ae.textContent = ie, Ae.style.cssText = `
4366
+ position: absolute;
4367
+ top: ${ie - 6}px;
4368
+ left: 2px;
4369
+ font-size: 10px;
4370
+ color: #333;
4371
+ font-family: Arial, sans-serif;
4372
+ transform: rotate(-90deg);
4373
+ transform-origin: center;
4374
+ `, T.appendChild(Ae);
4375
+ }
4376
+ }
4377
+ };
4378
+ return i.appendChild(N), i.appendChild(w), i.appendChild($), {
4379
+ horizontalRuler: N,
4380
+ verticalRuler: w,
4381
+ corner: $,
4382
+ updateRulers: (T, le) => {
4383
+ X(N, T), P(w, le);
4384
+ }
4385
+ };
4386
+ }, st = () => {
4387
+ _e().then((i) => {
4388
+ if (i && i.length > 0) {
4389
+ const A = i[0].content;
4390
+ b === i[0].id && Be(A);
4296
4391
  }
4297
4392
  });
4298
- }, he = (a) => {
4299
- if (a) {
4300
- const N = a.toJSON();
4301
- We((T) => (_e.current.push(T), N));
4393
+ }, fe = (i) => {
4394
+ if (i) {
4395
+ const A = i.toJSON();
4396
+ Ye((N) => (He.current.push(N), A));
4302
4397
  }
4303
- }, we = (a) => {
4304
- L(a.type);
4305
- }, fe = () => {
4306
- L(null);
4307
- }, me = () => {
4398
+ }, he = (i) => {
4399
+ _(i.type);
4400
+ }, ye = () => {
4401
+ _(null);
4402
+ }, Ve = () => {
4308
4403
  s.getActiveObject() && s.remove(s.getActiveObject());
4309
- }, $e = () => {
4310
- const a = s.getActiveObject(), N = D.util.object.clone(a);
4311
- N.set({
4312
- left: a.left + 20,
4404
+ }, Ke = () => {
4405
+ const i = s.getActiveObject(), A = D.util.object.clone(i);
4406
+ A.set({
4407
+ left: i.left + 20,
4313
4408
  // Change the position as needed
4314
- top: a.top + 20
4315
- }), s.add(N);
4316
- }, Ce = (a) => {
4317
- be(a);
4318
- }, Ee = (a) => {
4319
- let N = ne;
4320
- N.push(a), le(N);
4321
- }, Je = (a) => {
4322
- a === "lock" ? s.getActiveObject().set({
4409
+ top: i.top + 20
4410
+ }), s.add(A);
4411
+ }, me = (i) => {
4412
+ ke(i);
4413
+ }, ot = (i) => {
4414
+ let A = re;
4415
+ A.push(i), pe(A);
4416
+ }, Xe = (i) => {
4417
+ i === "lock" ? s.getActiveObject().set({
4323
4418
  lockMovementX: !0,
4324
4419
  lockMovementY: !0
4325
4420
  }) : s.getActiveObject().set({
4326
4421
  lockMovementX: !1,
4327
4422
  lockMovementY: !1
4328
4423
  });
4329
- }, Ze = () => {
4424
+ }, Ue = () => {
4330
4425
  s && (s.getActiveObject().bringForward(), s.renderAll());
4331
- }, De = () => {
4426
+ }, it = () => {
4332
4427
  s && (s.getActiveObject().sendBackwards(), s.renderAll());
4333
- }, et = () => {
4334
- const a = A + Q;
4335
- V(a), s.setZoom(a);
4336
- }, tt = () => {
4337
- const a = Math.max(A - Q, Q);
4338
- V(a), s.setZoom(a);
4339
- }, Fe = (a) => {
4340
- s && s.getActiveObject() && s.getActiveObject().type !== "textbox" && a.keyCode === 8 && me();
4341
- }, Se = (a) => {
4342
- const N = sessionStorage.getItem("apc_x_activeTab");
4343
- if (N)
4344
- Xe(N).then((T) => {
4345
- if (T) {
4346
- const w = JSON.stringify(a);
4347
- Ve(T.id, T.classification, w, T.misc).then(($) => {
4428
+ }, ct = () => {
4429
+ const i = I + Q;
4430
+ V(i), s.setZoom(i);
4431
+ }, Qe = () => {
4432
+ const i = Math.max(I - Q, Q);
4433
+ V(i), s.setZoom(i);
4434
+ }, Re = (i) => {
4435
+ s && s.getActiveObject() && s.getActiveObject().type !== "textbox" && i.keyCode === 8 && Ve();
4436
+ }, k = (i) => {
4437
+ const A = sessionStorage.getItem("apc_x_activeTab");
4438
+ if (A)
4439
+ tt(A).then((N) => {
4440
+ if (N) {
4441
+ const w = JSON.stringify(i);
4442
+ Je(N.id, N.classification, w, N.misc).then(($) => {
4348
4443
  });
4349
4444
  } else {
4350
- const w = JSON.stringify(a);
4351
- Ve(j.name ?? "design", "general", w, j).then(($) => {
4445
+ const w = JSON.stringify(i);
4446
+ Je(j.name ?? "design", "general", w, j).then(($) => {
4352
4447
  });
4353
4448
  }
4354
4449
  });
4355
4450
  else {
4356
- const T = JSON.stringify(a);
4357
- Ve(j.name ?? "design", "general", T, j).then((w) => {
4451
+ const N = JSON.stringify(i);
4452
+ Je(j.name ?? "design", "general", N, j).then((w) => {
4358
4453
  });
4359
4454
  }
4360
- }, k = (a, N) => {
4361
- const T = JSON.stringify(a);
4362
- Ve(N.id, N.classification, T, N.misc).then((w) => {
4455
+ }, O = (i, A) => {
4456
+ const N = JSON.stringify(i);
4457
+ Je(A.id, A.classification, N, A.misc).then((w) => {
4363
4458
  });
4364
- }, O = () => ({
4459
+ }, Y = () => ({
4365
4460
  getPDF: () => {
4366
- const { height: a, width: N } = s;
4367
- return Me().then(async (T) => {
4461
+ const { height: i, width: A } = s;
4462
+ return _e().then(async (N) => {
4368
4463
  let w = [];
4369
- for (let $ in T) {
4370
- let X, _;
4371
- await xe(T[$].content, a, N, "pdf").then((F) => {
4372
- X = F;
4373
- }), await st({ fabricString: T[$].content, height: a, width: N }).then((F) => {
4374
- _ = F;
4375
- }), w.push({ fullDesign: X, printReady: _ });
4464
+ for (let $ in N) {
4465
+ let X, P;
4466
+ await je(N[$].content, i, A, "pdf").then((T) => {
4467
+ X = T;
4468
+ }), await dt({ fabricString: N[$].content, height: i, width: A }).then((T) => {
4469
+ P = T;
4470
+ }), w.push({ fullDesign: X, printReady: P });
4376
4471
  }
4377
4472
  return w;
4378
4473
  });
4379
4474
  },
4380
4475
  getPNG: () => {
4381
- const { height: a, width: N } = s;
4382
- return Me().then(async (T) => {
4476
+ const { height: i, width: A } = s;
4477
+ return _e().then(async (N) => {
4383
4478
  let w = [];
4384
- for (let $ in T) {
4385
- let X, _;
4386
- await xe(T[$].content, a, N, "png").then((F) => {
4387
- X = F;
4388
- }), await st({ fabricString: T[$].content, height: a, width: N }).then((F) => {
4389
- _ = F;
4390
- }), w.push({ fullDesign: X, printReady: _ });
4479
+ for (let $ in N) {
4480
+ let X, P;
4481
+ await je(N[$].content, i, A, "png").then((T) => {
4482
+ X = T;
4483
+ }), await dt({ fabricString: N[$].content, height: i, width: A }).then((T) => {
4484
+ P = T;
4485
+ }), w.push({ fullDesign: X, printReady: P });
4391
4486
  }
4392
4487
  return w;
4393
4488
  });
4394
4489
  },
4395
4490
  getSVG: () => {
4396
- const { height: a, width: N } = s;
4397
- return Me().then(async (T) => {
4491
+ const { height: i, width: A } = s;
4492
+ return _e().then(async (N) => {
4398
4493
  let w = [];
4399
- for (let $ in T) {
4400
- let X, _;
4401
- await xe(T[$].content, a, N, "svg").then((F) => {
4402
- X = F;
4403
- }), await st({ fabricString: T[$].content, height: a, width: N }).then((F) => {
4404
- _ = F;
4405
- }), w.push({ fullDesign: X, printReady: _ });
4494
+ for (let $ in N) {
4495
+ let X, P;
4496
+ await je(N[$].content, i, A, "svg").then((T) => {
4497
+ X = T;
4498
+ }), await dt({ fabricString: N[$].content, height: i, width: A }).then((T) => {
4499
+ P = T;
4500
+ }), w.push({ fullDesign: X, printReady: P });
4406
4501
  }
4407
4502
  return w;
4408
4503
  });
4409
4504
  },
4410
4505
  getJPEG: () => {
4411
- const { height: a, width: N } = s;
4412
- return Me().then(async (T) => {
4506
+ const { height: i, width: A } = s;
4507
+ return _e().then(async (N) => {
4413
4508
  let w = [];
4414
- for (let $ in T) {
4415
- let X, _;
4416
- await xe(T[$].content, a, N, "jpeg").then((F) => {
4417
- X = F;
4418
- }), await st({ fabricString: T[$].content, height: a, width: N }).then((F) => {
4419
- _ = F;
4420
- }), w.push({ fullDesign: X, printReady: _ });
4509
+ for (let $ in N) {
4510
+ let X, P;
4511
+ await je(N[$].content, i, A, "jpeg").then((T) => {
4512
+ X = T;
4513
+ }), await dt({ fabricString: N[$].content, height: i, width: A }).then((T) => {
4514
+ P = T;
4515
+ }), w.push({ fullDesign: X, printReady: P });
4421
4516
  }
4422
4517
  return w;
4423
4518
  });
4424
4519
  },
4425
4520
  getWEBP: () => {
4426
- const { height: a, width: N } = s;
4427
- return Me().then(async (T) => {
4521
+ const { height: i, width: A } = s;
4522
+ return _e().then(async (N) => {
4428
4523
  let w = [];
4429
- for (let $ in T) {
4430
- let X, _;
4431
- await xe(T[$].content, a, N, "webp").then((F) => {
4432
- X = F;
4433
- }), await st({ fabricString: T[$].content, height: a, width: N }).then((F) => {
4434
- _ = F;
4435
- }), w.push({ fullDesign: X, printReady: _ });
4524
+ for (let $ in N) {
4525
+ let X, P;
4526
+ await je(N[$].content, i, A, "webp").then((T) => {
4527
+ X = T;
4528
+ }), await dt({ fabricString: N[$].content, height: i, width: A }).then((T) => {
4529
+ P = T;
4530
+ }), w.push({ fullDesign: X, printReady: P });
4436
4531
  }
4437
4532
  return w;
4438
4533
  });
4439
4534
  },
4440
4535
  getImageActiveTab: () => {
4441
- const a = sessionStorage.getItem("apc_x_activeTab");
4442
- return Xe(a).then((N) => xe(N.content, s.height, s.width, "png").then((T) => {
4536
+ const i = sessionStorage.getItem("apc_x_activeTab");
4537
+ return tt(i).then((A) => je(A.content, s.height, s.width, "png").then((N) => {
4443
4538
  let w = {};
4444
- return w.file = T, w.height = s.height, w.width = s.width, w;
4539
+ return w.file = N, w.height = s.height, w.width = s.width, w;
4445
4540
  }));
4446
4541
  }
4447
- }), K = () => /* @__PURE__ */ e.jsxs("div", { style: { marginTop: "6px", fontWeight: "bold" }, children: [
4542
+ }), F = () => /* @__PURE__ */ e.jsxs("div", { style: { marginTop: "6px", fontWeight: "bold" }, children: [
4448
4543
  "Replace Image: ",
4449
- /* @__PURE__ */ e.jsx("input", { type: "file", accept: "image/*", onChange: (a) => P(a) }),
4544
+ /* @__PURE__ */ e.jsx("input", { type: "file", accept: "image/*", onChange: (i) => te(i) }),
4450
4545
  /* @__PURE__ */ e.jsx("br", {})
4451
- ] }), P = (a, N) => {
4546
+ ] }), te = (i, A) => {
4452
4547
  {
4453
- const T = s.getActiveObject(), w = a.target.files[0], $ = new FileReader();
4548
+ const N = s.getActiveObject(), w = i.target.files[0], $ = new FileReader();
4454
4549
  $.onload = function(X) {
4455
- const _ = X.target.result;
4456
- T.setSrc(_, function(F) {
4457
- F.set({
4550
+ const P = X.target.result;
4551
+ N.setSrc(P, function(T) {
4552
+ T.set({
4458
4553
  angle: 30
4459
4554
  }), s && s.renderAll();
4460
4555
  });
4461
4556
  }, $.readAsDataURL(w);
4462
4557
  }
4463
4558
  s && s.renderAll();
4464
- }, ee = () => {
4559
+ }, ve = () => {
4465
4560
  switch (u) {
4466
4561
  case "ICONS":
4467
4562
  return /* @__PURE__ */ e.jsx(
4468
- pn,
4563
+ hn,
4469
4564
  {
4470
4565
  apcCanvasInstance: s,
4471
4566
  theme: n,
4472
4567
  apiKey: d,
4473
4568
  isMobile: G,
4474
- closeMobileModalSecondaryPanel: (a) => oe(!a)
4569
+ closeMobileModalSecondaryPanel: (i) => se(!i)
4475
4570
  }
4476
4571
  );
4477
4572
  case "TEMPLATES":
@@ -4482,14 +4577,14 @@ const Nn = Kt((y, r) => {
4482
4577
  theme: n,
4483
4578
  apiKey: d,
4484
4579
  apiEndpoint: f,
4485
- reloadTabs: (a) => Ue(a),
4486
- updateActiveSection: (a) => Ce(a),
4580
+ reloadTabs: (i) => Ge(i),
4581
+ updateActiveSection: (i) => me(i),
4487
4582
  initCategory: g,
4488
- currentTabNo: Re,
4489
- initInstance: i,
4490
- setActiveTab: (a) => ye(a),
4583
+ currentTabNo: De,
4584
+ initInstance: c,
4585
+ setActiveTab: (i) => Ne(i),
4491
4586
  isMobile: G,
4492
- closeMobileModalSecondaryPanel: (a) => oe(!a)
4587
+ closeMobileModalSecondaryPanel: (i) => se(!i)
4493
4588
  }
4494
4589
  );
4495
4590
  case "TXT":
@@ -4500,19 +4595,19 @@ const Nn = Kt((y, r) => {
4500
4595
  theme: n,
4501
4596
  apiKey: d,
4502
4597
  isMobile: G,
4503
- closeMobileModalSecondaryPanel: (a) => oe(!a)
4598
+ closeMobileModalSecondaryPanel: (i) => se(!i)
4504
4599
  }
4505
4600
  );
4506
4601
  case "IMAGE":
4507
4602
  return /* @__PURE__ */ e.jsx(
4508
- hn,
4603
+ pn,
4509
4604
  {
4510
4605
  apcCanvasInstance: s,
4511
4606
  theme: n,
4512
4607
  apiKey: d,
4513
4608
  apiEndpoint: f,
4514
4609
  isMobile: G,
4515
- closeMobileModalSecondaryPanel: (a) => oe(!a)
4610
+ closeMobileModalSecondaryPanel: (i) => se(!i)
4516
4611
  }
4517
4612
  );
4518
4613
  case "STICKERS":
@@ -4524,18 +4619,18 @@ const Nn = Kt((y, r) => {
4524
4619
  apiEndpoint: f,
4525
4620
  isMobile: G,
4526
4621
  apiKey: d,
4527
- closeMobileModalSecondaryPanel: (a) => oe(!a)
4622
+ closeMobileModalSecondaryPanel: (i) => se(!i)
4528
4623
  }
4529
4624
  );
4530
4625
  case "SHAPES":
4531
4626
  return /* @__PURE__ */ e.jsx(
4532
- Rt,
4627
+ Bt,
4533
4628
  {
4534
4629
  apcCanvasInstance: s,
4535
4630
  theme: n,
4536
4631
  apiKey: d,
4537
4632
  isMobile: G,
4538
- closeMobileModalSecondaryPanel: (a) => oe(!a)
4633
+ closeMobileModalSecondaryPanel: (i) => se(!i)
4539
4634
  }
4540
4635
  );
4541
4636
  case "QUOTE":
@@ -4547,7 +4642,7 @@ const Nn = Kt((y, r) => {
4547
4642
  apiKey: d,
4548
4643
  apiEndpoint: f,
4549
4644
  isMobile: G,
4550
- closeMobileModalSecondaryPanel: (a) => oe(!a)
4645
+ closeMobileModalSecondaryPanel: (i) => se(!i)
4551
4646
  }
4552
4647
  );
4553
4648
  case "BACKGROUND":
@@ -4558,11 +4653,11 @@ const Nn = Kt((y, r) => {
4558
4653
  theme: n,
4559
4654
  apiKey: d,
4560
4655
  apiEndpoint: f,
4561
- updateActiveSection: (a) => Ce(a),
4562
- reloadTabs: (a) => Ue(a),
4563
- currentTabNo: Re,
4656
+ updateActiveSection: (i) => me(i),
4657
+ reloadTabs: (i) => Ge(i),
4658
+ currentTabNo: De,
4564
4659
  isMobile: G,
4565
- closeMobileModalSecondaryPanel: (a) => oe(!a)
4660
+ closeMobileModalSecondaryPanel: (i) => se(!i)
4566
4661
  }
4567
4662
  );
4568
4663
  case "QRCODE":
@@ -4574,7 +4669,7 @@ const Nn = Kt((y, r) => {
4574
4669
  apiKey: d,
4575
4670
  apiEndpoint: f,
4576
4671
  isMobile: G,
4577
- closeMobileModalSecondaryPanel: (a) => oe(!a)
4672
+ closeMobileModalSecondaryPanel: (i) => se(!i)
4578
4673
  }
4579
4674
  );
4580
4675
  case "BARCODE":
@@ -4586,7 +4681,7 @@ const Nn = Kt((y, r) => {
4586
4681
  apiKey: d,
4587
4682
  apiEndpoint: f,
4588
4683
  isMobile: G,
4589
- closeMobileModalSecondaryPanel: (a) => oe(!a)
4684
+ closeMobileModalSecondaryPanel: (i) => se(!i)
4590
4685
  }
4591
4686
  );
4592
4687
  case "SIZE":
@@ -4597,55 +4692,55 @@ const Nn = Kt((y, r) => {
4597
4692
  theme: n,
4598
4693
  apiKey: d,
4599
4694
  isMobile: G,
4600
- closeMobileModalSecondaryPanel: (a) => oe(!a)
4695
+ closeMobileModalSecondaryPanel: (i) => se(!i)
4601
4696
  }
4602
4697
  );
4603
4698
  default:
4604
4699
  return /* @__PURE__ */ e.jsx(
4605
- Rt,
4700
+ Bt,
4606
4701
  {
4607
4702
  apcCanvasInstance: s,
4608
4703
  theme: n,
4609
4704
  apiKey: d,
4610
4705
  isMobile: G,
4611
- closeMobileModalSecondaryPanel: (a) => oe(!a)
4706
+ closeMobileModalSecondaryPanel: (i) => se(!i)
4612
4707
  }
4613
4708
  );
4614
4709
  }
4615
- }, ve = () => {
4616
- if (!E)
4710
+ }, we = () => {
4711
+ if (!z)
4617
4712
  return null;
4618
- switch (E) {
4713
+ switch (z) {
4619
4714
  case "text":
4620
- return /* @__PURE__ */ e.jsx(Lt, { apcCanvasInstance: s, theme: n, apiKey: d });
4715
+ return /* @__PURE__ */ e.jsx(Dt, { apcCanvasInstance: s, theme: n, apiKey: d });
4621
4716
  case "textbox":
4622
- return /* @__PURE__ */ e.jsx(Lt, { apcCanvasInstance: s, theme: n, apiKey: d });
4717
+ return /* @__PURE__ */ e.jsx(Dt, { apcCanvasInstance: s, theme: n, apiKey: d });
4623
4718
  case "rect":
4624
- return /* @__PURE__ */ e.jsx(Ke, { apcCanvasInstance: s, theme: n, apiKey: d });
4719
+ return /* @__PURE__ */ e.jsx(et, { apcCanvasInstance: s, theme: n, apiKey: d });
4625
4720
  case "circle":
4626
- return /* @__PURE__ */ e.jsx(Ke, { apcCanvasInstance: s, theme: n, apiKey: d });
4721
+ return /* @__PURE__ */ e.jsx(et, { apcCanvasInstance: s, theme: n, apiKey: d });
4627
4722
  case "triangle":
4628
- return /* @__PURE__ */ e.jsx(Ke, { apcCanvasInstance: s, theme: n, apiKey: d });
4723
+ return /* @__PURE__ */ e.jsx(et, { apcCanvasInstance: s, theme: n, apiKey: d });
4629
4724
  case "line":
4630
- return /* @__PURE__ */ e.jsx(Ke, { apcCanvasInstance: s, theme: n, apiKey: d });
4725
+ return /* @__PURE__ */ e.jsx(et, { apcCanvasInstance: s, theme: n, apiKey: d });
4631
4726
  case "path":
4632
- return /* @__PURE__ */ e.jsx(Ke, { apcCanvasInstance: s, theme: n, apiKey: d });
4727
+ return /* @__PURE__ */ e.jsx(et, { apcCanvasInstance: s, theme: n, apiKey: d });
4633
4728
  case "polygon":
4634
- return /* @__PURE__ */ e.jsx(Ke, { apcCanvasInstance: s, theme: n, apiKey: d });
4729
+ return /* @__PURE__ */ e.jsx(et, { apcCanvasInstance: s, theme: n, apiKey: d });
4635
4730
  case "image":
4636
- return K();
4731
+ return F();
4637
4732
  default:
4638
4733
  return null;
4639
4734
  }
4640
- }, re = (a) => {
4641
- v(a), G && oe(!0);
4642
- }, ke = () => /* @__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: [
4735
+ }, oe = (i) => {
4736
+ v(i), G && se(!0);
4737
+ }, qe = () => /* @__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: [
4643
4738
  /* @__PURE__ */ e.jsxs(
4644
4739
  "div",
4645
4740
  {
4646
4741
  className: "apc-mpx-tooltip-container",
4647
4742
  role: "button",
4648
- onClick: () => me(),
4743
+ onClick: () => Ve(),
4649
4744
  style: { cursor: "pointer" },
4650
4745
  children: [
4651
4746
  /* @__PURE__ */ e.jsx(
@@ -4656,7 +4751,7 @@ const Nn = Kt((y, r) => {
4656
4751
  height: "16",
4657
4752
  width: "14",
4658
4753
  viewBox: "0 0 448 512",
4659
- children: /* @__PURE__ */ e.jsx("path", { d: _t, fill: "#d8d4d4" })
4754
+ children: /* @__PURE__ */ e.jsx("path", { d: Ft, fill: "#d8d4d4" })
4660
4755
  }
4661
4756
  ),
4662
4757
  /* @__PURE__ */ e.jsx("div", { className: "apc-mpx-tooltip-text", children: "Delete" })
@@ -4668,7 +4763,7 @@ const Nn = Kt((y, r) => {
4668
4763
  {
4669
4764
  className: "apc-mpx-tooltip-container",
4670
4765
  role: "button",
4671
- onClick: () => De(),
4766
+ onClick: () => it(),
4672
4767
  style: { cursor: "pointer" },
4673
4768
  children: [
4674
4769
  /* @__PURE__ */ e.jsxs(
@@ -4700,7 +4795,7 @@ const Nn = Kt((y, r) => {
4700
4795
  {
4701
4796
  className: "apc-mpx-tooltip-container",
4702
4797
  role: "button",
4703
- onClick: () => Ze(),
4798
+ onClick: () => Ue(),
4704
4799
  style: { cursor: "pointer" },
4705
4800
  children: [
4706
4801
  /* @__PURE__ */ e.jsxs(
@@ -4731,7 +4826,7 @@ const Nn = Kt((y, r) => {
4731
4826
  "div",
4732
4827
  {
4733
4828
  className: "apc-mpx-tooltip-container",
4734
- onClick: () => Je("lock"),
4829
+ onClick: () => Xe("lock"),
4735
4830
  style: { cursor: "pointer" },
4736
4831
  children: [
4737
4832
  /* @__PURE__ */ e.jsx(
@@ -4759,7 +4854,7 @@ const Nn = Kt((y, r) => {
4759
4854
  "div",
4760
4855
  {
4761
4856
  className: "apc-mpx-tooltip-container",
4762
- onClick: () => Je("unlock"),
4857
+ onClick: () => Xe("unlock"),
4763
4858
  style: { cursor: "pointer" },
4764
4859
  children: [
4765
4860
  /* @__PURE__ */ e.jsx(
@@ -4787,7 +4882,7 @@ const Nn = Kt((y, r) => {
4787
4882
  "div",
4788
4883
  {
4789
4884
  className: "apc-mpx-tooltip-container",
4790
- onClick: () => $e(),
4885
+ onClick: () => Ke(),
4791
4886
  style: { cursor: "pointer" },
4792
4887
  children: [
4793
4888
  /* @__PURE__ */ e.jsx(
@@ -4811,11 +4906,11 @@ const Nn = Kt((y, r) => {
4811
4906
  ]
4812
4907
  }
4813
4908
  )
4814
- ] }) }), Pe = () => s ? /* @__PURE__ */ e.jsx("div", { style: { height: "10vh", overflow: "auto" }, children: /* @__PURE__ */ e.jsx(dt, { isOpen: Ie, onClose: () => oe(!1), children: ee() }) }) : null, Ge = () => s ? G ? Pe() : ee() : null;
4909
+ ] }) }), We = () => s ? /* @__PURE__ */ e.jsx("div", { style: { height: "10vh", overflow: "auto" }, children: /* @__PURE__ */ e.jsx(gt, { isOpen: ze, onClose: () => se(!1), children: ve() }) }) : null, Ce = () => s ? G ? We() : ve() : null;
4815
4910
  return /* @__PURE__ */ e.jsxs("div", { className: "apc-mpc-widget-wrapper", children: [
4816
4911
  /* @__PURE__ */ e.jsxs("div", { style: {
4817
4912
  display: "flex",
4818
- backgroundColor: ge(n.primaryColor, 70),
4913
+ backgroundColor: be(n.primaryColor, 70),
4819
4914
  flexDirection: "row",
4820
4915
  padding: "3px",
4821
4916
  color: "#ffffff",
@@ -4855,30 +4950,30 @@ const Nn = Kt((y, r) => {
4855
4950
  apcCanvasInstance: s,
4856
4951
  theme: n,
4857
4952
  apiKey: d,
4858
- updateSelectedSections: (a) => Ee(a),
4859
- updateActiveSection: (a) => Ce(a),
4953
+ updateSelectedSections: (i) => ot(i),
4954
+ updateActiveSection: (i) => me(i),
4860
4955
  accesories,
4861
- getDesignFormats: O()
4956
+ getDesignFormats: Y()
4862
4957
  }
4863
4958
  ) }) : null }),
4864
- /* @__PURE__ */ e.jsx("div", { children: s && p ? /* @__PURE__ */ e.jsx("div", { children: /* @__PURE__ */ e.jsx(
4959
+ /* @__PURE__ */ e.jsx("div", { children: s && h ? /* @__PURE__ */ e.jsx("div", { children: /* @__PURE__ */ e.jsx(
4865
4960
  "button",
4866
4961
  {
4867
4962
  className: "apc-mpc-widget-btn",
4868
- onClick: () => p.btnAction(),
4963
+ onClick: () => h.btnAction(),
4869
4964
  style: {
4870
- backgroundColor: p.btnColor ?? n.primaryColorLight,
4965
+ backgroundColor: h.btnColor ?? n.primaryColorLight,
4871
4966
  color: "#ffffff",
4872
4967
  border: "solid #ffffff 1px"
4873
4968
  },
4874
- children: p.btnLabel
4969
+ children: h.btnLabel
4875
4970
  }
4876
4971
  ) }) : null })
4877
4972
  ] }) }) }) })
4878
4973
  ] }),
4879
4974
  /* @__PURE__ */ e.jsxs("div", { className: "apc-mpc-widget-colums", children: [
4880
4975
  /* @__PURE__ */ e.jsx("div", { className: "apc-mpc-widget-colum-modules-container", children: /* @__PURE__ */ e.jsxs("div", { className: "apc-mypixia-widget-primary-nav-container", children: [
4881
- h.indexOf("TXT") > -1 ? /* @__PURE__ */ e.jsxs("div", { tabIndex: "0", role: "button", onClick: () => re("TXT"), style: {
4976
+ p.indexOf("TXT") > -1 ? /* @__PURE__ */ e.jsxs("div", { tabIndex: "0", role: "button", onClick: () => oe("TXT"), style: {
4882
4977
  padding: "10px",
4883
4978
  backgroundColor: u === "TXT" ? n.primaryColorLight : "inherit",
4884
4979
  color: u === "TXT" ? "#ffffff" : "inherit"
@@ -4897,7 +4992,7 @@ const Nn = Kt((y, r) => {
4897
4992
  ),
4898
4993
  /* @__PURE__ */ e.jsx("div", { children: "Text" })
4899
4994
  ] }) : null,
4900
- h.indexOf("STICKERS") > -1 ? /* @__PURE__ */ e.jsxs("div", { tabIndex: "0", role: "button", onClick: () => re("STICKERS"), style: {
4995
+ p.indexOf("STICKERS") > -1 ? /* @__PURE__ */ e.jsxs("div", { tabIndex: "0", role: "button", onClick: () => oe("STICKERS"), style: {
4901
4996
  padding: "10px",
4902
4997
  backgroundColor: u === "STICKERS" ? n.primaryColorLight : "inherit",
4903
4998
  color: u === "STICKERS" ? "#ffffff" : "inherit"
@@ -4916,7 +5011,7 @@ const Nn = Kt((y, r) => {
4916
5011
  ),
4917
5012
  /* @__PURE__ */ e.jsx("div", { children: "Stickers" })
4918
5013
  ] }) : null,
4919
- h.indexOf("SHAPES") > -1 ? /* @__PURE__ */ e.jsxs("div", { tabIndex: "0", role: "button", onClick: () => re("SHAPES"), style: {
5014
+ p.indexOf("SHAPES") > -1 ? /* @__PURE__ */ e.jsxs("div", { tabIndex: "0", role: "button", onClick: () => oe("SHAPES"), style: {
4920
5015
  padding: "10px",
4921
5016
  backgroundColor: u === "SHAPES" ? n.primaryColorLight : "inherit",
4922
5017
  color: u === "SHAPES" ? "#ffffff" : "inherit"
@@ -4930,12 +5025,12 @@ const Nn = Kt((y, r) => {
4930
5025
  viewBox: "0 0 512 512",
4931
5026
  style: { fill: u === "SHAPES" ? "#ffffff" : n.primaryColor },
4932
5027
  className: "apc-mypixia-widget-primary-nav-svg",
4933
- children: /* @__PURE__ */ e.jsx("path", { d: zr })
5028
+ children: /* @__PURE__ */ e.jsx("path", { d: Mr })
4934
5029
  }
4935
5030
  ),
4936
5031
  /* @__PURE__ */ e.jsx("div", { children: "Shapes" })
4937
5032
  ] }) : null,
4938
- h.indexOf("ICONS") > -1 ? /* @__PURE__ */ e.jsxs("div", { tabIndex: "0", role: "button", onClick: () => re("ICONS"), style: {
5033
+ p.indexOf("ICONS") > -1 ? /* @__PURE__ */ e.jsxs("div", { tabIndex: "0", role: "button", onClick: () => oe("ICONS"), style: {
4939
5034
  padding: "10px",
4940
5035
  backgroundColor: u === "ICONS" ? n.primaryColorLight : "inherit",
4941
5036
  color: u === "ICONS" ? "#ffffff" : "inherit"
@@ -4954,7 +5049,7 @@ const Nn = Kt((y, r) => {
4954
5049
  ),
4955
5050
  /* @__PURE__ */ e.jsx("div", { children: "Icons" })
4956
5051
  ] }) : null,
4957
- h.indexOf("IMAGE") > -1 ? /* @__PURE__ */ e.jsxs("div", { tabIndex: "0", role: "button", onClick: () => re("IMAGE"), style: {
5052
+ p.indexOf("IMAGE") > -1 ? /* @__PURE__ */ e.jsxs("div", { tabIndex: "0", role: "button", onClick: () => oe("IMAGE"), style: {
4958
5053
  padding: "10px",
4959
5054
  backgroundColor: u === "IMAGE" ? n.primaryColorLight : "inherit",
4960
5055
  color: u === "IMAGE" ? "#ffffff" : "inherit"
@@ -4968,12 +5063,12 @@ const Nn = Kt((y, r) => {
4968
5063
  viewBox: "0 0 512 512",
4969
5064
  style: { fill: u === "IMAGE" ? "#ffffff" : n.primaryColor },
4970
5065
  className: "apc-mypixia-widget-primary-nav-svg",
4971
- children: /* @__PURE__ */ e.jsx("path", { d: Bt })
5066
+ children: /* @__PURE__ */ e.jsx("path", { d: Ht })
4972
5067
  }
4973
5068
  ),
4974
5069
  /* @__PURE__ */ e.jsx("div", { children: "Upload" })
4975
5070
  ] }) : null,
4976
- h.indexOf("QUOTE") > -1 ? /* @__PURE__ */ e.jsxs("div", { tabIndex: "0", role: "button", onClick: () => re("QUOTE"), style: {
5071
+ p.indexOf("QUOTE") > -1 ? /* @__PURE__ */ e.jsxs("div", { tabIndex: "0", role: "button", onClick: () => oe("QUOTE"), style: {
4977
5072
  padding: "10px",
4978
5073
  backgroundColor: u === "QUOTE" ? n.primaryColorLight : "inherit",
4979
5074
  color: u === "QUOTE" ? "#ffffff" : "inherit"
@@ -4992,7 +5087,7 @@ const Nn = Kt((y, r) => {
4992
5087
  ),
4993
5088
  /* @__PURE__ */ e.jsx("div", { children: "Quote" })
4994
5089
  ] }) : null,
4995
- h.indexOf("BACKGROUND") > -1 ? /* @__PURE__ */ e.jsxs("div", { tabIndex: "0", role: "button", onClick: () => re("BACKGROUND"), style: {
5090
+ p.indexOf("BACKGROUND") > -1 ? /* @__PURE__ */ e.jsxs("div", { tabIndex: "0", role: "button", onClick: () => oe("BACKGROUND"), style: {
4996
5091
  padding: "10px",
4997
5092
  backgroundColor: u === "BACKGROUND" ? n.primaryColorLight : "inherit",
4998
5093
  color: u === "BACKGROUND" ? "#ffffff" : "inherit"
@@ -5011,7 +5106,7 @@ const Nn = Kt((y, r) => {
5011
5106
  ),
5012
5107
  /* @__PURE__ */ e.jsx("div", { children: "Background" })
5013
5108
  ] }) : null,
5014
- h.indexOf("QRCODE") > -1 ? /* @__PURE__ */ e.jsxs("div", { tabIndex: "0", role: "button", onClick: () => re("QRCODE"), style: {
5109
+ p.indexOf("QRCODE") > -1 ? /* @__PURE__ */ e.jsxs("div", { tabIndex: "0", role: "button", onClick: () => oe("QRCODE"), style: {
5015
5110
  padding: "10px",
5016
5111
  backgroundColor: u === "QRCODE" ? n.primaryColorLight : "inherit",
5017
5112
  color: u === "QRCODE" ? "#ffffff" : "inherit"
@@ -5030,7 +5125,7 @@ const Nn = Kt((y, r) => {
5030
5125
  ),
5031
5126
  /* @__PURE__ */ e.jsx("div", { children: "QR Code" })
5032
5127
  ] }) : null,
5033
- h.indexOf("BARCODE") > -1 ? /* @__PURE__ */ e.jsxs("div", { tabIndex: "0", role: "button", onClick: () => re("BARCODE"), style: {
5128
+ p.indexOf("BARCODE") > -1 ? /* @__PURE__ */ e.jsxs("div", { tabIndex: "0", role: "button", onClick: () => oe("BARCODE"), style: {
5034
5129
  padding: "10px",
5035
5130
  backgroundColor: u === "BARCODE" ? n.primaryColorLight : "inherit",
5036
5131
  color: u === "BARCODE" ? "#ffffff" : "inherit"
@@ -5049,7 +5144,7 @@ const Nn = Kt((y, r) => {
5049
5144
  ),
5050
5145
  /* @__PURE__ */ e.jsx("div", { children: "Barcode" })
5051
5146
  ] }) : null,
5052
- h.indexOf("SIZE") > -1 ? /* @__PURE__ */ e.jsxs("div", { tabIndex: "0", role: "button", onClick: () => re("SIZE"), style: {
5147
+ p.indexOf("SIZE") > -1 ? /* @__PURE__ */ e.jsxs("div", { tabIndex: "0", role: "button", onClick: () => oe("SIZE"), style: {
5053
5148
  padding: "10px",
5054
5149
  backgroundColor: u === "SIZE" ? n.primaryColorLight : "inherit",
5055
5150
  color: u === "SIZE" ? "#ffffff" : "inherit"
@@ -5063,44 +5158,44 @@ const Nn = Kt((y, r) => {
5063
5158
  viewBox: "0 0 448 512",
5064
5159
  style: { fill: u === "SIZE" ? "#ffffff" : n.primaryColor },
5065
5160
  className: "apc-mypixia-widget-primary-nav-svg",
5066
- children: /* @__PURE__ */ e.jsx("path", { d: Pr })
5161
+ children: /* @__PURE__ */ e.jsx("path", { d: Hr })
5067
5162
  }
5068
5163
  ),
5069
5164
  /* @__PURE__ */ e.jsx("div", { children: "Size" })
5070
5165
  ] }) : null
5071
5166
  ] }) }),
5072
- /* @__PURE__ */ e.jsx("div", { className: "apc-mpc-widget-colum-features-container", children: Ge() }),
5167
+ /* @__PURE__ */ e.jsx("div", { className: "apc-mpc-widget-colum-features-container", children: Ce() }),
5073
5168
  /* @__PURE__ */ e.jsx("div", { className: "apc-mpc-widget-colum-editor-container", children: /* @__PURE__ */ e.jsx(
5074
5169
  wn,
5075
5170
  {
5076
5171
  theme: n,
5077
- activeSection: ue,
5078
- selectedObjectType: E,
5079
- renderQuickActions: ke,
5080
- renderActionItems: ve,
5172
+ activeSection: ge,
5173
+ selectedObjectType: z,
5174
+ renderQuickActions: qe,
5175
+ renderActionItems: we,
5081
5176
  canvasEl: B,
5082
- zoomIn: () => et(),
5083
- zoomOut: () => tt(),
5177
+ zoomIn: () => ct(),
5178
+ zoomOut: () => Qe(),
5084
5179
  apcCanvasInstance: s,
5085
- setActiveSection: (a) => be(a),
5086
- updateActiveDesignSection: (a) => Ce(a),
5087
- saveActiveDesign: (a, N) => k(a, N),
5088
- reloadTabs: Re,
5089
- activeTabName: Be,
5090
- supportedColors: se,
5180
+ setActiveSection: (i) => ke(i),
5181
+ updateActiveDesignSection: (i) => me(i),
5182
+ saveActiveDesign: (i, A) => O(i, A),
5183
+ reloadTabs: De,
5184
+ activeTabName: Pe,
5185
+ supportedColors: ne,
5091
5186
  initProductName: b,
5092
- historyRef: _e,
5093
- currentState: Le,
5094
- setCurrentState: (a) => We(a),
5187
+ historyRef: He,
5188
+ currentState: Fe,
5189
+ setCurrentState: (i) => Ye(i),
5095
5190
  isPlainColor: o,
5096
5191
  selectedProduct: j,
5097
5192
  isMobile: G,
5098
- canvasId: c
5193
+ canvasId: a
5099
5194
  }
5100
5195
  ) })
5101
5196
  ] }),
5102
5197
  /* @__PURE__ */ e.jsx("div", { id: "apc-mpx-editor-modal-root" }),
5103
- G ? Pe() : null
5198
+ G ? We() : null
5104
5199
  ] });
5105
5200
  });
5106
5201
  Nn.displayName = "Mypixia";