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