@arthurzakharov/ui-kit 1.3.6 → 1.3.7
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,192 +1,192 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import ze, { useRef as Fe, useState as
|
|
1
|
+
import { jsxs as Q, jsx as q } from "react/jsx-runtime";
|
|
2
|
+
import ze, { useRef as Fe, useState as oe, useCallback as te, useEffect as he } from "react";
|
|
3
3
|
import { g as qe, a as Be } from "../../input.component-C5xcmnfu.js";
|
|
4
|
-
import { useResizeObserver as
|
|
5
|
-
import { RefreshCw as
|
|
4
|
+
import { useResizeObserver as Ne } from "usehooks-ts";
|
|
5
|
+
import { RefreshCw as Ue, Check as Ye } from "lucide-react";
|
|
6
6
|
import Se from "clsx";
|
|
7
7
|
import { Animation as re } from "../../animations/animation.component.js";
|
|
8
|
-
import { C as
|
|
9
|
-
import { Flex as
|
|
8
|
+
import { C as ie } from "../../control.component-B9Ao9mfl.js";
|
|
9
|
+
import { Flex as se } from "../flex/flex.component.js";
|
|
10
10
|
import { Text as we } from "../text/text.component.js";
|
|
11
11
|
import { Loader as He } from "../loader/loader.component.js";
|
|
12
|
-
import '../../assets/signature-CLmBTe_C.css';var
|
|
12
|
+
import '../../assets/signature-CLmBTe_C.css';var fe = { exports: {} }, ce = { exports: {} }, le = { exports: {} }, I = {};
|
|
13
13
|
var Ee;
|
|
14
14
|
function Ve() {
|
|
15
15
|
if (Ee) return I;
|
|
16
16
|
Ee = 1;
|
|
17
|
-
var e = typeof Symbol == "function" && Symbol.for,
|
|
18
|
-
function $(
|
|
19
|
-
if (typeof
|
|
20
|
-
var
|
|
21
|
-
switch (
|
|
22
|
-
case
|
|
23
|
-
switch (
|
|
24
|
-
case
|
|
17
|
+
var e = typeof Symbol == "function" && Symbol.for, n = e ? /* @__PURE__ */ Symbol.for("react.element") : 60103, t = e ? /* @__PURE__ */ Symbol.for("react.portal") : 60106, r = e ? /* @__PURE__ */ Symbol.for("react.fragment") : 60107, a = e ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108, o = e ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114, c = e ? /* @__PURE__ */ Symbol.for("react.provider") : 60109, u = e ? /* @__PURE__ */ Symbol.for("react.context") : 60110, h = e ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111, i = e ? /* @__PURE__ */ Symbol.for("react.concurrent_mode") : 60111, l = e ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112, f = e ? /* @__PURE__ */ Symbol.for("react.suspense") : 60113, y = e ? /* @__PURE__ */ Symbol.for("react.suspense_list") : 60120, b = e ? /* @__PURE__ */ Symbol.for("react.memo") : 60115, S = e ? /* @__PURE__ */ Symbol.for("react.lazy") : 60116, m = e ? /* @__PURE__ */ Symbol.for("react.block") : 60121, P = e ? /* @__PURE__ */ Symbol.for("react.fundamental") : 60117, x = e ? /* @__PURE__ */ Symbol.for("react.responder") : 60118, L = e ? /* @__PURE__ */ Symbol.for("react.scope") : 60119;
|
|
18
|
+
function $(d) {
|
|
19
|
+
if (typeof d == "object" && d !== null) {
|
|
20
|
+
var J = d.$$typeof;
|
|
21
|
+
switch (J) {
|
|
22
|
+
case n:
|
|
23
|
+
switch (d = d.type, d) {
|
|
24
|
+
case h:
|
|
25
25
|
case i:
|
|
26
|
-
case
|
|
27
|
-
case
|
|
28
|
-
case
|
|
29
|
-
case
|
|
30
|
-
return
|
|
26
|
+
case r:
|
|
27
|
+
case o:
|
|
28
|
+
case a:
|
|
29
|
+
case f:
|
|
30
|
+
return d;
|
|
31
31
|
default:
|
|
32
|
-
switch (
|
|
33
|
-
case
|
|
32
|
+
switch (d = d && d.$$typeof, d) {
|
|
33
|
+
case u:
|
|
34
34
|
case l:
|
|
35
|
+
case S:
|
|
35
36
|
case b:
|
|
36
|
-
case g:
|
|
37
37
|
case c:
|
|
38
|
-
return
|
|
38
|
+
return d;
|
|
39
39
|
default:
|
|
40
|
-
return
|
|
40
|
+
return J;
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
|
-
case
|
|
44
|
-
return
|
|
43
|
+
case t:
|
|
44
|
+
return J;
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
47
|
}
|
|
48
|
-
function
|
|
49
|
-
return $(
|
|
48
|
+
function k(d) {
|
|
49
|
+
return $(d) === i;
|
|
50
50
|
}
|
|
51
|
-
return I.AsyncMode =
|
|
52
|
-
return
|
|
53
|
-
}, I.isConcurrentMode =
|
|
54
|
-
return $(
|
|
55
|
-
}, I.isContextProvider = function(
|
|
56
|
-
return $(
|
|
57
|
-
}, I.isElement = function(
|
|
58
|
-
return typeof
|
|
59
|
-
}, I.isForwardRef = function(
|
|
60
|
-
return $(
|
|
61
|
-
}, I.isFragment = function(
|
|
62
|
-
return $(
|
|
63
|
-
}, I.isLazy = function(
|
|
64
|
-
return $(
|
|
65
|
-
}, I.isMemo = function(
|
|
66
|
-
return $(
|
|
67
|
-
}, I.isPortal = function(
|
|
68
|
-
return $(
|
|
69
|
-
}, I.isProfiler = function(
|
|
70
|
-
return $(
|
|
71
|
-
}, I.isStrictMode = function(
|
|
72
|
-
return $(
|
|
73
|
-
}, I.isSuspense = function(
|
|
74
|
-
return $(
|
|
75
|
-
}, I.isValidElementType = function(
|
|
76
|
-
return typeof
|
|
51
|
+
return I.AsyncMode = h, I.ConcurrentMode = i, I.ContextConsumer = u, I.ContextProvider = c, I.Element = n, I.ForwardRef = l, I.Fragment = r, I.Lazy = S, I.Memo = b, I.Portal = t, I.Profiler = o, I.StrictMode = a, I.Suspense = f, I.isAsyncMode = function(d) {
|
|
52
|
+
return k(d) || $(d) === h;
|
|
53
|
+
}, I.isConcurrentMode = k, I.isContextConsumer = function(d) {
|
|
54
|
+
return $(d) === u;
|
|
55
|
+
}, I.isContextProvider = function(d) {
|
|
56
|
+
return $(d) === c;
|
|
57
|
+
}, I.isElement = function(d) {
|
|
58
|
+
return typeof d == "object" && d !== null && d.$$typeof === n;
|
|
59
|
+
}, I.isForwardRef = function(d) {
|
|
60
|
+
return $(d) === l;
|
|
61
|
+
}, I.isFragment = function(d) {
|
|
62
|
+
return $(d) === r;
|
|
63
|
+
}, I.isLazy = function(d) {
|
|
64
|
+
return $(d) === S;
|
|
65
|
+
}, I.isMemo = function(d) {
|
|
66
|
+
return $(d) === b;
|
|
67
|
+
}, I.isPortal = function(d) {
|
|
68
|
+
return $(d) === t;
|
|
69
|
+
}, I.isProfiler = function(d) {
|
|
70
|
+
return $(d) === o;
|
|
71
|
+
}, I.isStrictMode = function(d) {
|
|
72
|
+
return $(d) === a;
|
|
73
|
+
}, I.isSuspense = function(d) {
|
|
74
|
+
return $(d) === f;
|
|
75
|
+
}, I.isValidElementType = function(d) {
|
|
76
|
+
return typeof d == "string" || typeof d == "function" || d === r || d === i || d === o || d === a || d === f || d === y || typeof d == "object" && d !== null && (d.$$typeof === S || d.$$typeof === b || d.$$typeof === c || d.$$typeof === u || d.$$typeof === l || d.$$typeof === P || d.$$typeof === x || d.$$typeof === L || d.$$typeof === m);
|
|
77
77
|
}, I.typeOf = $, I;
|
|
78
78
|
}
|
|
79
79
|
var j = {};
|
|
80
80
|
var Te;
|
|
81
81
|
function Xe() {
|
|
82
82
|
return Te || (Te = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
83
|
-
var e = typeof Symbol == "function" && Symbol.for,
|
|
84
|
-
function $(
|
|
85
|
-
return typeof
|
|
86
|
-
|
|
83
|
+
var e = typeof Symbol == "function" && Symbol.for, n = e ? /* @__PURE__ */ Symbol.for("react.element") : 60103, t = e ? /* @__PURE__ */ Symbol.for("react.portal") : 60106, r = e ? /* @__PURE__ */ Symbol.for("react.fragment") : 60107, a = e ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108, o = e ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114, c = e ? /* @__PURE__ */ Symbol.for("react.provider") : 60109, u = e ? /* @__PURE__ */ Symbol.for("react.context") : 60110, h = e ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111, i = e ? /* @__PURE__ */ Symbol.for("react.concurrent_mode") : 60111, l = e ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112, f = e ? /* @__PURE__ */ Symbol.for("react.suspense") : 60113, y = e ? /* @__PURE__ */ Symbol.for("react.suspense_list") : 60120, b = e ? /* @__PURE__ */ Symbol.for("react.memo") : 60115, S = e ? /* @__PURE__ */ Symbol.for("react.lazy") : 60116, m = e ? /* @__PURE__ */ Symbol.for("react.block") : 60121, P = e ? /* @__PURE__ */ Symbol.for("react.fundamental") : 60117, x = e ? /* @__PURE__ */ Symbol.for("react.responder") : 60118, L = e ? /* @__PURE__ */ Symbol.for("react.scope") : 60119;
|
|
84
|
+
function $(v) {
|
|
85
|
+
return typeof v == "string" || typeof v == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
86
|
+
v === r || v === i || v === o || v === a || v === f || v === y || typeof v == "object" && v !== null && (v.$$typeof === S || v.$$typeof === b || v.$$typeof === c || v.$$typeof === u || v.$$typeof === l || v.$$typeof === P || v.$$typeof === x || v.$$typeof === L || v.$$typeof === m);
|
|
87
87
|
}
|
|
88
|
-
function
|
|
89
|
-
if (typeof
|
|
90
|
-
var
|
|
91
|
-
switch (
|
|
92
|
-
case
|
|
93
|
-
var
|
|
94
|
-
switch (
|
|
95
|
-
case
|
|
88
|
+
function k(v) {
|
|
89
|
+
if (typeof v == "object" && v !== null) {
|
|
90
|
+
var Z = v.$$typeof;
|
|
91
|
+
switch (Z) {
|
|
92
|
+
case n:
|
|
93
|
+
var ue = v.type;
|
|
94
|
+
switch (ue) {
|
|
95
|
+
case h:
|
|
96
96
|
case i:
|
|
97
|
-
case
|
|
98
|
-
case
|
|
99
|
-
case
|
|
100
|
-
case
|
|
101
|
-
return
|
|
97
|
+
case r:
|
|
98
|
+
case o:
|
|
99
|
+
case a:
|
|
100
|
+
case f:
|
|
101
|
+
return ue;
|
|
102
102
|
default:
|
|
103
|
-
var Pe =
|
|
103
|
+
var Pe = ue && ue.$$typeof;
|
|
104
104
|
switch (Pe) {
|
|
105
|
-
case
|
|
105
|
+
case u:
|
|
106
106
|
case l:
|
|
107
|
+
case S:
|
|
107
108
|
case b:
|
|
108
|
-
case g:
|
|
109
109
|
case c:
|
|
110
110
|
return Pe;
|
|
111
111
|
default:
|
|
112
|
-
return
|
|
112
|
+
return Z;
|
|
113
113
|
}
|
|
114
114
|
}
|
|
115
|
-
case
|
|
116
|
-
return
|
|
115
|
+
case t:
|
|
116
|
+
return Z;
|
|
117
117
|
}
|
|
118
118
|
}
|
|
119
119
|
}
|
|
120
|
-
var
|
|
121
|
-
function
|
|
122
|
-
return
|
|
120
|
+
var d = h, J = i, ee = u, G = c, w = n, _ = l, B = r, F = S, g = b, K = t, ae = o, Y = a, V = f, N = !1;
|
|
121
|
+
function X(v) {
|
|
122
|
+
return N || (N = !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(v) || k(v) === h;
|
|
123
123
|
}
|
|
124
|
-
function s(
|
|
125
|
-
return
|
|
124
|
+
function s(v) {
|
|
125
|
+
return k(v) === i;
|
|
126
126
|
}
|
|
127
|
-
function
|
|
128
|
-
return
|
|
127
|
+
function p(v) {
|
|
128
|
+
return k(v) === u;
|
|
129
129
|
}
|
|
130
|
-
function
|
|
131
|
-
return
|
|
130
|
+
function E(v) {
|
|
131
|
+
return k(v) === c;
|
|
132
132
|
}
|
|
133
|
-
function
|
|
134
|
-
return typeof
|
|
133
|
+
function R(v) {
|
|
134
|
+
return typeof v == "object" && v !== null && v.$$typeof === n;
|
|
135
135
|
}
|
|
136
|
-
function
|
|
137
|
-
return
|
|
136
|
+
function T(v) {
|
|
137
|
+
return k(v) === l;
|
|
138
138
|
}
|
|
139
|
-
function
|
|
140
|
-
return
|
|
139
|
+
function M(v) {
|
|
140
|
+
return k(v) === r;
|
|
141
141
|
}
|
|
142
|
-
function
|
|
143
|
-
return
|
|
142
|
+
function C(v) {
|
|
143
|
+
return k(v) === S;
|
|
144
144
|
}
|
|
145
|
-
function
|
|
146
|
-
return
|
|
145
|
+
function O(v) {
|
|
146
|
+
return k(v) === b;
|
|
147
147
|
}
|
|
148
|
-
function
|
|
149
|
-
return
|
|
148
|
+
function A(v) {
|
|
149
|
+
return k(v) === t;
|
|
150
150
|
}
|
|
151
|
-
function W(
|
|
152
|
-
return
|
|
151
|
+
function W(v) {
|
|
152
|
+
return k(v) === o;
|
|
153
153
|
}
|
|
154
|
-
function
|
|
155
|
-
return
|
|
154
|
+
function D(v) {
|
|
155
|
+
return k(v) === a;
|
|
156
156
|
}
|
|
157
|
-
function
|
|
158
|
-
return
|
|
157
|
+
function U(v) {
|
|
158
|
+
return k(v) === f;
|
|
159
159
|
}
|
|
160
|
-
j.AsyncMode =
|
|
160
|
+
j.AsyncMode = d, j.ConcurrentMode = J, j.ContextConsumer = ee, j.ContextProvider = G, j.Element = w, j.ForwardRef = _, j.Fragment = B, j.Lazy = F, j.Memo = g, j.Portal = K, j.Profiler = ae, j.StrictMode = Y, j.Suspense = V, j.isAsyncMode = X, j.isConcurrentMode = s, j.isContextConsumer = p, j.isContextProvider = E, j.isElement = R, j.isForwardRef = T, j.isFragment = M, j.isLazy = C, j.isMemo = O, j.isPortal = A, j.isProfiler = W, j.isStrictMode = D, j.isSuspense = U, j.isValidElementType = $, j.typeOf = k;
|
|
161
161
|
})()), j;
|
|
162
162
|
}
|
|
163
163
|
var Ce;
|
|
164
164
|
function We() {
|
|
165
|
-
return Ce || (Ce = 1, process.env.NODE_ENV === "production" ?
|
|
165
|
+
return Ce || (Ce = 1, process.env.NODE_ENV === "production" ? le.exports = Ve() : le.exports = Xe()), le.exports;
|
|
166
166
|
}
|
|
167
167
|
var pe, Re;
|
|
168
168
|
function Je() {
|
|
169
169
|
if (Re) return pe;
|
|
170
170
|
Re = 1;
|
|
171
|
-
var e = Object.getOwnPropertySymbols,
|
|
172
|
-
function
|
|
173
|
-
if (
|
|
171
|
+
var e = Object.getOwnPropertySymbols, n = Object.prototype.hasOwnProperty, t = Object.prototype.propertyIsEnumerable;
|
|
172
|
+
function r(o) {
|
|
173
|
+
if (o == null)
|
|
174
174
|
throw new TypeError("Object.assign cannot be called with null or undefined");
|
|
175
|
-
return Object(
|
|
175
|
+
return Object(o);
|
|
176
176
|
}
|
|
177
|
-
function
|
|
177
|
+
function a() {
|
|
178
178
|
try {
|
|
179
179
|
if (!Object.assign)
|
|
180
180
|
return !1;
|
|
181
|
-
var
|
|
182
|
-
if (
|
|
181
|
+
var o = new String("abc");
|
|
182
|
+
if (o[5] = "de", Object.getOwnPropertyNames(o)[0] === "5")
|
|
183
183
|
return !1;
|
|
184
|
-
for (var c = {},
|
|
185
|
-
c["_" + String.fromCharCode(
|
|
186
|
-
var
|
|
184
|
+
for (var c = {}, u = 0; u < 10; u++)
|
|
185
|
+
c["_" + String.fromCharCode(u)] = u;
|
|
186
|
+
var h = Object.getOwnPropertyNames(c).map(function(l) {
|
|
187
187
|
return c[l];
|
|
188
188
|
});
|
|
189
|
-
if (
|
|
189
|
+
if (h.join("") !== "0123456789")
|
|
190
190
|
return !1;
|
|
191
191
|
var i = {};
|
|
192
192
|
return "abcdefghijklmnopqrst".split("").forEach(function(l) {
|
|
@@ -196,18 +196,18 @@ function Je() {
|
|
|
196
196
|
return !1;
|
|
197
197
|
}
|
|
198
198
|
}
|
|
199
|
-
return pe =
|
|
200
|
-
for (var
|
|
201
|
-
|
|
202
|
-
for (var
|
|
203
|
-
|
|
199
|
+
return pe = a() ? Object.assign : function(o, c) {
|
|
200
|
+
for (var u, h = r(o), i, l = 1; l < arguments.length; l++) {
|
|
201
|
+
u = Object(arguments[l]);
|
|
202
|
+
for (var f in u)
|
|
203
|
+
n.call(u, f) && (h[f] = u[f]);
|
|
204
204
|
if (e) {
|
|
205
|
-
i = e(
|
|
205
|
+
i = e(u);
|
|
206
206
|
for (var y = 0; y < i.length; y++)
|
|
207
|
-
|
|
207
|
+
t.call(u, i[y]) && (h[i[y]] = u[i[y]]);
|
|
208
208
|
}
|
|
209
209
|
}
|
|
210
|
-
return
|
|
210
|
+
return h;
|
|
211
211
|
}, pe;
|
|
212
212
|
}
|
|
213
213
|
var ve, Oe;
|
|
@@ -228,9 +228,9 @@ function Ze() {
|
|
|
228
228
|
var e = function() {
|
|
229
229
|
};
|
|
230
230
|
if (process.env.NODE_ENV !== "production") {
|
|
231
|
-
var
|
|
232
|
-
e = function(
|
|
233
|
-
var c = "Warning: " +
|
|
231
|
+
var n = /* @__PURE__ */ xe(), t = {}, r = /* @__PURE__ */ Le();
|
|
232
|
+
e = function(o) {
|
|
233
|
+
var c = "Warning: " + o;
|
|
234
234
|
typeof console < "u" && console.error(c);
|
|
235
235
|
try {
|
|
236
236
|
throw new Error(c);
|
|
@@ -238,63 +238,63 @@ function Ze() {
|
|
|
238
238
|
}
|
|
239
239
|
};
|
|
240
240
|
}
|
|
241
|
-
function
|
|
241
|
+
function a(o, c, u, h, i) {
|
|
242
242
|
if (process.env.NODE_ENV !== "production") {
|
|
243
|
-
for (var l in
|
|
244
|
-
if (
|
|
245
|
-
var
|
|
243
|
+
for (var l in o)
|
|
244
|
+
if (r(o, l)) {
|
|
245
|
+
var f;
|
|
246
246
|
try {
|
|
247
|
-
if (typeof
|
|
247
|
+
if (typeof o[l] != "function") {
|
|
248
248
|
var y = Error(
|
|
249
|
-
(
|
|
249
|
+
(h || "React class") + ": " + u + " type `" + l + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof o[l] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
|
|
250
250
|
);
|
|
251
251
|
throw y.name = "Invariant Violation", y;
|
|
252
252
|
}
|
|
253
|
-
|
|
254
|
-
} catch (
|
|
255
|
-
|
|
253
|
+
f = o[l](c, l, h, u, null, n);
|
|
254
|
+
} catch (S) {
|
|
255
|
+
f = S;
|
|
256
256
|
}
|
|
257
|
-
if (
|
|
258
|
-
(
|
|
259
|
-
),
|
|
260
|
-
|
|
261
|
-
var
|
|
257
|
+
if (f && !(f instanceof Error) && e(
|
|
258
|
+
(h || "React class") + ": type specification of " + u + " `" + l + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof f + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
|
|
259
|
+
), f instanceof Error && !(f.message in t)) {
|
|
260
|
+
t[f.message] = !0;
|
|
261
|
+
var b = i ? i() : "";
|
|
262
262
|
e(
|
|
263
|
-
"Failed " +
|
|
263
|
+
"Failed " + u + " type: " + f.message + (b ?? "")
|
|
264
264
|
);
|
|
265
265
|
}
|
|
266
266
|
}
|
|
267
267
|
}
|
|
268
268
|
}
|
|
269
|
-
return
|
|
270
|
-
process.env.NODE_ENV !== "production" && (
|
|
271
|
-
}, me =
|
|
269
|
+
return a.resetWarningCache = function() {
|
|
270
|
+
process.env.NODE_ENV !== "production" && (t = {});
|
|
271
|
+
}, me = a, me;
|
|
272
272
|
}
|
|
273
273
|
var ge, De;
|
|
274
274
|
function Ge() {
|
|
275
275
|
if (De) return ge;
|
|
276
276
|
De = 1;
|
|
277
|
-
var e = We(),
|
|
277
|
+
var e = We(), n = Je(), t = /* @__PURE__ */ xe(), r = /* @__PURE__ */ Le(), a = /* @__PURE__ */ Ze(), o = function() {
|
|
278
278
|
};
|
|
279
|
-
process.env.NODE_ENV !== "production" && (
|
|
280
|
-
var
|
|
281
|
-
typeof console < "u" && console.error(
|
|
279
|
+
process.env.NODE_ENV !== "production" && (o = function(u) {
|
|
280
|
+
var h = "Warning: " + u;
|
|
281
|
+
typeof console < "u" && console.error(h);
|
|
282
282
|
try {
|
|
283
|
-
throw new Error(
|
|
283
|
+
throw new Error(h);
|
|
284
284
|
} catch {
|
|
285
285
|
}
|
|
286
286
|
});
|
|
287
287
|
function c() {
|
|
288
288
|
return null;
|
|
289
289
|
}
|
|
290
|
-
return ge = function(
|
|
290
|
+
return ge = function(u, h) {
|
|
291
291
|
var i = typeof Symbol == "function" && Symbol.iterator, l = "@@iterator";
|
|
292
|
-
function
|
|
293
|
-
var
|
|
294
|
-
if (typeof
|
|
295
|
-
return
|
|
292
|
+
function f(s) {
|
|
293
|
+
var p = s && (i && s[i] || s[l]);
|
|
294
|
+
if (typeof p == "function")
|
|
295
|
+
return p;
|
|
296
296
|
}
|
|
297
|
-
var y = "<<anonymous>>",
|
|
297
|
+
var y = "<<anonymous>>", b = {
|
|
298
298
|
array: x("array"),
|
|
299
299
|
bigint: x("bigint"),
|
|
300
300
|
bool: x("boolean"),
|
|
@@ -303,223 +303,223 @@ function Ge() {
|
|
|
303
303
|
object: x("object"),
|
|
304
304
|
string: x("string"),
|
|
305
305
|
symbol: x("symbol"),
|
|
306
|
-
any:
|
|
306
|
+
any: L(),
|
|
307
307
|
arrayOf: $,
|
|
308
|
-
element:
|
|
309
|
-
elementType:
|
|
310
|
-
instanceOf:
|
|
311
|
-
node:
|
|
312
|
-
objectOf:
|
|
313
|
-
oneOf:
|
|
314
|
-
oneOfType:
|
|
315
|
-
shape:
|
|
316
|
-
exact:
|
|
308
|
+
element: k(),
|
|
309
|
+
elementType: d(),
|
|
310
|
+
instanceOf: J,
|
|
311
|
+
node: _(),
|
|
312
|
+
objectOf: G,
|
|
313
|
+
oneOf: ee,
|
|
314
|
+
oneOfType: w,
|
|
315
|
+
shape: F,
|
|
316
|
+
exact: g
|
|
317
317
|
};
|
|
318
|
-
function
|
|
319
|
-
return s ===
|
|
318
|
+
function S(s, p) {
|
|
319
|
+
return s === p ? s !== 0 || 1 / s === 1 / p : s !== s && p !== p;
|
|
320
320
|
}
|
|
321
|
-
function
|
|
322
|
-
this.message = s, this.data =
|
|
321
|
+
function m(s, p) {
|
|
322
|
+
this.message = s, this.data = p && typeof p == "object" ? p : {}, this.stack = "";
|
|
323
323
|
}
|
|
324
|
-
|
|
324
|
+
m.prototype = Error.prototype;
|
|
325
325
|
function P(s) {
|
|
326
326
|
if (process.env.NODE_ENV !== "production")
|
|
327
|
-
var
|
|
328
|
-
function
|
|
329
|
-
if (
|
|
330
|
-
if (
|
|
331
|
-
var
|
|
327
|
+
var p = {}, E = 0;
|
|
328
|
+
function R(M, C, O, A, W, D, U) {
|
|
329
|
+
if (A = A || y, D = D || O, U !== t) {
|
|
330
|
+
if (h) {
|
|
331
|
+
var v = new Error(
|
|
332
332
|
"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"
|
|
333
333
|
);
|
|
334
|
-
throw
|
|
334
|
+
throw v.name = "Invariant Violation", v;
|
|
335
335
|
} else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
|
|
336
|
-
var
|
|
337
|
-
!
|
|
338
|
-
|
|
339
|
-
"You are manually calling a React.PropTypes validation function for the `" +
|
|
340
|
-
),
|
|
336
|
+
var Z = A + ":" + O;
|
|
337
|
+
!p[Z] && // Avoid spamming the console because they are often not actionable except for lib authors
|
|
338
|
+
E < 3 && (o(
|
|
339
|
+
"You are manually calling a React.PropTypes validation function for the `" + D + "` prop on `" + A + "`. 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."
|
|
340
|
+
), p[Z] = !0, E++);
|
|
341
341
|
}
|
|
342
342
|
}
|
|
343
|
-
return
|
|
343
|
+
return C[O] == null ? M ? C[O] === null ? new m("The " + W + " `" + D + "` is marked as required " + ("in `" + A + "`, but its value is `null`.")) : new m("The " + W + " `" + D + "` is marked as required in " + ("`" + A + "`, but its value is `undefined`.")) : null : s(C, O, A, W, D);
|
|
344
344
|
}
|
|
345
|
-
var
|
|
346
|
-
return
|
|
345
|
+
var T = R.bind(null, !1);
|
|
346
|
+
return T.isRequired = R.bind(null, !0), T;
|
|
347
347
|
}
|
|
348
348
|
function x(s) {
|
|
349
|
-
function
|
|
350
|
-
var
|
|
349
|
+
function p(E, R, T, M, C, O) {
|
|
350
|
+
var A = E[R], W = Y(A);
|
|
351
351
|
if (W !== s) {
|
|
352
|
-
var
|
|
353
|
-
return new
|
|
354
|
-
"Invalid " +
|
|
352
|
+
var D = V(A);
|
|
353
|
+
return new m(
|
|
354
|
+
"Invalid " + M + " `" + C + "` of type " + ("`" + D + "` supplied to `" + T + "`, expected ") + ("`" + s + "`."),
|
|
355
355
|
{ expectedType: s }
|
|
356
356
|
);
|
|
357
357
|
}
|
|
358
358
|
return null;
|
|
359
359
|
}
|
|
360
|
-
return P(
|
|
360
|
+
return P(p);
|
|
361
361
|
}
|
|
362
|
-
function
|
|
362
|
+
function L() {
|
|
363
363
|
return P(c);
|
|
364
364
|
}
|
|
365
365
|
function $(s) {
|
|
366
|
-
function
|
|
366
|
+
function p(E, R, T, M, C) {
|
|
367
367
|
if (typeof s != "function")
|
|
368
|
-
return new
|
|
369
|
-
var
|
|
370
|
-
if (!Array.isArray(
|
|
371
|
-
var
|
|
372
|
-
return new
|
|
368
|
+
return new m("Property `" + C + "` of component `" + T + "` has invalid PropType notation inside arrayOf.");
|
|
369
|
+
var O = E[R];
|
|
370
|
+
if (!Array.isArray(O)) {
|
|
371
|
+
var A = Y(O);
|
|
372
|
+
return new m("Invalid " + M + " `" + C + "` of type " + ("`" + A + "` supplied to `" + T + "`, expected an array."));
|
|
373
373
|
}
|
|
374
|
-
for (var W = 0; W <
|
|
375
|
-
var
|
|
376
|
-
if (
|
|
377
|
-
return
|
|
374
|
+
for (var W = 0; W < O.length; W++) {
|
|
375
|
+
var D = s(O, W, T, M, C + "[" + W + "]", t);
|
|
376
|
+
if (D instanceof Error)
|
|
377
|
+
return D;
|
|
378
378
|
}
|
|
379
379
|
return null;
|
|
380
380
|
}
|
|
381
|
-
return P(
|
|
381
|
+
return P(p);
|
|
382
382
|
}
|
|
383
|
-
function
|
|
384
|
-
function s(
|
|
385
|
-
var
|
|
386
|
-
if (!
|
|
387
|
-
var
|
|
388
|
-
return new
|
|
383
|
+
function k() {
|
|
384
|
+
function s(p, E, R, T, M) {
|
|
385
|
+
var C = p[E];
|
|
386
|
+
if (!u(C)) {
|
|
387
|
+
var O = Y(C);
|
|
388
|
+
return new m("Invalid " + T + " `" + M + "` of type " + ("`" + O + "` supplied to `" + R + "`, expected a single ReactElement."));
|
|
389
389
|
}
|
|
390
390
|
return null;
|
|
391
391
|
}
|
|
392
392
|
return P(s);
|
|
393
393
|
}
|
|
394
|
-
function
|
|
395
|
-
function s(
|
|
396
|
-
var
|
|
397
|
-
if (!e.isValidElementType(
|
|
398
|
-
var
|
|
399
|
-
return new
|
|
394
|
+
function d() {
|
|
395
|
+
function s(p, E, R, T, M) {
|
|
396
|
+
var C = p[E];
|
|
397
|
+
if (!e.isValidElementType(C)) {
|
|
398
|
+
var O = Y(C);
|
|
399
|
+
return new m("Invalid " + T + " `" + M + "` of type " + ("`" + O + "` supplied to `" + R + "`, expected a single ReactElement type."));
|
|
400
400
|
}
|
|
401
401
|
return null;
|
|
402
402
|
}
|
|
403
403
|
return P(s);
|
|
404
404
|
}
|
|
405
|
-
function
|
|
406
|
-
function
|
|
407
|
-
if (!(
|
|
408
|
-
var
|
|
409
|
-
return new
|
|
405
|
+
function J(s) {
|
|
406
|
+
function p(E, R, T, M, C) {
|
|
407
|
+
if (!(E[R] instanceof s)) {
|
|
408
|
+
var O = s.name || y, A = X(E[R]);
|
|
409
|
+
return new m("Invalid " + M + " `" + C + "` of type " + ("`" + A + "` supplied to `" + T + "`, expected ") + ("instance of `" + O + "`."));
|
|
410
410
|
}
|
|
411
411
|
return null;
|
|
412
412
|
}
|
|
413
|
-
return P(
|
|
413
|
+
return P(p);
|
|
414
414
|
}
|
|
415
|
-
function
|
|
415
|
+
function ee(s) {
|
|
416
416
|
if (!Array.isArray(s))
|
|
417
|
-
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ?
|
|
417
|
+
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? o(
|
|
418
418
|
"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])."
|
|
419
|
-
) :
|
|
420
|
-
function
|
|
421
|
-
for (var
|
|
422
|
-
if (
|
|
419
|
+
) : o("Invalid argument supplied to oneOf, expected an array.")), c;
|
|
420
|
+
function p(E, R, T, M, C) {
|
|
421
|
+
for (var O = E[R], A = 0; A < s.length; A++)
|
|
422
|
+
if (S(O, s[A]))
|
|
423
423
|
return null;
|
|
424
|
-
var W = JSON.stringify(s, function(
|
|
425
|
-
var
|
|
426
|
-
return
|
|
424
|
+
var W = JSON.stringify(s, function(U, v) {
|
|
425
|
+
var Z = V(v);
|
|
426
|
+
return Z === "symbol" ? String(v) : v;
|
|
427
427
|
});
|
|
428
|
-
return new
|
|
428
|
+
return new m("Invalid " + M + " `" + C + "` of value `" + String(O) + "` " + ("supplied to `" + T + "`, expected one of " + W + "."));
|
|
429
429
|
}
|
|
430
|
-
return P(
|
|
430
|
+
return P(p);
|
|
431
431
|
}
|
|
432
|
-
function
|
|
433
|
-
function
|
|
432
|
+
function G(s) {
|
|
433
|
+
function p(E, R, T, M, C) {
|
|
434
434
|
if (typeof s != "function")
|
|
435
|
-
return new
|
|
436
|
-
var
|
|
437
|
-
if (
|
|
438
|
-
return new
|
|
439
|
-
for (var W in
|
|
440
|
-
if (
|
|
441
|
-
var
|
|
442
|
-
if (
|
|
443
|
-
return
|
|
435
|
+
return new m("Property `" + C + "` of component `" + T + "` has invalid PropType notation inside objectOf.");
|
|
436
|
+
var O = E[R], A = Y(O);
|
|
437
|
+
if (A !== "object")
|
|
438
|
+
return new m("Invalid " + M + " `" + C + "` of type " + ("`" + A + "` supplied to `" + T + "`, expected an object."));
|
|
439
|
+
for (var W in O)
|
|
440
|
+
if (r(O, W)) {
|
|
441
|
+
var D = s(O, W, T, M, C + "." + W, t);
|
|
442
|
+
if (D instanceof Error)
|
|
443
|
+
return D;
|
|
444
444
|
}
|
|
445
445
|
return null;
|
|
446
446
|
}
|
|
447
|
-
return P(
|
|
447
|
+
return P(p);
|
|
448
448
|
}
|
|
449
|
-
function
|
|
449
|
+
function w(s) {
|
|
450
450
|
if (!Array.isArray(s))
|
|
451
|
-
return process.env.NODE_ENV !== "production" &&
|
|
452
|
-
for (var
|
|
453
|
-
var
|
|
454
|
-
if (typeof
|
|
455
|
-
return
|
|
456
|
-
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " +
|
|
451
|
+
return process.env.NODE_ENV !== "production" && o("Invalid argument supplied to oneOfType, expected an instance of array."), c;
|
|
452
|
+
for (var p = 0; p < s.length; p++) {
|
|
453
|
+
var E = s[p];
|
|
454
|
+
if (typeof E != "function")
|
|
455
|
+
return o(
|
|
456
|
+
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + N(E) + " at index " + p + "."
|
|
457
457
|
), c;
|
|
458
458
|
}
|
|
459
|
-
function
|
|
460
|
-
for (var W = [],
|
|
461
|
-
var
|
|
462
|
-
if (
|
|
459
|
+
function R(T, M, C, O, A) {
|
|
460
|
+
for (var W = [], D = 0; D < s.length; D++) {
|
|
461
|
+
var U = s[D], v = U(T, M, C, O, A, t);
|
|
462
|
+
if (v == null)
|
|
463
463
|
return null;
|
|
464
|
-
|
|
464
|
+
v.data && r(v.data, "expectedType") && W.push(v.data.expectedType);
|
|
465
465
|
}
|
|
466
|
-
var
|
|
467
|
-
return new
|
|
466
|
+
var Z = W.length > 0 ? ", expected one of type [" + W.join(", ") + "]" : "";
|
|
467
|
+
return new m("Invalid " + O + " `" + A + "` supplied to " + ("`" + C + "`" + Z + "."));
|
|
468
468
|
}
|
|
469
|
-
return P(
|
|
469
|
+
return P(R);
|
|
470
470
|
}
|
|
471
|
-
function
|
|
472
|
-
function s(
|
|
473
|
-
return
|
|
471
|
+
function _() {
|
|
472
|
+
function s(p, E, R, T, M) {
|
|
473
|
+
return K(p[E]) ? null : new m("Invalid " + T + " `" + M + "` supplied to " + ("`" + R + "`, expected a ReactNode."));
|
|
474
474
|
}
|
|
475
475
|
return P(s);
|
|
476
476
|
}
|
|
477
|
-
function B(s,
|
|
478
|
-
return new
|
|
479
|
-
(s || "React class") + ": " +
|
|
477
|
+
function B(s, p, E, R, T) {
|
|
478
|
+
return new m(
|
|
479
|
+
(s || "React class") + ": " + p + " type `" + E + "." + R + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + T + "`."
|
|
480
480
|
);
|
|
481
481
|
}
|
|
482
|
-
function
|
|
483
|
-
function
|
|
484
|
-
var
|
|
485
|
-
if (
|
|
486
|
-
return new
|
|
482
|
+
function F(s) {
|
|
483
|
+
function p(E, R, T, M, C) {
|
|
484
|
+
var O = E[R], A = Y(O);
|
|
485
|
+
if (A !== "object")
|
|
486
|
+
return new m("Invalid " + M + " `" + C + "` of type `" + A + "` " + ("supplied to `" + T + "`, expected `object`."));
|
|
487
487
|
for (var W in s) {
|
|
488
|
-
var
|
|
489
|
-
if (typeof
|
|
490
|
-
return B(
|
|
491
|
-
var
|
|
492
|
-
if (
|
|
493
|
-
return
|
|
488
|
+
var D = s[W];
|
|
489
|
+
if (typeof D != "function")
|
|
490
|
+
return B(T, M, C, W, V(D));
|
|
491
|
+
var U = D(O, W, T, M, C + "." + W, t);
|
|
492
|
+
if (U)
|
|
493
|
+
return U;
|
|
494
494
|
}
|
|
495
495
|
return null;
|
|
496
496
|
}
|
|
497
|
-
return P(
|
|
497
|
+
return P(p);
|
|
498
498
|
}
|
|
499
|
-
function
|
|
500
|
-
function
|
|
501
|
-
var
|
|
502
|
-
if (
|
|
503
|
-
return new
|
|
504
|
-
var W =
|
|
505
|
-
for (var
|
|
506
|
-
var
|
|
507
|
-
if (
|
|
508
|
-
return B(
|
|
509
|
-
if (!
|
|
510
|
-
return new
|
|
511
|
-
"Invalid " +
|
|
499
|
+
function g(s) {
|
|
500
|
+
function p(E, R, T, M, C) {
|
|
501
|
+
var O = E[R], A = Y(O);
|
|
502
|
+
if (A !== "object")
|
|
503
|
+
return new m("Invalid " + M + " `" + C + "` of type `" + A + "` " + ("supplied to `" + T + "`, expected `object`."));
|
|
504
|
+
var W = n({}, E[R], s);
|
|
505
|
+
for (var D in W) {
|
|
506
|
+
var U = s[D];
|
|
507
|
+
if (r(s, D) && typeof U != "function")
|
|
508
|
+
return B(T, M, C, D, V(U));
|
|
509
|
+
if (!U)
|
|
510
|
+
return new m(
|
|
511
|
+
"Invalid " + M + " `" + C + "` key `" + D + "` supplied to `" + T + "`.\nBad object: " + JSON.stringify(E[R], null, " ") + `
|
|
512
512
|
Valid keys: ` + JSON.stringify(Object.keys(s), null, " ")
|
|
513
513
|
);
|
|
514
|
-
var
|
|
515
|
-
if (
|
|
516
|
-
return
|
|
514
|
+
var v = U(O, D, T, M, C + "." + D, t);
|
|
515
|
+
if (v)
|
|
516
|
+
return v;
|
|
517
517
|
}
|
|
518
518
|
return null;
|
|
519
519
|
}
|
|
520
|
-
return P(
|
|
520
|
+
return P(p);
|
|
521
521
|
}
|
|
522
|
-
function
|
|
522
|
+
function K(s) {
|
|
523
523
|
switch (typeof s) {
|
|
524
524
|
case "number":
|
|
525
525
|
case "string":
|
|
@@ -529,20 +529,20 @@ Valid keys: ` + JSON.stringify(Object.keys(s), null, " ")
|
|
|
529
529
|
return !s;
|
|
530
530
|
case "object":
|
|
531
531
|
if (Array.isArray(s))
|
|
532
|
-
return s.every(
|
|
533
|
-
if (s === null ||
|
|
532
|
+
return s.every(K);
|
|
533
|
+
if (s === null || u(s))
|
|
534
534
|
return !0;
|
|
535
|
-
var
|
|
536
|
-
if (
|
|
537
|
-
var
|
|
538
|
-
if (
|
|
539
|
-
for (; !(
|
|
540
|
-
if (!
|
|
535
|
+
var p = f(s);
|
|
536
|
+
if (p) {
|
|
537
|
+
var E = p.call(s), R;
|
|
538
|
+
if (p !== s.entries) {
|
|
539
|
+
for (; !(R = E.next()).done; )
|
|
540
|
+
if (!K(R.value))
|
|
541
541
|
return !1;
|
|
542
542
|
} else
|
|
543
|
-
for (; !(
|
|
544
|
-
var
|
|
545
|
-
if (
|
|
543
|
+
for (; !(R = E.next()).done; ) {
|
|
544
|
+
var T = R.value;
|
|
545
|
+
if (T && !K(T[1]))
|
|
546
546
|
return !1;
|
|
547
547
|
}
|
|
548
548
|
} else
|
|
@@ -552,43 +552,43 @@ Valid keys: ` + JSON.stringify(Object.keys(s), null, " ")
|
|
|
552
552
|
return !1;
|
|
553
553
|
}
|
|
554
554
|
}
|
|
555
|
-
function ae(s,
|
|
556
|
-
return s === "symbol" ? !0 :
|
|
555
|
+
function ae(s, p) {
|
|
556
|
+
return s === "symbol" ? !0 : p ? p["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && p instanceof Symbol : !1;
|
|
557
557
|
}
|
|
558
|
-
function
|
|
559
|
-
var
|
|
560
|
-
return Array.isArray(s) ? "array" : s instanceof RegExp ? "object" : ae(
|
|
558
|
+
function Y(s) {
|
|
559
|
+
var p = typeof s;
|
|
560
|
+
return Array.isArray(s) ? "array" : s instanceof RegExp ? "object" : ae(p, s) ? "symbol" : p;
|
|
561
561
|
}
|
|
562
|
-
function
|
|
562
|
+
function V(s) {
|
|
563
563
|
if (typeof s > "u" || s === null)
|
|
564
564
|
return "" + s;
|
|
565
|
-
var
|
|
566
|
-
if (
|
|
565
|
+
var p = Y(s);
|
|
566
|
+
if (p === "object") {
|
|
567
567
|
if (s instanceof Date)
|
|
568
568
|
return "date";
|
|
569
569
|
if (s instanceof RegExp)
|
|
570
570
|
return "regexp";
|
|
571
571
|
}
|
|
572
|
-
return
|
|
572
|
+
return p;
|
|
573
573
|
}
|
|
574
|
-
function
|
|
575
|
-
var
|
|
576
|
-
switch (
|
|
574
|
+
function N(s) {
|
|
575
|
+
var p = V(s);
|
|
576
|
+
switch (p) {
|
|
577
577
|
case "array":
|
|
578
578
|
case "object":
|
|
579
|
-
return "an " +
|
|
579
|
+
return "an " + p;
|
|
580
580
|
case "boolean":
|
|
581
581
|
case "date":
|
|
582
582
|
case "regexp":
|
|
583
|
-
return "a " +
|
|
583
|
+
return "a " + p;
|
|
584
584
|
default:
|
|
585
|
-
return
|
|
585
|
+
return p;
|
|
586
586
|
}
|
|
587
587
|
}
|
|
588
|
-
function
|
|
588
|
+
function X(s) {
|
|
589
589
|
return !s.constructor || !s.constructor.name ? y : s.constructor.name;
|
|
590
590
|
}
|
|
591
|
-
return
|
|
591
|
+
return b.checkPropTypes = a, b.resetWarningCache = a.resetWarningCache, b.PropTypes = b, b;
|
|
592
592
|
}, ge;
|
|
593
593
|
}
|
|
594
594
|
var _e, ke;
|
|
@@ -596,61 +596,61 @@ function Ke() {
|
|
|
596
596
|
if (ke) return _e;
|
|
597
597
|
ke = 1;
|
|
598
598
|
var e = /* @__PURE__ */ xe();
|
|
599
|
-
function
|
|
599
|
+
function n() {
|
|
600
600
|
}
|
|
601
|
-
function
|
|
601
|
+
function t() {
|
|
602
602
|
}
|
|
603
|
-
return
|
|
604
|
-
function
|
|
605
|
-
if (
|
|
603
|
+
return t.resetWarningCache = n, _e = function() {
|
|
604
|
+
function r(c, u, h, i, l, f) {
|
|
605
|
+
if (f !== e) {
|
|
606
606
|
var y = new Error(
|
|
607
607
|
"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"
|
|
608
608
|
);
|
|
609
609
|
throw y.name = "Invariant Violation", y;
|
|
610
610
|
}
|
|
611
611
|
}
|
|
612
|
-
|
|
613
|
-
function
|
|
614
|
-
return
|
|
612
|
+
r.isRequired = r;
|
|
613
|
+
function a() {
|
|
614
|
+
return r;
|
|
615
615
|
}
|
|
616
|
-
var
|
|
617
|
-
array:
|
|
618
|
-
bigint:
|
|
619
|
-
bool:
|
|
620
|
-
func:
|
|
621
|
-
number:
|
|
622
|
-
object:
|
|
623
|
-
string:
|
|
624
|
-
symbol:
|
|
625
|
-
any:
|
|
626
|
-
arrayOf:
|
|
627
|
-
element:
|
|
628
|
-
elementType:
|
|
629
|
-
instanceOf:
|
|
630
|
-
node:
|
|
631
|
-
objectOf:
|
|
632
|
-
oneOf:
|
|
633
|
-
oneOfType:
|
|
634
|
-
shape:
|
|
635
|
-
exact:
|
|
636
|
-
checkPropTypes:
|
|
637
|
-
resetWarningCache:
|
|
616
|
+
var o = {
|
|
617
|
+
array: r,
|
|
618
|
+
bigint: r,
|
|
619
|
+
bool: r,
|
|
620
|
+
func: r,
|
|
621
|
+
number: r,
|
|
622
|
+
object: r,
|
|
623
|
+
string: r,
|
|
624
|
+
symbol: r,
|
|
625
|
+
any: r,
|
|
626
|
+
arrayOf: a,
|
|
627
|
+
element: r,
|
|
628
|
+
elementType: r,
|
|
629
|
+
instanceOf: a,
|
|
630
|
+
node: r,
|
|
631
|
+
objectOf: a,
|
|
632
|
+
oneOf: a,
|
|
633
|
+
oneOfType: a,
|
|
634
|
+
shape: a,
|
|
635
|
+
exact: a,
|
|
636
|
+
checkPropTypes: t,
|
|
637
|
+
resetWarningCache: n
|
|
638
638
|
};
|
|
639
|
-
return
|
|
639
|
+
return o.PropTypes = o, o;
|
|
640
640
|
}, _e;
|
|
641
641
|
}
|
|
642
642
|
var Ie;
|
|
643
643
|
function Qe() {
|
|
644
|
-
if (Ie) return
|
|
644
|
+
if (Ie) return ce.exports;
|
|
645
645
|
if (Ie = 1, process.env.NODE_ENV !== "production") {
|
|
646
|
-
var e = We(),
|
|
647
|
-
|
|
646
|
+
var e = We(), n = !0;
|
|
647
|
+
ce.exports = /* @__PURE__ */ Ge()(e.isElement, n);
|
|
648
648
|
} else
|
|
649
|
-
|
|
650
|
-
return
|
|
649
|
+
ce.exports = /* @__PURE__ */ Ke()();
|
|
650
|
+
return ce.exports;
|
|
651
651
|
}
|
|
652
|
-
function ne(e,
|
|
653
|
-
this.x = e, this.y =
|
|
652
|
+
function ne(e, n, t) {
|
|
653
|
+
this.x = e, this.y = n, this.time = t || (/* @__PURE__ */ new Date()).getTime();
|
|
654
654
|
}
|
|
655
655
|
ne.prototype.velocityFrom = function(e) {
|
|
656
656
|
return this.time !== e.time ? this.distanceTo(e) / (this.time - e.time) : 1;
|
|
@@ -661,393 +661,393 @@ ne.prototype.distanceTo = function(e) {
|
|
|
661
661
|
ne.prototype.equals = function(e) {
|
|
662
662
|
return this.x === e.x && this.y === e.y && this.time === e.time;
|
|
663
663
|
};
|
|
664
|
-
function be(e,
|
|
665
|
-
this.startPoint = e, this.control1 =
|
|
664
|
+
function be(e, n, t, r) {
|
|
665
|
+
this.startPoint = e, this.control1 = n, this.control2 = t, this.endPoint = r;
|
|
666
666
|
}
|
|
667
667
|
be.prototype.length = function() {
|
|
668
|
-
for (var e = 10,
|
|
669
|
-
var
|
|
670
|
-
if (
|
|
671
|
-
var
|
|
672
|
-
|
|
668
|
+
for (var e = 10, n = 0, t = void 0, r = void 0, a = 0; a <= e; a += 1) {
|
|
669
|
+
var o = a / e, c = this._point(o, this.startPoint.x, this.control1.x, this.control2.x, this.endPoint.x), u = this._point(o, this.startPoint.y, this.control1.y, this.control2.y, this.endPoint.y);
|
|
670
|
+
if (a > 0) {
|
|
671
|
+
var h = c - t, i = u - r;
|
|
672
|
+
n += Math.sqrt(h * h + i * i);
|
|
673
673
|
}
|
|
674
|
-
|
|
674
|
+
t = c, r = u;
|
|
675
675
|
}
|
|
676
|
-
return
|
|
676
|
+
return n;
|
|
677
677
|
};
|
|
678
|
-
be.prototype._point = function(e,
|
|
679
|
-
return
|
|
678
|
+
be.prototype._point = function(e, n, t, r, a) {
|
|
679
|
+
return n * (1 - e) * (1 - e) * (1 - e) + 3 * t * (1 - e) * (1 - e) * e + 3 * r * (1 - e) * e * e + a * e * e * e;
|
|
680
680
|
};
|
|
681
|
-
function et(e,
|
|
682
|
-
var
|
|
683
|
-
|
|
684
|
-
var
|
|
685
|
-
|
|
681
|
+
function et(e, n, t) {
|
|
682
|
+
var r, a, o, c = null, u = 0;
|
|
683
|
+
t || (t = {});
|
|
684
|
+
var h = function() {
|
|
685
|
+
u = t.leading === !1 ? 0 : Date.now(), c = null, o = e.apply(r, a), c || (r = a = null);
|
|
686
686
|
};
|
|
687
687
|
return function() {
|
|
688
688
|
var i = Date.now();
|
|
689
|
-
!
|
|
690
|
-
var l =
|
|
691
|
-
return
|
|
689
|
+
!u && t.leading === !1 && (u = i);
|
|
690
|
+
var l = n - (i - u);
|
|
691
|
+
return r = this, a = arguments, l <= 0 || l > n ? (c && (clearTimeout(c), c = null), u = i, o = e.apply(r, a), c || (r = a = null)) : !c && t.trailing !== !1 && (c = setTimeout(h, l)), o;
|
|
692
692
|
};
|
|
693
693
|
}
|
|
694
|
-
function
|
|
695
|
-
var
|
|
696
|
-
this.velocityFilterWeight =
|
|
694
|
+
function z(e, n) {
|
|
695
|
+
var t = this, r = n || {};
|
|
696
|
+
this.velocityFilterWeight = r.velocityFilterWeight || 0.7, this.minWidth = r.minWidth || 0.5, this.maxWidth = r.maxWidth || 2.5, this.throttle = "throttle" in r ? r.throttle : 16, this.minDistance = "minDistance" in r ? r.minDistance : 5, this.throttle ? this._strokeMoveUpdate = et(z.prototype._strokeUpdate, this.throttle) : this._strokeMoveUpdate = z.prototype._strokeUpdate, this.dotSize = r.dotSize || function() {
|
|
697
697
|
return (this.minWidth + this.maxWidth) / 2;
|
|
698
|
-
}, this.penColor =
|
|
699
|
-
|
|
700
|
-
}, this._handleMouseMove = function(
|
|
701
|
-
|
|
702
|
-
}, this._handleMouseUp = function(
|
|
703
|
-
|
|
704
|
-
}, this._handleTouchStart = function(
|
|
705
|
-
if (
|
|
706
|
-
var
|
|
707
|
-
|
|
698
|
+
}, this.penColor = r.penColor || "black", this.backgroundColor = r.backgroundColor || "rgba(0,0,0,0)", this.onBegin = r.onBegin, this.onEnd = r.onEnd, this._canvas = e, this._ctx = e.getContext("2d"), this.clear(), this._handleMouseDown = function(a) {
|
|
699
|
+
a.which === 1 && (t._mouseButtonDown = !0, t._strokeBegin(a));
|
|
700
|
+
}, this._handleMouseMove = function(a) {
|
|
701
|
+
t._mouseButtonDown && t._strokeMoveUpdate(a);
|
|
702
|
+
}, this._handleMouseUp = function(a) {
|
|
703
|
+
a.which === 1 && t._mouseButtonDown && (t._mouseButtonDown = !1, t._strokeEnd(a));
|
|
704
|
+
}, this._handleTouchStart = function(a) {
|
|
705
|
+
if (a.targetTouches.length === 1) {
|
|
706
|
+
var o = a.changedTouches[0];
|
|
707
|
+
t._strokeBegin(o);
|
|
708
708
|
}
|
|
709
|
-
}, this._handleTouchMove = function(
|
|
710
|
-
|
|
711
|
-
var
|
|
712
|
-
|
|
713
|
-
}, this._handleTouchEnd = function(
|
|
714
|
-
var
|
|
715
|
-
|
|
709
|
+
}, this._handleTouchMove = function(a) {
|
|
710
|
+
a.preventDefault();
|
|
711
|
+
var o = a.targetTouches[0];
|
|
712
|
+
t._strokeMoveUpdate(o);
|
|
713
|
+
}, this._handleTouchEnd = function(a) {
|
|
714
|
+
var o = a.target === t._canvas;
|
|
715
|
+
o && (a.preventDefault(), t._strokeEnd(a));
|
|
716
716
|
}, this.on();
|
|
717
717
|
}
|
|
718
|
-
|
|
719
|
-
var e = this._ctx,
|
|
720
|
-
e.fillStyle = this.backgroundColor, e.clearRect(0, 0,
|
|
718
|
+
z.prototype.clear = function() {
|
|
719
|
+
var e = this._ctx, n = this._canvas;
|
|
720
|
+
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;
|
|
721
721
|
};
|
|
722
|
-
|
|
723
|
-
var
|
|
724
|
-
this._reset(),
|
|
725
|
-
|
|
722
|
+
z.prototype.fromDataURL = function(e) {
|
|
723
|
+
var n = this, t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r = new Image(), a = t.ratio || window.devicePixelRatio || 1, o = t.width || this._canvas.width / a, c = t.height || this._canvas.height / a;
|
|
724
|
+
this._reset(), r.src = e, r.onload = function() {
|
|
725
|
+
n._ctx.drawImage(r, 0, 0, o, c);
|
|
726
726
|
}, this._isEmpty = !1;
|
|
727
727
|
};
|
|
728
|
-
|
|
729
|
-
var
|
|
728
|
+
z.prototype.toDataURL = function(e) {
|
|
729
|
+
var n;
|
|
730
730
|
switch (e) {
|
|
731
731
|
case "image/svg+xml":
|
|
732
732
|
return this._toSVG();
|
|
733
733
|
default:
|
|
734
|
-
for (var
|
|
735
|
-
|
|
736
|
-
return (
|
|
734
|
+
for (var t = arguments.length, r = Array(t > 1 ? t - 1 : 0), a = 1; a < t; a++)
|
|
735
|
+
r[a - 1] = arguments[a];
|
|
736
|
+
return (n = this._canvas).toDataURL.apply(n, [e].concat(r));
|
|
737
737
|
}
|
|
738
738
|
};
|
|
739
|
-
|
|
739
|
+
z.prototype.on = function() {
|
|
740
740
|
this._handleMouseEvents(), this._handleTouchEvents();
|
|
741
741
|
};
|
|
742
|
-
|
|
742
|
+
z.prototype.off = function() {
|
|
743
743
|
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);
|
|
744
744
|
};
|
|
745
|
-
|
|
745
|
+
z.prototype.isEmpty = function() {
|
|
746
746
|
return this._isEmpty;
|
|
747
747
|
};
|
|
748
|
-
|
|
748
|
+
z.prototype._strokeBegin = function(e) {
|
|
749
749
|
this._data.push([]), this._reset(), this._strokeUpdate(e), typeof this.onBegin == "function" && this.onBegin(e);
|
|
750
750
|
};
|
|
751
|
-
|
|
752
|
-
var
|
|
753
|
-
if (!(
|
|
754
|
-
var
|
|
755
|
-
|
|
756
|
-
x:
|
|
757
|
-
y:
|
|
758
|
-
time:
|
|
751
|
+
z.prototype._strokeUpdate = function(e) {
|
|
752
|
+
var n = e.clientX, t = e.clientY, r = this._createPoint(n, t), a = this._data[this._data.length - 1], o = a && a[a.length - 1], c = o && r.distanceTo(o) < this.minDistance;
|
|
753
|
+
if (!(o && c)) {
|
|
754
|
+
var u = this._addPoint(r), h = u.curve, i = u.widths;
|
|
755
|
+
h && i && this._drawCurve(h, i.start, i.end), this._data[this._data.length - 1].push({
|
|
756
|
+
x: r.x,
|
|
757
|
+
y: r.y,
|
|
758
|
+
time: r.time,
|
|
759
759
|
color: this.penColor
|
|
760
760
|
});
|
|
761
761
|
}
|
|
762
762
|
};
|
|
763
|
-
|
|
764
|
-
var
|
|
765
|
-
if (!
|
|
766
|
-
var
|
|
767
|
-
|
|
768
|
-
x:
|
|
769
|
-
y:
|
|
770
|
-
time:
|
|
763
|
+
z.prototype._strokeEnd = function(e) {
|
|
764
|
+
var n = this.points.length > 2, t = this.points[0];
|
|
765
|
+
if (!n && t && this._drawDot(t), t) {
|
|
766
|
+
var r = this._data[this._data.length - 1], a = r[r.length - 1];
|
|
767
|
+
t.equals(a) || r.push({
|
|
768
|
+
x: t.x,
|
|
769
|
+
y: t.y,
|
|
770
|
+
time: t.time,
|
|
771
771
|
color: this.penColor
|
|
772
772
|
});
|
|
773
773
|
}
|
|
774
774
|
typeof this.onEnd == "function" && this.onEnd(e);
|
|
775
775
|
};
|
|
776
|
-
|
|
776
|
+
z.prototype._handleMouseEvents = function() {
|
|
777
777
|
this._mouseButtonDown = !1, this._canvas.addEventListener("mousedown", this._handleMouseDown), this._canvas.addEventListener("mousemove", this._handleMouseMove), document.addEventListener("mouseup", this._handleMouseUp);
|
|
778
778
|
};
|
|
779
|
-
|
|
779
|
+
z.prototype._handleTouchEvents = function() {
|
|
780
780
|
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);
|
|
781
781
|
};
|
|
782
|
-
|
|
782
|
+
z.prototype._reset = function() {
|
|
783
783
|
this.points = [], this._lastVelocity = 0, this._lastWidth = (this.minWidth + this.maxWidth) / 2, this._ctx.fillStyle = this.penColor;
|
|
784
784
|
};
|
|
785
|
-
|
|
786
|
-
var
|
|
787
|
-
return new ne(e -
|
|
785
|
+
z.prototype._createPoint = function(e, n, t) {
|
|
786
|
+
var r = this._canvas.getBoundingClientRect();
|
|
787
|
+
return new ne(e - r.left, n - r.top, t || (/* @__PURE__ */ new Date()).getTime());
|
|
788
788
|
};
|
|
789
|
-
|
|
790
|
-
var
|
|
791
|
-
if (
|
|
792
|
-
|
|
793
|
-
var
|
|
794
|
-
|
|
795
|
-
var
|
|
796
|
-
return
|
|
789
|
+
z.prototype._addPoint = function(e) {
|
|
790
|
+
var n = this.points, t = void 0;
|
|
791
|
+
if (n.push(e), n.length > 2) {
|
|
792
|
+
n.length === 3 && n.unshift(n[0]), t = this._calculateCurveControlPoints(n[0], n[1], n[2]);
|
|
793
|
+
var r = t.c2;
|
|
794
|
+
t = this._calculateCurveControlPoints(n[1], n[2], n[3]);
|
|
795
|
+
var a = t.c1, o = new be(n[1], r, a, n[2]), c = this._calculateCurveWidths(o);
|
|
796
|
+
return n.shift(), { curve: o, widths: c };
|
|
797
797
|
}
|
|
798
798
|
return {};
|
|
799
799
|
};
|
|
800
|
-
|
|
801
|
-
var
|
|
800
|
+
z.prototype._calculateCurveControlPoints = function(e, n, t) {
|
|
801
|
+
var r = e.x - n.x, a = e.y - n.y, o = n.x - t.x, c = n.y - t.y, u = { x: (e.x + n.x) / 2, y: (e.y + n.y) / 2 }, h = { x: (n.x + t.x) / 2, y: (n.y + t.y) / 2 }, i = Math.sqrt(r * r + a * a), l = Math.sqrt(o * o + c * c), f = u.x - h.x, y = u.y - h.y, b = l / (i + l), S = { x: h.x + f * b, y: h.y + y * b }, m = n.x - S.x, P = n.y - S.y;
|
|
802
802
|
return {
|
|
803
|
-
c1: new ne(
|
|
804
|
-
c2: new ne(
|
|
803
|
+
c1: new ne(u.x + m, u.y + P),
|
|
804
|
+
c2: new ne(h.x + m, h.y + P)
|
|
805
805
|
};
|
|
806
806
|
};
|
|
807
|
-
|
|
808
|
-
var
|
|
809
|
-
return
|
|
807
|
+
z.prototype._calculateCurveWidths = function(e) {
|
|
808
|
+
var n = e.startPoint, t = e.endPoint, r = { start: null, end: null }, a = this.velocityFilterWeight * t.velocityFrom(n) + (1 - this.velocityFilterWeight) * this._lastVelocity, o = this._strokeWidth(a);
|
|
809
|
+
return r.start = this._lastWidth, r.end = o, this._lastVelocity = a, this._lastWidth = o, r;
|
|
810
810
|
};
|
|
811
|
-
|
|
811
|
+
z.prototype._strokeWidth = function(e) {
|
|
812
812
|
return Math.max(this.maxWidth / (e + 1), this.minWidth);
|
|
813
813
|
};
|
|
814
|
-
|
|
815
|
-
var
|
|
816
|
-
|
|
814
|
+
z.prototype._drawPoint = function(e, n, t) {
|
|
815
|
+
var r = this._ctx;
|
|
816
|
+
r.moveTo(e, n), r.arc(e, n, t, 0, 2 * Math.PI, !1), this._isEmpty = !1;
|
|
817
817
|
};
|
|
818
|
-
|
|
819
|
-
var
|
|
820
|
-
|
|
821
|
-
for (var c = 0; c <
|
|
822
|
-
var
|
|
823
|
-
|
|
824
|
-
var
|
|
825
|
-
|
|
826
|
-
var
|
|
827
|
-
this._drawPoint(
|
|
818
|
+
z.prototype._drawCurve = function(e, n, t) {
|
|
819
|
+
var r = this._ctx, a = t - n, o = Math.floor(e.length());
|
|
820
|
+
r.beginPath();
|
|
821
|
+
for (var c = 0; c < o; c += 1) {
|
|
822
|
+
var u = c / o, h = u * u, i = h * u, l = 1 - u, f = l * l, y = f * l, b = y * e.startPoint.x;
|
|
823
|
+
b += 3 * f * u * e.control1.x, b += 3 * l * h * e.control2.x, b += i * e.endPoint.x;
|
|
824
|
+
var S = y * e.startPoint.y;
|
|
825
|
+
S += 3 * f * u * e.control1.y, S += 3 * l * h * e.control2.y, S += i * e.endPoint.y;
|
|
826
|
+
var m = n + i * a;
|
|
827
|
+
this._drawPoint(b, S, m);
|
|
828
828
|
}
|
|
829
|
-
|
|
829
|
+
r.closePath(), r.fill();
|
|
830
830
|
};
|
|
831
|
-
|
|
832
|
-
var
|
|
833
|
-
|
|
831
|
+
z.prototype._drawDot = function(e) {
|
|
832
|
+
var n = this._ctx, t = typeof this.dotSize == "function" ? this.dotSize() : this.dotSize;
|
|
833
|
+
n.beginPath(), this._drawPoint(e.x, e.y, t), n.closePath(), n.fill();
|
|
834
834
|
};
|
|
835
|
-
|
|
836
|
-
for (var
|
|
837
|
-
var
|
|
838
|
-
if (
|
|
839
|
-
for (var
|
|
840
|
-
var c =
|
|
841
|
-
if (
|
|
842
|
-
this.penColor =
|
|
843
|
-
else if (
|
|
844
|
-
var i = this._addPoint(
|
|
845
|
-
l &&
|
|
835
|
+
z.prototype._fromData = function(e, n, t) {
|
|
836
|
+
for (var r = 0; r < e.length; r += 1) {
|
|
837
|
+
var a = e[r];
|
|
838
|
+
if (a.length > 1)
|
|
839
|
+
for (var o = 0; o < a.length; o += 1) {
|
|
840
|
+
var c = a[o], u = new ne(c.x, c.y, c.time), h = c.color;
|
|
841
|
+
if (o === 0)
|
|
842
|
+
this.penColor = h, this._reset(), this._addPoint(u);
|
|
843
|
+
else if (o !== a.length - 1) {
|
|
844
|
+
var i = this._addPoint(u), l = i.curve, f = i.widths;
|
|
845
|
+
l && f && n(l, f, h);
|
|
846
846
|
}
|
|
847
847
|
}
|
|
848
848
|
else {
|
|
849
849
|
this._reset();
|
|
850
|
-
var y =
|
|
851
|
-
|
|
850
|
+
var y = a[0];
|
|
851
|
+
t(y);
|
|
852
852
|
}
|
|
853
853
|
}
|
|
854
854
|
};
|
|
855
|
-
|
|
856
|
-
var e = this,
|
|
857
|
-
|
|
858
|
-
var
|
|
855
|
+
z.prototype._toSVG = function() {
|
|
856
|
+
var e = this, n = this._data, t = this._canvas, r = Math.max(window.devicePixelRatio || 1, 1), a = 0, o = 0, c = t.width / r, u = t.height / r, h = document.createElementNS("http://www.w3.org/2000/svg", "svg");
|
|
857
|
+
h.setAttributeNS(null, "width", t.width), h.setAttributeNS(null, "height", t.height), this._fromData(n, function(x, L, $) {
|
|
858
|
+
var k = document.createElement("path");
|
|
859
859
|
if (!isNaN(x.control1.x) && !isNaN(x.control1.y) && !isNaN(x.control2.x) && !isNaN(x.control2.y)) {
|
|
860
|
-
var
|
|
861
|
-
|
|
860
|
+
var d = "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));
|
|
861
|
+
k.setAttribute("d", d), k.setAttribute("stroke-width", (L.end * 2.25).toFixed(3)), k.setAttribute("stroke", $), k.setAttribute("fill", "none"), k.setAttribute("stroke-linecap", "round"), h.appendChild(k);
|
|
862
862
|
}
|
|
863
863
|
}, function(x) {
|
|
864
|
-
var
|
|
865
|
-
|
|
864
|
+
var L = document.createElement("circle"), $ = typeof e.dotSize == "function" ? e.dotSize() : e.dotSize;
|
|
865
|
+
L.setAttribute("r", $), L.setAttribute("cx", x.x), L.setAttribute("cy", x.y), L.setAttribute("fill", x.color), h.appendChild(L);
|
|
866
866
|
});
|
|
867
|
-
var i = "data:image/svg+xml;base64,", l = '<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"' + (' viewBox="' +
|
|
868
|
-
if (
|
|
869
|
-
var y = document.createElement("dummy"),
|
|
867
|
+
var i = "data:image/svg+xml;base64,", l = '<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"' + (' viewBox="' + a + " " + o + " " + c + " " + u + '"') + (' width="' + c + '"') + (' height="' + u + '"') + ">", f = h.innerHTML;
|
|
868
|
+
if (f === void 0) {
|
|
869
|
+
var y = document.createElement("dummy"), b = h.childNodes;
|
|
870
870
|
y.innerHTML = "";
|
|
871
|
-
for (var
|
|
872
|
-
y.appendChild(
|
|
873
|
-
|
|
871
|
+
for (var S = 0; S < b.length; S += 1)
|
|
872
|
+
y.appendChild(b[S].cloneNode(!0));
|
|
873
|
+
f = y.innerHTML;
|
|
874
874
|
}
|
|
875
|
-
var
|
|
875
|
+
var m = "</svg>", P = l + f + m;
|
|
876
876
|
return i + btoa(P);
|
|
877
877
|
};
|
|
878
|
-
|
|
879
|
-
var
|
|
880
|
-
this.clear(), this._fromData(e, function(
|
|
881
|
-
return
|
|
882
|
-
}, function(
|
|
883
|
-
return
|
|
878
|
+
z.prototype.fromData = function(e) {
|
|
879
|
+
var n = this;
|
|
880
|
+
this.clear(), this._fromData(e, function(t, r) {
|
|
881
|
+
return n._drawCurve(t, r.start, r.end);
|
|
882
|
+
}, function(t) {
|
|
883
|
+
return n._drawDot(t);
|
|
884
884
|
}), this._data = e;
|
|
885
885
|
};
|
|
886
|
-
|
|
886
|
+
z.prototype.toData = function() {
|
|
887
887
|
return this._data;
|
|
888
888
|
};
|
|
889
889
|
const tt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
890
890
|
__proto__: null,
|
|
891
|
-
default:
|
|
891
|
+
default: z
|
|
892
892
|
}, Symbol.toStringTag, { value: "Module" })), rt = /* @__PURE__ */ qe(tt);
|
|
893
|
-
var
|
|
893
|
+
var de = { exports: {} }, nt = de.exports, je;
|
|
894
894
|
function at() {
|
|
895
|
-
return je || (je = 1, (function(e,
|
|
896
|
-
(function(
|
|
897
|
-
e.exports =
|
|
895
|
+
return je || (je = 1, (function(e, n) {
|
|
896
|
+
(function(t, r) {
|
|
897
|
+
e.exports = r();
|
|
898
898
|
})(nt, function() {
|
|
899
|
-
return (function(
|
|
900
|
-
function
|
|
901
|
-
if (
|
|
902
|
-
var c =
|
|
903
|
-
return
|
|
899
|
+
return (function(t) {
|
|
900
|
+
function r(o) {
|
|
901
|
+
if (a[o]) return a[o].exports;
|
|
902
|
+
var c = a[o] = { exports: {}, id: o, loaded: !1 };
|
|
903
|
+
return t[o].call(c.exports, c, c.exports, r), c.loaded = !0, c.exports;
|
|
904
904
|
}
|
|
905
|
-
var
|
|
906
|
-
return
|
|
907
|
-
})([function(
|
|
908
|
-
function
|
|
909
|
-
var l = i.getContext("2d"),
|
|
910
|
-
return i.width =
|
|
905
|
+
var a = {};
|
|
906
|
+
return r.m = t, r.c = a, r.p = "", r(0);
|
|
907
|
+
})([function(t, r) {
|
|
908
|
+
function a(i) {
|
|
909
|
+
var l = i.getContext("2d"), f = i.width, y = i.height, b = l.getImageData(0, 0, f, y).data, S = u(!0, f, y, b), m = u(!1, f, y, b), P = h(!0, f, y, b), x = h(!1, f, y, b), L = x - P + 1, $ = m - S + 1, k = l.getImageData(P, S, L, $);
|
|
910
|
+
return i.width = L, i.height = $, l.clearRect(0, 0, L, $), l.putImageData(k, 0, 0), i;
|
|
911
911
|
}
|
|
912
|
-
function
|
|
913
|
-
return { red: y[4 * (
|
|
912
|
+
function o(i, l, f, y) {
|
|
913
|
+
return { red: y[4 * (f * l + i)], green: y[4 * (f * l + i) + 1], blue: y[4 * (f * l + i) + 2], alpha: y[4 * (f * l + i) + 3] };
|
|
914
914
|
}
|
|
915
|
-
function c(i, l,
|
|
916
|
-
return
|
|
915
|
+
function c(i, l, f, y) {
|
|
916
|
+
return o(i, l, f, y).alpha;
|
|
917
917
|
}
|
|
918
|
-
function
|
|
919
|
-
for (var
|
|
918
|
+
function u(i, l, f, y) {
|
|
919
|
+
for (var b = i ? 1 : -1, S = i ? 0 : f - 1, m = S; i ? m < f : m > -1; m += b) for (var P = 0; P < l; P++) if (c(P, m, l, y)) return m;
|
|
920
920
|
return null;
|
|
921
921
|
}
|
|
922
|
-
function
|
|
923
|
-
for (var
|
|
922
|
+
function h(i, l, f, y) {
|
|
923
|
+
for (var b = i ? 1 : -1, S = i ? 0 : l - 1, m = S; i ? m < l : m > -1; m += b) for (var P = 0; P < f; P++) if (c(m, P, l, y)) return m;
|
|
924
924
|
return null;
|
|
925
925
|
}
|
|
926
|
-
Object.defineProperty(
|
|
926
|
+
Object.defineProperty(r, "__esModule", { value: !0 }), r.default = a;
|
|
927
927
|
}]);
|
|
928
928
|
});
|
|
929
|
-
})(
|
|
929
|
+
})(de)), de.exports;
|
|
930
930
|
}
|
|
931
|
-
var ot =
|
|
931
|
+
var ot = fe.exports, $e;
|
|
932
932
|
function it() {
|
|
933
|
-
return $e || ($e = 1, (function(e,
|
|
934
|
-
(function(
|
|
935
|
-
e.exports =
|
|
936
|
-
})(ot, function(
|
|
933
|
+
return $e || ($e = 1, (function(e, n) {
|
|
934
|
+
(function(t, r) {
|
|
935
|
+
e.exports = r(/* @__PURE__ */ Qe(), ze, rt, at());
|
|
936
|
+
})(ot, function(t, r, a, o) {
|
|
937
937
|
return (function(c) {
|
|
938
|
-
function
|
|
939
|
-
if (
|
|
940
|
-
var l =
|
|
941
|
-
return c[i].call(l.exports, l, l.exports,
|
|
938
|
+
function u(i) {
|
|
939
|
+
if (h[i]) return h[i].exports;
|
|
940
|
+
var l = h[i] = { exports: {}, id: i, loaded: !1 };
|
|
941
|
+
return c[i].call(l.exports, l, l.exports, u), l.loaded = !0, l.exports;
|
|
942
942
|
}
|
|
943
|
-
var
|
|
944
|
-
return
|
|
945
|
-
})([function(c,
|
|
946
|
-
function i(
|
|
947
|
-
return
|
|
943
|
+
var h = {};
|
|
944
|
+
return u.m = c, u.c = h, u.p = "", u(0);
|
|
945
|
+
})([function(c, u, h) {
|
|
946
|
+
function i(w) {
|
|
947
|
+
return w && w.__esModule ? w : { default: w };
|
|
948
948
|
}
|
|
949
|
-
function l(
|
|
949
|
+
function l(w, _) {
|
|
950
950
|
var B = {};
|
|
951
|
-
for (var
|
|
951
|
+
for (var F in w) _.indexOf(F) >= 0 || Object.prototype.hasOwnProperty.call(w, F) && (B[F] = w[F]);
|
|
952
952
|
return B;
|
|
953
953
|
}
|
|
954
|
-
function
|
|
955
|
-
if (!(
|
|
954
|
+
function f(w, _) {
|
|
955
|
+
if (!(w instanceof _)) throw new TypeError("Cannot call a class as a function");
|
|
956
956
|
}
|
|
957
|
-
function y(
|
|
958
|
-
if (!
|
|
959
|
-
return !
|
|
957
|
+
function y(w, _) {
|
|
958
|
+
if (!w) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
959
|
+
return !_ || typeof _ != "object" && typeof _ != "function" ? w : _;
|
|
960
960
|
}
|
|
961
|
-
function
|
|
962
|
-
if (typeof
|
|
963
|
-
|
|
961
|
+
function b(w, _) {
|
|
962
|
+
if (typeof _ != "function" && _ !== null) throw new TypeError("Super expression must either be null or a function, not " + typeof _);
|
|
963
|
+
w.prototype = Object.create(_ && _.prototype, { constructor: { value: w, enumerable: !1, writable: !0, configurable: !0 } }), _ && (Object.setPrototypeOf ? Object.setPrototypeOf(w, _) : w.__proto__ = _);
|
|
964
964
|
}
|
|
965
|
-
Object.defineProperty(
|
|
966
|
-
var
|
|
967
|
-
for (var
|
|
968
|
-
var B = arguments[
|
|
969
|
-
for (var
|
|
965
|
+
Object.defineProperty(u, "__esModule", { value: !0 });
|
|
966
|
+
var S = Object.assign || function(w) {
|
|
967
|
+
for (var _ = 1; _ < arguments.length; _++) {
|
|
968
|
+
var B = arguments[_];
|
|
969
|
+
for (var F in B) Object.prototype.hasOwnProperty.call(B, F) && (w[F] = B[F]);
|
|
970
970
|
}
|
|
971
|
-
return
|
|
972
|
-
},
|
|
973
|
-
function
|
|
974
|
-
for (var
|
|
975
|
-
var
|
|
976
|
-
|
|
971
|
+
return w;
|
|
972
|
+
}, m = /* @__PURE__ */ (function() {
|
|
973
|
+
function w(_, B) {
|
|
974
|
+
for (var F = 0; F < B.length; F++) {
|
|
975
|
+
var g = B[F];
|
|
976
|
+
g.enumerable = g.enumerable || !1, g.configurable = !0, "value" in g && (g.writable = !0), Object.defineProperty(_, g.key, g);
|
|
977
977
|
}
|
|
978
978
|
}
|
|
979
|
-
return function(
|
|
980
|
-
return B &&
|
|
979
|
+
return function(_, B, F) {
|
|
980
|
+
return B && w(_.prototype, B), F && w(_, F), _;
|
|
981
981
|
};
|
|
982
|
-
})(), P =
|
|
983
|
-
function
|
|
984
|
-
var B,
|
|
985
|
-
|
|
986
|
-
for (var ae = arguments.length,
|
|
987
|
-
return
|
|
988
|
-
var
|
|
989
|
-
return
|
|
990
|
-
},
|
|
991
|
-
return
|
|
992
|
-
},
|
|
993
|
-
var
|
|
994
|
-
return
|
|
995
|
-
},
|
|
996
|
-
return
|
|
997
|
-
},
|
|
998
|
-
|
|
999
|
-
},
|
|
1000
|
-
var
|
|
1001
|
-
if (!
|
|
1002
|
-
var
|
|
1003
|
-
|
|
982
|
+
})(), P = h(1), x = i(P), L = h(2), $ = i(L), k = h(3), d = i(k), J = h(4), ee = i(J), G = (function(w) {
|
|
983
|
+
function _() {
|
|
984
|
+
var B, F, g, K;
|
|
985
|
+
f(this, _);
|
|
986
|
+
for (var ae = arguments.length, Y = Array(ae), V = 0; V < ae; V++) Y[V] = arguments[V];
|
|
987
|
+
return F = g = y(this, (B = _.__proto__ || Object.getPrototypeOf(_)).call.apply(B, [this].concat(Y))), g._sigPad = null, g._excludeOurProps = function() {
|
|
988
|
+
var N = g.props, X = (N.canvasProps, N.clearOnResize, l(N, ["canvasProps", "clearOnResize"]));
|
|
989
|
+
return X;
|
|
990
|
+
}, g.getCanvas = function() {
|
|
991
|
+
return g._canvas;
|
|
992
|
+
}, g.getTrimmedCanvas = function() {
|
|
993
|
+
var N = document.createElement("canvas");
|
|
994
|
+
return N.width = g._canvas.width, N.height = g._canvas.height, N.getContext("2d").drawImage(g._canvas, 0, 0), (0, ee.default)(N);
|
|
995
|
+
}, g.getSignaturePad = function() {
|
|
996
|
+
return g._sigPad;
|
|
997
|
+
}, g._checkClearOnResize = function() {
|
|
998
|
+
g.props.clearOnResize && g._resizeCanvas();
|
|
999
|
+
}, g._resizeCanvas = function() {
|
|
1000
|
+
var N = g.props.canvasProps || {}, X = N.width, s = N.height;
|
|
1001
|
+
if (!X || !s) {
|
|
1002
|
+
var p = g._canvas, E = Math.max(window.devicePixelRatio || 1, 1);
|
|
1003
|
+
X || (p.width = p.offsetWidth * E), s || (p.height = p.offsetHeight * E), p.getContext("2d").scale(E, E), g.clear();
|
|
1004
1004
|
}
|
|
1005
|
-
},
|
|
1006
|
-
return window.addEventListener("resize",
|
|
1007
|
-
},
|
|
1008
|
-
return window.removeEventListener("resize",
|
|
1009
|
-
},
|
|
1010
|
-
return
|
|
1011
|
-
},
|
|
1012
|
-
return
|
|
1013
|
-
},
|
|
1014
|
-
return
|
|
1015
|
-
},
|
|
1016
|
-
return
|
|
1017
|
-
},
|
|
1018
|
-
return
|
|
1019
|
-
},
|
|
1020
|
-
return
|
|
1021
|
-
},
|
|
1005
|
+
}, g.on = function() {
|
|
1006
|
+
return window.addEventListener("resize", g._checkClearOnResize), g._sigPad.on();
|
|
1007
|
+
}, g.off = function() {
|
|
1008
|
+
return window.removeEventListener("resize", g._checkClearOnResize), g._sigPad.off();
|
|
1009
|
+
}, g.clear = function() {
|
|
1010
|
+
return g._sigPad.clear();
|
|
1011
|
+
}, g.isEmpty = function() {
|
|
1012
|
+
return g._sigPad.isEmpty();
|
|
1013
|
+
}, g.fromDataURL = function(N, X) {
|
|
1014
|
+
return g._sigPad.fromDataURL(N, X);
|
|
1015
|
+
}, g.toDataURL = function(N, X) {
|
|
1016
|
+
return g._sigPad.toDataURL(N, X);
|
|
1017
|
+
}, g.fromData = function(N) {
|
|
1018
|
+
return g._sigPad.fromData(N);
|
|
1019
|
+
}, g.toData = function() {
|
|
1020
|
+
return g._sigPad.toData();
|
|
1021
|
+
}, K = F, y(g, K);
|
|
1022
1022
|
}
|
|
1023
|
-
return
|
|
1024
|
-
this._sigPad = new
|
|
1023
|
+
return b(_, w), m(_, [{ key: "componentDidMount", value: function() {
|
|
1024
|
+
this._sigPad = new d.default(this._canvas, this._excludeOurProps()), this._resizeCanvas(), this.on();
|
|
1025
1025
|
} }, { key: "componentWillUnmount", value: function() {
|
|
1026
1026
|
this.off();
|
|
1027
1027
|
} }, { key: "componentDidUpdate", value: function() {
|
|
1028
1028
|
Object.assign(this._sigPad, this._excludeOurProps());
|
|
1029
1029
|
} }, { key: "render", value: function() {
|
|
1030
|
-
var B = this,
|
|
1031
|
-
return $.default.createElement("canvas",
|
|
1032
|
-
B._canvas =
|
|
1033
|
-
} },
|
|
1034
|
-
} }]),
|
|
1035
|
-
})(
|
|
1036
|
-
|
|
1037
|
-
}, function(c,
|
|
1038
|
-
c.exports = r;
|
|
1039
|
-
}, function(c, o) {
|
|
1030
|
+
var B = this, F = this.props.canvasProps;
|
|
1031
|
+
return $.default.createElement("canvas", S({ ref: function(g) {
|
|
1032
|
+
B._canvas = g;
|
|
1033
|
+
} }, F));
|
|
1034
|
+
} }]), _;
|
|
1035
|
+
})(L.Component);
|
|
1036
|
+
G.propTypes = { velocityFilterWeight: x.default.number, minWidth: x.default.number, maxWidth: x.default.number, minDistance: x.default.number, dotSize: x.default.oneOfType([x.default.number, x.default.func]), penColor: x.default.string, throttle: x.default.number, onEnd: x.default.func, onBegin: x.default.func, canvasProps: x.default.object, clearOnResize: x.default.bool }, G.defaultProps = { clearOnResize: !0 }, u.default = G;
|
|
1037
|
+
}, function(c, u) {
|
|
1040
1038
|
c.exports = t;
|
|
1041
|
-
}, function(c,
|
|
1042
|
-
c.exports =
|
|
1043
|
-
}, function(c,
|
|
1044
|
-
c.exports =
|
|
1039
|
+
}, function(c, u) {
|
|
1040
|
+
c.exports = r;
|
|
1041
|
+
}, function(c, u) {
|
|
1042
|
+
c.exports = a;
|
|
1043
|
+
}, function(c, u) {
|
|
1044
|
+
c.exports = o;
|
|
1045
1045
|
}]);
|
|
1046
1046
|
});
|
|
1047
|
-
})(
|
|
1047
|
+
})(fe)), fe.exports;
|
|
1048
1048
|
}
|
|
1049
1049
|
var st = it();
|
|
1050
|
-
const ut = /* @__PURE__ */ Be(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",
|
|
1050
|
+
const ut = /* @__PURE__ */ Be(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", H = {
|
|
1051
1051
|
Signature: ct,
|
|
1052
1052
|
SignatureMain: lt,
|
|
1053
1053
|
SignatureMainAuto: ft,
|
|
@@ -1062,65 +1062,61 @@ const ut = /* @__PURE__ */ Be(st), ct = "_Signature_mhdg5_1", lt = "_SignatureMa
|
|
|
1062
1062
|
SignatureAutoPanelNoteIcon: xt,
|
|
1063
1063
|
SignatureAutoPanelButton: bt
|
|
1064
1064
|
}, kt = (e) => {
|
|
1065
|
-
const {
|
|
1066
|
-
o &&
|
|
1067
|
-
width: +
|
|
1068
|
-
height: +
|
|
1065
|
+
const { value: n, onChange: t, className: r = "" } = e, a = Fe(null), [o, c] = oe(null), [u, h] = oe(!0), [i, l] = oe(n), [f, y] = oe(""), [b, S] = oe("auto-generated"), { width: m = 0, height: P = 0 } = Ne({ ref: a, box: "border-box" }), x = u ? "auto-generated" : b === "manual-drawn" ? "manual-drawn" : f ? "manual-stored" : "manual-blank", L = te(() => {
|
|
1066
|
+
o && m && P && f && o.fromDataURL(f, {
|
|
1067
|
+
width: +m.toFixed(),
|
|
1068
|
+
height: +P.toFixed()
|
|
1069
1069
|
});
|
|
1070
|
-
}, [o,
|
|
1070
|
+
}, [o, m, P, f]), $ = te(() => {
|
|
1071
1071
|
if (o) {
|
|
1072
|
-
const
|
|
1073
|
-
|
|
1072
|
+
const _ = o.getCanvas().toDataURL("image/png");
|
|
1073
|
+
S("manual-drawn"), y(_), t(_);
|
|
1074
1074
|
}
|
|
1075
|
-
}, [o,
|
|
1076
|
-
o && (o.clear(),
|
|
1077
|
-
}, [o,
|
|
1078
|
-
|
|
1079
|
-
}, [
|
|
1080
|
-
|
|
1081
|
-
}, [
|
|
1082
|
-
|
|
1083
|
-
}, [t
|
|
1084
|
-
|
|
1085
|
-
}, [
|
|
1075
|
+
}, [o, t]), k = te(() => {
|
|
1076
|
+
o && (o.clear(), y(""), t(""));
|
|
1077
|
+
}, [o, t]), d = te(() => {
|
|
1078
|
+
h(!0), S("auto-generated"), i && t(i);
|
|
1079
|
+
}, [i, t]), J = te(() => {
|
|
1080
|
+
h(!1), S(f ? "manual-stored" : "manual-blank"), f ? (t(f), setTimeout(L, 0)) : t("");
|
|
1081
|
+
}, [f, t, L]), ee = te(() => {
|
|
1082
|
+
h(!1), S("manual-blank"), y(""), t("");
|
|
1083
|
+
}, [t]), G = te(() => {
|
|
1084
|
+
S("manual-stored"), L();
|
|
1085
|
+
}, [L]), w = (_) => _.includes(x);
|
|
1086
1086
|
return he(() => {
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
}, [
|
|
1093
|
-
|
|
1094
|
-
}, [i, r, g, b, P]), he(() => {
|
|
1095
|
-
i && a ? n(a) : !i && !r && n("");
|
|
1096
|
-
}, [i, a, r, n]), /* @__PURE__ */ ee("div", { className: Se(X.Signature, u), children: [
|
|
1097
|
-
/* @__PURE__ */ ee(
|
|
1087
|
+
!n || n === f || l((_) => _ === n ? _ : n);
|
|
1088
|
+
}, [n, f]), he(() => {
|
|
1089
|
+
!u && f && m && P && L();
|
|
1090
|
+
}, [u, f, m, P, L]), he(() => {
|
|
1091
|
+
u && i ? t(i) : !u && !f && t("");
|
|
1092
|
+
}, [u, i, f, t]), /* @__PURE__ */ Q("div", { className: Se(H.Signature, r), children: [
|
|
1093
|
+
/* @__PURE__ */ Q(
|
|
1098
1094
|
"div",
|
|
1099
1095
|
{
|
|
1100
1096
|
className: Se(
|
|
1101
|
-
|
|
1102
|
-
|
|
1097
|
+
H.SignatureMain,
|
|
1098
|
+
w(["auto-generated"]) ? H.SignatureMainAuto : H.SignatureMainManual
|
|
1103
1099
|
),
|
|
1104
|
-
ref:
|
|
1100
|
+
ref: a,
|
|
1105
1101
|
children: [
|
|
1106
|
-
/* @__PURE__ */
|
|
1107
|
-
/* @__PURE__ */
|
|
1108
|
-
/* @__PURE__ */
|
|
1109
|
-
/* @__PURE__ */
|
|
1102
|
+
/* @__PURE__ */ Q(se, { direction: "row", justify: w(["manual-drawn"]) ? "end" : "center", className: H.SignatureHeader, children: [
|
|
1103
|
+
/* @__PURE__ */ Q(we.Tag, { tag: "h6", weight: "medium", size: "regular", color: "primary", align: "center", children: [
|
|
1104
|
+
/* @__PURE__ */ q(re.FadeScale, { name: "generated-signature", condition: w(["auto-generated"]), children: "Wir haben eine digitale Signature Sie generiert." }),
|
|
1105
|
+
/* @__PURE__ */ q(re.FadeScale, { flex: !0, name: "create-signature", condition: w(["manual-blank", "manual-stored"]), children: "Ihre Signatur:" })
|
|
1110
1106
|
] }),
|
|
1111
|
-
/* @__PURE__ */
|
|
1107
|
+
/* @__PURE__ */ q(re.FadeSlide, { flex: !0, name: "reset", direction: "rtl", condition: w(["manual-drawn"]), children: /* @__PURE__ */ q("div", { className: H.SignatureHeaderReset, children: /* @__PURE__ */ q(ie.ButtonText, { blurAfterClick: !0, underlined: !0, icon: /* @__PURE__ */ q(Ue, {}), onClick: k, children: "Neu starten" }) }) })
|
|
1112
1108
|
] }),
|
|
1113
|
-
/* @__PURE__ */
|
|
1114
|
-
/* @__PURE__ */
|
|
1115
|
-
/* @__PURE__ */
|
|
1116
|
-
/* @__PURE__ */
|
|
1117
|
-
/* @__PURE__ */
|
|
1118
|
-
/* @__PURE__ */
|
|
1109
|
+
/* @__PURE__ */ q(se, { direction: "row", align: "end", justify: "center", children: w(["auto-generated"]) ? /* @__PURE__ */ Q(se, { direction: "column", align: "center", justify: "start", children: [
|
|
1110
|
+
/* @__PURE__ */ q(re.FadeScale, { flex: !0, name: "signature", condition: i !== "", children: /* @__PURE__ */ q("img", { className: H.SignatureAutoPanelImage, src: i, alt: "signature" }) }),
|
|
1111
|
+
/* @__PURE__ */ q(re.FadeScale, { flex: !0, name: "signature", condition: i === "", children: /* @__PURE__ */ q("div", { className: H.SignatureAutoPanelLoader, children: /* @__PURE__ */ q(He, { size: "sm", color: "primary" }) }) }),
|
|
1112
|
+
/* @__PURE__ */ Q(se, { direction: "row", align: "center", justify: "center", gap: "xxs", mt: "xs", children: [
|
|
1113
|
+
/* @__PURE__ */ q(Ye, { size: 24, className: H.SignatureAutoPanelNoteIcon }),
|
|
1114
|
+
/* @__PURE__ */ q(we.Tag, { weight: "regular", size: "small", color: "secondary", children: "Diese Unterschrift ist ausreichend" })
|
|
1119
1115
|
] }),
|
|
1120
|
-
/* @__PURE__ */
|
|
1121
|
-
] }) : /* @__PURE__ */
|
|
1122
|
-
/* @__PURE__ */
|
|
1123
|
-
|
|
1116
|
+
/* @__PURE__ */ q("div", { className: H.SignatureAutoPanelButton, children: /* @__PURE__ */ q(ie.ButtonText, { blurAfterClick: !0, underlined: !0, onClick: J, children: "per Hand/Maus unterschreiben" }) })
|
|
1117
|
+
] }) : /* @__PURE__ */ Q("div", { className: H.SignatureManualPanel, children: [
|
|
1118
|
+
/* @__PURE__ */ q("div", { className: H.SignatureManualPanelPlaceholder }),
|
|
1119
|
+
w(["manual-stored"]) ? /* @__PURE__ */ q("img", { width: m, height: P, alt: "signature", src: f }) : /* @__PURE__ */ q(
|
|
1124
1120
|
ut,
|
|
1125
1121
|
{
|
|
1126
1122
|
penColor: "#262626",
|
|
@@ -1128,28 +1124,28 @@ const ut = /* @__PURE__ */ Be(st), ct = "_Signature_mhdg5_1", lt = "_SignatureMa
|
|
|
1128
1124
|
minWidth: 0.25,
|
|
1129
1125
|
maxWidth: 2.75,
|
|
1130
1126
|
throttle: 12,
|
|
1131
|
-
canvasProps: { width: +(
|
|
1132
|
-
ref: (
|
|
1127
|
+
canvasProps: { width: +(m || 0).toFixed(), height: +(P || 0).toFixed() },
|
|
1128
|
+
ref: (_) => c(_),
|
|
1133
1129
|
clearOnResize: !0,
|
|
1134
|
-
onEnd:
|
|
1130
|
+
onEnd: $
|
|
1135
1131
|
}
|
|
1136
1132
|
),
|
|
1137
|
-
/* @__PURE__ */
|
|
1133
|
+
/* @__PURE__ */ q(
|
|
1138
1134
|
re.FadeScale,
|
|
1139
1135
|
{
|
|
1140
1136
|
name: "to-generated",
|
|
1141
|
-
condition:
|
|
1142
|
-
className:
|
|
1143
|
-
children: /* @__PURE__ */
|
|
1137
|
+
condition: w(["manual-stored"]),
|
|
1138
|
+
className: H.SignatureManualPanelButton,
|
|
1139
|
+
children: /* @__PURE__ */ q(ie.ButtonText, { blurAfterClick: !0, underlined: !0, onClick: ee, children: "Zurücksetzen" })
|
|
1144
1140
|
}
|
|
1145
1141
|
)
|
|
1146
1142
|
] }) })
|
|
1147
1143
|
]
|
|
1148
1144
|
}
|
|
1149
1145
|
),
|
|
1150
|
-
/* @__PURE__ */
|
|
1151
|
-
/* @__PURE__ */
|
|
1152
|
-
/* @__PURE__ */
|
|
1146
|
+
/* @__PURE__ */ q(re.FadeScale, { name: "footer", condition: w(["manual-blank", "manual-drawn"]), children: /* @__PURE__ */ Q(se, { direction: "row", align: "center", justify: "space-between", gap: "md", mt: "md", children: [
|
|
1147
|
+
/* @__PURE__ */ q(ie.Button, { fullWidth: !0, blurAfterClick: !0, color: "tertiary", onClick: d, children: "Abbrechen" }),
|
|
1148
|
+
/* @__PURE__ */ q(ie.Button, { fullWidth: !0, blurAfterClick: !0, color: "primary", disabled: !f, onClick: G, children: "Speichern" })
|
|
1153
1149
|
] }) })
|
|
1154
1150
|
] });
|
|
1155
1151
|
};
|