@arthurzakharov/ui-kit 1.8.1 → 1.8.3

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.
@@ -1,11 +1,11 @@
1
1
  import { jsxs as te, jsx as V } from "react/jsx-runtime";
2
- import ze, { useRef as fe, useState as oe, useCallback as re, useEffect as de } from "react";
3
- import { useResizeObserver as Ne } from "usehooks-ts";
2
+ import Ne, { useRef as fe, useState as oe, useCallback as re, useEffect as de } from "react";
3
+ import { useResizeObserver as ze } from "usehooks-ts";
4
4
  import { RefreshCw as Fe, RotateCcw as qe, Check as Be } from "lucide-react";
5
5
  import he from "clsx";
6
- import { Button as we } from "../../controls/buttons/button/button.component.js";
6
+ import { Button as Ee } from "../../controls/buttons/button/button.component.js";
7
7
  import "../../controls/primitives/box/box.component.js";
8
- import { baseProps as Ee } from "../../utils/functions/functions.util.js";
8
+ import { baseProps as we } from "../../utils/functions/functions.util.js";
9
9
  import { ButtonText as ie } from "../../controls/buttons/button-text/button-text.component.js";
10
10
  import { Loader as Ue } from "../loader/loader.component.js";
11
11
  import '../../assets/signature-CYVRZH6h.css';function He(e) {
@@ -40,15 +40,15 @@ var Te;
40
40
  function Ve() {
41
41
  if (Te) return I;
42
42
  Te = 1;
43
- var e = typeof Symbol == "function" && Symbol.for, n = e ? /* @__PURE__ */ Symbol.for("react.element") : 60103, r = e ? /* @__PURE__ */ Symbol.for("react.portal") : 60106, t = e ? /* @__PURE__ */ Symbol.for("react.fragment") : 60107, a = e ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108, o = e ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114, l = e ? /* @__PURE__ */ Symbol.for("react.provider") : 60109, c = e ? /* @__PURE__ */ Symbol.for("react.context") : 60110, d = e ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111, i = e ? /* @__PURE__ */ Symbol.for("react.concurrent_mode") : 60111, u = e ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112, v = e ? /* @__PURE__ */ Symbol.for("react.suspense") : 60113, y = e ? /* @__PURE__ */ Symbol.for("react.suspense_list") : 60120, b = e ? /* @__PURE__ */ Symbol.for("react.memo") : 60115, x = e ? /* @__PURE__ */ Symbol.for("react.lazy") : 60116, g = e ? /* @__PURE__ */ Symbol.for("react.block") : 60121, T = e ? /* @__PURE__ */ Symbol.for("react.fundamental") : 60117, _ = e ? /* @__PURE__ */ Symbol.for("react.responder") : 60118, z = e ? /* @__PURE__ */ Symbol.for("react.scope") : 60119;
43
+ var e = typeof Symbol == "function" && Symbol.for, n = e ? /* @__PURE__ */ Symbol.for("react.element") : 60103, r = e ? /* @__PURE__ */ Symbol.for("react.portal") : 60106, t = e ? /* @__PURE__ */ Symbol.for("react.fragment") : 60107, a = e ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108, o = e ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114, l = e ? /* @__PURE__ */ Symbol.for("react.provider") : 60109, c = e ? /* @__PURE__ */ Symbol.for("react.context") : 60110, d = e ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111, s = e ? /* @__PURE__ */ Symbol.for("react.concurrent_mode") : 60111, u = e ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112, v = e ? /* @__PURE__ */ Symbol.for("react.suspense") : 60113, y = e ? /* @__PURE__ */ Symbol.for("react.suspense_list") : 60120, b = e ? /* @__PURE__ */ Symbol.for("react.memo") : 60115, x = e ? /* @__PURE__ */ Symbol.for("react.lazy") : 60116, g = e ? /* @__PURE__ */ Symbol.for("react.block") : 60121, T = e ? /* @__PURE__ */ Symbol.for("react.fundamental") : 60117, _ = e ? /* @__PURE__ */ Symbol.for("react.responder") : 60118, N = e ? /* @__PURE__ */ Symbol.for("react.scope") : 60119;
44
44
  function R(f) {
45
45
  if (typeof f == "object" && f !== null) {
46
- var Z = f.$$typeof;
47
- switch (Z) {
46
+ var J = f.$$typeof;
47
+ switch (J) {
48
48
  case n:
49
49
  switch (f = f.type, f) {
50
50
  case d:
51
- case i:
51
+ case s:
52
52
  case t:
53
53
  case o:
54
54
  case a:
@@ -63,18 +63,18 @@ function Ve() {
63
63
  case l:
64
64
  return f;
65
65
  default:
66
- return Z;
66
+ return J;
67
67
  }
68
68
  }
69
69
  case r:
70
- return Z;
70
+ return J;
71
71
  }
72
72
  }
73
73
  }
74
74
  function j(f) {
75
- return R(f) === i;
75
+ return R(f) === s;
76
76
  }
77
- return I.AsyncMode = d, I.ConcurrentMode = i, I.ContextConsumer = c, I.ContextProvider = l, I.Element = n, I.ForwardRef = u, I.Fragment = t, I.Lazy = x, I.Memo = b, I.Portal = r, I.Profiler = o, I.StrictMode = a, I.Suspense = v, I.isAsyncMode = function(f) {
77
+ return I.AsyncMode = d, I.ConcurrentMode = s, I.ContextConsumer = c, I.ContextProvider = l, I.Element = n, I.ForwardRef = u, I.Fragment = t, I.Lazy = x, I.Memo = b, I.Portal = r, I.Profiler = o, I.StrictMode = a, I.Suspense = v, I.isAsyncMode = function(f) {
78
78
  return j(f) || R(f) === d;
79
79
  }, I.isConcurrentMode = j, I.isContextConsumer = function(f) {
80
80
  return R(f) === c;
@@ -99,27 +99,27 @@ function Ve() {
99
99
  }, I.isSuspense = function(f) {
100
100
  return R(f) === v;
101
101
  }, I.isValidElementType = function(f) {
102
- return typeof f == "string" || typeof f == "function" || f === t || f === i || f === o || f === a || f === v || f === y || typeof f == "object" && f !== null && (f.$$typeof === x || f.$$typeof === b || f.$$typeof === l || f.$$typeof === c || f.$$typeof === u || f.$$typeof === T || f.$$typeof === _ || f.$$typeof === z || f.$$typeof === g);
102
+ return typeof f == "string" || typeof f == "function" || f === t || f === s || f === o || f === a || f === v || f === y || typeof f == "object" && f !== null && (f.$$typeof === x || f.$$typeof === b || f.$$typeof === l || f.$$typeof === c || f.$$typeof === u || f.$$typeof === T || f.$$typeof === _ || f.$$typeof === N || f.$$typeof === g);
103
103
  }, I.typeOf = R, I;
104
104
  }
105
105
  var L = {};
106
106
  var Se;
107
107
  function Xe() {
108
108
  return Se || (Se = 1, process.env.NODE_ENV !== "production" && (function() {
109
- var e = typeof Symbol == "function" && Symbol.for, n = e ? /* @__PURE__ */ Symbol.for("react.element") : 60103, r = e ? /* @__PURE__ */ Symbol.for("react.portal") : 60106, t = e ? /* @__PURE__ */ Symbol.for("react.fragment") : 60107, a = e ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108, o = e ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114, l = e ? /* @__PURE__ */ Symbol.for("react.provider") : 60109, c = e ? /* @__PURE__ */ Symbol.for("react.context") : 60110, d = e ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111, i = e ? /* @__PURE__ */ Symbol.for("react.concurrent_mode") : 60111, u = e ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112, v = e ? /* @__PURE__ */ Symbol.for("react.suspense") : 60113, y = e ? /* @__PURE__ */ Symbol.for("react.suspense_list") : 60120, b = e ? /* @__PURE__ */ Symbol.for("react.memo") : 60115, x = e ? /* @__PURE__ */ Symbol.for("react.lazy") : 60116, g = e ? /* @__PURE__ */ Symbol.for("react.block") : 60121, T = e ? /* @__PURE__ */ Symbol.for("react.fundamental") : 60117, _ = e ? /* @__PURE__ */ Symbol.for("react.responder") : 60118, z = e ? /* @__PURE__ */ Symbol.for("react.scope") : 60119;
109
+ var e = typeof Symbol == "function" && Symbol.for, n = e ? /* @__PURE__ */ Symbol.for("react.element") : 60103, r = e ? /* @__PURE__ */ Symbol.for("react.portal") : 60106, t = e ? /* @__PURE__ */ Symbol.for("react.fragment") : 60107, a = e ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108, o = e ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114, l = e ? /* @__PURE__ */ Symbol.for("react.provider") : 60109, c = e ? /* @__PURE__ */ Symbol.for("react.context") : 60110, d = e ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111, s = e ? /* @__PURE__ */ Symbol.for("react.concurrent_mode") : 60111, u = e ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112, v = e ? /* @__PURE__ */ Symbol.for("react.suspense") : 60113, y = e ? /* @__PURE__ */ Symbol.for("react.suspense_list") : 60120, b = e ? /* @__PURE__ */ Symbol.for("react.memo") : 60115, x = e ? /* @__PURE__ */ Symbol.for("react.lazy") : 60116, g = e ? /* @__PURE__ */ Symbol.for("react.block") : 60121, T = e ? /* @__PURE__ */ Symbol.for("react.fundamental") : 60117, _ = e ? /* @__PURE__ */ Symbol.for("react.responder") : 60118, N = e ? /* @__PURE__ */ Symbol.for("react.scope") : 60119;
110
110
  function R(p) {
111
111
  return typeof p == "string" || typeof p == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
112
- p === t || p === i || p === o || p === a || p === v || p === y || typeof p == "object" && p !== null && (p.$$typeof === x || p.$$typeof === b || p.$$typeof === l || p.$$typeof === c || p.$$typeof === u || p.$$typeof === T || p.$$typeof === _ || p.$$typeof === z || p.$$typeof === g);
112
+ p === t || p === s || p === o || p === a || p === v || p === y || typeof p == "object" && p !== null && (p.$$typeof === x || p.$$typeof === b || p.$$typeof === l || p.$$typeof === c || p.$$typeof === u || p.$$typeof === T || p.$$typeof === _ || p.$$typeof === N || p.$$typeof === g);
113
113
  }
114
114
  function j(p) {
115
115
  if (typeof p == "object" && p !== null) {
116
- var G = p.$$typeof;
117
- switch (G) {
116
+ var Z = p.$$typeof;
117
+ switch (Z) {
118
118
  case n:
119
119
  var ae = p.type;
120
120
  switch (ae) {
121
121
  case d:
122
- case i:
122
+ case s:
123
123
  case t:
124
124
  case o:
125
125
  case a:
@@ -135,31 +135,31 @@ function Xe() {
135
135
  case l:
136
136
  return Pe;
137
137
  default:
138
- return G;
138
+ return Z;
139
139
  }
140
140
  }
141
141
  case r:
142
- return G;
142
+ return Z;
143
143
  }
144
144
  }
145
145
  }
146
- var f = d, Z = i, Q = c, K = l, A = n, P = u, q = t, F = x, m = b, H = r, ee = o, $ = a, Y = v, B = !1;
147
- function J(p) {
148
- return B || (B = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), s(p) || j(p) === d;
146
+ var f = d, J = s, Q = c, K = l, A = n, P = u, q = t, F = x, m = b, H = r, ee = o, $ = a, Y = v, B = !1;
147
+ function G(p) {
148
+ return B || (B = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), i(p) || j(p) === d;
149
149
  }
150
- function s(p) {
151
- return j(p) === i;
150
+ function i(p) {
151
+ return j(p) === s;
152
152
  }
153
153
  function h(p) {
154
154
  return j(p) === c;
155
155
  }
156
- function w(p) {
156
+ function E(p) {
157
157
  return j(p) === l;
158
158
  }
159
- function O(p) {
159
+ function C(p) {
160
160
  return typeof p == "object" && p !== null && p.$$typeof === n;
161
161
  }
162
- function E(p) {
162
+ function w(p) {
163
163
  return j(p) === u;
164
164
  }
165
165
  function M(p) {
@@ -168,7 +168,7 @@ function Xe() {
168
168
  function S(p) {
169
169
  return j(p) === x;
170
170
  }
171
- function C(p) {
171
+ function O(p) {
172
172
  return j(p) === b;
173
173
  }
174
174
  function D(p) {
@@ -183,17 +183,17 @@ function Xe() {
183
183
  function X(p) {
184
184
  return j(p) === v;
185
185
  }
186
- L.AsyncMode = f, L.ConcurrentMode = Z, L.ContextConsumer = Q, L.ContextProvider = K, L.Element = A, L.ForwardRef = P, L.Fragment = q, L.Lazy = F, L.Memo = m, L.Portal = H, L.Profiler = ee, L.StrictMode = $, L.Suspense = Y, L.isAsyncMode = J, L.isConcurrentMode = s, L.isContextConsumer = h, L.isContextProvider = w, L.isElement = O, L.isForwardRef = E, L.isFragment = M, L.isLazy = S, L.isMemo = C, L.isPortal = D, L.isProfiler = W, L.isStrictMode = k, L.isSuspense = X, L.isValidElementType = R, L.typeOf = j;
186
+ L.AsyncMode = f, L.ConcurrentMode = J, L.ContextConsumer = Q, L.ContextProvider = K, L.Element = A, L.ForwardRef = P, L.Fragment = q, L.Lazy = F, L.Memo = m, L.Portal = H, L.Profiler = ee, L.StrictMode = $, L.Suspense = Y, L.isAsyncMode = G, L.isConcurrentMode = i, L.isContextConsumer = h, L.isContextProvider = E, L.isElement = C, L.isForwardRef = w, L.isFragment = M, L.isLazy = S, L.isMemo = O, L.isPortal = D, L.isProfiler = W, L.isStrictMode = k, L.isSuspense = X, L.isValidElementType = R, L.typeOf = j;
187
187
  })()), L;
188
188
  }
189
- var Oe;
189
+ var Ce;
190
190
  function $e() {
191
- return Oe || (Oe = 1, process.env.NODE_ENV === "production" ? ue.exports = Ve() : ue.exports = Xe()), ue.exports;
191
+ return Ce || (Ce = 1, process.env.NODE_ENV === "production" ? ue.exports = Ve() : ue.exports = Xe()), ue.exports;
192
192
  }
193
- var pe, Ce;
194
- function Je() {
195
- if (Ce) return pe;
196
- Ce = 1;
193
+ var pe, Oe;
194
+ function Ge() {
195
+ if (Oe) return pe;
196
+ Oe = 1;
197
197
  var e = Object.getOwnPropertySymbols, n = Object.prototype.hasOwnProperty, r = Object.prototype.propertyIsEnumerable;
198
198
  function t(o) {
199
199
  if (o == null)
@@ -214,23 +214,23 @@ function Je() {
214
214
  });
215
215
  if (d.join("") !== "0123456789")
216
216
  return !1;
217
- var i = {};
217
+ var s = {};
218
218
  return "abcdefghijklmnopqrst".split("").forEach(function(u) {
219
- i[u] = u;
220
- }), Object.keys(Object.assign({}, i)).join("") === "abcdefghijklmnopqrst";
219
+ s[u] = u;
220
+ }), Object.keys(Object.assign({}, s)).join("") === "abcdefghijklmnopqrst";
221
221
  } catch {
222
222
  return !1;
223
223
  }
224
224
  }
225
225
  return pe = a() ? Object.assign : function(o, l) {
226
- for (var c, d = t(o), i, u = 1; u < arguments.length; u++) {
226
+ for (var c, d = t(o), s, u = 1; u < arguments.length; u++) {
227
227
  c = Object(arguments[u]);
228
228
  for (var v in c)
229
229
  n.call(c, v) && (d[v] = c[v]);
230
230
  if (e) {
231
- i = e(c);
232
- for (var y = 0; y < i.length; y++)
233
- r.call(c, i[y]) && (d[i[y]] = c[i[y]]);
231
+ s = e(c);
232
+ for (var y = 0; y < s.length; y++)
233
+ r.call(c, s[y]) && (d[s[y]] = c[s[y]]);
234
234
  }
235
235
  }
236
236
  return d;
@@ -248,7 +248,7 @@ function We() {
248
248
  return Ae || (Ae = 1, ye = Function.call.bind(Object.prototype.hasOwnProperty)), ye;
249
249
  }
250
250
  var me, Me;
251
- function Ze() {
251
+ function Je() {
252
252
  if (Me) return me;
253
253
  Me = 1;
254
254
  var e = function() {
@@ -264,7 +264,7 @@ function Ze() {
264
264
  }
265
265
  };
266
266
  }
267
- function a(o, l, c, d, i) {
267
+ function a(o, l, c, d, s) {
268
268
  if (process.env.NODE_ENV !== "production") {
269
269
  for (var u in o)
270
270
  if (t(o, u)) {
@@ -284,7 +284,7 @@ function Ze() {
284
284
  (d || "React class") + ": type specification of " + c + " `" + u + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof v + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
285
285
  ), v instanceof Error && !(v.message in r)) {
286
286
  r[v.message] = !0;
287
- var b = i ? i() : "";
287
+ var b = s ? s() : "";
288
288
  e(
289
289
  "Failed " + c + " type: " + v.message + (b ?? "")
290
290
  );
@@ -297,10 +297,10 @@ function Ze() {
297
297
  }, me = a, me;
298
298
  }
299
299
  var _e, De;
300
- function Ge() {
300
+ function Ze() {
301
301
  if (De) return _e;
302
302
  De = 1;
303
- var e = $e(), n = Je(), r = /* @__PURE__ */ be(), t = /* @__PURE__ */ We(), a = /* @__PURE__ */ Ze(), o = function() {
303
+ var e = $e(), n = Ge(), r = /* @__PURE__ */ be(), t = /* @__PURE__ */ We(), a = /* @__PURE__ */ Je(), o = function() {
304
304
  };
305
305
  process.env.NODE_ENV !== "production" && (o = function(c) {
306
306
  var d = "Warning: " + c;
@@ -314,9 +314,9 @@ function Ge() {
314
314
  return null;
315
315
  }
316
316
  return _e = function(c, d) {
317
- var i = typeof Symbol == "function" && Symbol.iterator, u = "@@iterator";
318
- function v(s) {
319
- var h = s && (i && s[i] || s[u]);
317
+ var s = typeof Symbol == "function" && Symbol.iterator, u = "@@iterator";
318
+ function v(i) {
319
+ var h = i && (s && i[s] || i[u]);
320
320
  if (typeof h == "function")
321
321
  return h;
322
322
  }
@@ -329,11 +329,11 @@ function Ge() {
329
329
  object: _("object"),
330
330
  string: _("string"),
331
331
  symbol: _("symbol"),
332
- any: z(),
332
+ any: N(),
333
333
  arrayOf: R,
334
334
  element: j(),
335
335
  elementType: f(),
336
- instanceOf: Z,
336
+ instanceOf: J,
337
337
  node: P(),
338
338
  objectOf: K,
339
339
  oneOf: Q,
@@ -341,64 +341,64 @@ function Ge() {
341
341
  shape: F,
342
342
  exact: m
343
343
  };
344
- function x(s, h) {
345
- return s === h ? s !== 0 || 1 / s === 1 / h : s !== s && h !== h;
344
+ function x(i, h) {
345
+ return i === h ? i !== 0 || 1 / i === 1 / h : i !== i && h !== h;
346
346
  }
347
- function g(s, h) {
348
- this.message = s, this.data = h && typeof h == "object" ? h : {}, this.stack = "";
347
+ function g(i, h) {
348
+ this.message = i, this.data = h && typeof h == "object" ? h : {}, this.stack = "";
349
349
  }
350
350
  g.prototype = Error.prototype;
351
- function T(s) {
351
+ function T(i) {
352
352
  if (process.env.NODE_ENV !== "production")
353
- var h = {}, w = 0;
354
- function O(M, S, C, D, W, k, X) {
355
- if (D = D || y, k = k || C, X !== r) {
353
+ var h = {}, E = 0;
354
+ function C(M, S, O, D, W, k, X) {
355
+ if (D = D || y, k = k || O, X !== r) {
356
356
  if (d) {
357
357
  var p = new Error(
358
358
  "Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"
359
359
  );
360
360
  throw p.name = "Invariant Violation", p;
361
361
  } else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
362
- var G = D + ":" + C;
363
- !h[G] && // Avoid spamming the console because they are often not actionable except for lib authors
364
- w < 3 && (o(
362
+ var Z = D + ":" + O;
363
+ !h[Z] && // Avoid spamming the console because they are often not actionable except for lib authors
364
+ E < 3 && (o(
365
365
  "You are manually calling a React.PropTypes validation function for the `" + k + "` prop on `" + D + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
366
- ), h[G] = !0, w++);
366
+ ), h[Z] = !0, E++);
367
367
  }
368
368
  }
369
- return S[C] == null ? M ? S[C] === null ? new g("The " + W + " `" + k + "` is marked as required " + ("in `" + D + "`, but its value is `null`.")) : new g("The " + W + " `" + k + "` is marked as required in " + ("`" + D + "`, but its value is `undefined`.")) : null : s(S, C, D, W, k);
369
+ return S[O] == null ? M ? S[O] === null ? new g("The " + W + " `" + k + "` is marked as required " + ("in `" + D + "`, but its value is `null`.")) : new g("The " + W + " `" + k + "` is marked as required in " + ("`" + D + "`, but its value is `undefined`.")) : null : i(S, O, D, W, k);
370
370
  }
371
- var E = O.bind(null, !1);
372
- return E.isRequired = O.bind(null, !0), E;
371
+ var w = C.bind(null, !1);
372
+ return w.isRequired = C.bind(null, !0), w;
373
373
  }
374
- function _(s) {
375
- function h(w, O, E, M, S, C) {
376
- var D = w[O], W = $(D);
377
- if (W !== s) {
374
+ function _(i) {
375
+ function h(E, C, w, M, S, O) {
376
+ var D = E[C], W = $(D);
377
+ if (W !== i) {
378
378
  var k = Y(D);
379
379
  return new g(
380
- "Invalid " + M + " `" + S + "` of type " + ("`" + k + "` supplied to `" + E + "`, expected ") + ("`" + s + "`."),
381
- { expectedType: s }
380
+ "Invalid " + M + " `" + S + "` of type " + ("`" + k + "` supplied to `" + w + "`, expected ") + ("`" + i + "`."),
381
+ { expectedType: i }
382
382
  );
383
383
  }
384
384
  return null;
385
385
  }
386
386
  return T(h);
387
387
  }
388
- function z() {
388
+ function N() {
389
389
  return T(l);
390
390
  }
391
- function R(s) {
392
- function h(w, O, E, M, S) {
393
- if (typeof s != "function")
394
- return new g("Property `" + S + "` of component `" + E + "` has invalid PropType notation inside arrayOf.");
395
- var C = w[O];
396
- if (!Array.isArray(C)) {
397
- var D = $(C);
398
- return new g("Invalid " + M + " `" + S + "` of type " + ("`" + D + "` supplied to `" + E + "`, expected an array."));
391
+ function R(i) {
392
+ function h(E, C, w, M, S) {
393
+ if (typeof i != "function")
394
+ return new g("Property `" + S + "` of component `" + w + "` has invalid PropType notation inside arrayOf.");
395
+ var O = E[C];
396
+ if (!Array.isArray(O)) {
397
+ var D = $(O);
398
+ return new g("Invalid " + M + " `" + S + "` of type " + ("`" + D + "` supplied to `" + w + "`, expected an array."));
399
399
  }
400
- for (var W = 0; W < C.length; W++) {
401
- var k = s(C, W, E, M, S + "[" + W + "]", r);
400
+ for (var W = 0; W < O.length; W++) {
401
+ var k = i(O, W, w, M, S + "[" + W + "]", r);
402
402
  if (k instanceof Error)
403
403
  return k;
404
404
  }
@@ -407,64 +407,64 @@ function Ge() {
407
407
  return T(h);
408
408
  }
409
409
  function j() {
410
- function s(h, w, O, E, M) {
411
- var S = h[w];
410
+ function i(h, E, C, w, M) {
411
+ var S = h[E];
412
412
  if (!c(S)) {
413
- var C = $(S);
414
- return new g("Invalid " + E + " `" + M + "` of type " + ("`" + C + "` supplied to `" + O + "`, expected a single ReactElement."));
413
+ var O = $(S);
414
+ return new g("Invalid " + w + " `" + M + "` of type " + ("`" + O + "` supplied to `" + C + "`, expected a single ReactElement."));
415
415
  }
416
416
  return null;
417
417
  }
418
- return T(s);
418
+ return T(i);
419
419
  }
420
420
  function f() {
421
- function s(h, w, O, E, M) {
422
- var S = h[w];
421
+ function i(h, E, C, w, M) {
422
+ var S = h[E];
423
423
  if (!e.isValidElementType(S)) {
424
- var C = $(S);
425
- return new g("Invalid " + E + " `" + M + "` of type " + ("`" + C + "` supplied to `" + O + "`, expected a single ReactElement type."));
424
+ var O = $(S);
425
+ return new g("Invalid " + w + " `" + M + "` of type " + ("`" + O + "` supplied to `" + C + "`, expected a single ReactElement type."));
426
426
  }
427
427
  return null;
428
428
  }
429
- return T(s);
429
+ return T(i);
430
430
  }
431
- function Z(s) {
432
- function h(w, O, E, M, S) {
433
- if (!(w[O] instanceof s)) {
434
- var C = s.name || y, D = J(w[O]);
435
- return new g("Invalid " + M + " `" + S + "` of type " + ("`" + D + "` supplied to `" + E + "`, expected ") + ("instance of `" + C + "`."));
431
+ function J(i) {
432
+ function h(E, C, w, M, S) {
433
+ if (!(E[C] instanceof i)) {
434
+ var O = i.name || y, D = G(E[C]);
435
+ return new g("Invalid " + M + " `" + S + "` of type " + ("`" + D + "` supplied to `" + w + "`, expected ") + ("instance of `" + O + "`."));
436
436
  }
437
437
  return null;
438
438
  }
439
439
  return T(h);
440
440
  }
441
- function Q(s) {
442
- if (!Array.isArray(s))
441
+ function Q(i) {
442
+ if (!Array.isArray(i))
443
443
  return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? o(
444
444
  "Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
445
445
  ) : o("Invalid argument supplied to oneOf, expected an array.")), l;
446
- function h(w, O, E, M, S) {
447
- for (var C = w[O], D = 0; D < s.length; D++)
448
- if (x(C, s[D]))
446
+ function h(E, C, w, M, S) {
447
+ for (var O = E[C], D = 0; D < i.length; D++)
448
+ if (x(O, i[D]))
449
449
  return null;
450
- var W = JSON.stringify(s, function(X, p) {
451
- var G = Y(p);
452
- return G === "symbol" ? String(p) : p;
450
+ var W = JSON.stringify(i, function(X, p) {
451
+ var Z = Y(p);
452
+ return Z === "symbol" ? String(p) : p;
453
453
  });
454
- return new g("Invalid " + M + " `" + S + "` of value `" + String(C) + "` " + ("supplied to `" + E + "`, expected one of " + W + "."));
454
+ return new g("Invalid " + M + " `" + S + "` of value `" + String(O) + "` " + ("supplied to `" + w + "`, expected one of " + W + "."));
455
455
  }
456
456
  return T(h);
457
457
  }
458
- function K(s) {
459
- function h(w, O, E, M, S) {
460
- if (typeof s != "function")
461
- return new g("Property `" + S + "` of component `" + E + "` has invalid PropType notation inside objectOf.");
462
- var C = w[O], D = $(C);
458
+ function K(i) {
459
+ function h(E, C, w, M, S) {
460
+ if (typeof i != "function")
461
+ return new g("Property `" + S + "` of component `" + w + "` has invalid PropType notation inside objectOf.");
462
+ var O = E[C], D = $(O);
463
463
  if (D !== "object")
464
- return new g("Invalid " + M + " `" + S + "` of type " + ("`" + D + "` supplied to `" + E + "`, expected an object."));
465
- for (var W in C)
466
- if (t(C, W)) {
467
- var k = s(C, W, E, M, S + "." + W, r);
464
+ return new g("Invalid " + M + " `" + S + "` of type " + ("`" + D + "` supplied to `" + w + "`, expected an object."));
465
+ for (var W in O)
466
+ if (t(O, W)) {
467
+ var k = i(O, W, w, M, S + "." + W, r);
468
468
  if (k instanceof Error)
469
469
  return k;
470
470
  }
@@ -472,49 +472,49 @@ function Ge() {
472
472
  }
473
473
  return T(h);
474
474
  }
475
- function A(s) {
476
- if (!Array.isArray(s))
475
+ function A(i) {
476
+ if (!Array.isArray(i))
477
477
  return process.env.NODE_ENV !== "production" && o("Invalid argument supplied to oneOfType, expected an instance of array."), l;
478
- for (var h = 0; h < s.length; h++) {
479
- var w = s[h];
480
- if (typeof w != "function")
478
+ for (var h = 0; h < i.length; h++) {
479
+ var E = i[h];
480
+ if (typeof E != "function")
481
481
  return o(
482
- "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + B(w) + " at index " + h + "."
482
+ "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + B(E) + " at index " + h + "."
483
483
  ), l;
484
484
  }
485
- function O(E, M, S, C, D) {
486
- for (var W = [], k = 0; k < s.length; k++) {
487
- var X = s[k], p = X(E, M, S, C, D, r);
485
+ function C(w, M, S, O, D) {
486
+ for (var W = [], k = 0; k < i.length; k++) {
487
+ var X = i[k], p = X(w, M, S, O, D, r);
488
488
  if (p == null)
489
489
  return null;
490
490
  p.data && t(p.data, "expectedType") && W.push(p.data.expectedType);
491
491
  }
492
- var G = W.length > 0 ? ", expected one of type [" + W.join(", ") + "]" : "";
493
- return new g("Invalid " + C + " `" + D + "` supplied to " + ("`" + S + "`" + G + "."));
492
+ var Z = W.length > 0 ? ", expected one of type [" + W.join(", ") + "]" : "";
493
+ return new g("Invalid " + O + " `" + D + "` supplied to " + ("`" + S + "`" + Z + "."));
494
494
  }
495
- return T(O);
495
+ return T(C);
496
496
  }
497
497
  function P() {
498
- function s(h, w, O, E, M) {
499
- return H(h[w]) ? null : new g("Invalid " + E + " `" + M + "` supplied to " + ("`" + O + "`, expected a ReactNode."));
498
+ function i(h, E, C, w, M) {
499
+ return H(h[E]) ? null : new g("Invalid " + w + " `" + M + "` supplied to " + ("`" + C + "`, expected a ReactNode."));
500
500
  }
501
- return T(s);
501
+ return T(i);
502
502
  }
503
- function q(s, h, w, O, E) {
503
+ function q(i, h, E, C, w) {
504
504
  return new g(
505
- (s || "React class") + ": " + h + " type `" + w + "." + O + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + E + "`."
505
+ (i || "React class") + ": " + h + " type `" + E + "." + C + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + w + "`."
506
506
  );
507
507
  }
508
- function F(s) {
509
- function h(w, O, E, M, S) {
510
- var C = w[O], D = $(C);
508
+ function F(i) {
509
+ function h(E, C, w, M, S) {
510
+ var O = E[C], D = $(O);
511
511
  if (D !== "object")
512
- return new g("Invalid " + M + " `" + S + "` of type `" + D + "` " + ("supplied to `" + E + "`, expected `object`."));
513
- for (var W in s) {
514
- var k = s[W];
512
+ return new g("Invalid " + M + " `" + S + "` of type `" + D + "` " + ("supplied to `" + w + "`, expected `object`."));
513
+ for (var W in i) {
514
+ var k = i[W];
515
515
  if (typeof k != "function")
516
- return q(E, M, S, W, Y(k));
517
- var X = k(C, W, E, M, S + "." + W, r);
516
+ return q(w, M, S, W, Y(k));
517
+ var X = k(O, W, w, M, S + "." + W, r);
518
518
  if (X)
519
519
  return X;
520
520
  }
@@ -522,22 +522,22 @@ function Ge() {
522
522
  }
523
523
  return T(h);
524
524
  }
525
- function m(s) {
526
- function h(w, O, E, M, S) {
527
- var C = w[O], D = $(C);
525
+ function m(i) {
526
+ function h(E, C, w, M, S) {
527
+ var O = E[C], D = $(O);
528
528
  if (D !== "object")
529
- return new g("Invalid " + M + " `" + S + "` of type `" + D + "` " + ("supplied to `" + E + "`, expected `object`."));
530
- var W = n({}, w[O], s);
529
+ return new g("Invalid " + M + " `" + S + "` of type `" + D + "` " + ("supplied to `" + w + "`, expected `object`."));
530
+ var W = n({}, E[C], i);
531
531
  for (var k in W) {
532
- var X = s[k];
533
- if (t(s, k) && typeof X != "function")
534
- return q(E, M, S, k, Y(X));
532
+ var X = i[k];
533
+ if (t(i, k) && typeof X != "function")
534
+ return q(w, M, S, k, Y(X));
535
535
  if (!X)
536
536
  return new g(
537
- "Invalid " + M + " `" + S + "` key `" + k + "` supplied to `" + E + "`.\nBad object: " + JSON.stringify(w[O], null, " ") + `
538
- Valid keys: ` + JSON.stringify(Object.keys(s), null, " ")
537
+ "Invalid " + M + " `" + S + "` key `" + k + "` supplied to `" + w + "`.\nBad object: " + JSON.stringify(E[C], null, " ") + `
538
+ Valid keys: ` + JSON.stringify(Object.keys(i), null, " ")
539
539
  );
540
- var p = X(C, k, E, M, S + "." + k, r);
540
+ var p = X(O, k, w, M, S + "." + k, r);
541
541
  if (p)
542
542
  return p;
543
543
  }
@@ -545,30 +545,30 @@ Valid keys: ` + JSON.stringify(Object.keys(s), null, " ")
545
545
  }
546
546
  return T(h);
547
547
  }
548
- function H(s) {
549
- switch (typeof s) {
548
+ function H(i) {
549
+ switch (typeof i) {
550
550
  case "number":
551
551
  case "string":
552
552
  case "undefined":
553
553
  return !0;
554
554
  case "boolean":
555
- return !s;
555
+ return !i;
556
556
  case "object":
557
- if (Array.isArray(s))
558
- return s.every(H);
559
- if (s === null || c(s))
557
+ if (Array.isArray(i))
558
+ return i.every(H);
559
+ if (i === null || c(i))
560
560
  return !0;
561
- var h = v(s);
561
+ var h = v(i);
562
562
  if (h) {
563
- var w = h.call(s), O;
564
- if (h !== s.entries) {
565
- for (; !(O = w.next()).done; )
566
- if (!H(O.value))
563
+ var E = h.call(i), C;
564
+ if (h !== i.entries) {
565
+ for (; !(C = E.next()).done; )
566
+ if (!H(C.value))
567
567
  return !1;
568
568
  } else
569
- for (; !(O = w.next()).done; ) {
570
- var E = O.value;
571
- if (E && !H(E[1]))
569
+ for (; !(C = E.next()).done; ) {
570
+ var w = C.value;
571
+ if (w && !H(w[1]))
572
572
  return !1;
573
573
  }
574
574
  } else
@@ -578,27 +578,27 @@ Valid keys: ` + JSON.stringify(Object.keys(s), null, " ")
578
578
  return !1;
579
579
  }
580
580
  }
581
- function ee(s, h) {
582
- return s === "symbol" ? !0 : h ? h["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && h instanceof Symbol : !1;
581
+ function ee(i, h) {
582
+ return i === "symbol" ? !0 : h ? h["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && h instanceof Symbol : !1;
583
583
  }
584
- function $(s) {
585
- var h = typeof s;
586
- return Array.isArray(s) ? "array" : s instanceof RegExp ? "object" : ee(h, s) ? "symbol" : h;
584
+ function $(i) {
585
+ var h = typeof i;
586
+ return Array.isArray(i) ? "array" : i instanceof RegExp ? "object" : ee(h, i) ? "symbol" : h;
587
587
  }
588
- function Y(s) {
589
- if (typeof s > "u" || s === null)
590
- return "" + s;
591
- var h = $(s);
588
+ function Y(i) {
589
+ if (typeof i > "u" || i === null)
590
+ return "" + i;
591
+ var h = $(i);
592
592
  if (h === "object") {
593
- if (s instanceof Date)
593
+ if (i instanceof Date)
594
594
  return "date";
595
- if (s instanceof RegExp)
595
+ if (i instanceof RegExp)
596
596
  return "regexp";
597
597
  }
598
598
  return h;
599
599
  }
600
- function B(s) {
601
- var h = Y(s);
600
+ function B(i) {
601
+ var h = Y(i);
602
602
  switch (h) {
603
603
  case "array":
604
604
  case "object":
@@ -611,8 +611,8 @@ Valid keys: ` + JSON.stringify(Object.keys(s), null, " ")
611
611
  return h;
612
612
  }
613
613
  }
614
- function J(s) {
615
- return !s.constructor || !s.constructor.name ? y : s.constructor.name;
614
+ function G(i) {
615
+ return !i.constructor || !i.constructor.name ? y : i.constructor.name;
616
616
  }
617
617
  return b.checkPropTypes = a, b.resetWarningCache = a.resetWarningCache, b.PropTypes = b, b;
618
618
  }, _e;
@@ -627,7 +627,7 @@ function Ke() {
627
627
  function r() {
628
628
  }
629
629
  return r.resetWarningCache = n, ge = function() {
630
- function t(l, c, d, i, u, v) {
630
+ function t(l, c, d, s, u, v) {
631
631
  if (v !== e) {
632
632
  var y = new Error(
633
633
  "Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types"
@@ -670,7 +670,7 @@ function Qe() {
670
670
  if (je) return se.exports;
671
671
  if (je = 1, process.env.NODE_ENV !== "production") {
672
672
  var e = $e(), n = !0;
673
- se.exports = /* @__PURE__ */ Ge()(e.isElement, n);
673
+ se.exports = /* @__PURE__ */ Ze()(e.isElement, n);
674
674
  } else
675
675
  se.exports = /* @__PURE__ */ Ke()();
676
676
  return se.exports;
@@ -694,8 +694,8 @@ xe.prototype.length = function() {
694
694
  for (var e = 10, n = 0, r = void 0, t = void 0, a = 0; a <= e; a += 1) {
695
695
  var o = a / e, l = this._point(o, this.startPoint.x, this.control1.x, this.control2.x, this.endPoint.x), c = this._point(o, this.startPoint.y, this.control1.y, this.control2.y, this.endPoint.y);
696
696
  if (a > 0) {
697
- var d = l - r, i = c - t;
698
- n += Math.sqrt(d * d + i * i);
697
+ var d = l - r, s = c - t;
698
+ n += Math.sqrt(d * d + s * s);
699
699
  }
700
700
  r = l, t = c;
701
701
  }
@@ -711,15 +711,15 @@ function et(e, n, r) {
711
711
  c = r.leading === !1 ? 0 : Date.now(), l = null, o = e.apply(t, a), l || (t = a = null);
712
712
  };
713
713
  return function() {
714
- var i = Date.now();
715
- !c && r.leading === !1 && (c = i);
716
- var u = n - (i - c);
717
- return t = this, a = arguments, u <= 0 || u > n ? (l && (clearTimeout(l), l = null), c = i, o = e.apply(t, a), l || (t = a = null)) : !l && r.trailing !== !1 && (l = setTimeout(d, u)), o;
714
+ var s = Date.now();
715
+ !c && r.leading === !1 && (c = s);
716
+ var u = n - (s - c);
717
+ return t = this, a = arguments, u <= 0 || u > n ? (l && (clearTimeout(l), l = null), c = s, o = e.apply(t, a), l || (t = a = null)) : !l && r.trailing !== !1 && (l = setTimeout(d, u)), o;
718
718
  };
719
719
  }
720
- function N(e, n) {
720
+ function z(e, n) {
721
721
  var r = this, t = n || {};
722
- this.velocityFilterWeight = t.velocityFilterWeight || 0.7, this.minWidth = t.minWidth || 0.5, this.maxWidth = t.maxWidth || 2.5, this.throttle = "throttle" in t ? t.throttle : 16, this.minDistance = "minDistance" in t ? t.minDistance : 5, this.throttle ? this._strokeMoveUpdate = et(N.prototype._strokeUpdate, this.throttle) : this._strokeMoveUpdate = N.prototype._strokeUpdate, this.dotSize = t.dotSize || function() {
722
+ this.velocityFilterWeight = t.velocityFilterWeight || 0.7, this.minWidth = t.minWidth || 0.5, this.maxWidth = t.maxWidth || 2.5, this.throttle = "throttle" in t ? t.throttle : 16, this.minDistance = "minDistance" in t ? t.minDistance : 5, this.throttle ? this._strokeMoveUpdate = et(z.prototype._strokeUpdate, this.throttle) : this._strokeMoveUpdate = z.prototype._strokeUpdate, this.dotSize = t.dotSize || function() {
723
723
  return (this.minWidth + this.maxWidth) / 2;
724
724
  }, this.penColor = t.penColor || "black", this.backgroundColor = t.backgroundColor || "rgba(0,0,0,0)", this.onBegin = t.onBegin, this.onEnd = t.onEnd, this._canvas = e, this._ctx = e.getContext("2d"), this.clear(), this._handleMouseDown = function(a) {
725
725
  a.which === 1 && (r._mouseButtonDown = !0, r._strokeBegin(a));
@@ -741,17 +741,17 @@ function N(e, n) {
741
741
  o && (a.preventDefault(), r._strokeEnd(a));
742
742
  }, this.on();
743
743
  }
744
- N.prototype.clear = function() {
744
+ z.prototype.clear = function() {
745
745
  var e = this._ctx, n = this._canvas;
746
746
  e.fillStyle = this.backgroundColor, e.clearRect(0, 0, n.width, n.height), e.fillRect(0, 0, n.width, n.height), this._data = [], this._reset(), this._isEmpty = !0;
747
747
  };
748
- N.prototype.fromDataURL = function(e) {
748
+ z.prototype.fromDataURL = function(e) {
749
749
  var n = this, r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, t = new Image(), a = r.ratio || window.devicePixelRatio || 1, o = r.width || this._canvas.width / a, l = r.height || this._canvas.height / a;
750
750
  this._reset(), t.src = e, t.onload = function() {
751
751
  n._ctx.drawImage(t, 0, 0, o, l);
752
752
  }, this._isEmpty = !1;
753
753
  };
754
- N.prototype.toDataURL = function(e) {
754
+ z.prototype.toDataURL = function(e) {
755
755
  var n;
756
756
  switch (e) {
757
757
  case "image/svg+xml":
@@ -762,23 +762,23 @@ N.prototype.toDataURL = function(e) {
762
762
  return (n = this._canvas).toDataURL.apply(n, [e].concat(t));
763
763
  }
764
764
  };
765
- N.prototype.on = function() {
765
+ z.prototype.on = function() {
766
766
  this._handleMouseEvents(), this._handleTouchEvents();
767
767
  };
768
- N.prototype.off = function() {
768
+ z.prototype.off = function() {
769
769
  this._canvas.removeEventListener("mousedown", this._handleMouseDown), this._canvas.removeEventListener("mousemove", this._handleMouseMove), document.removeEventListener("mouseup", this._handleMouseUp), this._canvas.removeEventListener("touchstart", this._handleTouchStart), this._canvas.removeEventListener("touchmove", this._handleTouchMove), this._canvas.removeEventListener("touchend", this._handleTouchEnd);
770
770
  };
771
- N.prototype.isEmpty = function() {
771
+ z.prototype.isEmpty = function() {
772
772
  return this._isEmpty;
773
773
  };
774
- N.prototype._strokeBegin = function(e) {
774
+ z.prototype._strokeBegin = function(e) {
775
775
  this._data.push([]), this._reset(), this._strokeUpdate(e), typeof this.onBegin == "function" && this.onBegin(e);
776
776
  };
777
- N.prototype._strokeUpdate = function(e) {
777
+ z.prototype._strokeUpdate = function(e) {
778
778
  var n = e.clientX, r = e.clientY, t = this._createPoint(n, r), a = this._data[this._data.length - 1], o = a && a[a.length - 1], l = o && t.distanceTo(o) < this.minDistance;
779
779
  if (!(o && l)) {
780
- var c = this._addPoint(t), d = c.curve, i = c.widths;
781
- d && i && this._drawCurve(d, i.start, i.end), this._data[this._data.length - 1].push({
780
+ var c = this._addPoint(t), d = c.curve, s = c.widths;
781
+ d && s && this._drawCurve(d, s.start, s.end), this._data[this._data.length - 1].push({
782
782
  x: t.x,
783
783
  y: t.y,
784
784
  time: t.time,
@@ -786,7 +786,7 @@ N.prototype._strokeUpdate = function(e) {
786
786
  });
787
787
  }
788
788
  };
789
- N.prototype._strokeEnd = function(e) {
789
+ z.prototype._strokeEnd = function(e) {
790
790
  var n = this.points.length > 2, r = this.points[0];
791
791
  if (!n && r && this._drawDot(r), r) {
792
792
  var t = this._data[this._data.length - 1], a = t[t.length - 1];
@@ -799,20 +799,20 @@ N.prototype._strokeEnd = function(e) {
799
799
  }
800
800
  typeof this.onEnd == "function" && this.onEnd(e);
801
801
  };
802
- N.prototype._handleMouseEvents = function() {
802
+ z.prototype._handleMouseEvents = function() {
803
803
  this._mouseButtonDown = !1, this._canvas.addEventListener("mousedown", this._handleMouseDown), this._canvas.addEventListener("mousemove", this._handleMouseMove), document.addEventListener("mouseup", this._handleMouseUp);
804
804
  };
805
- N.prototype._handleTouchEvents = function() {
805
+ z.prototype._handleTouchEvents = function() {
806
806
  this._canvas.style.msTouchAction = "none", this._canvas.style.touchAction = "none", this._canvas.addEventListener("touchstart", this._handleTouchStart), this._canvas.addEventListener("touchmove", this._handleTouchMove), this._canvas.addEventListener("touchend", this._handleTouchEnd);
807
807
  };
808
- N.prototype._reset = function() {
808
+ z.prototype._reset = function() {
809
809
  this.points = [], this._lastVelocity = 0, this._lastWidth = (this.minWidth + this.maxWidth) / 2, this._ctx.fillStyle = this.penColor;
810
810
  };
811
- N.prototype._createPoint = function(e, n, r) {
811
+ z.prototype._createPoint = function(e, n, r) {
812
812
  var t = this._canvas.getBoundingClientRect();
813
813
  return new ne(e - t.left, n - t.top, r || (/* @__PURE__ */ new Date()).getTime());
814
814
  };
815
- N.prototype._addPoint = function(e) {
815
+ z.prototype._addPoint = function(e) {
816
816
  var n = this.points, r = void 0;
817
817
  if (n.push(e), n.length > 2) {
818
818
  n.length === 3 && n.unshift(n[0]), r = this._calculateCurveControlPoints(n[0], n[1], n[2]);
@@ -823,42 +823,42 @@ N.prototype._addPoint = function(e) {
823
823
  }
824
824
  return {};
825
825
  };
826
- N.prototype._calculateCurveControlPoints = function(e, n, r) {
827
- var t = e.x - n.x, a = e.y - n.y, o = n.x - r.x, l = n.y - r.y, c = { x: (e.x + n.x) / 2, y: (e.y + n.y) / 2 }, d = { x: (n.x + r.x) / 2, y: (n.y + r.y) / 2 }, i = Math.sqrt(t * t + a * a), u = Math.sqrt(o * o + l * l), v = c.x - d.x, y = c.y - d.y, b = u / (i + u), x = { x: d.x + v * b, y: d.y + y * b }, g = n.x - x.x, T = n.y - x.y;
826
+ z.prototype._calculateCurveControlPoints = function(e, n, r) {
827
+ var t = e.x - n.x, a = e.y - n.y, o = n.x - r.x, l = n.y - r.y, c = { x: (e.x + n.x) / 2, y: (e.y + n.y) / 2 }, d = { x: (n.x + r.x) / 2, y: (n.y + r.y) / 2 }, s = Math.sqrt(t * t + a * a), u = Math.sqrt(o * o + l * l), v = c.x - d.x, y = c.y - d.y, b = u / (s + u), x = { x: d.x + v * b, y: d.y + y * b }, g = n.x - x.x, T = n.y - x.y;
828
828
  return {
829
829
  c1: new ne(c.x + g, c.y + T),
830
830
  c2: new ne(d.x + g, d.y + T)
831
831
  };
832
832
  };
833
- N.prototype._calculateCurveWidths = function(e) {
833
+ z.prototype._calculateCurveWidths = function(e) {
834
834
  var n = e.startPoint, r = e.endPoint, t = { start: null, end: null }, a = this.velocityFilterWeight * r.velocityFrom(n) + (1 - this.velocityFilterWeight) * this._lastVelocity, o = this._strokeWidth(a);
835
835
  return t.start = this._lastWidth, t.end = o, this._lastVelocity = a, this._lastWidth = o, t;
836
836
  };
837
- N.prototype._strokeWidth = function(e) {
837
+ z.prototype._strokeWidth = function(e) {
838
838
  return Math.max(this.maxWidth / (e + 1), this.minWidth);
839
839
  };
840
- N.prototype._drawPoint = function(e, n, r) {
840
+ z.prototype._drawPoint = function(e, n, r) {
841
841
  var t = this._ctx;
842
842
  t.moveTo(e, n), t.arc(e, n, r, 0, 2 * Math.PI, !1), this._isEmpty = !1;
843
843
  };
844
- N.prototype._drawCurve = function(e, n, r) {
844
+ z.prototype._drawCurve = function(e, n, r) {
845
845
  var t = this._ctx, a = r - n, o = Math.floor(e.length());
846
846
  t.beginPath();
847
847
  for (var l = 0; l < o; l += 1) {
848
- var c = l / o, d = c * c, i = d * c, u = 1 - c, v = u * u, y = v * u, b = y * e.startPoint.x;
849
- b += 3 * v * c * e.control1.x, b += 3 * u * d * e.control2.x, b += i * e.endPoint.x;
848
+ var c = l / o, d = c * c, s = d * c, u = 1 - c, v = u * u, y = v * u, b = y * e.startPoint.x;
849
+ b += 3 * v * c * e.control1.x, b += 3 * u * d * e.control2.x, b += s * e.endPoint.x;
850
850
  var x = y * e.startPoint.y;
851
- x += 3 * v * c * e.control1.y, x += 3 * u * d * e.control2.y, x += i * e.endPoint.y;
852
- var g = n + i * a;
851
+ x += 3 * v * c * e.control1.y, x += 3 * u * d * e.control2.y, x += s * e.endPoint.y;
852
+ var g = n + s * a;
853
853
  this._drawPoint(b, x, g);
854
854
  }
855
855
  t.closePath(), t.fill();
856
856
  };
857
- N.prototype._drawDot = function(e) {
857
+ z.prototype._drawDot = function(e) {
858
858
  var n = this._ctx, r = typeof this.dotSize == "function" ? this.dotSize() : this.dotSize;
859
859
  n.beginPath(), this._drawPoint(e.x, e.y, r), n.closePath(), n.fill();
860
860
  };
861
- N.prototype._fromData = function(e, n, r) {
861
+ z.prototype._fromData = function(e, n, r) {
862
862
  for (var t = 0; t < e.length; t += 1) {
863
863
  var a = e[t];
864
864
  if (a.length > 1)
@@ -867,7 +867,7 @@ N.prototype._fromData = function(e, n, r) {
867
867
  if (o === 0)
868
868
  this.penColor = d, this._reset(), this._addPoint(c);
869
869
  else if (o !== a.length - 1) {
870
- var i = this._addPoint(c), u = i.curve, v = i.widths;
870
+ var s = this._addPoint(c), u = s.curve, v = s.widths;
871
871
  u && v && n(u, v, d);
872
872
  }
873
873
  }
@@ -878,19 +878,19 @@ N.prototype._fromData = function(e, n, r) {
878
878
  }
879
879
  }
880
880
  };
881
- N.prototype._toSVG = function() {
881
+ z.prototype._toSVG = function() {
882
882
  var e = this, n = this._data, r = this._canvas, t = Math.max(window.devicePixelRatio || 1, 1), a = 0, o = 0, l = r.width / t, c = r.height / t, d = document.createElementNS("http://www.w3.org/2000/svg", "svg");
883
- d.setAttributeNS(null, "width", r.width), d.setAttributeNS(null, "height", r.height), this._fromData(n, function(_, z, R) {
883
+ d.setAttributeNS(null, "width", r.width), d.setAttributeNS(null, "height", r.height), this._fromData(n, function(_, N, R) {
884
884
  var j = document.createElement("path");
885
885
  if (!isNaN(_.control1.x) && !isNaN(_.control1.y) && !isNaN(_.control2.x) && !isNaN(_.control2.y)) {
886
886
  var f = "M " + _.startPoint.x.toFixed(3) + "," + _.startPoint.y.toFixed(3) + " " + ("C " + _.control1.x.toFixed(3) + "," + _.control1.y.toFixed(3) + " ") + (_.control2.x.toFixed(3) + "," + _.control2.y.toFixed(3) + " ") + (_.endPoint.x.toFixed(3) + "," + _.endPoint.y.toFixed(3));
887
- j.setAttribute("d", f), j.setAttribute("stroke-width", (z.end * 2.25).toFixed(3)), j.setAttribute("stroke", R), j.setAttribute("fill", "none"), j.setAttribute("stroke-linecap", "round"), d.appendChild(j);
887
+ j.setAttribute("d", f), j.setAttribute("stroke-width", (N.end * 2.25).toFixed(3)), j.setAttribute("stroke", R), j.setAttribute("fill", "none"), j.setAttribute("stroke-linecap", "round"), d.appendChild(j);
888
888
  }
889
889
  }, function(_) {
890
- var z = document.createElement("circle"), R = typeof e.dotSize == "function" ? e.dotSize() : e.dotSize;
891
- z.setAttribute("r", R), z.setAttribute("cx", _.x), z.setAttribute("cy", _.y), z.setAttribute("fill", _.color), d.appendChild(z);
890
+ var N = document.createElement("circle"), R = typeof e.dotSize == "function" ? e.dotSize() : e.dotSize;
891
+ N.setAttribute("r", R), N.setAttribute("cx", _.x), N.setAttribute("cy", _.y), N.setAttribute("fill", _.color), d.appendChild(N);
892
892
  });
893
- var i = "data:image/svg+xml;base64,", u = '<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"' + (' viewBox="' + a + " " + o + " " + l + " " + c + '"') + (' width="' + l + '"') + (' height="' + c + '"') + ">", v = d.innerHTML;
893
+ var s = "data:image/svg+xml;base64,", u = '<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"' + (' viewBox="' + a + " " + o + " " + l + " " + c + '"') + (' width="' + l + '"') + (' height="' + c + '"') + ">", v = d.innerHTML;
894
894
  if (v === void 0) {
895
895
  var y = document.createElement("dummy"), b = d.childNodes;
896
896
  y.innerHTML = "";
@@ -899,9 +899,9 @@ N.prototype._toSVG = function() {
899
899
  v = y.innerHTML;
900
900
  }
901
901
  var g = "</svg>", T = u + v + g;
902
- return i + btoa(T);
902
+ return s + btoa(T);
903
903
  };
904
- N.prototype.fromData = function(e) {
904
+ z.prototype.fromData = function(e) {
905
905
  var n = this;
906
906
  this.clear(), this._fromData(e, function(r, t) {
907
907
  return n._drawCurve(r, t.start, t.end);
@@ -909,12 +909,12 @@ N.prototype.fromData = function(e) {
909
909
  return n._drawDot(r);
910
910
  }), this._data = e;
911
911
  };
912
- N.prototype.toData = function() {
912
+ z.prototype.toData = function() {
913
913
  return this._data;
914
914
  };
915
915
  const tt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
916
916
  __proto__: null,
917
- default: N
917
+ default: z
918
918
  }, Symbol.toStringTag, { value: "Module" })), rt = /* @__PURE__ */ Ye(tt);
919
919
  var le = { exports: {} }, nt = le.exports, Ie;
920
920
  function at() {
@@ -931,22 +931,22 @@ function at() {
931
931
  var a = {};
932
932
  return t.m = r, t.c = a, t.p = "", t(0);
933
933
  })([function(r, t) {
934
- function a(i) {
935
- var u = i.getContext("2d"), v = i.width, y = i.height, b = u.getImageData(0, 0, v, y).data, x = c(!0, v, y, b), g = c(!1, v, y, b), T = d(!0, v, y, b), _ = d(!1, v, y, b), z = _ - T + 1, R = g - x + 1, j = u.getImageData(T, x, z, R);
936
- return i.width = z, i.height = R, u.clearRect(0, 0, z, R), u.putImageData(j, 0, 0), i;
934
+ function a(s) {
935
+ var u = s.getContext("2d"), v = s.width, y = s.height, b = u.getImageData(0, 0, v, y).data, x = c(!0, v, y, b), g = c(!1, v, y, b), T = d(!0, v, y, b), _ = d(!1, v, y, b), N = _ - T + 1, R = g - x + 1, j = u.getImageData(T, x, N, R);
936
+ return s.width = N, s.height = R, u.clearRect(0, 0, N, R), u.putImageData(j, 0, 0), s;
937
937
  }
938
- function o(i, u, v, y) {
939
- return { red: y[4 * (v * u + i)], green: y[4 * (v * u + i) + 1], blue: y[4 * (v * u + i) + 2], alpha: y[4 * (v * u + i) + 3] };
938
+ function o(s, u, v, y) {
939
+ return { red: y[4 * (v * u + s)], green: y[4 * (v * u + s) + 1], blue: y[4 * (v * u + s) + 2], alpha: y[4 * (v * u + s) + 3] };
940
940
  }
941
- function l(i, u, v, y) {
942
- return o(i, u, v, y).alpha;
941
+ function l(s, u, v, y) {
942
+ return o(s, u, v, y).alpha;
943
943
  }
944
- function c(i, u, v, y) {
945
- for (var b = i ? 1 : -1, x = i ? 0 : v - 1, g = x; i ? g < v : g > -1; g += b) for (var T = 0; T < u; T++) if (l(T, g, u, y)) return g;
944
+ function c(s, u, v, y) {
945
+ for (var b = s ? 1 : -1, x = s ? 0 : v - 1, g = x; s ? g < v : g > -1; g += b) for (var T = 0; T < u; T++) if (l(T, g, u, y)) return g;
946
946
  return null;
947
947
  }
948
- function d(i, u, v, y) {
949
- for (var b = i ? 1 : -1, x = i ? 0 : u - 1, g = x; i ? g < u : g > -1; g += b) for (var T = 0; T < v; T++) if (l(g, T, u, y)) return g;
948
+ function d(s, u, v, y) {
949
+ for (var b = s ? 1 : -1, x = s ? 0 : u - 1, g = x; s ? g < u : g > -1; g += b) for (var T = 0; T < v; T++) if (l(g, T, u, y)) return g;
950
950
  return null;
951
951
  }
952
952
  Object.defineProperty(t, "__esModule", { value: !0 }), t.default = a;
@@ -958,18 +958,18 @@ var ot = ce.exports, Le;
958
958
  function it() {
959
959
  return Le || (Le = 1, (function(e, n) {
960
960
  (function(r, t) {
961
- e.exports = t(/* @__PURE__ */ Qe(), ze, rt, at());
961
+ e.exports = t(/* @__PURE__ */ Qe(), Ne, rt, at());
962
962
  })(ot, function(r, t, a, o) {
963
963
  return (function(l) {
964
- function c(i) {
965
- if (d[i]) return d[i].exports;
966
- var u = d[i] = { exports: {}, id: i, loaded: !1 };
967
- return l[i].call(u.exports, u, u.exports, c), u.loaded = !0, u.exports;
964
+ function c(s) {
965
+ if (d[s]) return d[s].exports;
966
+ var u = d[s] = { exports: {}, id: s, loaded: !1 };
967
+ return l[s].call(u.exports, u, u.exports, c), u.loaded = !0, u.exports;
968
968
  }
969
969
  var d = {};
970
970
  return c.m = l, c.c = d, c.p = "", c(0);
971
971
  })([function(l, c, d) {
972
- function i(A) {
972
+ function s(A) {
973
973
  return A && A.__esModule ? A : { default: A };
974
974
  }
975
975
  function u(A, P) {
@@ -1005,14 +1005,14 @@ function it() {
1005
1005
  return function(P, q, F) {
1006
1006
  return q && A(P.prototype, q), F && A(P, F), P;
1007
1007
  };
1008
- })(), T = d(1), _ = i(T), z = d(2), R = i(z), j = d(3), f = i(j), Z = d(4), Q = i(Z), K = (function(A) {
1008
+ })(), T = d(1), _ = s(T), N = d(2), R = s(N), j = d(3), f = s(j), J = d(4), Q = s(J), K = (function(A) {
1009
1009
  function P() {
1010
1010
  var q, F, m, H;
1011
1011
  v(this, P);
1012
1012
  for (var ee = arguments.length, $ = Array(ee), Y = 0; Y < ee; Y++) $[Y] = arguments[Y];
1013
1013
  return F = m = y(this, (q = P.__proto__ || Object.getPrototypeOf(P)).call.apply(q, [this].concat($))), m._sigPad = null, m._excludeOurProps = function() {
1014
- var B = m.props, J = (B.canvasProps, B.clearOnResize, u(B, ["canvasProps", "clearOnResize"]));
1015
- return J;
1014
+ var B = m.props, G = (B.canvasProps, B.clearOnResize, u(B, ["canvasProps", "clearOnResize"]));
1015
+ return G;
1016
1016
  }, m.getCanvas = function() {
1017
1017
  return m._canvas;
1018
1018
  }, m.getTrimmedCanvas = function() {
@@ -1023,10 +1023,10 @@ function it() {
1023
1023
  }, m._checkClearOnResize = function() {
1024
1024
  m.props.clearOnResize && m._resizeCanvas();
1025
1025
  }, m._resizeCanvas = function() {
1026
- var B = m.props.canvasProps || {}, J = B.width, s = B.height;
1027
- if (!J || !s) {
1028
- var h = m._canvas, w = Math.max(window.devicePixelRatio || 1, 1);
1029
- J || (h.width = h.offsetWidth * w), s || (h.height = h.offsetHeight * w), h.getContext("2d").scale(w, w), m.clear();
1026
+ var B = m.props.canvasProps || {}, G = B.width, i = B.height;
1027
+ if (!G || !i) {
1028
+ var h = m._canvas, E = Math.max(window.devicePixelRatio || 1, 1);
1029
+ G || (h.width = h.offsetWidth * E), i || (h.height = h.offsetHeight * E), h.getContext("2d").scale(E, E), m.clear();
1030
1030
  }
1031
1031
  }, m.on = function() {
1032
1032
  return window.addEventListener("resize", m._checkClearOnResize), m._sigPad.on();
@@ -1036,10 +1036,10 @@ function it() {
1036
1036
  return m._sigPad.clear();
1037
1037
  }, m.isEmpty = function() {
1038
1038
  return m._sigPad.isEmpty();
1039
- }, m.fromDataURL = function(B, J) {
1040
- return m._sigPad.fromDataURL(B, J);
1041
- }, m.toDataURL = function(B, J) {
1042
- return m._sigPad.toDataURL(B, J);
1039
+ }, m.fromDataURL = function(B, G) {
1040
+ return m._sigPad.fromDataURL(B, G);
1041
+ }, m.toDataURL = function(B, G) {
1042
+ return m._sigPad.toDataURL(B, G);
1043
1043
  }, m.fromData = function(B) {
1044
1044
  return m._sigPad.fromData(B);
1045
1045
  }, m.toData = function() {
@@ -1058,7 +1058,7 @@ function it() {
1058
1058
  q._canvas = m;
1059
1059
  } }, F));
1060
1060
  } }]), P;
1061
- })(z.Component);
1061
+ })(N.Component);
1062
1062
  K.propTypes = { velocityFilterWeight: _.default.number, minWidth: _.default.number, maxWidth: _.default.number, minDistance: _.default.number, dotSize: _.default.oneOfType([_.default.number, _.default.func]), penColor: _.default.string, throttle: _.default.number, onEnd: _.default.func, onBegin: _.default.func, canvasProps: _.default.object, clearOnResize: _.default.bool }, K.defaultProps = { clearOnResize: !0 }, c.default = K;
1063
1063
  }, function(l, c) {
1064
1064
  l.exports = r;
@@ -1073,7 +1073,7 @@ function it() {
1073
1073
  })(ce)), ce.exports;
1074
1074
  }
1075
1075
  var st = it();
1076
- const ut = /* @__PURE__ */ He(st), ct = "_Signature_1sp4s_1", lt = "_Main_1sp4s_7", ft = "_MainAuto_1sp4s_17", dt = "_MainManual_1sp4s_21", ht = "_Footer_1sp4s_27", pt = "_Header_1sp4s_37", vt = "_HeaderTitle_1sp4s_47", yt = "_HeaderManualDraw_1sp4s_52", mt = "_HeaderNotManualDraw_1sp4s_56", _t = "_HeaderReset_1sp4s_60", gt = "_ManualPanel_1sp4s_71", bt = "_ManualPanelButton_1sp4s_82", xt = "_AutoPanel_1sp4s_97", Pt = "_AutoPanelImage_1sp4s_104", wt = "_AutoPanelLoader_1sp4s_110", Et = "_AutoPanelButton_1sp4s_117", Tt = "_AutoPanelLabel_1sp4s_121", St = "_AutoPanelLabelIcon_1sp4s_129", Ot = "_AutoPanelLabelText_1sp4s_135", Ct = "_AutoPanelError_1sp4s_142", Rt = "_AutoPanelErrorTitle_1sp4s_151", U = {
1076
+ const ut = /* @__PURE__ */ He(st), ct = "_Signature_1sp4s_1", lt = "_Main_1sp4s_7", ft = "_MainAuto_1sp4s_17", dt = "_MainManual_1sp4s_21", ht = "_Footer_1sp4s_27", pt = "_Header_1sp4s_37", vt = "_HeaderTitle_1sp4s_47", yt = "_HeaderManualDraw_1sp4s_52", mt = "_HeaderNotManualDraw_1sp4s_56", _t = "_HeaderReset_1sp4s_60", gt = "_ManualPanel_1sp4s_71", bt = "_ManualPanelButton_1sp4s_82", xt = "_AutoPanel_1sp4s_97", Pt = "_AutoPanelImage_1sp4s_104", Et = "_AutoPanelLoader_1sp4s_110", wt = "_AutoPanelButton_1sp4s_117", Tt = "_AutoPanelLabel_1sp4s_121", St = "_AutoPanelLabelIcon_1sp4s_129", Ct = "_AutoPanelLabelText_1sp4s_135", Ot = "_AutoPanelError_1sp4s_142", Rt = "_AutoPanelErrorTitle_1sp4s_151", U = {
1077
1077
  Signature: ct,
1078
1078
  Main: lt,
1079
1079
  MainAuto: ft,
@@ -1088,14 +1088,14 @@ const ut = /* @__PURE__ */ He(st), ct = "_Signature_1sp4s_1", lt = "_Main_1sp4s_
1088
1088
  ManualPanelButton: bt,
1089
1089
  AutoPanel: xt,
1090
1090
  AutoPanelImage: Pt,
1091
- AutoPanelLoader: wt,
1092
- AutoPanelButton: Et,
1091
+ AutoPanelLoader: Et,
1092
+ AutoPanelButton: wt,
1093
1093
  AutoPanelLabel: Tt,
1094
1094
  AutoPanelLabelIcon: St,
1095
- AutoPanelLabelText: Ot,
1096
- AutoPanelError: Ct,
1095
+ AutoPanelLabelText: Ct,
1096
+ AutoPanelError: Ot,
1097
1097
  AutoPanelErrorTitle: Rt
1098
- }, Nt = ({
1098
+ }, zt = ({
1099
1099
  // Signature props
1100
1100
  name: e,
1101
1101
  auto: n,
@@ -1106,14 +1106,14 @@ const ut = /* @__PURE__ */ He(st), ct = "_Signature_1sp4s_1", lt = "_Main_1sp4s_
1106
1106
  // Base props
1107
1107
  ...l
1108
1108
  }) => {
1109
- const c = fe(null), d = fe(e), i = fe(!1), [u, v] = oe(null), [y, b] = oe(r ? "manual" : "auto"), [x, g] = oe(""), [T, _] = oe(!1), { width: z = 0, height: R = 0 } = Ne({ ref: c, box: "border-box" }), j = y === "auto" ? n ? "auto-generated" : "auto-loading" : x ? "manual-drawn" : r ? "manual-stored" : "manual-blank", f = n !== "" || T, Z = r || x, Q = re(
1109
+ const c = fe(null), d = fe(e), s = fe(!1), [u, v] = oe(null), [y, b] = oe(r ? "manual" : "auto"), [x, g] = oe(""), [T, _] = oe(!1), { width: N = 0, height: R = 0 } = ze({ ref: c, box: "border-box" }), j = y === "auto" ? n ? "auto-generated" : "auto-loading" : x ? "manual-drawn" : r ? "manual-stored" : "manual-blank", f = n !== "" || T, J = r || x, Q = re(
1110
1110
  ($) => {
1111
- !u || !z || !R || !$ || u.fromDataURL($, {
1112
- width: +z.toFixed(),
1111
+ !u || !N || !R || !$ || u.fromDataURL($, {
1112
+ width: +N.toFixed(),
1113
1113
  height: +R.toFixed()
1114
1114
  });
1115
1115
  },
1116
- [u, z, R]
1116
+ [u, N, R]
1117
1117
  ), K = re(() => {
1118
1118
  if (!u) return;
1119
1119
  const $ = u.getCanvas().toDataURL("image/png");
@@ -1130,26 +1130,20 @@ const ut = /* @__PURE__ */ He(st), ct = "_Signature_1sp4s_1", lt = "_Main_1sp4s_
1130
1130
  x && g("");
1131
1131
  }, [x]), H = ($) => $.includes(j);
1132
1132
  de(() => {
1133
- y === "manual" && x && z && R && Q(x);
1134
- }, [y, x, z, R, Q]), de(() => {
1135
- if (d.current !== e) {
1136
- if (n) {
1137
- i.current = !1;
1138
- return;
1139
- }
1140
- console.log(d.current, e), d.current = e, i.current = !0, t().then(($) => {
1141
- const Y = `data:image/png;base64,${$.signature}`;
1142
- _(!1), o(Y);
1143
- }).catch(() => {
1144
- _(!0);
1145
- });
1146
- }
1133
+ y === "manual" && x && N && R && Q(x);
1134
+ }, [y, x, N, R, Q]), de(() => {
1135
+ console.log("NAME CHANGED prev", d.current), console.log("NAME CHANGED current", e), d.current !== e && (console.log(d.current, e), d.current = e, t().then(($) => {
1136
+ const Y = `data:image/png;base64,${$.signature}`;
1137
+ _(!1), o(Y);
1138
+ }).catch(() => {
1139
+ _(!0);
1140
+ }));
1147
1141
  }, [e, o]), de(() => {
1148
1142
  if (n) {
1149
- i.current = !1;
1143
+ s.current = !1;
1150
1144
  return;
1151
1145
  }
1152
- i.current || (i.current = !0, t().then(($) => {
1146
+ s.current || (s.current = !0, t().then(($) => {
1153
1147
  const Y = `data:image/png;base64,${$.signature}`;
1154
1148
  _(!1), o(Y);
1155
1149
  }).catch(() => {
@@ -1157,7 +1151,7 @@ const ut = /* @__PURE__ */ He(st), ct = "_Signature_1sp4s_1", lt = "_Main_1sp4s_
1157
1151
  }));
1158
1152
  }, [n, e, t, o]);
1159
1153
  const ee = re(() => {
1160
- _(!1), i.current = !0, t().then(($) => {
1154
+ _(!1), s.current = !0, t().then(($) => {
1161
1155
  const Y = `data:image/png;base64,${$.signature}`;
1162
1156
  _(!1), o(Y);
1163
1157
  }).catch(() => {
@@ -1167,8 +1161,8 @@ const ut = /* @__PURE__ */ He(st), ct = "_Signature_1sp4s_1", lt = "_Main_1sp4s_
1167
1161
  return /* @__PURE__ */ te(
1168
1162
  "div",
1169
1163
  {
1170
- "data-testid": Ee(l, "data-testid", "signature"),
1171
- className: he(U.Signature, Ee(l, "className")),
1164
+ "data-testid": we(l, "data-testid", "signature"),
1165
+ className: he(U.Signature, we(l, "className")),
1172
1166
  children: [
1173
1167
  /* @__PURE__ */ te(
1174
1168
  "div",
@@ -1225,7 +1219,7 @@ const ut = /* @__PURE__ */ He(st), ct = "_Signature_1sp4s_1", lt = "_Main_1sp4s_
1225
1219
  }
1226
1220
  )
1227
1221
  ] }) : /* @__PURE__ */ te("div", { className: U.ManualPanel, children: [
1228
- H(["manual-stored"]) ? /* @__PURE__ */ V("img", { width: z, height: R, alt: "signature", src: Z }) : /* @__PURE__ */ V(
1222
+ H(["manual-stored"]) ? /* @__PURE__ */ V("img", { width: N, height: R, alt: "signature", src: J }) : /* @__PURE__ */ V(
1229
1223
  ut,
1230
1224
  {
1231
1225
  penColor: "#262626",
@@ -1233,7 +1227,7 @@ const ut = /* @__PURE__ */ He(st), ct = "_Signature_1sp4s_1", lt = "_Main_1sp4s_
1233
1227
  minWidth: 0.25,
1234
1228
  maxWidth: 2.75,
1235
1229
  throttle: 12,
1236
- canvasProps: { width: +(z || 0).toFixed(), height: +(R || 0).toFixed() },
1230
+ canvasProps: { width: +(N || 0).toFixed(), height: +(R || 0).toFixed() },
1237
1231
  ref: ($) => v($),
1238
1232
  clearOnResize: !0,
1239
1233
  onEnd: K
@@ -1254,9 +1248,9 @@ const ut = /* @__PURE__ */ He(st), ct = "_Signature_1sp4s_1", lt = "_Main_1sp4s_
1254
1248
  }
1255
1249
  ),
1256
1250
  H(["manual-blank", "manual-drawn"]) && /* @__PURE__ */ te("div", { className: U.Footer, children: [
1257
- /* @__PURE__ */ V(we, { fullWidth: !0, blurAfterClick: !0, text: "Abbrechen", color: "tertiary", onClick: P }),
1251
+ /* @__PURE__ */ V(Ee, { fullWidth: !0, blurAfterClick: !0, text: "Abbrechen", color: "tertiary", onClick: P }),
1258
1252
  /* @__PURE__ */ V(
1259
- we,
1253
+ Ee,
1260
1254
  {
1261
1255
  fullWidth: !0,
1262
1256
  blurAfterClick: !0,
@@ -1272,5 +1266,5 @@ const ut = /* @__PURE__ */ He(st), ct = "_Signature_1sp4s_1", lt = "_Main_1sp4s_
1272
1266
  );
1273
1267
  };
1274
1268
  export {
1275
- Nt as Signature
1269
+ zt as Signature
1276
1270
  };