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