@arthurzakharov/ui-kit 1.4.4 → 1.4.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/animations/animation-fade-grow/animation-fade-grow.component.js +29 -22
- package/dist/animations/animation-fade-scale/animation-fade-scale.component.js +27 -20
- package/dist/animations/animation-fade-slide/animation-fade-slide.component.js +32 -25
- package/dist/animations/animation-rotate/animation-rotate.component.js +4 -3
- package/dist/assets/flex-BpQNkmJA.css +1 -0
- package/dist/assets/text-Bhvd-u-V.css +1 -0
- package/dist/components/accordion-table/accordion-table.component.d.ts +0 -7
- package/dist/components/bottom-bar/bottom-bar.component.js +31 -31
- package/dist/components/data-protected-label/data-protected-label.component.d.ts +3 -7
- package/dist/components/data-protected-label/data-protected-label.component.js +15 -19
- package/dist/components/flex/flex.component.d.ts +11 -11
- package/dist/components/flex/flex.component.js +9 -9
- package/dist/components/main-attachment/main-attachment.component.js +17 -10
- package/dist/components/message-block/message-block.component.d.ts +0 -3
- package/dist/components/message-block/message-block.component.js +16 -27
- package/dist/components/payment/components/text-blocks/text-blocks.component.js +3 -3
- package/dist/components/sidebar/components/info/info.component.js +10 -10
- package/dist/components/sidebar/components/step/step.component.js +4 -4
- package/dist/components/sidebar/sidebar.component.js +13 -13
- package/dist/components/signature/signature.component.js +140 -140
- package/dist/components/text/index.d.ts +1 -0
- package/dist/components/text/index.js +4 -0
- package/dist/components/text/text.component.d.ts +13 -540
- package/dist/components/text/text.component.js +129 -14
- package/dist/main.d.ts +1 -1
- package/dist/utils/content/content.component.d.ts +3 -1
- package/dist/utils/types.d.ts +13 -5
- package/package.json +10 -9
- package/dist/assets/flex-BhK_u9P8.css +0 -1
- package/dist/assets/page-info-Bs3RDQxp.css +0 -1
- package/dist/assets/page-subtitle-BrFA-H2S.css +0 -1
- package/dist/assets/page-title-BjnleMqb.css +0 -1
- package/dist/assets/sidebar-title-BQlVGM_v.css +0 -1
- package/dist/assets/step-title-1uG3ODlr.css +0 -1
- package/dist/assets/tag-xh8EHVuM.css +0 -1
- package/dist/components/text/components/page-info/page-info.component.d.ts +0 -2
- package/dist/components/text/components/page-info/page-info.component.js +0 -11
- package/dist/components/text/components/page-subtitle/page-subtitle.component.d.ts +0 -2
- package/dist/components/text/components/page-subtitle/page-subtitle.component.js +0 -10
- package/dist/components/text/components/page-title/page-title.component.d.ts +0 -2
- package/dist/components/text/components/page-title/page-title.component.js +0 -10
- package/dist/components/text/components/sidebar-title/sidebar-title.component.d.ts +0 -2
- package/dist/components/text/components/sidebar-title/sidebar-title.component.js +0 -10
- package/dist/components/text/components/step-title/step-title.component.d.ts +0 -2
- package/dist/components/text/components/step-title/step-title.component.js +0 -10
- package/dist/components/text/components/tag/tag.component.d.ts +0 -543
- package/dist/components/text/components/tag/tag.component.js +0 -69
|
@@ -8,7 +8,7 @@ import { AnimationFadeScale as te } from "../../animations/animation-fade-scale/
|
|
|
8
8
|
import { AnimationFadeSlide as Xe } from "../../animations/animation-fade-slide/animation-fade-slide.component.js";
|
|
9
9
|
import { ControlButton as Te } from "../../controls/control-button/control-button.component.js";
|
|
10
10
|
import { ControlButtonText as ue } from "../../controls/control-button-text/control-button-text.component.js";
|
|
11
|
-
import { Flex as
|
|
11
|
+
import { Flex as oe } from "../flex/flex.component.js";
|
|
12
12
|
import { Text as he } from "../text/text.component.js";
|
|
13
13
|
import { Loader as Je } from "../loader/loader.component.js";
|
|
14
14
|
import '../../assets/signature-qHi3xUi4.css';var fe = { exports: {} }, ce = { exports: {} }, le = { exports: {} }, I = {};
|
|
@@ -16,7 +16,7 @@ var Ce;
|
|
|
16
16
|
function Ze() {
|
|
17
17
|
if (Ce) return I;
|
|
18
18
|
Ce = 1;
|
|
19
|
-
var e = typeof Symbol == "function" && Symbol.for, n = e ? /* @__PURE__ */ Symbol.for("react.element") : 60103, r = e ? /* @__PURE__ */ Symbol.for("react.portal") : 60106, t = e ? /* @__PURE__ */ Symbol.for("react.fragment") : 60107, a = e ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108,
|
|
19
|
+
var e = typeof Symbol == "function" && Symbol.for, n = e ? /* @__PURE__ */ Symbol.for("react.element") : 60103, r = e ? /* @__PURE__ */ Symbol.for("react.portal") : 60106, t = e ? /* @__PURE__ */ Symbol.for("react.fragment") : 60107, a = e ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108, 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, v = 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, P = e ? /* @__PURE__ */ Symbol.for("react.fundamental") : 60117, g = e ? /* @__PURE__ */ Symbol.for("react.responder") : 60118, W = e ? /* @__PURE__ */ Symbol.for("react.scope") : 60119;
|
|
20
20
|
function $(f) {
|
|
21
21
|
if (typeof f == "object" && f !== null) {
|
|
22
22
|
var X = f.$$typeof;
|
|
@@ -24,9 +24,9 @@ function Ze() {
|
|
|
24
24
|
case n:
|
|
25
25
|
switch (f = f.type, f) {
|
|
26
26
|
case d:
|
|
27
|
-
case i:
|
|
28
|
-
case t:
|
|
29
27
|
case o:
|
|
28
|
+
case t:
|
|
29
|
+
case i:
|
|
30
30
|
case a:
|
|
31
31
|
case v:
|
|
32
32
|
return f;
|
|
@@ -48,9 +48,9 @@ function Ze() {
|
|
|
48
48
|
}
|
|
49
49
|
}
|
|
50
50
|
function k(f) {
|
|
51
|
-
return $(f) ===
|
|
51
|
+
return $(f) === o;
|
|
52
52
|
}
|
|
53
|
-
return I.AsyncMode = d, I.ConcurrentMode =
|
|
53
|
+
return I.AsyncMode = d, I.ConcurrentMode = o, I.ContextConsumer = u, I.ContextProvider = c, I.Element = n, I.ForwardRef = l, I.Fragment = t, I.Lazy = x, I.Memo = _, I.Portal = r, I.Profiler = i, I.StrictMode = a, I.Suspense = v, I.isAsyncMode = function(f) {
|
|
54
54
|
return k(f) || $(f) === d;
|
|
55
55
|
}, I.isConcurrentMode = k, I.isContextConsumer = function(f) {
|
|
56
56
|
return $(f) === u;
|
|
@@ -69,40 +69,40 @@ function Ze() {
|
|
|
69
69
|
}, I.isPortal = function(f) {
|
|
70
70
|
return $(f) === r;
|
|
71
71
|
}, I.isProfiler = function(f) {
|
|
72
|
-
return $(f) ===
|
|
72
|
+
return $(f) === i;
|
|
73
73
|
}, I.isStrictMode = function(f) {
|
|
74
74
|
return $(f) === a;
|
|
75
75
|
}, I.isSuspense = function(f) {
|
|
76
76
|
return $(f) === v;
|
|
77
77
|
}, I.isValidElementType = function(f) {
|
|
78
|
-
return typeof f == "string" || typeof f == "function" || f === t || f ===
|
|
78
|
+
return typeof f == "string" || typeof f == "function" || f === t || f === o || f === i || f === a || f === v || f === m || typeof f == "object" && f !== null && (f.$$typeof === x || f.$$typeof === _ || f.$$typeof === c || f.$$typeof === u || f.$$typeof === l || f.$$typeof === P || f.$$typeof === g || f.$$typeof === W || f.$$typeof === b);
|
|
79
79
|
}, I.typeOf = $, I;
|
|
80
80
|
}
|
|
81
81
|
var z = {};
|
|
82
82
|
var Re;
|
|
83
83
|
function Ge() {
|
|
84
84
|
return Re || (Re = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
85
|
-
var e = typeof Symbol == "function" && Symbol.for, n = e ? /* @__PURE__ */ Symbol.for("react.element") : 60103, r = e ? /* @__PURE__ */ Symbol.for("react.portal") : 60106, t = e ? /* @__PURE__ */ Symbol.for("react.fragment") : 60107, a = e ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108,
|
|
85
|
+
var e = typeof Symbol == "function" && Symbol.for, n = e ? /* @__PURE__ */ Symbol.for("react.element") : 60103, r = e ? /* @__PURE__ */ Symbol.for("react.portal") : 60106, t = e ? /* @__PURE__ */ Symbol.for("react.fragment") : 60107, a = e ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108, 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, v = 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, P = e ? /* @__PURE__ */ Symbol.for("react.fundamental") : 60117, g = e ? /* @__PURE__ */ Symbol.for("react.responder") : 60118, W = e ? /* @__PURE__ */ Symbol.for("react.scope") : 60119;
|
|
86
86
|
function $(p) {
|
|
87
87
|
return typeof p == "string" || typeof p == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
88
|
-
p === t || p ===
|
|
88
|
+
p === t || p === o || p === i || p === a || p === v || p === m || typeof p == "object" && p !== null && (p.$$typeof === x || p.$$typeof === _ || p.$$typeof === c || p.$$typeof === u || p.$$typeof === l || p.$$typeof === P || p.$$typeof === g || p.$$typeof === W || p.$$typeof === b);
|
|
89
89
|
}
|
|
90
90
|
function k(p) {
|
|
91
91
|
if (typeof p == "object" && p !== null) {
|
|
92
92
|
var K = p.$$typeof;
|
|
93
93
|
switch (K) {
|
|
94
94
|
case n:
|
|
95
|
-
var
|
|
96
|
-
switch (
|
|
95
|
+
var ie = p.type;
|
|
96
|
+
switch (ie) {
|
|
97
97
|
case d:
|
|
98
|
-
case i:
|
|
99
|
-
case t:
|
|
100
98
|
case o:
|
|
99
|
+
case t:
|
|
100
|
+
case i:
|
|
101
101
|
case a:
|
|
102
102
|
case v:
|
|
103
|
-
return
|
|
103
|
+
return ie;
|
|
104
104
|
default:
|
|
105
|
-
var Pe =
|
|
105
|
+
var Pe = ie && ie.$$typeof;
|
|
106
106
|
switch (Pe) {
|
|
107
107
|
case u:
|
|
108
108
|
case l:
|
|
@@ -119,12 +119,12 @@ function Ge() {
|
|
|
119
119
|
}
|
|
120
120
|
}
|
|
121
121
|
}
|
|
122
|
-
var f = d, X =
|
|
122
|
+
var f = d, X = o, ne = u, Q = c, O = n, S = l, B = t, F = x, y = _, G = r, U = i, Y = a, J = v, N = !1;
|
|
123
123
|
function Z(p) {
|
|
124
124
|
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(p) || k(p) === d;
|
|
125
125
|
}
|
|
126
126
|
function s(p) {
|
|
127
|
-
return k(p) ===
|
|
127
|
+
return k(p) === o;
|
|
128
128
|
}
|
|
129
129
|
function h(p) {
|
|
130
130
|
return k(p) === u;
|
|
@@ -151,7 +151,7 @@ function Ge() {
|
|
|
151
151
|
return k(p) === r;
|
|
152
152
|
}
|
|
153
153
|
function L(p) {
|
|
154
|
-
return k(p) ===
|
|
154
|
+
return k(p) === i;
|
|
155
155
|
}
|
|
156
156
|
function D(p) {
|
|
157
157
|
return k(p) === a;
|
|
@@ -171,17 +171,17 @@ function Ke() {
|
|
|
171
171
|
if (Me) return pe;
|
|
172
172
|
Me = 1;
|
|
173
173
|
var e = Object.getOwnPropertySymbols, n = Object.prototype.hasOwnProperty, r = Object.prototype.propertyIsEnumerable;
|
|
174
|
-
function t(
|
|
175
|
-
if (
|
|
174
|
+
function t(i) {
|
|
175
|
+
if (i == null)
|
|
176
176
|
throw new TypeError("Object.assign cannot be called with null or undefined");
|
|
177
|
-
return Object(
|
|
177
|
+
return Object(i);
|
|
178
178
|
}
|
|
179
179
|
function a() {
|
|
180
180
|
try {
|
|
181
181
|
if (!Object.assign)
|
|
182
182
|
return !1;
|
|
183
|
-
var
|
|
184
|
-
if (
|
|
183
|
+
var i = new String("abc");
|
|
184
|
+
if (i[5] = "de", Object.getOwnPropertyNames(i)[0] === "5")
|
|
185
185
|
return !1;
|
|
186
186
|
for (var c = {}, u = 0; u < 10; u++)
|
|
187
187
|
c["_" + String.fromCharCode(u)] = u;
|
|
@@ -190,23 +190,23 @@ function Ke() {
|
|
|
190
190
|
});
|
|
191
191
|
if (d.join("") !== "0123456789")
|
|
192
192
|
return !1;
|
|
193
|
-
var
|
|
193
|
+
var o = {};
|
|
194
194
|
return "abcdefghijklmnopqrst".split("").forEach(function(l) {
|
|
195
|
-
|
|
196
|
-
}), Object.keys(Object.assign({},
|
|
195
|
+
o[l] = l;
|
|
196
|
+
}), Object.keys(Object.assign({}, o)).join("") === "abcdefghijklmnopqrst";
|
|
197
197
|
} catch {
|
|
198
198
|
return !1;
|
|
199
199
|
}
|
|
200
200
|
}
|
|
201
|
-
return pe = a() ? Object.assign : function(
|
|
202
|
-
for (var u, d = t(
|
|
201
|
+
return pe = a() ? Object.assign : function(i, c) {
|
|
202
|
+
for (var u, d = t(i), o, l = 1; l < arguments.length; l++) {
|
|
203
203
|
u = Object(arguments[l]);
|
|
204
204
|
for (var v in u)
|
|
205
205
|
n.call(u, v) && (d[v] = u[v]);
|
|
206
206
|
if (e) {
|
|
207
|
-
|
|
208
|
-
for (var m = 0; m <
|
|
209
|
-
r.call(u,
|
|
207
|
+
o = e(u);
|
|
208
|
+
for (var m = 0; m < o.length; m++)
|
|
209
|
+
r.call(u, o[m]) && (d[o[m]] = u[o[m]]);
|
|
210
210
|
}
|
|
211
211
|
}
|
|
212
212
|
return d;
|
|
@@ -231,8 +231,8 @@ function Qe() {
|
|
|
231
231
|
};
|
|
232
232
|
if (process.env.NODE_ENV !== "production") {
|
|
233
233
|
var n = /* @__PURE__ */ be(), r = {}, t = /* @__PURE__ */ qe();
|
|
234
|
-
e = function(
|
|
235
|
-
var c = "Warning: " +
|
|
234
|
+
e = function(i) {
|
|
235
|
+
var c = "Warning: " + i;
|
|
236
236
|
typeof console < "u" && console.error(c);
|
|
237
237
|
try {
|
|
238
238
|
throw new Error(c);
|
|
@@ -240,19 +240,19 @@ function Qe() {
|
|
|
240
240
|
}
|
|
241
241
|
};
|
|
242
242
|
}
|
|
243
|
-
function a(
|
|
243
|
+
function a(i, c, u, d, o) {
|
|
244
244
|
if (process.env.NODE_ENV !== "production") {
|
|
245
|
-
for (var l in
|
|
246
|
-
if (t(
|
|
245
|
+
for (var l in i)
|
|
246
|
+
if (t(i, l)) {
|
|
247
247
|
var v;
|
|
248
248
|
try {
|
|
249
|
-
if (typeof
|
|
249
|
+
if (typeof i[l] != "function") {
|
|
250
250
|
var m = Error(
|
|
251
|
-
(d || "React class") + ": " + u + " type `" + l + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof
|
|
251
|
+
(d || "React class") + ": " + u + " type `" + l + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof i[l] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
|
|
252
252
|
);
|
|
253
253
|
throw m.name = "Invariant Violation", m;
|
|
254
254
|
}
|
|
255
|
-
v =
|
|
255
|
+
v = i[l](c, l, d, u, null, n);
|
|
256
256
|
} catch (x) {
|
|
257
257
|
v = x;
|
|
258
258
|
}
|
|
@@ -260,7 +260,7 @@ function Qe() {
|
|
|
260
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 v + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
|
|
261
261
|
), v instanceof Error && !(v.message in r)) {
|
|
262
262
|
r[v.message] = !0;
|
|
263
|
-
var _ =
|
|
263
|
+
var _ = o ? o() : "";
|
|
264
264
|
e(
|
|
265
265
|
"Failed " + u + " type: " + v.message + (_ ?? "")
|
|
266
266
|
);
|
|
@@ -276,9 +276,9 @@ var ge, je;
|
|
|
276
276
|
function et() {
|
|
277
277
|
if (je) return ge;
|
|
278
278
|
je = 1;
|
|
279
|
-
var e = We(), n = Ke(), r = /* @__PURE__ */ be(), t = /* @__PURE__ */ qe(), a = /* @__PURE__ */ Qe(),
|
|
279
|
+
var e = We(), n = Ke(), r = /* @__PURE__ */ be(), t = /* @__PURE__ */ qe(), a = /* @__PURE__ */ Qe(), i = function() {
|
|
280
280
|
};
|
|
281
|
-
process.env.NODE_ENV !== "production" && (
|
|
281
|
+
process.env.NODE_ENV !== "production" && (i = function(u) {
|
|
282
282
|
var d = "Warning: " + u;
|
|
283
283
|
typeof console < "u" && console.error(d);
|
|
284
284
|
try {
|
|
@@ -290,9 +290,9 @@ function et() {
|
|
|
290
290
|
return null;
|
|
291
291
|
}
|
|
292
292
|
return ge = function(u, d) {
|
|
293
|
-
var
|
|
293
|
+
var o = typeof Symbol == "function" && Symbol.iterator, l = "@@iterator";
|
|
294
294
|
function v(s) {
|
|
295
|
-
var h = s && (
|
|
295
|
+
var h = s && (o && s[o] || s[l]);
|
|
296
296
|
if (typeof h == "function")
|
|
297
297
|
return h;
|
|
298
298
|
}
|
|
@@ -337,7 +337,7 @@ function et() {
|
|
|
337
337
|
} else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
|
|
338
338
|
var K = A + ":" + R;
|
|
339
339
|
!h[K] && // Avoid spamming the console because they are often not actionable except for lib authors
|
|
340
|
-
w < 3 && (
|
|
340
|
+
w < 3 && (i(
|
|
341
341
|
"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."
|
|
342
342
|
), h[K] = !0, w++);
|
|
343
343
|
}
|
|
@@ -416,9 +416,9 @@ function et() {
|
|
|
416
416
|
}
|
|
417
417
|
function ne(s) {
|
|
418
418
|
if (!Array.isArray(s))
|
|
419
|
-
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ?
|
|
419
|
+
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? i(
|
|
420
420
|
"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
|
-
) :
|
|
421
|
+
) : i("Invalid argument supplied to oneOf, expected an array.")), c;
|
|
422
422
|
function h(w, C, E, M, T) {
|
|
423
423
|
for (var R = w[C], A = 0; A < s.length; A++)
|
|
424
424
|
if (x(R, s[A]))
|
|
@@ -450,11 +450,11 @@ function et() {
|
|
|
450
450
|
}
|
|
451
451
|
function O(s) {
|
|
452
452
|
if (!Array.isArray(s))
|
|
453
|
-
return process.env.NODE_ENV !== "production" &&
|
|
453
|
+
return process.env.NODE_ENV !== "production" && i("Invalid argument supplied to oneOfType, expected an instance of array."), c;
|
|
454
454
|
for (var h = 0; h < s.length; h++) {
|
|
455
455
|
var w = s[h];
|
|
456
456
|
if (typeof w != "function")
|
|
457
|
-
return
|
|
457
|
+
return i(
|
|
458
458
|
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + N(w) + " at index " + h + "."
|
|
459
459
|
), c;
|
|
460
460
|
}
|
|
@@ -603,7 +603,7 @@ function tt() {
|
|
|
603
603
|
function r() {
|
|
604
604
|
}
|
|
605
605
|
return r.resetWarningCache = n, _e = function() {
|
|
606
|
-
function t(c, u, d,
|
|
606
|
+
function t(c, u, d, o, l, v) {
|
|
607
607
|
if (v !== e) {
|
|
608
608
|
var m = new Error(
|
|
609
609
|
"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"
|
|
@@ -615,7 +615,7 @@ function tt() {
|
|
|
615
615
|
function a() {
|
|
616
616
|
return t;
|
|
617
617
|
}
|
|
618
|
-
var
|
|
618
|
+
var i = {
|
|
619
619
|
array: t,
|
|
620
620
|
bigint: t,
|
|
621
621
|
bool: t,
|
|
@@ -638,7 +638,7 @@ function tt() {
|
|
|
638
638
|
checkPropTypes: r,
|
|
639
639
|
resetWarningCache: n
|
|
640
640
|
};
|
|
641
|
-
return
|
|
641
|
+
return i.PropTypes = i, i;
|
|
642
642
|
}, _e;
|
|
643
643
|
}
|
|
644
644
|
var ze;
|
|
@@ -668,10 +668,10 @@ function xe(e, n, r, t) {
|
|
|
668
668
|
}
|
|
669
669
|
xe.prototype.length = function() {
|
|
670
670
|
for (var e = 10, n = 0, r = void 0, t = void 0, a = 0; a <= e; a += 1) {
|
|
671
|
-
var
|
|
671
|
+
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
672
|
if (a > 0) {
|
|
673
|
-
var d = c - r,
|
|
674
|
-
n += Math.sqrt(d * d +
|
|
673
|
+
var d = c - r, o = u - t;
|
|
674
|
+
n += Math.sqrt(d * d + o * o);
|
|
675
675
|
}
|
|
676
676
|
r = c, t = u;
|
|
677
677
|
}
|
|
@@ -681,16 +681,16 @@ xe.prototype._point = function(e, n, r, t, a) {
|
|
|
681
681
|
return n * (1 - e) * (1 - e) * (1 - e) + 3 * r * (1 - e) * (1 - e) * e + 3 * t * (1 - e) * e * e + a * e * e * e;
|
|
682
682
|
};
|
|
683
683
|
function nt(e, n, r) {
|
|
684
|
-
var t, a,
|
|
684
|
+
var t, a, i, c = null, u = 0;
|
|
685
685
|
r || (r = {});
|
|
686
686
|
var d = function() {
|
|
687
|
-
u = r.leading === !1 ? 0 : Date.now(), c = null,
|
|
687
|
+
u = r.leading === !1 ? 0 : Date.now(), c = null, i = e.apply(t, a), c || (t = a = null);
|
|
688
688
|
};
|
|
689
689
|
return function() {
|
|
690
|
-
var
|
|
691
|
-
!u && r.leading === !1 && (u =
|
|
692
|
-
var l = n - (
|
|
693
|
-
return t = this, a = arguments, l <= 0 || l > n ? (c && (clearTimeout(c), c = null), u =
|
|
690
|
+
var o = Date.now();
|
|
691
|
+
!u && r.leading === !1 && (u = o);
|
|
692
|
+
var l = n - (o - u);
|
|
693
|
+
return t = this, a = arguments, l <= 0 || l > n ? (c && (clearTimeout(c), c = null), u = o, i = e.apply(t, a), c || (t = a = null)) : !c && r.trailing !== !1 && (c = setTimeout(d, l)), i;
|
|
694
694
|
};
|
|
695
695
|
}
|
|
696
696
|
function q(e, n) {
|
|
@@ -705,16 +705,16 @@ function q(e, n) {
|
|
|
705
705
|
a.which === 1 && r._mouseButtonDown && (r._mouseButtonDown = !1, r._strokeEnd(a));
|
|
706
706
|
}, this._handleTouchStart = function(a) {
|
|
707
707
|
if (a.targetTouches.length === 1) {
|
|
708
|
-
var
|
|
709
|
-
r._strokeBegin(
|
|
708
|
+
var i = a.changedTouches[0];
|
|
709
|
+
r._strokeBegin(i);
|
|
710
710
|
}
|
|
711
711
|
}, this._handleTouchMove = function(a) {
|
|
712
712
|
a.preventDefault();
|
|
713
|
-
var
|
|
714
|
-
r._strokeMoveUpdate(
|
|
713
|
+
var i = a.targetTouches[0];
|
|
714
|
+
r._strokeMoveUpdate(i);
|
|
715
715
|
}, this._handleTouchEnd = function(a) {
|
|
716
|
-
var
|
|
717
|
-
|
|
716
|
+
var i = a.target === r._canvas;
|
|
717
|
+
i && (a.preventDefault(), r._strokeEnd(a));
|
|
718
718
|
}, this.on();
|
|
719
719
|
}
|
|
720
720
|
q.prototype.clear = function() {
|
|
@@ -722,9 +722,9 @@ q.prototype.clear = function() {
|
|
|
722
722
|
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;
|
|
723
723
|
};
|
|
724
724
|
q.prototype.fromDataURL = function(e) {
|
|
725
|
-
var n = this, r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, t = new Image(), a = r.ratio || window.devicePixelRatio || 1,
|
|
725
|
+
var n = this, r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, t = new Image(), a = r.ratio || window.devicePixelRatio || 1, i = r.width || this._canvas.width / a, c = r.height || this._canvas.height / a;
|
|
726
726
|
this._reset(), t.src = e, t.onload = function() {
|
|
727
|
-
n._ctx.drawImage(t, 0, 0,
|
|
727
|
+
n._ctx.drawImage(t, 0, 0, i, c);
|
|
728
728
|
}, this._isEmpty = !1;
|
|
729
729
|
};
|
|
730
730
|
q.prototype.toDataURL = function(e) {
|
|
@@ -751,10 +751,10 @@ q.prototype._strokeBegin = function(e) {
|
|
|
751
751
|
this._data.push([]), this._reset(), this._strokeUpdate(e), typeof this.onBegin == "function" && this.onBegin(e);
|
|
752
752
|
};
|
|
753
753
|
q.prototype._strokeUpdate = function(e) {
|
|
754
|
-
var n = e.clientX, r = e.clientY, t = this._createPoint(n, r), a = this._data[this._data.length - 1],
|
|
755
|
-
if (!(
|
|
756
|
-
var u = this._addPoint(t), d = u.curve,
|
|
757
|
-
d &&
|
|
754
|
+
var n = e.clientX, r = e.clientY, t = this._createPoint(n, r), a = this._data[this._data.length - 1], i = a && a[a.length - 1], c = i && t.distanceTo(i) < this.minDistance;
|
|
755
|
+
if (!(i && c)) {
|
|
756
|
+
var u = this._addPoint(t), d = u.curve, o = u.widths;
|
|
757
|
+
d && o && this._drawCurve(d, o.start, o.end), this._data[this._data.length - 1].push({
|
|
758
758
|
x: t.x,
|
|
759
759
|
y: t.y,
|
|
760
760
|
time: t.time,
|
|
@@ -794,21 +794,21 @@ q.prototype._addPoint = function(e) {
|
|
|
794
794
|
n.length === 3 && n.unshift(n[0]), r = this._calculateCurveControlPoints(n[0], n[1], n[2]);
|
|
795
795
|
var t = r.c2;
|
|
796
796
|
r = this._calculateCurveControlPoints(n[1], n[2], n[3]);
|
|
797
|
-
var a = r.c1,
|
|
798
|
-
return n.shift(), { curve:
|
|
797
|
+
var a = r.c1, i = new xe(n[1], t, a, n[2]), c = this._calculateCurveWidths(i);
|
|
798
|
+
return n.shift(), { curve: i, widths: c };
|
|
799
799
|
}
|
|
800
800
|
return {};
|
|
801
801
|
};
|
|
802
802
|
q.prototype._calculateCurveControlPoints = function(e, n, r) {
|
|
803
|
-
var t = e.x - n.x, a = e.y - n.y,
|
|
803
|
+
var t = e.x - n.x, a = e.y - n.y, i = n.x - r.x, c = n.y - r.y, u = { x: (e.x + n.x) / 2, y: (e.y + n.y) / 2 }, d = { x: (n.x + r.x) / 2, y: (n.y + r.y) / 2 }, o = Math.sqrt(t * t + a * a), l = Math.sqrt(i * i + c * c), v = u.x - d.x, m = u.y - d.y, _ = l / (o + l), x = { x: d.x + v * _, y: d.y + m * _ }, b = n.x - x.x, P = n.y - x.y;
|
|
804
804
|
return {
|
|
805
805
|
c1: new ae(u.x + b, u.y + P),
|
|
806
806
|
c2: new ae(d.x + b, d.y + P)
|
|
807
807
|
};
|
|
808
808
|
};
|
|
809
809
|
q.prototype._calculateCurveWidths = function(e) {
|
|
810
|
-
var n = e.startPoint, r = e.endPoint, t = { start: null, end: null }, a = this.velocityFilterWeight * r.velocityFrom(n) + (1 - this.velocityFilterWeight) * this._lastVelocity,
|
|
811
|
-
return t.start = this._lastWidth, t.end =
|
|
810
|
+
var n = e.startPoint, r = e.endPoint, t = { start: null, end: null }, a = this.velocityFilterWeight * r.velocityFrom(n) + (1 - this.velocityFilterWeight) * this._lastVelocity, i = this._strokeWidth(a);
|
|
811
|
+
return t.start = this._lastWidth, t.end = i, this._lastVelocity = a, this._lastWidth = i, t;
|
|
812
812
|
};
|
|
813
813
|
q.prototype._strokeWidth = function(e) {
|
|
814
814
|
return Math.max(this.maxWidth / (e + 1), this.minWidth);
|
|
@@ -818,14 +818,14 @@ q.prototype._drawPoint = function(e, n, r) {
|
|
|
818
818
|
t.moveTo(e, n), t.arc(e, n, r, 0, 2 * Math.PI, !1), this._isEmpty = !1;
|
|
819
819
|
};
|
|
820
820
|
q.prototype._drawCurve = function(e, n, r) {
|
|
821
|
-
var t = this._ctx, a = r - n,
|
|
821
|
+
var t = this._ctx, a = r - n, i = Math.floor(e.length());
|
|
822
822
|
t.beginPath();
|
|
823
|
-
for (var c = 0; c <
|
|
824
|
-
var u = c /
|
|
825
|
-
_ += 3 * v * u * e.control1.x, _ += 3 * l * d * e.control2.x, _ +=
|
|
823
|
+
for (var c = 0; c < i; c += 1) {
|
|
824
|
+
var u = c / i, d = u * u, o = d * u, l = 1 - u, v = l * l, m = v * l, _ = m * e.startPoint.x;
|
|
825
|
+
_ += 3 * v * u * e.control1.x, _ += 3 * l * d * e.control2.x, _ += o * e.endPoint.x;
|
|
826
826
|
var x = m * e.startPoint.y;
|
|
827
|
-
x += 3 * v * u * e.control1.y, x += 3 * l * d * e.control2.y, x +=
|
|
828
|
-
var b = n +
|
|
827
|
+
x += 3 * v * u * e.control1.y, x += 3 * l * d * e.control2.y, x += o * e.endPoint.y;
|
|
828
|
+
var b = n + o * a;
|
|
829
829
|
this._drawPoint(_, x, b);
|
|
830
830
|
}
|
|
831
831
|
t.closePath(), t.fill();
|
|
@@ -838,12 +838,12 @@ q.prototype._fromData = function(e, n, r) {
|
|
|
838
838
|
for (var t = 0; t < e.length; t += 1) {
|
|
839
839
|
var a = e[t];
|
|
840
840
|
if (a.length > 1)
|
|
841
|
-
for (var
|
|
842
|
-
var c = a[
|
|
843
|
-
if (
|
|
841
|
+
for (var i = 0; i < a.length; i += 1) {
|
|
842
|
+
var c = a[i], u = new ae(c.x, c.y, c.time), d = c.color;
|
|
843
|
+
if (i === 0)
|
|
844
844
|
this.penColor = d, this._reset(), this._addPoint(u);
|
|
845
|
-
else if (
|
|
846
|
-
var
|
|
845
|
+
else if (i !== a.length - 1) {
|
|
846
|
+
var o = this._addPoint(u), l = o.curve, v = o.widths;
|
|
847
847
|
l && v && n(l, v, d);
|
|
848
848
|
}
|
|
849
849
|
}
|
|
@@ -855,7 +855,7 @@ q.prototype._fromData = function(e, n, r) {
|
|
|
855
855
|
}
|
|
856
856
|
};
|
|
857
857
|
q.prototype._toSVG = function() {
|
|
858
|
-
var e = this, n = this._data, r = this._canvas, t = Math.max(window.devicePixelRatio || 1, 1), a = 0,
|
|
858
|
+
var e = this, n = this._data, r = this._canvas, t = Math.max(window.devicePixelRatio || 1, 1), a = 0, i = 0, c = r.width / t, u = r.height / t, d = document.createElementNS("http://www.w3.org/2000/svg", "svg");
|
|
859
859
|
d.setAttributeNS(null, "width", r.width), d.setAttributeNS(null, "height", r.height), this._fromData(n, function(g, W, $) {
|
|
860
860
|
var k = document.createElement("path");
|
|
861
861
|
if (!isNaN(g.control1.x) && !isNaN(g.control1.y) && !isNaN(g.control2.x) && !isNaN(g.control2.y)) {
|
|
@@ -866,7 +866,7 @@ q.prototype._toSVG = function() {
|
|
|
866
866
|
var W = document.createElement("circle"), $ = typeof e.dotSize == "function" ? e.dotSize() : e.dotSize;
|
|
867
867
|
W.setAttribute("r", $), W.setAttribute("cx", g.x), W.setAttribute("cy", g.y), W.setAttribute("fill", g.color), d.appendChild(W);
|
|
868
868
|
});
|
|
869
|
-
var
|
|
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 + '"') + ">", v = d.innerHTML;
|
|
870
870
|
if (v === void 0) {
|
|
871
871
|
var m = document.createElement("dummy"), _ = d.childNodes;
|
|
872
872
|
m.innerHTML = "";
|
|
@@ -875,7 +875,7 @@ q.prototype._toSVG = function() {
|
|
|
875
875
|
v = m.innerHTML;
|
|
876
876
|
}
|
|
877
877
|
var b = "</svg>", P = l + v + b;
|
|
878
|
-
return
|
|
878
|
+
return o + btoa(P);
|
|
879
879
|
};
|
|
880
880
|
q.prototype.fromData = function(e) {
|
|
881
881
|
var n = this;
|
|
@@ -891,38 +891,38 @@ q.prototype.toData = function() {
|
|
|
891
891
|
const at = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
892
892
|
__proto__: null,
|
|
893
893
|
default: q
|
|
894
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
895
|
-
var de = { exports: {} },
|
|
894
|
+
}, Symbol.toStringTag, { value: "Module" })), ot = /* @__PURE__ */ Be(at);
|
|
895
|
+
var de = { exports: {} }, it = de.exports, $e;
|
|
896
896
|
function st() {
|
|
897
897
|
return $e || ($e = 1, (function(e, n) {
|
|
898
898
|
(function(r, t) {
|
|
899
899
|
e.exports = t();
|
|
900
|
-
})(
|
|
900
|
+
})(it, function() {
|
|
901
901
|
return (function(r) {
|
|
902
|
-
function t(
|
|
903
|
-
if (a[
|
|
904
|
-
var c = a[
|
|
905
|
-
return r[
|
|
902
|
+
function t(i) {
|
|
903
|
+
if (a[i]) return a[i].exports;
|
|
904
|
+
var c = a[i] = { exports: {}, id: i, loaded: !1 };
|
|
905
|
+
return r[i].call(c.exports, c, c.exports, t), c.loaded = !0, c.exports;
|
|
906
906
|
}
|
|
907
907
|
var a = {};
|
|
908
908
|
return t.m = r, t.c = a, t.p = "", t(0);
|
|
909
909
|
})([function(r, t) {
|
|
910
|
-
function a(
|
|
911
|
-
var l =
|
|
912
|
-
return
|
|
910
|
+
function a(o) {
|
|
911
|
+
var l = o.getContext("2d"), v = o.width, m = o.height, _ = l.getImageData(0, 0, v, m).data, x = u(!0, v, m, _), b = u(!1, v, m, _), P = d(!0, v, m, _), g = d(!1, v, m, _), W = g - P + 1, $ = b - x + 1, k = l.getImageData(P, x, W, $);
|
|
912
|
+
return o.width = W, o.height = $, l.clearRect(0, 0, W, $), l.putImageData(k, 0, 0), o;
|
|
913
913
|
}
|
|
914
|
-
function o
|
|
915
|
-
return { red: m[4 * (v * l +
|
|
914
|
+
function i(o, l, v, m) {
|
|
915
|
+
return { red: m[4 * (v * l + o)], green: m[4 * (v * l + o) + 1], blue: m[4 * (v * l + o) + 2], alpha: m[4 * (v * l + o) + 3] };
|
|
916
916
|
}
|
|
917
|
-
function c(
|
|
918
|
-
return o
|
|
917
|
+
function c(o, l, v, m) {
|
|
918
|
+
return i(o, l, v, m).alpha;
|
|
919
919
|
}
|
|
920
|
-
function u(
|
|
921
|
-
for (var _ =
|
|
920
|
+
function u(o, l, v, m) {
|
|
921
|
+
for (var _ = o ? 1 : -1, x = o ? 0 : v - 1, b = x; o ? b < v : b > -1; b += _) for (var P = 0; P < l; P++) if (c(P, b, l, m)) return b;
|
|
922
922
|
return null;
|
|
923
923
|
}
|
|
924
|
-
function d(
|
|
925
|
-
for (var _ =
|
|
924
|
+
function d(o, l, v, m) {
|
|
925
|
+
for (var _ = o ? 1 : -1, x = o ? 0 : l - 1, b = x; o ? b < l : b > -1; b += _) for (var P = 0; P < v; P++) if (c(b, P, l, m)) return b;
|
|
926
926
|
return null;
|
|
927
927
|
}
|
|
928
928
|
Object.defineProperty(t, "__esModule", { value: !0 }), t.default = a;
|
|
@@ -934,18 +934,18 @@ var ut = fe.exports, Le;
|
|
|
934
934
|
function ct() {
|
|
935
935
|
return Le || (Le = 1, (function(e, n) {
|
|
936
936
|
(function(r, t) {
|
|
937
|
-
e.exports = t(/* @__PURE__ */ rt(), Fe,
|
|
938
|
-
})(ut, function(r, t, a,
|
|
937
|
+
e.exports = t(/* @__PURE__ */ rt(), Fe, ot, st());
|
|
938
|
+
})(ut, function(r, t, a, i) {
|
|
939
939
|
return (function(c) {
|
|
940
|
-
function u(
|
|
941
|
-
if (d[
|
|
942
|
-
var l = d[
|
|
943
|
-
return c[
|
|
940
|
+
function u(o) {
|
|
941
|
+
if (d[o]) return d[o].exports;
|
|
942
|
+
var l = d[o] = { exports: {}, id: o, loaded: !1 };
|
|
943
|
+
return c[o].call(l.exports, l, l.exports, u), l.loaded = !0, l.exports;
|
|
944
944
|
}
|
|
945
945
|
var d = {};
|
|
946
946
|
return u.m = c, u.c = d, u.p = "", u(0);
|
|
947
947
|
})([function(c, u, d) {
|
|
948
|
-
function
|
|
948
|
+
function o(O) {
|
|
949
949
|
return O && O.__esModule ? O : { default: O };
|
|
950
950
|
}
|
|
951
951
|
function l(O, S) {
|
|
@@ -981,7 +981,7 @@ function ct() {
|
|
|
981
981
|
return function(S, B, F) {
|
|
982
982
|
return B && O(S.prototype, B), F && O(S, F), S;
|
|
983
983
|
};
|
|
984
|
-
})(), P = d(1), g =
|
|
984
|
+
})(), P = d(1), g = o(P), W = d(2), $ = o(W), k = d(3), f = o(k), X = d(4), ne = o(X), Q = (function(O) {
|
|
985
985
|
function S() {
|
|
986
986
|
var B, F, y, G;
|
|
987
987
|
v(this, S);
|
|
@@ -1043,7 +1043,7 @@ function ct() {
|
|
|
1043
1043
|
}, function(c, u) {
|
|
1044
1044
|
c.exports = a;
|
|
1045
1045
|
}, function(c, u) {
|
|
1046
|
-
c.exports =
|
|
1046
|
+
c.exports = i;
|
|
1047
1047
|
}]);
|
|
1048
1048
|
});
|
|
1049
1049
|
})(fe)), fe.exports;
|
|
@@ -1064,21 +1064,21 @@ const ft = /* @__PURE__ */ Ne(lt), dt = "_Signature_4mfzi_1", ht = "_SignatureMa
|
|
|
1064
1064
|
SignatureAutoPanelNoteIcon: St,
|
|
1065
1065
|
SignatureAutoPanelButton: wt
|
|
1066
1066
|
}, Lt = (e) => {
|
|
1067
|
-
const { auto: n, manual: r, getSignature: t, onChangeManual: a, onChangeAuto:
|
|
1067
|
+
const { auto: n, manual: r, getSignature: t, onChangeManual: a, onChangeAuto: i, className: c = "" } = e, u = Se(null), d = Se(!1), [o, l] = se(null), [v, m] = se(r ? "manual" : "auto"), [_, x] = se(""), [b, P] = se(!1), { width: g = 0, height: W = 0 } = Ue({ ref: u, box: "border-box" }), $ = v === "auto" ? n ? "auto-generated" : "auto-loading" : _ ? "manual-drawn" : r ? "manual-stored" : "manual-blank", k = n !== "" || b, f = r || _, X = re(
|
|
1068
1068
|
(U) => {
|
|
1069
|
-
!
|
|
1069
|
+
!o || !g || !W || !U || o.fromDataURL(U, {
|
|
1070
1070
|
width: +g.toFixed(),
|
|
1071
1071
|
height: +W.toFixed()
|
|
1072
1072
|
});
|
|
1073
1073
|
},
|
|
1074
|
-
[
|
|
1074
|
+
[o, g, W]
|
|
1075
1075
|
), ne = re(() => {
|
|
1076
|
-
if (!
|
|
1077
|
-
const U =
|
|
1076
|
+
if (!o) return;
|
|
1077
|
+
const U = o.getCanvas().toDataURL("image/png");
|
|
1078
1078
|
x(U), a(U);
|
|
1079
|
-
}, [
|
|
1080
|
-
|
|
1081
|
-
}, [
|
|
1079
|
+
}, [o, a]), Q = re(() => {
|
|
1080
|
+
o && (o.clear(), x(""), a(""));
|
|
1081
|
+
}, [o, a]), O = re(() => {
|
|
1082
1082
|
m("auto"), x("");
|
|
1083
1083
|
}, []), S = re(() => {
|
|
1084
1084
|
m("manual");
|
|
@@ -1096,19 +1096,19 @@ const ft = /* @__PURE__ */ Ne(lt), dt = "_Signature_4mfzi_1", ht = "_SignatureMa
|
|
|
1096
1096
|
}
|
|
1097
1097
|
d.current || (d.current = !0, t().then((U) => {
|
|
1098
1098
|
const Y = `data:image/png;base64,${U.signature}`;
|
|
1099
|
-
P(!1),
|
|
1099
|
+
P(!1), i(Y);
|
|
1100
1100
|
}).catch(() => {
|
|
1101
1101
|
P(!0);
|
|
1102
1102
|
}));
|
|
1103
|
-
}, [n, t,
|
|
1103
|
+
}, [n, t, i]);
|
|
1104
1104
|
const G = re(() => {
|
|
1105
1105
|
P(!1), d.current = !0, t().then((U) => {
|
|
1106
1106
|
const Y = `data:image/png;base64,${U.signature}`;
|
|
1107
|
-
P(!1),
|
|
1107
|
+
P(!1), i(Y);
|
|
1108
1108
|
}).catch(() => {
|
|
1109
1109
|
P(!0);
|
|
1110
1110
|
});
|
|
1111
|
-
}, [t,
|
|
1111
|
+
}, [t, i]);
|
|
1112
1112
|
return /* @__PURE__ */ ee("div", { className: Ee(V.Signature, c), children: [
|
|
1113
1113
|
/* @__PURE__ */ ee(
|
|
1114
1114
|
"div",
|
|
@@ -1119,18 +1119,18 @@ const ft = /* @__PURE__ */ Ne(lt), dt = "_Signature_4mfzi_1", ht = "_SignatureMa
|
|
|
1119
1119
|
),
|
|
1120
1120
|
ref: u,
|
|
1121
1121
|
children: [
|
|
1122
|
-
/* @__PURE__ */ ee(
|
|
1123
|
-
/* @__PURE__ */ ee(he
|
|
1122
|
+
/* @__PURE__ */ ee(oe, { direction: "row", justify: y(["manual-drawn"]) ? "end" : "center", className: V.SignatureHeader, children: [
|
|
1123
|
+
/* @__PURE__ */ ee(he, { tag: "h6", weight: "medium", align: "center", children: [
|
|
1124
1124
|
/* @__PURE__ */ j(te, { name: "generated-signature", condition: y(["auto-generated", "auto-loading"]), children: "Wir haben eine digitale Signature Sie generiert." }),
|
|
1125
1125
|
/* @__PURE__ */ j(te, { name: "create-signature", condition: y(["manual-blank", "manual-stored"]), children: "Ihre Signatur:" })
|
|
1126
1126
|
] }),
|
|
1127
1127
|
/* @__PURE__ */ j(Xe, { name: "reset", direction: "rtl", condition: y(["manual-drawn"]), children: /* @__PURE__ */ j("div", { className: V.SignatureHeaderReset, children: /* @__PURE__ */ j(ue, { blurAfterClick: !0, underlined: !0, icon: /* @__PURE__ */ j(Ye, {}), onClick: Q, children: "Neu starten" }) }) })
|
|
1128
1128
|
] }),
|
|
1129
|
-
/* @__PURE__ */ j(
|
|
1129
|
+
/* @__PURE__ */ j(oe, { direction: "row", align: "end", justify: "center", children: y(["auto-generated", "auto-loading"]) ? /* @__PURE__ */ ee(oe, { direction: "column", align: "center", justify: "start", children: [
|
|
1130
1130
|
/* @__PURE__ */ j(te, { name: "signature", condition: n !== "", children: /* @__PURE__ */ j("img", { className: V.SignatureAutoPanelImage, src: n, alt: "signature" }) }),
|
|
1131
1131
|
/* @__PURE__ */ j(te, { name: "signature", condition: n === "" && !b, children: /* @__PURE__ */ j("div", { className: V.SignatureAutoPanelLoader, style: { height: 142 }, children: /* @__PURE__ */ j(Je, { size: "sm", color: "accent-primary" }) }) }),
|
|
1132
|
-
/* @__PURE__ */ j(te, { name: "auto-failed", condition: n === "" && b, children: /* @__PURE__ */ ee(
|
|
1133
|
-
/* @__PURE__ */ j(he
|
|
1132
|
+
/* @__PURE__ */ j(te, { name: "auto-failed", condition: n === "" && b, children: /* @__PURE__ */ ee(oe, { direction: "column", align: "center", justify: "center", style: { height: 78 }, gap: "xs", children: [
|
|
1133
|
+
/* @__PURE__ */ j(he, { tag: "span", size: "body-small", color: "text-secondary", children: "Automatische Signatur konnte nicht geladen werden." }),
|
|
1134
1134
|
/* @__PURE__ */ j(
|
|
1135
1135
|
ue,
|
|
1136
1136
|
{
|
|
@@ -1144,9 +1144,9 @@ const ft = /* @__PURE__ */ Ne(lt), dt = "_Signature_4mfzi_1", ht = "_SignatureMa
|
|
|
1144
1144
|
}
|
|
1145
1145
|
)
|
|
1146
1146
|
] }) }),
|
|
1147
|
-
/* @__PURE__ */ j(te, { name: "auto-note", condition: n !== "", children: /* @__PURE__ */ ee(
|
|
1147
|
+
/* @__PURE__ */ j(te, { name: "auto-note", condition: n !== "", children: /* @__PURE__ */ ee(oe, { direction: "row", align: "center", justify: "center", gap: "xxs", mt: "xs", children: [
|
|
1148
1148
|
/* @__PURE__ */ j(Ve, { size: 24, className: V.SignatureAutoPanelNoteIcon }),
|
|
1149
|
-
/* @__PURE__ */ j(he
|
|
1149
|
+
/* @__PURE__ */ j(he, { tag: "span", size: "body-small", color: "text-secondary", children: "Diese Unterschrift ist ausreichend" })
|
|
1150
1150
|
] }) }),
|
|
1151
1151
|
/* @__PURE__ */ j(te, { name: "manual-switch", condition: k, children: /* @__PURE__ */ j("div", { className: V.SignatureAutoPanelButton, children: /* @__PURE__ */ j(ue, { blurAfterClick: !0, underlined: !0, onClick: S, children: "per Hand/Maus unterschreiben" }) }) })
|
|
1152
1152
|
] }) : /* @__PURE__ */ ee("div", { className: V.SignatureManualPanel, children: [
|
|
@@ -1178,7 +1178,7 @@ const ft = /* @__PURE__ */ Ne(lt), dt = "_Signature_4mfzi_1", ht = "_SignatureMa
|
|
|
1178
1178
|
]
|
|
1179
1179
|
}
|
|
1180
1180
|
),
|
|
1181
|
-
/* @__PURE__ */ j(te, { name: "footer", condition: y(["manual-blank", "manual-drawn"]), children: /* @__PURE__ */ ee(
|
|
1181
|
+
/* @__PURE__ */ j(te, { name: "footer", condition: y(["manual-blank", "manual-drawn"]), children: /* @__PURE__ */ ee(oe, { direction: "row", grow: "equal", align: "center", justify: "space-between", gap: "md", mt: "md", children: [
|
|
1182
1182
|
/* @__PURE__ */ j(Te, { fullWidth: !0, blurAfterClick: !0, color: "tertiary", onClick: O, children: "Abbrechen" }),
|
|
1183
1183
|
/* @__PURE__ */ j(Te, { fullWidth: !0, blurAfterClick: !0, color: "primary", disabled: !_, onClick: F, children: "Speichern" })
|
|
1184
1184
|
] }) })
|