@arthurzakharov/ui-kit 1.2.4 → 1.2.6
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/assets/footer-Dt0rYt73.css +1 -0
- package/dist/assets/message-CgGyIv5e.css +1 -0
- package/dist/assets/not-found-ColZD3Vb.css +1 -0
- package/dist/assets/signature-CLmBTe_C.css +1 -0
- package/dist/components/certifications/certifications.component.d.ts +2 -6
- package/dist/components/certifications/certifications.component.js +44 -13
- package/dist/components/certifications/certifications.types.d.ts +6 -0
- package/dist/components/certifications/certifications.types.js +1 -0
- package/dist/components/certifications/index.d.ts +2 -0
- package/dist/components/certifications/index.js +4 -0
- package/dist/components/footer/footer.component.d.ts +2 -9
- package/dist/components/footer/footer.component.js +32 -29
- package/dist/components/footer/footer.types.d.ts +10 -0
- package/dist/components/footer/footer.types.js +1 -0
- package/dist/components/footer/index.d.ts +2 -0
- package/dist/components/footer/index.js +4 -0
- package/dist/components/message/index.d.ts +2 -0
- package/dist/components/message/index.js +4 -0
- package/dist/components/message/message.component.d.ts +2 -7
- package/dist/components/message/message.component.js +36 -46
- package/dist/components/message/message.types.d.ts +9 -0
- package/dist/components/message/message.types.js +1 -0
- package/dist/components/not-found/index.d.ts +2 -0
- package/dist/components/not-found/index.js +4 -0
- package/dist/components/not-found/not-found.component.d.ts +2 -11
- package/dist/components/not-found/not-found.component.js +26 -19
- package/dist/components/not-found/not-found.types.d.ts +12 -0
- package/dist/components/not-found/not-found.types.js +1 -0
- package/dist/components/sidebar/sidebar.component.d.ts +1 -1
- package/dist/components/signature/signature.component.js +122 -122
- package/dist/main.d.ts +4 -4
- package/package.json +15 -5
- package/dist/assets/footer-Dwb-_jI0.css +0 -1
- package/dist/assets/message-xpCz4pZE.css +0 -1
- package/dist/assets/not-found-ampOPJmx.css +0 -1
- package/dist/assets/signature-Cd87a2ey.css +0 -1
- package/dist/fonts/lato/black/lato-black-900.ttf +0 -0
- package/dist/fonts/lato/black/lato-black-900.woff +0 -0
- package/dist/fonts/lato/black/lato-black-900.woff2 +0 -0
- package/dist/fonts/lato/black/lato-google-black-900.ttf +0 -0
- package/dist/fonts/lato/black/lato-latin-black-900.ttf +0 -0
- package/dist/fonts/lato/black/lato-latin-black-900.woff +0 -0
- package/dist/fonts/lato/black/lato-latin-black-900.woff2 +0 -0
- package/dist/fonts/lato/bold/lato-bold-700.ttf +0 -0
- package/dist/fonts/lato/bold/lato-bold-700.woff +0 -0
- package/dist/fonts/lato/bold/lato-bold-700.woff2 +0 -0
- package/dist/fonts/lato/bold/lato-google-bold-700.ttf +0 -0
- package/dist/fonts/lato/bold/lato-latin-bold-700.ttf +0 -0
- package/dist/fonts/lato/bold/lato-latin-bold-700.woff +0 -0
- package/dist/fonts/lato/bold/lato-latin-bold-700.woff2 +0 -0
- package/dist/fonts/lato/light/lato-google-light-300.ttf +0 -0
- package/dist/fonts/lato/light/lato-latin-light-300.ttf +0 -0
- package/dist/fonts/lato/light/lato-latin-light-300.woff +0 -0
- package/dist/fonts/lato/light/lato-latin-light-300.woff2 +0 -0
- package/dist/fonts/lato/light/lato-light-300.ttf +0 -0
- package/dist/fonts/lato/light/lato-light-300.woff +0 -0
- package/dist/fonts/lato/light/lato-light-300.woff2 +0 -0
- package/dist/fonts/lato/regular/lato-google-regular-400.ttf +0 -0
- package/dist/fonts/lato/regular/lato-latin-regular-400.ttf +0 -0
- package/dist/fonts/lato/regular/lato-latin-regular-400.woff +0 -0
- package/dist/fonts/lato/regular/lato-latin-regular-400.woff2 +0 -0
- package/dist/fonts/lato/regular/lato-regular-400.ttf +0 -0
- package/dist/fonts/lato/regular/lato-regular-400.woff +0 -0
- package/dist/fonts/lato/regular/lato-regular-400.woff2 +0 -0
- package/dist/styles/fonts.css +0 -67
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { jsxs as Q, jsx as
|
|
2
|
-
import
|
|
1
|
+
import { jsxs as Q, jsx as z } from "react/jsx-runtime";
|
|
2
|
+
import Le, { useRef as ze, useState as Se, useCallback as re, useEffect as de } from "react";
|
|
3
3
|
import { g as Fe, a as qe } from "../../input.component-C5xcmnfu.js";
|
|
4
4
|
import { useResizeObserver as Be } from "usehooks-ts";
|
|
5
5
|
import { RefreshCw as Ue, Loader as Ne, Check as Ye } from "lucide-react";
|
|
@@ -8,13 +8,13 @@ import { Animation as ee } from "../animation/animation.component.js";
|
|
|
8
8
|
import { C as oe } from "../../control.component-Cq46ev8T.js";
|
|
9
9
|
import { Flex as ie } from "../flex/flex.component.js";
|
|
10
10
|
import { Text as Pe } from "../text/text.component.js";
|
|
11
|
-
import '../../assets/signature-
|
|
11
|
+
import '../../assets/signature-CLmBTe_C.css';var le = { exports: {} }, ue = { exports: {} }, ce = { exports: {} }, I = {};
|
|
12
12
|
var we;
|
|
13
13
|
function Ve() {
|
|
14
|
-
if (we) return
|
|
14
|
+
if (we) return I;
|
|
15
15
|
we = 1;
|
|
16
16
|
var e = typeof Symbol == "function" && Symbol.for, a = e ? /* @__PURE__ */ Symbol.for("react.element") : 60103, r = e ? /* @__PURE__ */ Symbol.for("react.portal") : 60106, t = e ? /* @__PURE__ */ Symbol.for("react.fragment") : 60107, n = e ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108, o = e ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114, c = e ? /* @__PURE__ */ Symbol.for("react.provider") : 60109, i = 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, l = 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, _ = e ? /* @__PURE__ */ Symbol.for("react.memo") : 60115, b = e ? /* @__PURE__ */ Symbol.for("react.lazy") : 60116, m = e ? /* @__PURE__ */ Symbol.for("react.block") : 60121, T = e ? /* @__PURE__ */ Symbol.for("react.fundamental") : 60117, x = e ? /* @__PURE__ */ Symbol.for("react.responder") : 60118, q = e ? /* @__PURE__ */ Symbol.for("react.scope") : 60119;
|
|
17
|
-
function
|
|
17
|
+
function $(f) {
|
|
18
18
|
if (typeof f == "object" && f !== null) {
|
|
19
19
|
var N = f.$$typeof;
|
|
20
20
|
switch (N) {
|
|
@@ -45,42 +45,42 @@ function Ve() {
|
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
47
|
function D(f) {
|
|
48
|
-
return
|
|
48
|
+
return $(f) === s;
|
|
49
49
|
}
|
|
50
|
-
return
|
|
51
|
-
return D(f) ||
|
|
52
|
-
},
|
|
53
|
-
return
|
|
54
|
-
},
|
|
55
|
-
return
|
|
56
|
-
},
|
|
50
|
+
return I.AsyncMode = d, I.ConcurrentMode = s, I.ContextConsumer = i, I.ContextProvider = c, I.Element = a, I.ForwardRef = l, I.Fragment = t, I.Lazy = b, I.Memo = _, I.Portal = r, I.Profiler = o, I.StrictMode = n, I.Suspense = v, I.isAsyncMode = function(f) {
|
|
51
|
+
return D(f) || $(f) === d;
|
|
52
|
+
}, I.isConcurrentMode = D, I.isContextConsumer = function(f) {
|
|
53
|
+
return $(f) === i;
|
|
54
|
+
}, I.isContextProvider = function(f) {
|
|
55
|
+
return $(f) === c;
|
|
56
|
+
}, I.isElement = function(f) {
|
|
57
57
|
return typeof f == "object" && f !== null && f.$$typeof === a;
|
|
58
|
-
},
|
|
59
|
-
return
|
|
60
|
-
},
|
|
61
|
-
return
|
|
62
|
-
},
|
|
63
|
-
return
|
|
64
|
-
},
|
|
65
|
-
return
|
|
66
|
-
},
|
|
67
|
-
return
|
|
68
|
-
},
|
|
69
|
-
return
|
|
70
|
-
},
|
|
71
|
-
return
|
|
72
|
-
},
|
|
73
|
-
return
|
|
74
|
-
},
|
|
58
|
+
}, I.isForwardRef = function(f) {
|
|
59
|
+
return $(f) === l;
|
|
60
|
+
}, I.isFragment = function(f) {
|
|
61
|
+
return $(f) === t;
|
|
62
|
+
}, I.isLazy = function(f) {
|
|
63
|
+
return $(f) === b;
|
|
64
|
+
}, I.isMemo = function(f) {
|
|
65
|
+
return $(f) === _;
|
|
66
|
+
}, I.isPortal = function(f) {
|
|
67
|
+
return $(f) === r;
|
|
68
|
+
}, I.isProfiler = function(f) {
|
|
69
|
+
return $(f) === o;
|
|
70
|
+
}, I.isStrictMode = function(f) {
|
|
71
|
+
return $(f) === n;
|
|
72
|
+
}, I.isSuspense = function(f) {
|
|
73
|
+
return $(f) === v;
|
|
74
|
+
}, I.isValidElementType = function(f) {
|
|
75
75
|
return typeof f == "string" || typeof f == "function" || f === t || f === s || f === o || f === n || f === v || f === y || typeof f == "object" && f !== null && (f.$$typeof === b || f.$$typeof === _ || f.$$typeof === c || f.$$typeof === i || f.$$typeof === l || f.$$typeof === T || f.$$typeof === x || f.$$typeof === q || f.$$typeof === m);
|
|
76
|
-
},
|
|
76
|
+
}, I.typeOf = $, I;
|
|
77
77
|
}
|
|
78
|
-
var
|
|
78
|
+
var j = {};
|
|
79
79
|
var Ee;
|
|
80
80
|
function Xe() {
|
|
81
81
|
return Ee || (Ee = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
82
82
|
var e = typeof Symbol == "function" && Symbol.for, a = e ? /* @__PURE__ */ Symbol.for("react.element") : 60103, r = e ? /* @__PURE__ */ Symbol.for("react.portal") : 60106, t = e ? /* @__PURE__ */ Symbol.for("react.fragment") : 60107, n = e ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108, o = e ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114, c = e ? /* @__PURE__ */ Symbol.for("react.provider") : 60109, i = 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, l = 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, _ = e ? /* @__PURE__ */ Symbol.for("react.memo") : 60115, b = e ? /* @__PURE__ */ Symbol.for("react.lazy") : 60116, m = e ? /* @__PURE__ */ Symbol.for("react.block") : 60121, T = e ? /* @__PURE__ */ Symbol.for("react.fundamental") : 60117, x = e ? /* @__PURE__ */ Symbol.for("react.responder") : 60118, q = e ? /* @__PURE__ */ Symbol.for("react.scope") : 60119;
|
|
83
|
-
function
|
|
83
|
+
function $(p) {
|
|
84
84
|
return typeof p == "string" || typeof p == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
85
85
|
p === t || p === s || p === o || p === n || p === v || p === y || typeof p == "object" && p !== null && (p.$$typeof === b || p.$$typeof === _ || p.$$typeof === c || p.$$typeof === i || p.$$typeof === l || p.$$typeof === T || p.$$typeof === x || p.$$typeof === q || p.$$typeof === m);
|
|
86
86
|
}
|
|
@@ -147,7 +147,7 @@ function Xe() {
|
|
|
147
147
|
function M(p) {
|
|
148
148
|
return D(p) === r;
|
|
149
149
|
}
|
|
150
|
-
function
|
|
150
|
+
function W(p) {
|
|
151
151
|
return D(p) === o;
|
|
152
152
|
}
|
|
153
153
|
function A(p) {
|
|
@@ -156,11 +156,11 @@ function Xe() {
|
|
|
156
156
|
function Y(p) {
|
|
157
157
|
return D(p) === v;
|
|
158
158
|
}
|
|
159
|
-
|
|
160
|
-
})()),
|
|
159
|
+
j.AsyncMode = f, j.ConcurrentMode = N, j.ContextConsumer = X, j.ContextProvider = te, j.Element = k, j.ForwardRef = w, j.Fragment = B, j.Lazy = F, j.Memo = g, j.Portal = K, j.Profiler = ae, j.StrictMode = H, j.Suspense = J, j.isAsyncMode = Z, j.isConcurrentMode = u, j.isContextConsumer = h, j.isContextProvider = S, j.isElement = C, j.isForwardRef = P, j.isFragment = O, j.isLazy = E, j.isMemo = R, j.isPortal = M, j.isProfiler = W, j.isStrictMode = A, j.isSuspense = Y, j.isValidElementType = $, j.typeOf = D;
|
|
160
|
+
})()), j;
|
|
161
161
|
}
|
|
162
162
|
var Te;
|
|
163
|
-
function
|
|
163
|
+
function $e() {
|
|
164
164
|
return Te || (Te = 1, process.env.NODE_ENV === "production" ? ce.exports = Ve() : ce.exports = Xe()), ce.exports;
|
|
165
165
|
}
|
|
166
166
|
var he, Ce;
|
|
@@ -217,7 +217,7 @@ function _e() {
|
|
|
217
217
|
return pe = e, pe;
|
|
218
218
|
}
|
|
219
219
|
var ve, Oe;
|
|
220
|
-
function
|
|
220
|
+
function We() {
|
|
221
221
|
return Oe || (Oe = 1, ve = Function.call.bind(Object.prototype.hasOwnProperty)), ve;
|
|
222
222
|
}
|
|
223
223
|
var ye, Me;
|
|
@@ -227,7 +227,7 @@ function Ze() {
|
|
|
227
227
|
var e = function() {
|
|
228
228
|
};
|
|
229
229
|
if (process.env.NODE_ENV !== "production") {
|
|
230
|
-
var a = /* @__PURE__ */ _e(), r = {}, t = /* @__PURE__ */
|
|
230
|
+
var a = /* @__PURE__ */ _e(), r = {}, t = /* @__PURE__ */ We();
|
|
231
231
|
e = function(o) {
|
|
232
232
|
var c = "Warning: " + o;
|
|
233
233
|
typeof console < "u" && console.error(c);
|
|
@@ -273,7 +273,7 @@ var me, Ae;
|
|
|
273
273
|
function Ge() {
|
|
274
274
|
if (Ae) return me;
|
|
275
275
|
Ae = 1;
|
|
276
|
-
var e =
|
|
276
|
+
var e = $e(), a = Je(), r = /* @__PURE__ */ _e(), t = /* @__PURE__ */ We(), n = /* @__PURE__ */ Ze(), o = function() {
|
|
277
277
|
};
|
|
278
278
|
process.env.NODE_ENV !== "production" && (o = function(i) {
|
|
279
279
|
var d = "Warning: " + i;
|
|
@@ -303,7 +303,7 @@ function Ge() {
|
|
|
303
303
|
string: x("string"),
|
|
304
304
|
symbol: x("symbol"),
|
|
305
305
|
any: q(),
|
|
306
|
-
arrayOf:
|
|
306
|
+
arrayOf: $,
|
|
307
307
|
element: D(),
|
|
308
308
|
elementType: f(),
|
|
309
309
|
instanceOf: N,
|
|
@@ -324,7 +324,7 @@ function Ge() {
|
|
|
324
324
|
function T(u) {
|
|
325
325
|
if (process.env.NODE_ENV !== "production")
|
|
326
326
|
var h = {}, S = 0;
|
|
327
|
-
function C(O, E, R, M,
|
|
327
|
+
function C(O, E, R, M, W, A, Y) {
|
|
328
328
|
if (M = M || y, A = A || R, Y !== r) {
|
|
329
329
|
if (d) {
|
|
330
330
|
var p = new Error(
|
|
@@ -339,15 +339,15 @@ function Ge() {
|
|
|
339
339
|
), h[G] = !0, S++);
|
|
340
340
|
}
|
|
341
341
|
}
|
|
342
|
-
return E[R] == null ? O ? E[R] === null ? new m("The " +
|
|
342
|
+
return E[R] == null ? O ? E[R] === null ? new m("The " + W + " `" + A + "` is marked as required " + ("in `" + M + "`, but its value is `null`.")) : new m("The " + W + " `" + A + "` is marked as required in " + ("`" + M + "`, but its value is `undefined`.")) : null : u(E, R, M, W, A);
|
|
343
343
|
}
|
|
344
344
|
var P = C.bind(null, !1);
|
|
345
345
|
return P.isRequired = C.bind(null, !0), P;
|
|
346
346
|
}
|
|
347
347
|
function x(u) {
|
|
348
348
|
function h(S, C, P, O, E, R) {
|
|
349
|
-
var M = S[C],
|
|
350
|
-
if (
|
|
349
|
+
var M = S[C], W = H(M);
|
|
350
|
+
if (W !== u) {
|
|
351
351
|
var A = J(M);
|
|
352
352
|
return new m(
|
|
353
353
|
"Invalid " + O + " `" + E + "` of type " + ("`" + A + "` supplied to `" + P + "`, expected ") + ("`" + u + "`."),
|
|
@@ -361,7 +361,7 @@ function Ge() {
|
|
|
361
361
|
function q() {
|
|
362
362
|
return T(c);
|
|
363
363
|
}
|
|
364
|
-
function
|
|
364
|
+
function $(u) {
|
|
365
365
|
function h(S, C, P, O, E) {
|
|
366
366
|
if (typeof u != "function")
|
|
367
367
|
return new m("Property `" + E + "` of component `" + P + "` has invalid PropType notation inside arrayOf.");
|
|
@@ -370,8 +370,8 @@ function Ge() {
|
|
|
370
370
|
var M = H(R);
|
|
371
371
|
return new m("Invalid " + O + " `" + E + "` of type " + ("`" + M + "` supplied to `" + P + "`, expected an array."));
|
|
372
372
|
}
|
|
373
|
-
for (var
|
|
374
|
-
var A = u(R,
|
|
373
|
+
for (var W = 0; W < R.length; W++) {
|
|
374
|
+
var A = u(R, W, P, O, E + "[" + W + "]", r);
|
|
375
375
|
if (A instanceof Error)
|
|
376
376
|
return A;
|
|
377
377
|
}
|
|
@@ -420,11 +420,11 @@ function Ge() {
|
|
|
420
420
|
for (var R = S[C], M = 0; M < u.length; M++)
|
|
421
421
|
if (b(R, u[M]))
|
|
422
422
|
return null;
|
|
423
|
-
var
|
|
423
|
+
var W = JSON.stringify(u, function(Y, p) {
|
|
424
424
|
var G = J(p);
|
|
425
425
|
return G === "symbol" ? String(p) : p;
|
|
426
426
|
});
|
|
427
|
-
return new m("Invalid " + O + " `" + E + "` of value `" + String(R) + "` " + ("supplied to `" + P + "`, expected one of " +
|
|
427
|
+
return new m("Invalid " + O + " `" + E + "` of value `" + String(R) + "` " + ("supplied to `" + P + "`, expected one of " + W + "."));
|
|
428
428
|
}
|
|
429
429
|
return T(h);
|
|
430
430
|
}
|
|
@@ -435,9 +435,9 @@ function Ge() {
|
|
|
435
435
|
var R = S[C], M = H(R);
|
|
436
436
|
if (M !== "object")
|
|
437
437
|
return new m("Invalid " + O + " `" + E + "` of type " + ("`" + M + "` supplied to `" + P + "`, expected an object."));
|
|
438
|
-
for (var
|
|
439
|
-
if (t(R,
|
|
440
|
-
var A = u(R,
|
|
438
|
+
for (var W in R)
|
|
439
|
+
if (t(R, W)) {
|
|
440
|
+
var A = u(R, W, P, O, E + "." + W, r);
|
|
441
441
|
if (A instanceof Error)
|
|
442
442
|
return A;
|
|
443
443
|
}
|
|
@@ -456,13 +456,13 @@ function Ge() {
|
|
|
456
456
|
), c;
|
|
457
457
|
}
|
|
458
458
|
function C(P, O, E, R, M) {
|
|
459
|
-
for (var
|
|
459
|
+
for (var W = [], A = 0; A < u.length; A++) {
|
|
460
460
|
var Y = u[A], p = Y(P, O, E, R, M, r);
|
|
461
461
|
if (p == null)
|
|
462
462
|
return null;
|
|
463
|
-
p.data && t(p.data, "expectedType") &&
|
|
463
|
+
p.data && t(p.data, "expectedType") && W.push(p.data.expectedType);
|
|
464
464
|
}
|
|
465
|
-
var G =
|
|
465
|
+
var G = W.length > 0 ? ", expected one of type [" + W.join(", ") + "]" : "";
|
|
466
466
|
return new m("Invalid " + R + " `" + M + "` supplied to " + ("`" + E + "`" + G + "."));
|
|
467
467
|
}
|
|
468
468
|
return T(C);
|
|
@@ -483,11 +483,11 @@ function Ge() {
|
|
|
483
483
|
var R = S[C], M = H(R);
|
|
484
484
|
if (M !== "object")
|
|
485
485
|
return new m("Invalid " + O + " `" + E + "` of type `" + M + "` " + ("supplied to `" + P + "`, expected `object`."));
|
|
486
|
-
for (var
|
|
487
|
-
var A = u[
|
|
486
|
+
for (var W in u) {
|
|
487
|
+
var A = u[W];
|
|
488
488
|
if (typeof A != "function")
|
|
489
|
-
return B(P, O, E,
|
|
490
|
-
var Y = A(R,
|
|
489
|
+
return B(P, O, E, W, J(A));
|
|
490
|
+
var Y = A(R, W, P, O, E + "." + W, r);
|
|
491
491
|
if (Y)
|
|
492
492
|
return Y;
|
|
493
493
|
}
|
|
@@ -500,8 +500,8 @@ function Ge() {
|
|
|
500
500
|
var R = S[C], M = H(R);
|
|
501
501
|
if (M !== "object")
|
|
502
502
|
return new m("Invalid " + O + " `" + E + "` of type `" + M + "` " + ("supplied to `" + P + "`, expected `object`."));
|
|
503
|
-
var
|
|
504
|
-
for (var A in
|
|
503
|
+
var W = a({}, S[C], u);
|
|
504
|
+
for (var A in W) {
|
|
505
505
|
var Y = u[A];
|
|
506
506
|
if (t(u, A) && typeof Y != "function")
|
|
507
507
|
return B(P, O, E, A, J(Y));
|
|
@@ -642,7 +642,7 @@ var ke;
|
|
|
642
642
|
function Qe() {
|
|
643
643
|
if (ke) return ue.exports;
|
|
644
644
|
if (ke = 1, process.env.NODE_ENV !== "production") {
|
|
645
|
-
var e =
|
|
645
|
+
var e = $e(), a = !0;
|
|
646
646
|
ue.exports = /* @__PURE__ */ Ge()(e.isElement, a);
|
|
647
647
|
} else
|
|
648
648
|
ue.exports = /* @__PURE__ */ Ke()();
|
|
@@ -690,9 +690,9 @@ function et(e, a, r) {
|
|
|
690
690
|
return t = this, n = arguments, l <= 0 || l > a ? (c && (clearTimeout(c), c = null), i = s, o = e.apply(t, n), c || (t = n = null)) : !c && r.trailing !== !1 && (c = setTimeout(d, l)), o;
|
|
691
691
|
};
|
|
692
692
|
}
|
|
693
|
-
function
|
|
693
|
+
function L(e, a) {
|
|
694
694
|
var r = this, t = a || {};
|
|
695
|
-
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(
|
|
695
|
+
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(L.prototype._strokeUpdate, this.throttle) : this._strokeMoveUpdate = L.prototype._strokeUpdate, this.dotSize = t.dotSize || function() {
|
|
696
696
|
return (this.minWidth + this.maxWidth) / 2;
|
|
697
697
|
}, 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(n) {
|
|
698
698
|
n.which === 1 && (r._mouseButtonDown = !0, r._strokeBegin(n));
|
|
@@ -714,17 +714,17 @@ function W(e, a) {
|
|
|
714
714
|
o && (n.preventDefault(), r._strokeEnd(n));
|
|
715
715
|
}, this.on();
|
|
716
716
|
}
|
|
717
|
-
|
|
717
|
+
L.prototype.clear = function() {
|
|
718
718
|
var e = this._ctx, a = this._canvas;
|
|
719
719
|
e.fillStyle = this.backgroundColor, e.clearRect(0, 0, a.width, a.height), e.fillRect(0, 0, a.width, a.height), this._data = [], this._reset(), this._isEmpty = !0;
|
|
720
720
|
};
|
|
721
|
-
|
|
721
|
+
L.prototype.fromDataURL = function(e) {
|
|
722
722
|
var a = this, r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, t = new Image(), n = r.ratio || window.devicePixelRatio || 1, o = r.width || this._canvas.width / n, c = r.height || this._canvas.height / n;
|
|
723
723
|
this._reset(), t.src = e, t.onload = function() {
|
|
724
724
|
a._ctx.drawImage(t, 0, 0, o, c);
|
|
725
725
|
}, this._isEmpty = !1;
|
|
726
726
|
};
|
|
727
|
-
|
|
727
|
+
L.prototype.toDataURL = function(e) {
|
|
728
728
|
var a;
|
|
729
729
|
switch (e) {
|
|
730
730
|
case "image/svg+xml":
|
|
@@ -735,19 +735,19 @@ W.prototype.toDataURL = function(e) {
|
|
|
735
735
|
return (a = this._canvas).toDataURL.apply(a, [e].concat(t));
|
|
736
736
|
}
|
|
737
737
|
};
|
|
738
|
-
|
|
738
|
+
L.prototype.on = function() {
|
|
739
739
|
this._handleMouseEvents(), this._handleTouchEvents();
|
|
740
740
|
};
|
|
741
|
-
|
|
741
|
+
L.prototype.off = function() {
|
|
742
742
|
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);
|
|
743
743
|
};
|
|
744
|
-
|
|
744
|
+
L.prototype.isEmpty = function() {
|
|
745
745
|
return this._isEmpty;
|
|
746
746
|
};
|
|
747
|
-
|
|
747
|
+
L.prototype._strokeBegin = function(e) {
|
|
748
748
|
this._data.push([]), this._reset(), this._strokeUpdate(e), typeof this.onBegin == "function" && this.onBegin(e);
|
|
749
749
|
};
|
|
750
|
-
|
|
750
|
+
L.prototype._strokeUpdate = function(e) {
|
|
751
751
|
var a = e.clientX, r = e.clientY, t = this._createPoint(a, r), n = this._data[this._data.length - 1], o = n && n[n.length - 1], c = o && t.distanceTo(o) < this.minDistance;
|
|
752
752
|
if (!(o && c)) {
|
|
753
753
|
var i = this._addPoint(t), d = i.curve, s = i.widths;
|
|
@@ -759,7 +759,7 @@ W.prototype._strokeUpdate = function(e) {
|
|
|
759
759
|
});
|
|
760
760
|
}
|
|
761
761
|
};
|
|
762
|
-
|
|
762
|
+
L.prototype._strokeEnd = function(e) {
|
|
763
763
|
var a = this.points.length > 2, r = this.points[0];
|
|
764
764
|
if (!a && r && this._drawDot(r), r) {
|
|
765
765
|
var t = this._data[this._data.length - 1], n = t[t.length - 1];
|
|
@@ -772,20 +772,20 @@ W.prototype._strokeEnd = function(e) {
|
|
|
772
772
|
}
|
|
773
773
|
typeof this.onEnd == "function" && this.onEnd(e);
|
|
774
774
|
};
|
|
775
|
-
|
|
775
|
+
L.prototype._handleMouseEvents = function() {
|
|
776
776
|
this._mouseButtonDown = !1, this._canvas.addEventListener("mousedown", this._handleMouseDown), this._canvas.addEventListener("mousemove", this._handleMouseMove), document.addEventListener("mouseup", this._handleMouseUp);
|
|
777
777
|
};
|
|
778
|
-
|
|
778
|
+
L.prototype._handleTouchEvents = function() {
|
|
779
779
|
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);
|
|
780
780
|
};
|
|
781
|
-
|
|
781
|
+
L.prototype._reset = function() {
|
|
782
782
|
this.points = [], this._lastVelocity = 0, this._lastWidth = (this.minWidth + this.maxWidth) / 2, this._ctx.fillStyle = this.penColor;
|
|
783
783
|
};
|
|
784
|
-
|
|
784
|
+
L.prototype._createPoint = function(e, a, r) {
|
|
785
785
|
var t = this._canvas.getBoundingClientRect();
|
|
786
786
|
return new ne(e - t.left, a - t.top, r || (/* @__PURE__ */ new Date()).getTime());
|
|
787
787
|
};
|
|
788
|
-
|
|
788
|
+
L.prototype._addPoint = function(e) {
|
|
789
789
|
var a = this.points, r = void 0;
|
|
790
790
|
if (a.push(e), a.length > 2) {
|
|
791
791
|
a.length === 3 && a.unshift(a[0]), r = this._calculateCurveControlPoints(a[0], a[1], a[2]);
|
|
@@ -796,25 +796,25 @@ W.prototype._addPoint = function(e) {
|
|
|
796
796
|
}
|
|
797
797
|
return {};
|
|
798
798
|
};
|
|
799
|
-
|
|
799
|
+
L.prototype._calculateCurveControlPoints = function(e, a, r) {
|
|
800
800
|
var t = e.x - a.x, n = e.y - a.y, o = a.x - r.x, c = a.y - r.y, i = { x: (e.x + a.x) / 2, y: (e.y + a.y) / 2 }, d = { x: (a.x + r.x) / 2, y: (a.y + r.y) / 2 }, s = Math.sqrt(t * t + n * n), l = Math.sqrt(o * o + c * c), v = i.x - d.x, y = i.y - d.y, _ = l / (s + l), b = { x: d.x + v * _, y: d.y + y * _ }, m = a.x - b.x, T = a.y - b.y;
|
|
801
801
|
return {
|
|
802
802
|
c1: new ne(i.x + m, i.y + T),
|
|
803
803
|
c2: new ne(d.x + m, d.y + T)
|
|
804
804
|
};
|
|
805
805
|
};
|
|
806
|
-
|
|
806
|
+
L.prototype._calculateCurveWidths = function(e) {
|
|
807
807
|
var a = e.startPoint, r = e.endPoint, t = { start: null, end: null }, n = this.velocityFilterWeight * r.velocityFrom(a) + (1 - this.velocityFilterWeight) * this._lastVelocity, o = this._strokeWidth(n);
|
|
808
808
|
return t.start = this._lastWidth, t.end = o, this._lastVelocity = n, this._lastWidth = o, t;
|
|
809
809
|
};
|
|
810
|
-
|
|
810
|
+
L.prototype._strokeWidth = function(e) {
|
|
811
811
|
return Math.max(this.maxWidth / (e + 1), this.minWidth);
|
|
812
812
|
};
|
|
813
|
-
|
|
813
|
+
L.prototype._drawPoint = function(e, a, r) {
|
|
814
814
|
var t = this._ctx;
|
|
815
815
|
t.moveTo(e, a), t.arc(e, a, r, 0, 2 * Math.PI, !1), this._isEmpty = !1;
|
|
816
816
|
};
|
|
817
|
-
|
|
817
|
+
L.prototype._drawCurve = function(e, a, r) {
|
|
818
818
|
var t = this._ctx, n = r - a, o = Math.floor(e.length());
|
|
819
819
|
t.beginPath();
|
|
820
820
|
for (var c = 0; c < o; c += 1) {
|
|
@@ -827,11 +827,11 @@ W.prototype._drawCurve = function(e, a, r) {
|
|
|
827
827
|
}
|
|
828
828
|
t.closePath(), t.fill();
|
|
829
829
|
};
|
|
830
|
-
|
|
830
|
+
L.prototype._drawDot = function(e) {
|
|
831
831
|
var a = this._ctx, r = typeof this.dotSize == "function" ? this.dotSize() : this.dotSize;
|
|
832
832
|
a.beginPath(), this._drawPoint(e.x, e.y, r), a.closePath(), a.fill();
|
|
833
833
|
};
|
|
834
|
-
|
|
834
|
+
L.prototype._fromData = function(e, a, r) {
|
|
835
835
|
for (var t = 0; t < e.length; t += 1) {
|
|
836
836
|
var n = e[t];
|
|
837
837
|
if (n.length > 1)
|
|
@@ -851,17 +851,17 @@ W.prototype._fromData = function(e, a, r) {
|
|
|
851
851
|
}
|
|
852
852
|
}
|
|
853
853
|
};
|
|
854
|
-
|
|
854
|
+
L.prototype._toSVG = function() {
|
|
855
855
|
var e = this, a = this._data, r = this._canvas, t = Math.max(window.devicePixelRatio || 1, 1), n = 0, o = 0, c = r.width / t, i = r.height / t, d = document.createElementNS("http://www.w3.org/2000/svg", "svg");
|
|
856
|
-
d.setAttributeNS(null, "width", r.width), d.setAttributeNS(null, "height", r.height), this._fromData(a, function(x, q,
|
|
856
|
+
d.setAttributeNS(null, "width", r.width), d.setAttributeNS(null, "height", r.height), this._fromData(a, function(x, q, $) {
|
|
857
857
|
var D = document.createElement("path");
|
|
858
858
|
if (!isNaN(x.control1.x) && !isNaN(x.control1.y) && !isNaN(x.control2.x) && !isNaN(x.control2.y)) {
|
|
859
859
|
var f = "M " + x.startPoint.x.toFixed(3) + "," + x.startPoint.y.toFixed(3) + " " + ("C " + x.control1.x.toFixed(3) + "," + x.control1.y.toFixed(3) + " ") + (x.control2.x.toFixed(3) + "," + x.control2.y.toFixed(3) + " ") + (x.endPoint.x.toFixed(3) + "," + x.endPoint.y.toFixed(3));
|
|
860
|
-
D.setAttribute("d", f), D.setAttribute("stroke-width", (q.end * 2.25).toFixed(3)), D.setAttribute("stroke",
|
|
860
|
+
D.setAttribute("d", f), D.setAttribute("stroke-width", (q.end * 2.25).toFixed(3)), D.setAttribute("stroke", $), D.setAttribute("fill", "none"), D.setAttribute("stroke-linecap", "round"), d.appendChild(D);
|
|
861
861
|
}
|
|
862
862
|
}, function(x) {
|
|
863
|
-
var q = document.createElement("circle"),
|
|
864
|
-
q.setAttribute("r",
|
|
863
|
+
var q = document.createElement("circle"), $ = typeof e.dotSize == "function" ? e.dotSize() : e.dotSize;
|
|
864
|
+
q.setAttribute("r", $), q.setAttribute("cx", x.x), q.setAttribute("cy", x.y), q.setAttribute("fill", x.color), d.appendChild(q);
|
|
865
865
|
});
|
|
866
866
|
var s = "data:image/svg+xml;base64,", l = '<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"' + (' viewBox="' + n + " " + o + " " + c + " " + i + '"') + (' width="' + c + '"') + (' height="' + i + '"') + ">", v = d.innerHTML;
|
|
867
867
|
if (v === void 0) {
|
|
@@ -874,7 +874,7 @@ W.prototype._toSVG = function() {
|
|
|
874
874
|
var m = "</svg>", T = l + v + m;
|
|
875
875
|
return s + btoa(T);
|
|
876
876
|
};
|
|
877
|
-
|
|
877
|
+
L.prototype.fromData = function(e) {
|
|
878
878
|
var a = this;
|
|
879
879
|
this.clear(), this._fromData(e, function(r, t) {
|
|
880
880
|
return a._drawCurve(r, t.start, t.end);
|
|
@@ -882,16 +882,16 @@ W.prototype.fromData = function(e) {
|
|
|
882
882
|
return a._drawDot(r);
|
|
883
883
|
}), this._data = e;
|
|
884
884
|
};
|
|
885
|
-
|
|
885
|
+
L.prototype.toData = function() {
|
|
886
886
|
return this._data;
|
|
887
887
|
};
|
|
888
888
|
const tt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
889
889
|
__proto__: null,
|
|
890
|
-
default:
|
|
890
|
+
default: L
|
|
891
891
|
}, Symbol.toStringTag, { value: "Module" })), rt = /* @__PURE__ */ Fe(tt);
|
|
892
|
-
var fe = { exports: {} }, nt = fe.exports,
|
|
892
|
+
var fe = { exports: {} }, nt = fe.exports, Ie;
|
|
893
893
|
function at() {
|
|
894
|
-
return
|
|
894
|
+
return Ie || (Ie = 1, (function(e, a) {
|
|
895
895
|
(function(r, t) {
|
|
896
896
|
e.exports = t();
|
|
897
897
|
})(nt, function() {
|
|
@@ -905,8 +905,8 @@ function at() {
|
|
|
905
905
|
return t.m = r, t.c = n, t.p = "", t(0);
|
|
906
906
|
})([function(r, t) {
|
|
907
907
|
function n(s) {
|
|
908
|
-
var l = s.getContext("2d"), v = s.width, y = s.height, _ = l.getImageData(0, 0, v, y).data, b = i(!0, v, y, _), m = i(!1, v, y, _), T = d(!0, v, y, _), x = d(!1, v, y, _), q = x - T + 1,
|
|
909
|
-
return s.width = q, s.height =
|
|
908
|
+
var l = s.getContext("2d"), v = s.width, y = s.height, _ = l.getImageData(0, 0, v, y).data, b = i(!0, v, y, _), m = i(!1, v, y, _), T = d(!0, v, y, _), x = d(!1, v, y, _), q = x - T + 1, $ = m - b + 1, D = l.getImageData(T, b, q, $);
|
|
909
|
+
return s.width = q, s.height = $, l.clearRect(0, 0, q, $), l.putImageData(D, 0, 0), s;
|
|
910
910
|
}
|
|
911
911
|
function o(s, l, v, y) {
|
|
912
912
|
return { red: y[4 * (v * l + s)], green: y[4 * (v * l + s) + 1], blue: y[4 * (v * l + s) + 2], alpha: y[4 * (v * l + s) + 3] };
|
|
@@ -927,11 +927,11 @@ function at() {
|
|
|
927
927
|
});
|
|
928
928
|
})(fe)), fe.exports;
|
|
929
929
|
}
|
|
930
|
-
var ot = le.exports,
|
|
930
|
+
var ot = le.exports, je;
|
|
931
931
|
function it() {
|
|
932
|
-
return
|
|
932
|
+
return je || (je = 1, (function(e, a) {
|
|
933
933
|
(function(r, t) {
|
|
934
|
-
e.exports = t(/* @__PURE__ */ Qe(),
|
|
934
|
+
e.exports = t(/* @__PURE__ */ Qe(), Le, rt, at());
|
|
935
935
|
})(ot, function(r, t, n, o) {
|
|
936
936
|
return (function(c) {
|
|
937
937
|
function i(s) {
|
|
@@ -978,7 +978,7 @@ function it() {
|
|
|
978
978
|
return function(w, B, F) {
|
|
979
979
|
return B && k(w.prototype, B), F && k(w, F), w;
|
|
980
980
|
};
|
|
981
|
-
})(), T = d(1), x = s(T), q = d(2),
|
|
981
|
+
})(), T = d(1), x = s(T), q = d(2), $ = s(q), D = d(3), f = s(D), N = d(4), X = s(N), te = (function(k) {
|
|
982
982
|
function w() {
|
|
983
983
|
var B, F, g, K;
|
|
984
984
|
v(this, w);
|
|
@@ -1027,7 +1027,7 @@ function it() {
|
|
|
1027
1027
|
Object.assign(this._sigPad, this._excludeOurProps());
|
|
1028
1028
|
} }, { key: "render", value: function() {
|
|
1029
1029
|
var B = this, F = this.props.canvasProps;
|
|
1030
|
-
return
|
|
1030
|
+
return $.default.createElement("canvas", b({ ref: function(g) {
|
|
1031
1031
|
B._canvas = g;
|
|
1032
1032
|
} }, F));
|
|
1033
1033
|
} }]), w;
|
|
@@ -1046,7 +1046,7 @@ function it() {
|
|
|
1046
1046
|
})(le)), le.exports;
|
|
1047
1047
|
}
|
|
1048
1048
|
var st = it();
|
|
1049
|
-
const ut = /* @__PURE__ */ qe(st), ct = "
|
|
1049
|
+
const ut = /* @__PURE__ */ qe(st), ct = "_Signature_mhdg5_1", lt = "_SignatureMain_mhdg5_5", ft = "_SignatureMainAuto_mhdg5_15", dt = "_SignatureMainManual_mhdg5_19", ht = "_SignatureHeader_mhdg5_26", pt = "_SignatureHeaderReset_mhdg5_34", vt = "_SignatureManualPanel_mhdg5_41", yt = "_SignatureManualPanelPlaceholder_mhdg5_48", mt = "_SignatureManualPanelButton_mhdg5_52", gt = "_SignatureAutoPanelImage_mhdg5_67", _t = "_SignatureAutoPanelLoader_mhdg5_72", xt = "_SignatureAutoPanelNoteIcon_mhdg5_77", bt = "_SignatureAutoPanelButton_mhdg5_81", V = {
|
|
1050
1050
|
Signature: ct,
|
|
1051
1051
|
SignatureMain: lt,
|
|
1052
1052
|
SignatureMainAuto: ft,
|
|
@@ -1061,7 +1061,7 @@ const ut = /* @__PURE__ */ qe(st), ct = "_Signature_y46zz_1", lt = "_SignatureMa
|
|
|
1061
1061
|
SignatureAutoPanelNoteIcon: xt,
|
|
1062
1062
|
SignatureAutoPanelButton: bt
|
|
1063
1063
|
}, Dt = (e) => {
|
|
1064
|
-
const { modes: a, isInAutoMode: r, valueAuto: t, valueManual: n, onUpdateAuto: o, onUpdateManual: c, onChange: i } = e, d =
|
|
1064
|
+
const { modes: a, isInAutoMode: r, valueAuto: t, valueManual: n, onUpdateAuto: o, onUpdateManual: c, onChange: i } = e, d = ze(null), [s, l] = Se(null), [v, y] = Se("auto-generated"), { width: _ = 0, height: b = 0 } = Be({ ref: d, box: "border-box" }), m = re(() => {
|
|
1065
1065
|
s && _ && b && n && s.fromDataURL(n, {
|
|
1066
1066
|
width: +_.toFixed(),
|
|
1067
1067
|
height: +b.toFixed()
|
|
@@ -1075,7 +1075,7 @@ const ut = /* @__PURE__ */ qe(st), ct = "_Signature_y46zz_1", lt = "_SignatureMa
|
|
|
1075
1075
|
s && (s.clear(), c(""), i(""));
|
|
1076
1076
|
}, [s, i, c]), q = re(() => {
|
|
1077
1077
|
o(!0), y("auto-generated"), t && i(t);
|
|
1078
|
-
}, [o, t, i]),
|
|
1078
|
+
}, [o, t, i]), $ = re(() => {
|
|
1079
1079
|
o(!1), y(n ? "manual-stored" : "manual-blank"), n ? (i(n), setTimeout(m, 0)) : i("");
|
|
1080
1080
|
}, [o, n, i, m]), D = re(() => {
|
|
1081
1081
|
o(!1), y("manual-blank"), c(""), i("");
|
|
@@ -1100,22 +1100,22 @@ const ut = /* @__PURE__ */ qe(st), ct = "_Signature_y46zz_1", lt = "_SignatureMa
|
|
|
1100
1100
|
children: [
|
|
1101
1101
|
/* @__PURE__ */ Q(ie, { direction: "row", justify: N(["manual-drawn"]) ? "end" : "center", className: V.SignatureHeader, children: [
|
|
1102
1102
|
/* @__PURE__ */ Q(Pe.Tag, { tag: "h6", weight: "medium", size: "regular", color: "primary", align: "center", children: [
|
|
1103
|
-
/* @__PURE__ */
|
|
1104
|
-
/* @__PURE__ */
|
|
1103
|
+
/* @__PURE__ */ z(ee.FadeScale, { name: "generated-signature", condition: N(["auto-generated"]), children: "Wir haben eine digitale Signature Sie generiert." }),
|
|
1104
|
+
/* @__PURE__ */ z(ee.FadeScale, { flex: !0, name: "create-signature", condition: N(["manual-blank", "manual-stored"]), children: "Ihre Signatur:" })
|
|
1105
1105
|
] }),
|
|
1106
|
-
/* @__PURE__ */
|
|
1106
|
+
/* @__PURE__ */ z(ee.FadeSlide, { flex: !0, name: "reset", direction: "rtl", condition: N(["manual-drawn"]), children: /* @__PURE__ */ z("div", { className: V.SignatureHeaderReset, children: /* @__PURE__ */ z(oe.ButtonText, { blurAfterClick: !0, underlined: !0, icon: /* @__PURE__ */ z(Ue, {}), onClick: x, children: "Neu starten" }) }) })
|
|
1107
1107
|
] }),
|
|
1108
|
-
/* @__PURE__ */
|
|
1109
|
-
/* @__PURE__ */
|
|
1110
|
-
/* @__PURE__ */
|
|
1108
|
+
/* @__PURE__ */ z(ie, { direction: "row", align: "end", justify: "center", children: N(["auto-generated"]) ? /* @__PURE__ */ Q(ie, { direction: "column", align: "center", justify: "start", children: [
|
|
1109
|
+
/* @__PURE__ */ z(ee.FadeScale, { flex: !0, name: "signature", condition: t !== "", children: /* @__PURE__ */ z("img", { className: V.SignatureAutoPanelImage, src: t, alt: "signature" }) }),
|
|
1110
|
+
/* @__PURE__ */ z(ee.FadeScale, { flex: !0, name: "signature", condition: t === "", children: /* @__PURE__ */ z("div", { className: V.SignatureAutoPanelLoader, children: /* @__PURE__ */ z(Ne, { size: 30, color: "primary" }) }) }),
|
|
1111
1111
|
/* @__PURE__ */ Q(ie, { direction: "row", align: "center", justify: "center", gap: "xxs", mt: "xs", children: [
|
|
1112
|
-
/* @__PURE__ */
|
|
1113
|
-
/* @__PURE__ */
|
|
1112
|
+
/* @__PURE__ */ z(Ye, { size: 24, className: V.SignatureAutoPanelNoteIcon }),
|
|
1113
|
+
/* @__PURE__ */ z(Pe.Tag, { weight: "regular", size: "small", color: "secondary", children: "Diese Unterschrift ist ausreichend" })
|
|
1114
1114
|
] }),
|
|
1115
|
-
/* @__PURE__ */
|
|
1115
|
+
/* @__PURE__ */ z(ee.FadeScale, { flex: !0, name: "signature", condition: a.includes("manual"), children: /* @__PURE__ */ z("div", { className: V.SignatureAutoPanelButton, children: /* @__PURE__ */ z(oe.ButtonText, { blurAfterClick: !0, underlined: !0, onClick: $, children: "per Hand/Maus unterschreiben" }) }) })
|
|
1116
1116
|
] }) : /* @__PURE__ */ Q("div", { className: V.SignatureManualPanel, children: [
|
|
1117
|
-
/* @__PURE__ */
|
|
1118
|
-
N(["manual-stored"]) ? /* @__PURE__ */
|
|
1117
|
+
/* @__PURE__ */ z("div", { className: V.SignatureManualPanelPlaceholder }),
|
|
1118
|
+
N(["manual-stored"]) ? /* @__PURE__ */ z("img", { width: _, height: b, alt: "signature", src: n }) : /* @__PURE__ */ z(
|
|
1119
1119
|
ut,
|
|
1120
1120
|
{
|
|
1121
1121
|
penColor: "#262626",
|
|
@@ -1129,22 +1129,22 @@ const ut = /* @__PURE__ */ qe(st), ct = "_Signature_y46zz_1", lt = "_SignatureMa
|
|
|
1129
1129
|
onEnd: T
|
|
1130
1130
|
}
|
|
1131
1131
|
),
|
|
1132
|
-
/* @__PURE__ */
|
|
1132
|
+
/* @__PURE__ */ z(
|
|
1133
1133
|
ee.FadeScale,
|
|
1134
1134
|
{
|
|
1135
1135
|
name: "to-generated",
|
|
1136
1136
|
condition: N(["manual-stored"]),
|
|
1137
1137
|
className: V.SignatureManualPanelButton,
|
|
1138
|
-
children: /* @__PURE__ */
|
|
1138
|
+
children: /* @__PURE__ */ z(oe.ButtonText, { blurAfterClick: !0, underlined: !0, onClick: D, children: "Zurücksetzen" })
|
|
1139
1139
|
}
|
|
1140
1140
|
)
|
|
1141
1141
|
] }) })
|
|
1142
1142
|
]
|
|
1143
1143
|
}
|
|
1144
1144
|
),
|
|
1145
|
-
/* @__PURE__ */
|
|
1146
|
-
a.includes("auto") ? /* @__PURE__ */
|
|
1147
|
-
/* @__PURE__ */
|
|
1145
|
+
/* @__PURE__ */ z(ee.FadeScale, { name: "footer", condition: N(["manual-blank", "manual-drawn"]), children: /* @__PURE__ */ Q(ie, { direction: "row", align: "center", justify: "space-between", gap: "md", mt: "md", children: [
|
|
1146
|
+
a.includes("auto") ? /* @__PURE__ */ z(oe.Button, { fullWidth: !0, blurAfterClick: !0, color: "tertiary", onClick: q, children: "Abbrechen" }) : null,
|
|
1147
|
+
/* @__PURE__ */ z(oe.Button, { fullWidth: !0, blurAfterClick: !0, color: "primary", disabled: !n, onClick: f, children: "Speichern" })
|
|
1148
1148
|
] }) })
|
|
1149
1149
|
] });
|
|
1150
1150
|
};
|