@arthurzakharov/ui-kit 1.3.8 → 1.4.0
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/_commonjsHelpers-CqEciG1_.js +31 -0
- package/dist/animations/animation-fade-grow/animation-fade-grow.component.d.ts +2 -0
- package/dist/animations/animation-fade-grow/animation-fade-grow.component.js +34 -0
- package/dist/animations/animation-fade-grow/index.d.ts +1 -0
- package/dist/animations/animation-fade-grow/index.js +4 -0
- package/dist/animations/animation-fade-scale/animation-fade-scale.component.d.ts +2 -0
- package/dist/animations/animation-fade-scale/animation-fade-scale.component.js +33 -0
- package/dist/animations/animation-fade-scale/index.d.ts +1 -0
- package/dist/animations/animation-fade-scale/index.js +4 -0
- package/dist/animations/animation-fade-slide/animation-fade-slide.component.d.ts +6 -0
- package/dist/animations/animation-fade-slide/animation-fade-slide.component.js +33 -0
- package/dist/animations/animation-fade-slide/index.d.ts +1 -0
- package/dist/animations/animation-fade-slide/index.js +4 -0
- package/dist/animations/animation-rotate/animation-rotate.component.d.ts +8 -0
- package/dist/animations/animation-rotate/animation-rotate.component.js +38 -0
- package/dist/animations/animation-rotate/index.d.ts +1 -0
- package/dist/animations/animation-rotate/index.js +4 -0
- package/dist/animations/hook/index.d.ts +1 -0
- package/dist/animations/hook/index.js +4 -0
- package/dist/animations/hook/use-animation-lifecycle/index.d.ts +1 -0
- package/dist/animations/hook/use-animation-lifecycle/index.js +4 -0
- package/dist/animations/hook/use-animation-lifecycle/use-animation-lifecycle.hook.d.ts +12 -0
- package/dist/animations/hook/use-animation-lifecycle/use-animation-lifecycle.hook.js +31 -0
- package/dist/animations/utils/default-props.d.ts +5 -0
- package/dist/animations/utils/default-props.js +17 -0
- package/dist/animations/utils/index.d.ts +2 -0
- package/dist/animations/utils/index.js +4 -0
- package/dist/animations/utils/types.d.ts +15 -0
- package/dist/animations/utils/types.js +1 -0
- package/dist/assets/control-box-Dx-QKPgf.css +1 -0
- package/dist/assets/control-button-Tzg6F5Dp.css +1 -0
- package/dist/assets/control-button-card-Cb8_vJbQ.css +1 -0
- package/dist/assets/control-button-radio-BodzD0rU.css +1 -0
- package/dist/assets/control-button-text-BbE_5ebO.css +1 -0
- package/dist/assets/control-card-image-BYT3bzTE.css +1 -0
- package/dist/assets/control-card-text-Cvv3bL2p.css +1 -0
- package/dist/assets/control-checkbox-uLtXjmYN.css +1 -0
- package/dist/assets/control-choice-BAHN-VTm.css +1 -0
- package/dist/assets/control-dropdown-DaS5KsvG.css +1 -0
- package/dist/assets/control-error-message-CKgqmo1U.css +1 -0
- package/dist/assets/control-hidden-input-BhMdNmnP.css +1 -0
- package/dist/assets/control-input-nR0XQHHp.css +1 -0
- package/dist/assets/control-label-C8pjaWEU.css +1 -0
- package/dist/assets/control-radio-Bo1rvcg2.css +1 -0
- package/dist/assets/control-radio-label-CgZ-FNj0.css +1 -0
- package/dist/assets/control-radio-text-S7MEO4a2.css +1 -0
- package/dist/assets/control-status-DPNvkGlM.css +1 -0
- package/dist/assets/control-text-n-qi7e2Y.css +1 -0
- package/dist/assets/control-textarea-B6gWlJs3.css +1 -0
- package/dist/assets/data-protected-label-BN19_NZF.css +1 -0
- package/dist/assets/dialog-article-WnyHZI47.css +1 -0
- package/dist/assets/expenses-AU5q4idk.css +1 -0
- package/dist/assets/loader-DadlBlOF.css +1 -0
- package/dist/assets/main-DlyWXITA.css +1 -0
- package/dist/assets/message-block-DG1cePyB.css +1 -0
- package/dist/components/accordion-table/accordion-table.component.d.ts +9 -7
- package/dist/components/accordion-table/accordion-table.component.js +44 -41
- package/dist/components/bottom-bar/bottom-bar.component.js +2 -2
- package/dist/components/certifications/certifications.component.d.ts +6 -3
- package/dist/components/certifications/certifications.component.js +54 -46
- package/dist/components/data-protected-label/data-protected-label.component.d.ts +8 -3
- package/dist/components/data-protected-label/data-protected-label.component.js +31 -28
- package/dist/components/data-protected-label/index.d.ts +1 -0
- package/dist/components/data-protected-label/index.js +4 -0
- package/dist/components/dialog-article/dialog-article.component.d.ts +9 -3
- package/dist/components/dialog-article/dialog-article.component.js +51 -21
- package/dist/components/dialog-article/index.d.ts +1 -0
- package/dist/components/dialog-article/index.js +4 -0
- package/dist/components/expenses/expenses.component.d.ts +12 -7
- package/dist/components/expenses/expenses.component.js +26 -20
- package/dist/components/expenses/index.d.ts +1 -0
- package/dist/components/expenses/index.js +4 -0
- package/dist/components/flex/flex.component.d.ts +158 -158
- package/dist/components/footer/footer.component.d.ts +6 -3
- package/dist/components/footer/footer.component.js +39 -31
- package/dist/components/footer/index.d.ts +1 -1
- package/dist/components/info-panel/info-panel.component.d.ts +6 -3
- package/dist/components/info-panel/info-panel.component.js +20 -12
- package/dist/components/information/index.d.ts +1 -1
- package/dist/components/information/information.component.d.ts +5 -4
- package/dist/components/information/information.component.js +21 -12
- package/dist/components/loader/index.d.ts +1 -1
- package/dist/components/loader/loader.component.d.ts +9 -5
- package/dist/components/loader/loader.component.js +42 -55
- package/dist/components/loader/loader.utils.d.ts +2 -0
- package/dist/components/loader/loader.utils.js +13 -0
- package/dist/components/main-attachment/main-attachment.component.js +2 -2
- package/dist/components/message/index.d.ts +1 -1
- package/dist/components/message/message.component.d.ts +6 -3
- package/dist/components/message/message.component.js +23 -22
- package/dist/components/message-block/index.d.ts +1 -0
- package/dist/components/message-block/index.js +4 -0
- package/dist/components/message-block/message-block.component.d.ts +7 -2
- package/dist/components/message-block/message-block.component.js +36 -18
- package/dist/components/not-found/not-found.component.d.ts +6 -3
- package/dist/components/not-found/not-found.component.js +35 -27
- package/dist/components/payment/components/glass/glass.component.js +1 -1
- package/dist/components/sidebar/components/step/step.component.d.ts +1 -1
- package/dist/components/sidebar/components/step/step.component.js +6 -6
- package/dist/components/sidebar/sidebar.component.d.ts +1 -1
- package/dist/components/sidebar/sidebar.component.js +9 -9
- package/dist/components/signature/index.d.ts +1 -1
- package/dist/components/signature/signature.component.d.ts +4 -4
- package/dist/components/signature/signature.component.js +255 -263
- package/dist/components/text/components/tag/tag.component.d.ts +316 -316
- package/dist/components/text/text.component.d.ts +316 -316
- package/dist/components/user-panel/user-panel.component.d.ts +6 -3
- package/dist/components/user-panel/user-panel.component.js +35 -27
- package/dist/components/warranty/warranty.component.d.ts +6 -3
- package/dist/components/warranty/warranty.component.js +26 -19
- package/dist/controls/control-box/control-box.component.d.ts +15 -0
- package/dist/controls/control-box/control-box.component.js +33 -0
- package/dist/controls/control-box/index.d.ts +2 -0
- package/dist/controls/control-box/index.js +4 -0
- package/dist/controls/control-button/control-button.component.d.ts +18 -0
- package/dist/controls/control-button/control-button.component.js +84 -0
- package/dist/controls/control-button/index.d.ts +2 -0
- package/dist/controls/control-button/index.js +4 -0
- package/dist/{components/control/components/button-card/button-card.component.d.ts → controls/control-button-card/control-button-card.component.d.ts} +4 -3
- package/dist/controls/control-button-card/control-button-card.component.js +65 -0
- package/dist/controls/control-button-card/index.d.ts +2 -0
- package/dist/controls/control-button-card/index.js +4 -0
- package/dist/controls/control-button-radio/control-button-radio.component.d.ts +19 -0
- package/dist/controls/control-button-radio/control-button-radio.component.js +69 -0
- package/dist/controls/control-button-radio/index.d.ts +2 -0
- package/dist/controls/control-button-radio/index.js +4 -0
- package/dist/controls/control-button-text/control-button-text.component.d.ts +20 -0
- package/dist/controls/control-button-text/control-button-text.component.js +87 -0
- package/dist/controls/control-button-text/index.d.ts +2 -0
- package/dist/controls/control-button-text/index.js +4 -0
- package/dist/controls/control-card-image/control-card-image.component.d.ts +8 -0
- package/dist/controls/control-card-image/control-card-image.component.js +53 -0
- package/dist/controls/control-card-image/index.d.ts +2 -0
- package/dist/controls/control-card-image/index.js +4 -0
- package/dist/controls/control-card-text/control-card-text.component.d.ts +7 -0
- package/dist/controls/control-card-text/control-card-text.component.js +48 -0
- package/dist/controls/control-card-text/index.d.ts +2 -0
- package/dist/controls/control-card-text/index.js +4 -0
- package/dist/controls/control-checkbox/control-checkbox.component.d.ts +11 -0
- package/dist/controls/control-checkbox/control-checkbox.component.js +96 -0
- package/dist/controls/control-checkbox/index.d.ts +2 -0
- package/dist/controls/control-checkbox/index.js +4 -0
- package/dist/controls/control-choice/control-choice.component.d.ts +12 -0
- package/dist/controls/control-choice/control-choice.component.js +64 -0
- package/dist/controls/control-choice/index.d.ts +2 -0
- package/dist/controls/control-choice/index.js +4 -0
- package/dist/{components/control/components/dropdown/dropdown.component.d.ts → controls/control-dropdown/control-dropdown.component.d.ts} +4 -3
- package/dist/controls/control-dropdown/control-dropdown.component.js +106 -0
- package/dist/controls/control-dropdown/index.d.ts +2 -0
- package/dist/controls/control-dropdown/index.js +4 -0
- package/dist/controls/control-error-message/control-error-message.component.d.ts +7 -0
- package/dist/controls/control-error-message/control-error-message.component.js +16 -0
- package/dist/controls/control-error-message/index.d.ts +1 -0
- package/dist/controls/control-error-message/index.js +4 -0
- package/dist/controls/control-hidden-input/control-hidden-input.component.d.ts +15 -0
- package/dist/controls/control-hidden-input/control-hidden-input.component.js +41 -0
- package/dist/controls/control-hidden-input/index.d.ts +2 -0
- package/dist/controls/control-hidden-input/index.js +4 -0
- package/dist/controls/control-input/control-input.component.d.ts +11 -0
- package/dist/controls/control-input/control-input.component.js +973 -0
- package/dist/controls/control-input/index.d.ts +2 -0
- package/dist/controls/control-input/index.js +4 -0
- package/dist/controls/control-label/control-label.component.d.ts +13 -0
- package/dist/controls/control-label/control-label.component.js +30 -0
- package/dist/controls/control-label/index.d.ts +1 -0
- package/dist/controls/control-label/index.js +4 -0
- package/dist/controls/control-radio/control-radio.component.d.ts +14 -0
- package/dist/controls/control-radio/control-radio.component.js +79 -0
- package/dist/controls/control-radio/index.d.ts +2 -0
- package/dist/controls/control-radio/index.js +4 -0
- package/dist/controls/control-radio-label/control-radio-label.component.d.ts +22 -0
- package/dist/controls/control-radio-label/control-radio-label.component.js +39 -0
- package/dist/controls/control-radio-label/index.d.ts +1 -0
- package/dist/controls/control-radio-label/index.js +4 -0
- package/dist/controls/control-radio-text/control-radio-text.component.d.ts +10 -0
- package/dist/controls/control-radio-text/control-radio-text.component.js +45 -0
- package/dist/controls/control-radio-text/index.d.ts +2 -0
- package/dist/controls/control-radio-text/index.js +4 -0
- package/dist/controls/control-status/control-status.component.d.ts +11 -0
- package/dist/controls/control-status/control-status.component.js +42 -0
- package/dist/controls/control-status/index.d.ts +1 -0
- package/dist/controls/control-status/index.js +4 -0
- package/dist/controls/control-text/control-text.component.d.ts +11 -0
- package/dist/controls/control-text/control-text.component.js +70 -0
- package/dist/controls/control-text/index.d.ts +2 -0
- package/dist/controls/control-text/index.js +4 -0
- package/dist/controls/control-textarea/control-textarea.component.d.ts +15 -0
- package/dist/controls/control-textarea/control-textarea.component.js +63 -0
- package/dist/controls/control-textarea/index.d.ts +1 -0
- package/dist/controls/control-textarea/index.js +4 -0
- package/dist/controls/hooks/index.d.ts +1 -0
- package/dist/controls/hooks/index.js +4 -0
- package/dist/controls/hooks/use-choice/index.d.ts +1 -0
- package/dist/controls/hooks/use-choice/index.js +4 -0
- package/dist/{components/control/hooks/useChoice/useChoice.hook.d.ts → controls/hooks/use-choice/use-choice.hook.d.ts} +2 -2
- package/dist/controls/utils/functions/index.d.ts +1 -0
- package/dist/controls/utils/functions/index.js +7 -0
- package/dist/controls/utils/index.d.ts +2 -0
- package/dist/controls/utils/index.js +7 -0
- package/dist/{components/control/control.types.d.ts → controls/utils/types.d.ts} +11 -3
- package/dist/main.d.ts +35 -13
- package/dist/main.js +101 -59
- package/dist/utils/functions/functions.util.d.ts +12 -2
- package/dist/utils/functions/functions.util.js +7 -3
- package/dist/utils/functions/index.js +5 -4
- package/dist/utils/svg/svg.component.d.ts +2 -2
- package/dist/utils/types.d.ts +6 -1
- package/package.json +6 -1
- package/dist/animations/animation.component.d.ts +0 -10
- package/dist/animations/animation.component.js +0 -13
- package/dist/animations/fade-grow/fade-grow.component.d.ts +0 -14
- package/dist/animations/fade-grow/fade-grow.component.js +0 -40
- package/dist/animations/fade-scale/fade-scale.component.d.ts +0 -14
- package/dist/animations/fade-scale/fade-scale.component.js +0 -40
- package/dist/animations/fade-slide/fade-slide.component.d.ts +0 -15
- package/dist/animations/fade-slide/fade-slide.component.js +0 -41
- package/dist/animations/rotate/rotate.component.d.ts +0 -18
- package/dist/animations/rotate/rotate.component.js +0 -43
- package/dist/assets/box-b_yPaNPs.css +0 -1
- package/dist/assets/button-4MJZ7yPE.css +0 -1
- package/dist/assets/button-text-CNXFsTky.css +0 -1
- package/dist/assets/choice-pCBafXqx.css +0 -1
- package/dist/assets/control-Dk23qyF8.css +0 -1
- package/dist/assets/data-protected-label-zRn9upL6.css +0 -1
- package/dist/assets/dialog-article-lpJC_c40.css +0 -1
- package/dist/assets/expenses-8eaHjdlH.css +0 -1
- package/dist/assets/fade-grow-B23oZuuD.css +0 -1
- package/dist/assets/hidden-input-DHJQHUKd.css +0 -1
- package/dist/assets/input-Cckwgcro.css +0 -1
- package/dist/assets/label-bo2ALC-X.css +0 -1
- package/dist/assets/loader-C0f3AvRU.css +0 -1
- package/dist/assets/main-BK_1RcKG.css +0 -1
- package/dist/assets/message-block-BVk5u9rO.css +0 -1
- package/dist/assets/radio-label-Bd5UiESO.css +0 -1
- package/dist/assets/radio-text-BI17l0wD.css +0 -1
- package/dist/assets/status-6MH80dkz.css +0 -1
- package/dist/components/control/components/box/box.component.d.ts +0 -10
- package/dist/components/control/components/box/box.component.js +0 -32
- package/dist/components/control/components/button/button.component.d.ts +0 -16
- package/dist/components/control/components/button/button.component.js +0 -82
- package/dist/components/control/components/button-card/button-card.component.js +0 -9
- package/dist/components/control/components/button-radio/button-radio.component.d.ts +0 -17
- package/dist/components/control/components/button-radio/button-radio.component.js +0 -7
- package/dist/components/control/components/button-text/button-text.component.d.ts +0 -18
- package/dist/components/control/components/button-text/button-text.component.js +0 -86
- package/dist/components/control/components/card-image/card-image.component.d.ts +0 -7
- package/dist/components/control/components/card-image/card-image.component.js +0 -7
- package/dist/components/control/components/card-text/card-text.component.d.ts +0 -6
- package/dist/components/control/components/card-text/card-text.component.js +0 -7
- package/dist/components/control/components/checkbox/checkbox.component.d.ts +0 -9
- package/dist/components/control/components/checkbox/checkbox.component.js +0 -8
- package/dist/components/control/components/choice/choice.component.d.ts +0 -10
- package/dist/components/control/components/choice/choice.component.js +0 -52
- package/dist/components/control/components/dropdown/dropdown.component.js +0 -11
- package/dist/components/control/components/hidden-input/hidden-input.component.d.ts +0 -12
- package/dist/components/control/components/hidden-input/hidden-input.component.js +0 -25
- package/dist/components/control/components/input/input.component.d.ts +0 -10
- package/dist/components/control/components/input/input.component.js +0 -7
- package/dist/components/control/components/label/label.component.d.ts +0 -7
- package/dist/components/control/components/label/label.component.js +0 -28
- package/dist/components/control/components/radio/radio.component.d.ts +0 -9
- package/dist/components/control/components/radio/radio.component.js +0 -7
- package/dist/components/control/components/radio-label/radio-label.component.d.ts +0 -17
- package/dist/components/control/components/radio-label/radio-label.component.js +0 -37
- package/dist/components/control/components/radio-text/radio-text.component.d.ts +0 -9
- package/dist/components/control/components/radio-text/radio-text.component.js +0 -29
- package/dist/components/control/components/status/status.component.d.ts +0 -6
- package/dist/components/control/components/status/status.component.js +0 -37
- package/dist/components/control/components/text/text.component.d.ts +0 -9
- package/dist/components/control/components/text/text.component.js +0 -8
- package/dist/components/control/components/textarea/textarea.component.d.ts +0 -9
- package/dist/components/control/components/textarea/textarea.component.js +0 -6
- package/dist/components/control/control.component.d.ts +0 -41
- package/dist/components/control/control.component.js +0 -14
- package/dist/control.component-B9Ao9mfl.js +0 -557
- package/dist/input.component-C5xcmnfu.js +0 -999
- /package/dist/{components/control/hooks/useChoice/useChoice.hook.js → controls/hooks/use-choice/use-choice.hook.js} +0 -0
- /package/dist/{components/control → controls}/utils/functions/functions.util.d.ts +0 -0
- /package/dist/{components/control → controls}/utils/functions/functions.util.js +0 -0
|
@@ -1,20 +1,22 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import Fe, { useRef as
|
|
3
|
-
import {
|
|
4
|
-
import { useResizeObserver as
|
|
5
|
-
import { RefreshCw as
|
|
1
|
+
import { jsxs as ee, jsx as j } from "react/jsx-runtime";
|
|
2
|
+
import Fe, { useRef as Se, useState as se, useCallback as re, useEffect as we } from "react";
|
|
3
|
+
import { a as Be, g as Ne } from "../../_commonjsHelpers-CqEciG1_.js";
|
|
4
|
+
import { useResizeObserver as Ue } from "usehooks-ts";
|
|
5
|
+
import { RefreshCw as Ye, RotateCcw as He, Check as Ve } from "lucide-react";
|
|
6
6
|
import Ee from "clsx";
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
7
|
+
import { AnimationFadeScale as te } from "../../animations/animation-fade-scale/animation-fade-scale.component.js";
|
|
8
|
+
import { AnimationFadeSlide as Xe } from "../../animations/animation-fade-slide/animation-fade-slide.component.js";
|
|
9
|
+
import { ControlButton as Te } from "../../controls/control-button/control-button.component.js";
|
|
10
|
+
import { ControlButtonText as ue } from "../../controls/control-button-text/control-button-text.component.js";
|
|
11
|
+
import { Flex as ie } from "../flex/flex.component.js";
|
|
10
12
|
import { Text as he } from "../text/text.component.js";
|
|
11
|
-
import { Loader as
|
|
13
|
+
import { Loader as Je } from "../loader/loader.component.js";
|
|
12
14
|
import '../../assets/signature-qHi3xUi4.css';var fe = { exports: {} }, ce = { exports: {} }, le = { exports: {} }, I = {};
|
|
13
|
-
var
|
|
14
|
-
function
|
|
15
|
-
if (
|
|
16
|
-
|
|
17
|
-
var e = typeof Symbol == "function" && Symbol.for, n = e ? /* @__PURE__ */ Symbol.for("react.element") : 60103, r = e ? /* @__PURE__ */ Symbol.for("react.portal") : 60106, t = e ? /* @__PURE__ */ Symbol.for("react.fragment") : 60107, a = e ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108, o = e ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114, c = e ? /* @__PURE__ */ Symbol.for("react.provider") : 60109, u = e ? /* @__PURE__ */ Symbol.for("react.context") : 60110, d = e ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111, i = e ? /* @__PURE__ */ Symbol.for("react.concurrent_mode") : 60111, l = e ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112, v = e ? /* @__PURE__ */ Symbol.for("react.suspense") : 60113, m = e ? /* @__PURE__ */ Symbol.for("react.suspense_list") : 60120, _ = e ? /* @__PURE__ */ Symbol.for("react.memo") : 60115,
|
|
15
|
+
var Ce;
|
|
16
|
+
function Ze() {
|
|
17
|
+
if (Ce) return I;
|
|
18
|
+
Ce = 1;
|
|
19
|
+
var e = typeof Symbol == "function" && Symbol.for, n = e ? /* @__PURE__ */ Symbol.for("react.element") : 60103, r = e ? /* @__PURE__ */ Symbol.for("react.portal") : 60106, t = e ? /* @__PURE__ */ Symbol.for("react.fragment") : 60107, a = e ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108, o = e ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114, c = e ? /* @__PURE__ */ Symbol.for("react.provider") : 60109, u = e ? /* @__PURE__ */ Symbol.for("react.context") : 60110, d = e ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111, i = e ? /* @__PURE__ */ Symbol.for("react.concurrent_mode") : 60111, l = e ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112, v = e ? /* @__PURE__ */ Symbol.for("react.suspense") : 60113, m = e ? /* @__PURE__ */ Symbol.for("react.suspense_list") : 60120, _ = e ? /* @__PURE__ */ Symbol.for("react.memo") : 60115, x = e ? /* @__PURE__ */ Symbol.for("react.lazy") : 60116, b = e ? /* @__PURE__ */ Symbol.for("react.block") : 60121, P = e ? /* @__PURE__ */ Symbol.for("react.fundamental") : 60117, g = e ? /* @__PURE__ */ Symbol.for("react.responder") : 60118, W = e ? /* @__PURE__ */ Symbol.for("react.scope") : 60119;
|
|
18
20
|
function $(f) {
|
|
19
21
|
if (typeof f == "object" && f !== null) {
|
|
20
22
|
var X = f.$$typeof;
|
|
@@ -32,7 +34,7 @@ function Xe() {
|
|
|
32
34
|
switch (f = f && f.$$typeof, f) {
|
|
33
35
|
case u:
|
|
34
36
|
case l:
|
|
35
|
-
case
|
|
37
|
+
case x:
|
|
36
38
|
case _:
|
|
37
39
|
case c:
|
|
38
40
|
return f;
|
|
@@ -48,7 +50,7 @@ function Xe() {
|
|
|
48
50
|
function k(f) {
|
|
49
51
|
return $(f) === i;
|
|
50
52
|
}
|
|
51
|
-
return I.AsyncMode = d, I.ConcurrentMode = i, I.ContextConsumer = u, I.ContextProvider = c, I.Element = n, I.ForwardRef = l, I.Fragment = t, I.Lazy =
|
|
53
|
+
return I.AsyncMode = d, I.ConcurrentMode = i, I.ContextConsumer = u, I.ContextProvider = c, I.Element = n, I.ForwardRef = l, I.Fragment = t, I.Lazy = x, I.Memo = _, I.Portal = r, I.Profiler = o, I.StrictMode = a, I.Suspense = v, I.isAsyncMode = function(f) {
|
|
52
54
|
return k(f) || $(f) === d;
|
|
53
55
|
}, I.isConcurrentMode = k, I.isContextConsumer = function(f) {
|
|
54
56
|
return $(f) === u;
|
|
@@ -61,7 +63,7 @@ function Xe() {
|
|
|
61
63
|
}, I.isFragment = function(f) {
|
|
62
64
|
return $(f) === t;
|
|
63
65
|
}, I.isLazy = function(f) {
|
|
64
|
-
return $(f) ===
|
|
66
|
+
return $(f) === x;
|
|
65
67
|
}, I.isMemo = function(f) {
|
|
66
68
|
return $(f) === _;
|
|
67
69
|
}, I.isPortal = function(f) {
|
|
@@ -73,41 +75,41 @@ function Xe() {
|
|
|
73
75
|
}, I.isSuspense = function(f) {
|
|
74
76
|
return $(f) === v;
|
|
75
77
|
}, I.isValidElementType = function(f) {
|
|
76
|
-
return typeof f == "string" || typeof f == "function" || f === t || f === i || f === o || f === a || f === v || f === m || typeof f == "object" && f !== null && (f.$$typeof ===
|
|
78
|
+
return typeof f == "string" || typeof f == "function" || f === t || f === i || f === o || f === a || f === v || f === m || typeof f == "object" && f !== null && (f.$$typeof === x || f.$$typeof === _ || f.$$typeof === c || f.$$typeof === u || f.$$typeof === l || f.$$typeof === P || f.$$typeof === g || f.$$typeof === W || f.$$typeof === b);
|
|
77
79
|
}, I.typeOf = $, I;
|
|
78
80
|
}
|
|
79
81
|
var z = {};
|
|
80
|
-
var
|
|
81
|
-
function
|
|
82
|
-
return
|
|
83
|
-
var e = typeof Symbol == "function" && Symbol.for, n = e ? /* @__PURE__ */ Symbol.for("react.element") : 60103, r = e ? /* @__PURE__ */ Symbol.for("react.portal") : 60106, t = e ? /* @__PURE__ */ Symbol.for("react.fragment") : 60107, a = e ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108, o = e ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114, c = e ? /* @__PURE__ */ Symbol.for("react.provider") : 60109, u = e ? /* @__PURE__ */ Symbol.for("react.context") : 60110, d = e ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111, i = e ? /* @__PURE__ */ Symbol.for("react.concurrent_mode") : 60111, l = e ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112, v = e ? /* @__PURE__ */ Symbol.for("react.suspense") : 60113, m = e ? /* @__PURE__ */ Symbol.for("react.suspense_list") : 60120, _ = e ? /* @__PURE__ */ Symbol.for("react.memo") : 60115,
|
|
82
|
+
var Re;
|
|
83
|
+
function Ge() {
|
|
84
|
+
return Re || (Re = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
85
|
+
var e = typeof Symbol == "function" && Symbol.for, n = e ? /* @__PURE__ */ Symbol.for("react.element") : 60103, r = e ? /* @__PURE__ */ Symbol.for("react.portal") : 60106, t = e ? /* @__PURE__ */ Symbol.for("react.fragment") : 60107, a = e ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108, o = e ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114, c = e ? /* @__PURE__ */ Symbol.for("react.provider") : 60109, u = e ? /* @__PURE__ */ Symbol.for("react.context") : 60110, d = e ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111, i = e ? /* @__PURE__ */ Symbol.for("react.concurrent_mode") : 60111, l = e ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112, v = e ? /* @__PURE__ */ Symbol.for("react.suspense") : 60113, m = e ? /* @__PURE__ */ Symbol.for("react.suspense_list") : 60120, _ = e ? /* @__PURE__ */ Symbol.for("react.memo") : 60115, x = e ? /* @__PURE__ */ Symbol.for("react.lazy") : 60116, b = e ? /* @__PURE__ */ Symbol.for("react.block") : 60121, P = e ? /* @__PURE__ */ Symbol.for("react.fundamental") : 60117, g = e ? /* @__PURE__ */ Symbol.for("react.responder") : 60118, W = e ? /* @__PURE__ */ Symbol.for("react.scope") : 60119;
|
|
84
86
|
function $(p) {
|
|
85
87
|
return typeof p == "string" || typeof p == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
86
|
-
p === t || p === i || p === o || p === a || p === v || p === m || typeof p == "object" && p !== null && (p.$$typeof ===
|
|
88
|
+
p === t || p === i || p === o || p === a || p === v || p === m || typeof p == "object" && p !== null && (p.$$typeof === x || p.$$typeof === _ || p.$$typeof === c || p.$$typeof === u || p.$$typeof === l || p.$$typeof === P || p.$$typeof === g || p.$$typeof === W || p.$$typeof === b);
|
|
87
89
|
}
|
|
88
90
|
function k(p) {
|
|
89
91
|
if (typeof p == "object" && p !== null) {
|
|
90
92
|
var K = p.$$typeof;
|
|
91
93
|
switch (K) {
|
|
92
94
|
case n:
|
|
93
|
-
var
|
|
94
|
-
switch (
|
|
95
|
+
var oe = p.type;
|
|
96
|
+
switch (oe) {
|
|
95
97
|
case d:
|
|
96
98
|
case i:
|
|
97
99
|
case t:
|
|
98
100
|
case o:
|
|
99
101
|
case a:
|
|
100
102
|
case v:
|
|
101
|
-
return
|
|
103
|
+
return oe;
|
|
102
104
|
default:
|
|
103
|
-
var
|
|
104
|
-
switch (
|
|
105
|
+
var Pe = oe && oe.$$typeof;
|
|
106
|
+
switch (Pe) {
|
|
105
107
|
case u:
|
|
106
108
|
case l:
|
|
107
|
-
case
|
|
109
|
+
case x:
|
|
108
110
|
case _:
|
|
109
111
|
case c:
|
|
110
|
-
return
|
|
112
|
+
return Pe;
|
|
111
113
|
default:
|
|
112
114
|
return K;
|
|
113
115
|
}
|
|
@@ -117,7 +119,7 @@ function Je() {
|
|
|
117
119
|
}
|
|
118
120
|
}
|
|
119
121
|
}
|
|
120
|
-
var f = d, X = i, ne = u,
|
|
122
|
+
var f = d, X = i, ne = u, Q = c, O = n, S = l, B = t, F = x, y = _, G = r, U = o, Y = a, J = v, N = !1;
|
|
121
123
|
function Z(p) {
|
|
122
124
|
return N || (N = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), s(p) || k(p) === d;
|
|
123
125
|
}
|
|
@@ -140,7 +142,7 @@ function Je() {
|
|
|
140
142
|
return k(p) === t;
|
|
141
143
|
}
|
|
142
144
|
function T(p) {
|
|
143
|
-
return k(p) ===
|
|
145
|
+
return k(p) === x;
|
|
144
146
|
}
|
|
145
147
|
function R(p) {
|
|
146
148
|
return k(p) === _;
|
|
@@ -157,17 +159,17 @@ function Je() {
|
|
|
157
159
|
function H(p) {
|
|
158
160
|
return k(p) === v;
|
|
159
161
|
}
|
|
160
|
-
z.AsyncMode = f, z.ConcurrentMode = X, z.ContextConsumer = ne, z.ContextProvider =
|
|
162
|
+
z.AsyncMode = f, z.ConcurrentMode = X, z.ContextConsumer = ne, z.ContextProvider = Q, z.Element = O, z.ForwardRef = S, z.Fragment = B, z.Lazy = F, z.Memo = y, z.Portal = G, z.Profiler = U, z.StrictMode = Y, z.Suspense = J, z.isAsyncMode = Z, z.isConcurrentMode = s, z.isContextConsumer = h, z.isContextProvider = w, z.isElement = C, z.isForwardRef = E, z.isFragment = M, z.isLazy = T, z.isMemo = R, z.isPortal = A, z.isProfiler = L, z.isStrictMode = D, z.isSuspense = H, z.isValidElementType = $, z.typeOf = k;
|
|
161
163
|
})()), z;
|
|
162
164
|
}
|
|
163
|
-
var
|
|
164
|
-
function
|
|
165
|
-
return
|
|
165
|
+
var Oe;
|
|
166
|
+
function We() {
|
|
167
|
+
return Oe || (Oe = 1, process.env.NODE_ENV === "production" ? le.exports = Ze() : le.exports = Ge()), le.exports;
|
|
166
168
|
}
|
|
167
|
-
var pe,
|
|
168
|
-
function
|
|
169
|
-
if (
|
|
170
|
-
|
|
169
|
+
var pe, Me;
|
|
170
|
+
function Ke() {
|
|
171
|
+
if (Me) return pe;
|
|
172
|
+
Me = 1;
|
|
171
173
|
var e = Object.getOwnPropertySymbols, n = Object.prototype.hasOwnProperty, r = Object.prototype.propertyIsEnumerable;
|
|
172
174
|
function t(o) {
|
|
173
175
|
if (o == null)
|
|
@@ -210,25 +212,25 @@ function Ze() {
|
|
|
210
212
|
return d;
|
|
211
213
|
}, pe;
|
|
212
214
|
}
|
|
213
|
-
var ve,
|
|
214
|
-
function
|
|
215
|
-
if (
|
|
216
|
-
|
|
215
|
+
var ve, Ae;
|
|
216
|
+
function be() {
|
|
217
|
+
if (Ae) return ve;
|
|
218
|
+
Ae = 1;
|
|
217
219
|
var e = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
|
|
218
220
|
return ve = e, ve;
|
|
219
221
|
}
|
|
220
|
-
var ye,
|
|
221
|
-
function
|
|
222
|
-
return
|
|
222
|
+
var ye, De;
|
|
223
|
+
function qe() {
|
|
224
|
+
return De || (De = 1, ye = Function.call.bind(Object.prototype.hasOwnProperty)), ye;
|
|
223
225
|
}
|
|
224
|
-
var me,
|
|
225
|
-
function
|
|
226
|
-
if (
|
|
227
|
-
|
|
226
|
+
var me, ke;
|
|
227
|
+
function Qe() {
|
|
228
|
+
if (ke) return me;
|
|
229
|
+
ke = 1;
|
|
228
230
|
var e = function() {
|
|
229
231
|
};
|
|
230
232
|
if (process.env.NODE_ENV !== "production") {
|
|
231
|
-
var n = /* @__PURE__ */
|
|
233
|
+
var n = /* @__PURE__ */ be(), r = {}, t = /* @__PURE__ */ qe();
|
|
232
234
|
e = function(o) {
|
|
233
235
|
var c = "Warning: " + o;
|
|
234
236
|
typeof console < "u" && console.error(c);
|
|
@@ -251,8 +253,8 @@ function Ge() {
|
|
|
251
253
|
throw m.name = "Invariant Violation", m;
|
|
252
254
|
}
|
|
253
255
|
v = o[l](c, l, d, u, null, n);
|
|
254
|
-
} catch (
|
|
255
|
-
v =
|
|
256
|
+
} catch (x) {
|
|
257
|
+
v = x;
|
|
256
258
|
}
|
|
257
259
|
if (v && !(v instanceof Error) && e(
|
|
258
260
|
(d || "React class") + ": type specification of " + u + " `" + l + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof v + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
|
|
@@ -270,11 +272,11 @@ function Ge() {
|
|
|
270
272
|
process.env.NODE_ENV !== "production" && (r = {});
|
|
271
273
|
}, me = a, me;
|
|
272
274
|
}
|
|
273
|
-
var ge,
|
|
274
|
-
function
|
|
275
|
-
if (
|
|
276
|
-
|
|
277
|
-
var e =
|
|
275
|
+
var ge, je;
|
|
276
|
+
function et() {
|
|
277
|
+
if (je) return ge;
|
|
278
|
+
je = 1;
|
|
279
|
+
var e = We(), n = Ke(), r = /* @__PURE__ */ be(), t = /* @__PURE__ */ qe(), a = /* @__PURE__ */ Qe(), o = function() {
|
|
278
280
|
};
|
|
279
281
|
process.env.NODE_ENV !== "production" && (o = function(u) {
|
|
280
282
|
var d = "Warning: " + u;
|
|
@@ -308,21 +310,21 @@ function Ke() {
|
|
|
308
310
|
element: k(),
|
|
309
311
|
elementType: f(),
|
|
310
312
|
instanceOf: X,
|
|
311
|
-
node:
|
|
312
|
-
objectOf:
|
|
313
|
+
node: S(),
|
|
314
|
+
objectOf: Q,
|
|
313
315
|
oneOf: ne,
|
|
314
316
|
oneOfType: O,
|
|
315
|
-
shape:
|
|
317
|
+
shape: F,
|
|
316
318
|
exact: y
|
|
317
319
|
};
|
|
318
|
-
function
|
|
320
|
+
function x(s, h) {
|
|
319
321
|
return s === h ? s !== 0 || 1 / s === 1 / h : s !== s && h !== h;
|
|
320
322
|
}
|
|
321
|
-
function
|
|
323
|
+
function b(s, h) {
|
|
322
324
|
this.message = s, this.data = h && typeof h == "object" ? h : {}, this.stack = "";
|
|
323
325
|
}
|
|
324
|
-
|
|
325
|
-
function
|
|
326
|
+
b.prototype = Error.prototype;
|
|
327
|
+
function P(s) {
|
|
326
328
|
if (process.env.NODE_ENV !== "production")
|
|
327
329
|
var h = {}, w = 0;
|
|
328
330
|
function C(M, T, R, A, L, D, H) {
|
|
@@ -340,7 +342,7 @@ function Ke() {
|
|
|
340
342
|
), h[K] = !0, w++);
|
|
341
343
|
}
|
|
342
344
|
}
|
|
343
|
-
return T[R] == null ? M ? T[R] === null ? new
|
|
345
|
+
return T[R] == null ? M ? T[R] === null ? new b("The " + L + " `" + D + "` is marked as required " + ("in `" + A + "`, but its value is `null`.")) : new b("The " + L + " `" + D + "` is marked as required in " + ("`" + A + "`, but its value is `undefined`.")) : null : s(T, R, A, L, D);
|
|
344
346
|
}
|
|
345
347
|
var E = C.bind(null, !1);
|
|
346
348
|
return E.isRequired = C.bind(null, !0), E;
|
|
@@ -350,26 +352,26 @@ function Ke() {
|
|
|
350
352
|
var A = w[C], L = Y(A);
|
|
351
353
|
if (L !== s) {
|
|
352
354
|
var D = J(A);
|
|
353
|
-
return new
|
|
355
|
+
return new b(
|
|
354
356
|
"Invalid " + M + " `" + T + "` of type " + ("`" + D + "` supplied to `" + E + "`, expected ") + ("`" + s + "`."),
|
|
355
357
|
{ expectedType: s }
|
|
356
358
|
);
|
|
357
359
|
}
|
|
358
360
|
return null;
|
|
359
361
|
}
|
|
360
|
-
return
|
|
362
|
+
return P(h);
|
|
361
363
|
}
|
|
362
364
|
function W() {
|
|
363
|
-
return
|
|
365
|
+
return P(c);
|
|
364
366
|
}
|
|
365
367
|
function $(s) {
|
|
366
368
|
function h(w, C, E, M, T) {
|
|
367
369
|
if (typeof s != "function")
|
|
368
|
-
return new
|
|
370
|
+
return new b("Property `" + T + "` of component `" + E + "` has invalid PropType notation inside arrayOf.");
|
|
369
371
|
var R = w[C];
|
|
370
372
|
if (!Array.isArray(R)) {
|
|
371
373
|
var A = Y(R);
|
|
372
|
-
return new
|
|
374
|
+
return new b("Invalid " + M + " `" + T + "` of type " + ("`" + A + "` supplied to `" + E + "`, expected an array."));
|
|
373
375
|
}
|
|
374
376
|
for (var L = 0; L < R.length; L++) {
|
|
375
377
|
var D = s(R, L, E, M, T + "[" + L + "]", r);
|
|
@@ -378,39 +380,39 @@ function Ke() {
|
|
|
378
380
|
}
|
|
379
381
|
return null;
|
|
380
382
|
}
|
|
381
|
-
return
|
|
383
|
+
return P(h);
|
|
382
384
|
}
|
|
383
385
|
function k() {
|
|
384
386
|
function s(h, w, C, E, M) {
|
|
385
387
|
var T = h[w];
|
|
386
388
|
if (!u(T)) {
|
|
387
389
|
var R = Y(T);
|
|
388
|
-
return new
|
|
390
|
+
return new b("Invalid " + E + " `" + M + "` of type " + ("`" + R + "` supplied to `" + C + "`, expected a single ReactElement."));
|
|
389
391
|
}
|
|
390
392
|
return null;
|
|
391
393
|
}
|
|
392
|
-
return
|
|
394
|
+
return P(s);
|
|
393
395
|
}
|
|
394
396
|
function f() {
|
|
395
397
|
function s(h, w, C, E, M) {
|
|
396
398
|
var T = h[w];
|
|
397
399
|
if (!e.isValidElementType(T)) {
|
|
398
400
|
var R = Y(T);
|
|
399
|
-
return new
|
|
401
|
+
return new b("Invalid " + E + " `" + M + "` of type " + ("`" + R + "` supplied to `" + C + "`, expected a single ReactElement type."));
|
|
400
402
|
}
|
|
401
403
|
return null;
|
|
402
404
|
}
|
|
403
|
-
return
|
|
405
|
+
return P(s);
|
|
404
406
|
}
|
|
405
407
|
function X(s) {
|
|
406
408
|
function h(w, C, E, M, T) {
|
|
407
409
|
if (!(w[C] instanceof s)) {
|
|
408
410
|
var R = s.name || m, A = Z(w[C]);
|
|
409
|
-
return new
|
|
411
|
+
return new b("Invalid " + M + " `" + T + "` of type " + ("`" + A + "` supplied to `" + E + "`, expected ") + ("instance of `" + R + "`."));
|
|
410
412
|
}
|
|
411
413
|
return null;
|
|
412
414
|
}
|
|
413
|
-
return
|
|
415
|
+
return P(h);
|
|
414
416
|
}
|
|
415
417
|
function ne(s) {
|
|
416
418
|
if (!Array.isArray(s))
|
|
@@ -419,23 +421,23 @@ function Ke() {
|
|
|
419
421
|
) : o("Invalid argument supplied to oneOf, expected an array.")), c;
|
|
420
422
|
function h(w, C, E, M, T) {
|
|
421
423
|
for (var R = w[C], A = 0; A < s.length; A++)
|
|
422
|
-
if (
|
|
424
|
+
if (x(R, s[A]))
|
|
423
425
|
return null;
|
|
424
426
|
var L = JSON.stringify(s, function(H, p) {
|
|
425
427
|
var K = J(p);
|
|
426
428
|
return K === "symbol" ? String(p) : p;
|
|
427
429
|
});
|
|
428
|
-
return new
|
|
430
|
+
return new b("Invalid " + M + " `" + T + "` of value `" + String(R) + "` " + ("supplied to `" + E + "`, expected one of " + L + "."));
|
|
429
431
|
}
|
|
430
|
-
return
|
|
432
|
+
return P(h);
|
|
431
433
|
}
|
|
432
|
-
function
|
|
434
|
+
function Q(s) {
|
|
433
435
|
function h(w, C, E, M, T) {
|
|
434
436
|
if (typeof s != "function")
|
|
435
|
-
return new
|
|
437
|
+
return new b("Property `" + T + "` of component `" + E + "` has invalid PropType notation inside objectOf.");
|
|
436
438
|
var R = w[C], A = Y(R);
|
|
437
439
|
if (A !== "object")
|
|
438
|
-
return new
|
|
440
|
+
return new b("Invalid " + M + " `" + T + "` of type " + ("`" + A + "` supplied to `" + E + "`, expected an object."));
|
|
439
441
|
for (var L in R)
|
|
440
442
|
if (t(R, L)) {
|
|
441
443
|
var D = s(R, L, E, M, T + "." + L, r);
|
|
@@ -444,7 +446,7 @@ function Ke() {
|
|
|
444
446
|
}
|
|
445
447
|
return null;
|
|
446
448
|
}
|
|
447
|
-
return
|
|
449
|
+
return P(h);
|
|
448
450
|
}
|
|
449
451
|
function O(s) {
|
|
450
452
|
if (!Array.isArray(s))
|
|
@@ -464,26 +466,26 @@ function Ke() {
|
|
|
464
466
|
p.data && t(p.data, "expectedType") && L.push(p.data.expectedType);
|
|
465
467
|
}
|
|
466
468
|
var K = L.length > 0 ? ", expected one of type [" + L.join(", ") + "]" : "";
|
|
467
|
-
return new
|
|
469
|
+
return new b("Invalid " + R + " `" + A + "` supplied to " + ("`" + T + "`" + K + "."));
|
|
468
470
|
}
|
|
469
|
-
return
|
|
471
|
+
return P(C);
|
|
470
472
|
}
|
|
471
|
-
function
|
|
473
|
+
function S() {
|
|
472
474
|
function s(h, w, C, E, M) {
|
|
473
|
-
return G(h[w]) ? null : new
|
|
475
|
+
return G(h[w]) ? null : new b("Invalid " + E + " `" + M + "` supplied to " + ("`" + C + "`, expected a ReactNode."));
|
|
474
476
|
}
|
|
475
|
-
return
|
|
477
|
+
return P(s);
|
|
476
478
|
}
|
|
477
479
|
function B(s, h, w, C, E) {
|
|
478
|
-
return new
|
|
480
|
+
return new b(
|
|
479
481
|
(s || "React class") + ": " + h + " type `" + w + "." + C + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + E + "`."
|
|
480
482
|
);
|
|
481
483
|
}
|
|
482
|
-
function
|
|
484
|
+
function F(s) {
|
|
483
485
|
function h(w, C, E, M, T) {
|
|
484
486
|
var R = w[C], A = Y(R);
|
|
485
487
|
if (A !== "object")
|
|
486
|
-
return new
|
|
488
|
+
return new b("Invalid " + M + " `" + T + "` of type `" + A + "` " + ("supplied to `" + E + "`, expected `object`."));
|
|
487
489
|
for (var L in s) {
|
|
488
490
|
var D = s[L];
|
|
489
491
|
if (typeof D != "function")
|
|
@@ -494,20 +496,20 @@ function Ke() {
|
|
|
494
496
|
}
|
|
495
497
|
return null;
|
|
496
498
|
}
|
|
497
|
-
return
|
|
499
|
+
return P(h);
|
|
498
500
|
}
|
|
499
501
|
function y(s) {
|
|
500
502
|
function h(w, C, E, M, T) {
|
|
501
503
|
var R = w[C], A = Y(R);
|
|
502
504
|
if (A !== "object")
|
|
503
|
-
return new
|
|
505
|
+
return new b("Invalid " + M + " `" + T + "` of type `" + A + "` " + ("supplied to `" + E + "`, expected `object`."));
|
|
504
506
|
var L = n({}, w[C], s);
|
|
505
507
|
for (var D in L) {
|
|
506
508
|
var H = s[D];
|
|
507
509
|
if (t(s, D) && typeof H != "function")
|
|
508
510
|
return B(E, M, T, D, J(H));
|
|
509
511
|
if (!H)
|
|
510
|
-
return new
|
|
512
|
+
return new b(
|
|
511
513
|
"Invalid " + M + " `" + T + "` key `" + D + "` supplied to `" + E + "`.\nBad object: " + JSON.stringify(w[C], null, " ") + `
|
|
512
514
|
Valid keys: ` + JSON.stringify(Object.keys(s), null, " ")
|
|
513
515
|
);
|
|
@@ -517,7 +519,7 @@ Valid keys: ` + JSON.stringify(Object.keys(s), null, " ")
|
|
|
517
519
|
}
|
|
518
520
|
return null;
|
|
519
521
|
}
|
|
520
|
-
return
|
|
522
|
+
return P(h);
|
|
521
523
|
}
|
|
522
524
|
function G(s) {
|
|
523
525
|
switch (typeof s) {
|
|
@@ -591,11 +593,11 @@ Valid keys: ` + JSON.stringify(Object.keys(s), null, " ")
|
|
|
591
593
|
return _.checkPropTypes = a, _.resetWarningCache = a.resetWarningCache, _.PropTypes = _, _;
|
|
592
594
|
}, ge;
|
|
593
595
|
}
|
|
594
|
-
var _e,
|
|
595
|
-
function
|
|
596
|
-
if (
|
|
597
|
-
|
|
598
|
-
var e = /* @__PURE__ */
|
|
596
|
+
var _e, Ie;
|
|
597
|
+
function tt() {
|
|
598
|
+
if (Ie) return _e;
|
|
599
|
+
Ie = 1;
|
|
600
|
+
var e = /* @__PURE__ */ be();
|
|
599
601
|
function n() {
|
|
600
602
|
}
|
|
601
603
|
function r() {
|
|
@@ -639,14 +641,14 @@ function Qe() {
|
|
|
639
641
|
return o.PropTypes = o, o;
|
|
640
642
|
}, _e;
|
|
641
643
|
}
|
|
642
|
-
var
|
|
643
|
-
function
|
|
644
|
-
if (
|
|
645
|
-
if (
|
|
646
|
-
var e =
|
|
647
|
-
ce.exports = /* @__PURE__ */
|
|
644
|
+
var ze;
|
|
645
|
+
function rt() {
|
|
646
|
+
if (ze) return ce.exports;
|
|
647
|
+
if (ze = 1, process.env.NODE_ENV !== "production") {
|
|
648
|
+
var e = We(), n = !0;
|
|
649
|
+
ce.exports = /* @__PURE__ */ et()(e.isElement, n);
|
|
648
650
|
} else
|
|
649
|
-
ce.exports = /* @__PURE__ */
|
|
651
|
+
ce.exports = /* @__PURE__ */ tt()();
|
|
650
652
|
return ce.exports;
|
|
651
653
|
}
|
|
652
654
|
function ae(e, n, r) {
|
|
@@ -661,10 +663,10 @@ ae.prototype.distanceTo = function(e) {
|
|
|
661
663
|
ae.prototype.equals = function(e) {
|
|
662
664
|
return this.x === e.x && this.y === e.y && this.time === e.time;
|
|
663
665
|
};
|
|
664
|
-
function
|
|
666
|
+
function xe(e, n, r, t) {
|
|
665
667
|
this.startPoint = e, this.control1 = n, this.control2 = r, this.endPoint = t;
|
|
666
668
|
}
|
|
667
|
-
|
|
669
|
+
xe.prototype.length = function() {
|
|
668
670
|
for (var e = 10, n = 0, r = void 0, t = void 0, a = 0; a <= e; a += 1) {
|
|
669
671
|
var o = a / e, c = this._point(o, this.startPoint.x, this.control1.x, this.control2.x, this.endPoint.x), u = this._point(o, this.startPoint.y, this.control1.y, this.control2.y, this.endPoint.y);
|
|
670
672
|
if (a > 0) {
|
|
@@ -675,10 +677,10 @@ be.prototype.length = function() {
|
|
|
675
677
|
}
|
|
676
678
|
return n;
|
|
677
679
|
};
|
|
678
|
-
|
|
680
|
+
xe.prototype._point = function(e, n, r, t, a) {
|
|
679
681
|
return n * (1 - e) * (1 - e) * (1 - e) + 3 * r * (1 - e) * (1 - e) * e + 3 * t * (1 - e) * e * e + a * e * e * e;
|
|
680
682
|
};
|
|
681
|
-
function
|
|
683
|
+
function nt(e, n, r) {
|
|
682
684
|
var t, a, o, c = null, u = 0;
|
|
683
685
|
r || (r = {});
|
|
684
686
|
var d = function() {
|
|
@@ -691,9 +693,9 @@ function tt(e, n, r) {
|
|
|
691
693
|
return t = this, a = arguments, l <= 0 || l > n ? (c && (clearTimeout(c), c = null), u = i, o = e.apply(t, a), c || (t = a = null)) : !c && r.trailing !== !1 && (c = setTimeout(d, l)), o;
|
|
692
694
|
};
|
|
693
695
|
}
|
|
694
|
-
function
|
|
696
|
+
function q(e, n) {
|
|
695
697
|
var r = this, t = n || {};
|
|
696
|
-
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 =
|
|
698
|
+
this.velocityFilterWeight = t.velocityFilterWeight || 0.7, this.minWidth = t.minWidth || 0.5, this.maxWidth = t.maxWidth || 2.5, this.throttle = "throttle" in t ? t.throttle : 16, this.minDistance = "minDistance" in t ? t.minDistance : 5, this.throttle ? this._strokeMoveUpdate = nt(q.prototype._strokeUpdate, this.throttle) : this._strokeMoveUpdate = q.prototype._strokeUpdate, this.dotSize = t.dotSize || function() {
|
|
697
699
|
return (this.minWidth + this.maxWidth) / 2;
|
|
698
700
|
}, this.penColor = t.penColor || "black", this.backgroundColor = t.backgroundColor || "rgba(0,0,0,0)", this.onBegin = t.onBegin, this.onEnd = t.onEnd, this._canvas = e, this._ctx = e.getContext("2d"), this.clear(), this._handleMouseDown = function(a) {
|
|
699
701
|
a.which === 1 && (r._mouseButtonDown = !0, r._strokeBegin(a));
|
|
@@ -715,17 +717,17 @@ function F(e, n) {
|
|
|
715
717
|
o && (a.preventDefault(), r._strokeEnd(a));
|
|
716
718
|
}, this.on();
|
|
717
719
|
}
|
|
718
|
-
|
|
720
|
+
q.prototype.clear = function() {
|
|
719
721
|
var e = this._ctx, n = this._canvas;
|
|
720
722
|
e.fillStyle = this.backgroundColor, e.clearRect(0, 0, n.width, n.height), e.fillRect(0, 0, n.width, n.height), this._data = [], this._reset(), this._isEmpty = !0;
|
|
721
723
|
};
|
|
722
|
-
|
|
724
|
+
q.prototype.fromDataURL = function(e) {
|
|
723
725
|
var n = this, r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, t = new Image(), a = r.ratio || window.devicePixelRatio || 1, o = r.width || this._canvas.width / a, c = r.height || this._canvas.height / a;
|
|
724
726
|
this._reset(), t.src = e, t.onload = function() {
|
|
725
727
|
n._ctx.drawImage(t, 0, 0, o, c);
|
|
726
728
|
}, this._isEmpty = !1;
|
|
727
729
|
};
|
|
728
|
-
|
|
730
|
+
q.prototype.toDataURL = function(e) {
|
|
729
731
|
var n;
|
|
730
732
|
switch (e) {
|
|
731
733
|
case "image/svg+xml":
|
|
@@ -736,19 +738,19 @@ F.prototype.toDataURL = function(e) {
|
|
|
736
738
|
return (n = this._canvas).toDataURL.apply(n, [e].concat(t));
|
|
737
739
|
}
|
|
738
740
|
};
|
|
739
|
-
|
|
741
|
+
q.prototype.on = function() {
|
|
740
742
|
this._handleMouseEvents(), this._handleTouchEvents();
|
|
741
743
|
};
|
|
742
|
-
|
|
744
|
+
q.prototype.off = function() {
|
|
743
745
|
this._canvas.removeEventListener("mousedown", this._handleMouseDown), this._canvas.removeEventListener("mousemove", this._handleMouseMove), document.removeEventListener("mouseup", this._handleMouseUp), this._canvas.removeEventListener("touchstart", this._handleTouchStart), this._canvas.removeEventListener("touchmove", this._handleTouchMove), this._canvas.removeEventListener("touchend", this._handleTouchEnd);
|
|
744
746
|
};
|
|
745
|
-
|
|
747
|
+
q.prototype.isEmpty = function() {
|
|
746
748
|
return this._isEmpty;
|
|
747
749
|
};
|
|
748
|
-
|
|
750
|
+
q.prototype._strokeBegin = function(e) {
|
|
749
751
|
this._data.push([]), this._reset(), this._strokeUpdate(e), typeof this.onBegin == "function" && this.onBegin(e);
|
|
750
752
|
};
|
|
751
|
-
|
|
753
|
+
q.prototype._strokeUpdate = function(e) {
|
|
752
754
|
var n = e.clientX, r = e.clientY, t = this._createPoint(n, r), a = this._data[this._data.length - 1], o = a && a[a.length - 1], c = o && t.distanceTo(o) < this.minDistance;
|
|
753
755
|
if (!(o && c)) {
|
|
754
756
|
var u = this._addPoint(t), d = u.curve, i = u.widths;
|
|
@@ -760,7 +762,7 @@ F.prototype._strokeUpdate = function(e) {
|
|
|
760
762
|
});
|
|
761
763
|
}
|
|
762
764
|
};
|
|
763
|
-
|
|
765
|
+
q.prototype._strokeEnd = function(e) {
|
|
764
766
|
var n = this.points.length > 2, r = this.points[0];
|
|
765
767
|
if (!n && r && this._drawDot(r), r) {
|
|
766
768
|
var t = this._data[this._data.length - 1], a = t[t.length - 1];
|
|
@@ -773,66 +775,66 @@ F.prototype._strokeEnd = function(e) {
|
|
|
773
775
|
}
|
|
774
776
|
typeof this.onEnd == "function" && this.onEnd(e);
|
|
775
777
|
};
|
|
776
|
-
|
|
778
|
+
q.prototype._handleMouseEvents = function() {
|
|
777
779
|
this._mouseButtonDown = !1, this._canvas.addEventListener("mousedown", this._handleMouseDown), this._canvas.addEventListener("mousemove", this._handleMouseMove), document.addEventListener("mouseup", this._handleMouseUp);
|
|
778
780
|
};
|
|
779
|
-
|
|
781
|
+
q.prototype._handleTouchEvents = function() {
|
|
780
782
|
this._canvas.style.msTouchAction = "none", this._canvas.style.touchAction = "none", this._canvas.addEventListener("touchstart", this._handleTouchStart), this._canvas.addEventListener("touchmove", this._handleTouchMove), this._canvas.addEventListener("touchend", this._handleTouchEnd);
|
|
781
783
|
};
|
|
782
|
-
|
|
784
|
+
q.prototype._reset = function() {
|
|
783
785
|
this.points = [], this._lastVelocity = 0, this._lastWidth = (this.minWidth + this.maxWidth) / 2, this._ctx.fillStyle = this.penColor;
|
|
784
786
|
};
|
|
785
|
-
|
|
787
|
+
q.prototype._createPoint = function(e, n, r) {
|
|
786
788
|
var t = this._canvas.getBoundingClientRect();
|
|
787
789
|
return new ae(e - t.left, n - t.top, r || (/* @__PURE__ */ new Date()).getTime());
|
|
788
790
|
};
|
|
789
|
-
|
|
791
|
+
q.prototype._addPoint = function(e) {
|
|
790
792
|
var n = this.points, r = void 0;
|
|
791
793
|
if (n.push(e), n.length > 2) {
|
|
792
794
|
n.length === 3 && n.unshift(n[0]), r = this._calculateCurveControlPoints(n[0], n[1], n[2]);
|
|
793
795
|
var t = r.c2;
|
|
794
796
|
r = this._calculateCurveControlPoints(n[1], n[2], n[3]);
|
|
795
|
-
var a = r.c1, o = new
|
|
797
|
+
var a = r.c1, o = new xe(n[1], t, a, n[2]), c = this._calculateCurveWidths(o);
|
|
796
798
|
return n.shift(), { curve: o, widths: c };
|
|
797
799
|
}
|
|
798
800
|
return {};
|
|
799
801
|
};
|
|
800
|
-
|
|
801
|
-
var t = e.x - n.x, a = e.y - n.y, o = n.x - r.x, c = n.y - r.y, u = { x: (e.x + n.x) / 2, y: (e.y + n.y) / 2 }, d = { x: (n.x + r.x) / 2, y: (n.y + r.y) / 2 }, i = Math.sqrt(t * t + a * a), l = Math.sqrt(o * o + c * c), v = u.x - d.x, m = u.y - d.y, _ = l / (i + l),
|
|
802
|
+
q.prototype._calculateCurveControlPoints = function(e, n, r) {
|
|
803
|
+
var t = e.x - n.x, a = e.y - n.y, o = n.x - r.x, c = n.y - r.y, u = { x: (e.x + n.x) / 2, y: (e.y + n.y) / 2 }, d = { x: (n.x + r.x) / 2, y: (n.y + r.y) / 2 }, i = Math.sqrt(t * t + a * a), l = Math.sqrt(o * o + c * c), v = u.x - d.x, m = u.y - d.y, _ = l / (i + l), x = { x: d.x + v * _, y: d.y + m * _ }, b = n.x - x.x, P = n.y - x.y;
|
|
802
804
|
return {
|
|
803
|
-
c1: new ae(u.x +
|
|
804
|
-
c2: new ae(d.x +
|
|
805
|
+
c1: new ae(u.x + b, u.y + P),
|
|
806
|
+
c2: new ae(d.x + b, d.y + P)
|
|
805
807
|
};
|
|
806
808
|
};
|
|
807
|
-
|
|
809
|
+
q.prototype._calculateCurveWidths = function(e) {
|
|
808
810
|
var n = e.startPoint, r = e.endPoint, t = { start: null, end: null }, a = this.velocityFilterWeight * r.velocityFrom(n) + (1 - this.velocityFilterWeight) * this._lastVelocity, o = this._strokeWidth(a);
|
|
809
811
|
return t.start = this._lastWidth, t.end = o, this._lastVelocity = a, this._lastWidth = o, t;
|
|
810
812
|
};
|
|
811
|
-
|
|
813
|
+
q.prototype._strokeWidth = function(e) {
|
|
812
814
|
return Math.max(this.maxWidth / (e + 1), this.minWidth);
|
|
813
815
|
};
|
|
814
|
-
|
|
816
|
+
q.prototype._drawPoint = function(e, n, r) {
|
|
815
817
|
var t = this._ctx;
|
|
816
818
|
t.moveTo(e, n), t.arc(e, n, r, 0, 2 * Math.PI, !1), this._isEmpty = !1;
|
|
817
819
|
};
|
|
818
|
-
|
|
820
|
+
q.prototype._drawCurve = function(e, n, r) {
|
|
819
821
|
var t = this._ctx, a = r - n, o = Math.floor(e.length());
|
|
820
822
|
t.beginPath();
|
|
821
823
|
for (var c = 0; c < o; c += 1) {
|
|
822
824
|
var u = c / o, d = u * u, i = d * u, l = 1 - u, v = l * l, m = v * l, _ = m * e.startPoint.x;
|
|
823
825
|
_ += 3 * v * u * e.control1.x, _ += 3 * l * d * e.control2.x, _ += i * e.endPoint.x;
|
|
824
|
-
var
|
|
825
|
-
|
|
826
|
-
var
|
|
827
|
-
this._drawPoint(_,
|
|
826
|
+
var x = m * e.startPoint.y;
|
|
827
|
+
x += 3 * v * u * e.control1.y, x += 3 * l * d * e.control2.y, x += i * e.endPoint.y;
|
|
828
|
+
var b = n + i * a;
|
|
829
|
+
this._drawPoint(_, x, b);
|
|
828
830
|
}
|
|
829
831
|
t.closePath(), t.fill();
|
|
830
832
|
};
|
|
831
|
-
|
|
833
|
+
q.prototype._drawDot = function(e) {
|
|
832
834
|
var n = this._ctx, r = typeof this.dotSize == "function" ? this.dotSize() : this.dotSize;
|
|
833
835
|
n.beginPath(), this._drawPoint(e.x, e.y, r), n.closePath(), n.fill();
|
|
834
836
|
};
|
|
835
|
-
|
|
837
|
+
q.prototype._fromData = function(e, n, r) {
|
|
836
838
|
for (var t = 0; t < e.length; t += 1) {
|
|
837
839
|
var a = e[t];
|
|
838
840
|
if (a.length > 1)
|
|
@@ -852,7 +854,7 @@ F.prototype._fromData = function(e, n, r) {
|
|
|
852
854
|
}
|
|
853
855
|
}
|
|
854
856
|
};
|
|
855
|
-
|
|
857
|
+
q.prototype._toSVG = function() {
|
|
856
858
|
var e = this, n = this._data, r = this._canvas, t = Math.max(window.devicePixelRatio || 1, 1), a = 0, o = 0, c = r.width / t, u = r.height / t, d = document.createElementNS("http://www.w3.org/2000/svg", "svg");
|
|
857
859
|
d.setAttributeNS(null, "width", r.width), d.setAttributeNS(null, "height", r.height), this._fromData(n, function(g, W, $) {
|
|
858
860
|
var k = document.createElement("path");
|
|
@@ -868,14 +870,14 @@ F.prototype._toSVG = function() {
|
|
|
868
870
|
if (v === void 0) {
|
|
869
871
|
var m = document.createElement("dummy"), _ = d.childNodes;
|
|
870
872
|
m.innerHTML = "";
|
|
871
|
-
for (var
|
|
872
|
-
m.appendChild(_[
|
|
873
|
+
for (var x = 0; x < _.length; x += 1)
|
|
874
|
+
m.appendChild(_[x].cloneNode(!0));
|
|
873
875
|
v = m.innerHTML;
|
|
874
876
|
}
|
|
875
|
-
var
|
|
876
|
-
return i + btoa(
|
|
877
|
+
var b = "</svg>", P = l + v + b;
|
|
878
|
+
return i + btoa(P);
|
|
877
879
|
};
|
|
878
|
-
|
|
880
|
+
q.prototype.fromData = function(e) {
|
|
879
881
|
var n = this;
|
|
880
882
|
this.clear(), this._fromData(e, function(r, t) {
|
|
881
883
|
return n._drawCurve(r, t.start, t.end);
|
|
@@ -883,19 +885,19 @@ F.prototype.fromData = function(e) {
|
|
|
883
885
|
return n._drawDot(r);
|
|
884
886
|
}), this._data = e;
|
|
885
887
|
};
|
|
886
|
-
|
|
888
|
+
q.prototype.toData = function() {
|
|
887
889
|
return this._data;
|
|
888
890
|
};
|
|
889
|
-
const
|
|
891
|
+
const at = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
890
892
|
__proto__: null,
|
|
891
|
-
default:
|
|
892
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
893
|
-
var de = { exports: {} },
|
|
894
|
-
function
|
|
895
|
-
return
|
|
893
|
+
default: q
|
|
894
|
+
}, Symbol.toStringTag, { value: "Module" })), it = /* @__PURE__ */ Be(at);
|
|
895
|
+
var de = { exports: {} }, ot = de.exports, $e;
|
|
896
|
+
function st() {
|
|
897
|
+
return $e || ($e = 1, (function(e, n) {
|
|
896
898
|
(function(r, t) {
|
|
897
899
|
e.exports = t();
|
|
898
|
-
})(
|
|
900
|
+
})(ot, function() {
|
|
899
901
|
return (function(r) {
|
|
900
902
|
function t(o) {
|
|
901
903
|
if (a[o]) return a[o].exports;
|
|
@@ -906,7 +908,7 @@ function it() {
|
|
|
906
908
|
return t.m = r, t.c = a, t.p = "", t(0);
|
|
907
909
|
})([function(r, t) {
|
|
908
910
|
function a(i) {
|
|
909
|
-
var l = i.getContext("2d"), v = i.width, m = i.height, _ = l.getImageData(0, 0, v, m).data,
|
|
911
|
+
var l = i.getContext("2d"), v = i.width, m = i.height, _ = l.getImageData(0, 0, v, m).data, x = u(!0, v, m, _), b = u(!1, v, m, _), P = d(!0, v, m, _), g = d(!1, v, m, _), W = g - P + 1, $ = b - x + 1, k = l.getImageData(P, x, W, $);
|
|
910
912
|
return i.width = W, i.height = $, l.clearRect(0, 0, W, $), l.putImageData(k, 0, 0), i;
|
|
911
913
|
}
|
|
912
914
|
function o(i, l, v, m) {
|
|
@@ -916,11 +918,11 @@ function it() {
|
|
|
916
918
|
return o(i, l, v, m).alpha;
|
|
917
919
|
}
|
|
918
920
|
function u(i, l, v, m) {
|
|
919
|
-
for (var _ = i ? 1 : -1,
|
|
921
|
+
for (var _ = i ? 1 : -1, x = i ? 0 : v - 1, b = x; i ? b < v : b > -1; b += _) for (var P = 0; P < l; P++) if (c(P, b, l, m)) return b;
|
|
920
922
|
return null;
|
|
921
923
|
}
|
|
922
924
|
function d(i, l, v, m) {
|
|
923
|
-
for (var _ = i ? 1 : -1,
|
|
925
|
+
for (var _ = i ? 1 : -1, x = i ? 0 : l - 1, b = x; i ? b < l : b > -1; b += _) for (var P = 0; P < v; P++) if (c(b, P, l, m)) return b;
|
|
924
926
|
return null;
|
|
925
927
|
}
|
|
926
928
|
Object.defineProperty(t, "__esModule", { value: !0 }), t.default = a;
|
|
@@ -928,12 +930,12 @@ function it() {
|
|
|
928
930
|
});
|
|
929
931
|
})(de)), de.exports;
|
|
930
932
|
}
|
|
931
|
-
var
|
|
932
|
-
function
|
|
933
|
-
return
|
|
933
|
+
var ut = fe.exports, Le;
|
|
934
|
+
function ct() {
|
|
935
|
+
return Le || (Le = 1, (function(e, n) {
|
|
934
936
|
(function(r, t) {
|
|
935
|
-
e.exports = t(/* @__PURE__ */
|
|
936
|
-
})(
|
|
937
|
+
e.exports = t(/* @__PURE__ */ rt(), Fe, it, st());
|
|
938
|
+
})(ut, function(r, t, a, o) {
|
|
937
939
|
return (function(c) {
|
|
938
940
|
function u(i) {
|
|
939
941
|
if (d[i]) return d[i].exports;
|
|
@@ -946,45 +948,45 @@ function st() {
|
|
|
946
948
|
function i(O) {
|
|
947
949
|
return O && O.__esModule ? O : { default: O };
|
|
948
950
|
}
|
|
949
|
-
function l(O,
|
|
951
|
+
function l(O, S) {
|
|
950
952
|
var B = {};
|
|
951
|
-
for (var
|
|
953
|
+
for (var F in O) S.indexOf(F) >= 0 || Object.prototype.hasOwnProperty.call(O, F) && (B[F] = O[F]);
|
|
952
954
|
return B;
|
|
953
955
|
}
|
|
954
|
-
function v(O,
|
|
955
|
-
if (!(O instanceof
|
|
956
|
+
function v(O, S) {
|
|
957
|
+
if (!(O instanceof S)) throw new TypeError("Cannot call a class as a function");
|
|
956
958
|
}
|
|
957
|
-
function m(O,
|
|
959
|
+
function m(O, S) {
|
|
958
960
|
if (!O) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
959
|
-
return !
|
|
961
|
+
return !S || typeof S != "object" && typeof S != "function" ? O : S;
|
|
960
962
|
}
|
|
961
|
-
function _(O,
|
|
962
|
-
if (typeof
|
|
963
|
-
O.prototype = Object.create(
|
|
963
|
+
function _(O, S) {
|
|
964
|
+
if (typeof S != "function" && S !== null) throw new TypeError("Super expression must either be null or a function, not " + typeof S);
|
|
965
|
+
O.prototype = Object.create(S && S.prototype, { constructor: { value: O, enumerable: !1, writable: !0, configurable: !0 } }), S && (Object.setPrototypeOf ? Object.setPrototypeOf(O, S) : O.__proto__ = S);
|
|
964
966
|
}
|
|
965
967
|
Object.defineProperty(u, "__esModule", { value: !0 });
|
|
966
|
-
var
|
|
967
|
-
for (var
|
|
968
|
-
var B = arguments[
|
|
969
|
-
for (var
|
|
968
|
+
var x = Object.assign || function(O) {
|
|
969
|
+
for (var S = 1; S < arguments.length; S++) {
|
|
970
|
+
var B = arguments[S];
|
|
971
|
+
for (var F in B) Object.prototype.hasOwnProperty.call(B, F) && (O[F] = B[F]);
|
|
970
972
|
}
|
|
971
973
|
return O;
|
|
972
|
-
},
|
|
973
|
-
function O(
|
|
974
|
-
for (var
|
|
975
|
-
var y = B[
|
|
976
|
-
y.enumerable = y.enumerable || !1, y.configurable = !0, "value" in y && (y.writable = !0), Object.defineProperty(
|
|
974
|
+
}, b = /* @__PURE__ */ (function() {
|
|
975
|
+
function O(S, B) {
|
|
976
|
+
for (var F = 0; F < B.length; F++) {
|
|
977
|
+
var y = B[F];
|
|
978
|
+
y.enumerable = y.enumerable || !1, y.configurable = !0, "value" in y && (y.writable = !0), Object.defineProperty(S, y.key, y);
|
|
977
979
|
}
|
|
978
980
|
}
|
|
979
|
-
return function(
|
|
980
|
-
return B && O(
|
|
981
|
+
return function(S, B, F) {
|
|
982
|
+
return B && O(S.prototype, B), F && O(S, F), S;
|
|
981
983
|
};
|
|
982
|
-
})(),
|
|
983
|
-
function
|
|
984
|
-
var B,
|
|
985
|
-
v(this,
|
|
984
|
+
})(), P = d(1), g = i(P), W = d(2), $ = i(W), k = d(3), f = i(k), X = d(4), ne = i(X), Q = (function(O) {
|
|
985
|
+
function S() {
|
|
986
|
+
var B, F, y, G;
|
|
987
|
+
v(this, S);
|
|
986
988
|
for (var U = arguments.length, Y = Array(U), J = 0; J < U; J++) Y[J] = arguments[J];
|
|
987
|
-
return
|
|
989
|
+
return F = y = m(this, (B = S.__proto__ || Object.getPrototypeOf(S)).call.apply(B, [this].concat(Y))), y._sigPad = null, y._excludeOurProps = function() {
|
|
988
990
|
var N = y.props, Z = (N.canvasProps, N.clearOnResize, l(N, ["canvasProps", "clearOnResize"]));
|
|
989
991
|
return Z;
|
|
990
992
|
}, y.getCanvas = function() {
|
|
@@ -1018,22 +1020,22 @@ function st() {
|
|
|
1018
1020
|
return y._sigPad.fromData(N);
|
|
1019
1021
|
}, y.toData = function() {
|
|
1020
1022
|
return y._sigPad.toData();
|
|
1021
|
-
}, G =
|
|
1023
|
+
}, G = F, m(y, G);
|
|
1022
1024
|
}
|
|
1023
|
-
return _(
|
|
1025
|
+
return _(S, O), b(S, [{ key: "componentDidMount", value: function() {
|
|
1024
1026
|
this._sigPad = new f.default(this._canvas, this._excludeOurProps()), this._resizeCanvas(), this.on();
|
|
1025
1027
|
} }, { key: "componentWillUnmount", value: function() {
|
|
1026
1028
|
this.off();
|
|
1027
1029
|
} }, { key: "componentDidUpdate", value: function() {
|
|
1028
1030
|
Object.assign(this._sigPad, this._excludeOurProps());
|
|
1029
1031
|
} }, { key: "render", value: function() {
|
|
1030
|
-
var B = this,
|
|
1031
|
-
return $.default.createElement("canvas",
|
|
1032
|
+
var B = this, F = this.props.canvasProps;
|
|
1033
|
+
return $.default.createElement("canvas", x({ ref: function(y) {
|
|
1032
1034
|
B._canvas = y;
|
|
1033
|
-
} },
|
|
1034
|
-
} }]),
|
|
1035
|
+
} }, F));
|
|
1036
|
+
} }]), S;
|
|
1035
1037
|
})(W.Component);
|
|
1036
|
-
|
|
1038
|
+
Q.propTypes = { velocityFilterWeight: g.default.number, minWidth: g.default.number, maxWidth: g.default.number, minDistance: g.default.number, dotSize: g.default.oneOfType([g.default.number, g.default.func]), penColor: g.default.string, throttle: g.default.number, onEnd: g.default.func, onBegin: g.default.func, canvasProps: g.default.object, clearOnResize: g.default.bool }, Q.defaultProps = { clearOnResize: !0 }, u.default = Q;
|
|
1037
1039
|
}, function(c, u) {
|
|
1038
1040
|
c.exports = r;
|
|
1039
1041
|
}, function(c, u) {
|
|
@@ -1046,23 +1048,23 @@ function st() {
|
|
|
1046
1048
|
});
|
|
1047
1049
|
})(fe)), fe.exports;
|
|
1048
1050
|
}
|
|
1049
|
-
var
|
|
1050
|
-
const
|
|
1051
|
-
Signature:
|
|
1052
|
-
SignatureMain:
|
|
1053
|
-
SignatureMainAuto:
|
|
1054
|
-
SignatureMainManual:
|
|
1055
|
-
SignatureHeader:
|
|
1056
|
-
SignatureHeaderReset:
|
|
1057
|
-
SignatureManualPanel:
|
|
1058
|
-
SignatureManualPanelPlaceholder:
|
|
1059
|
-
SignatureManualPanelButton:
|
|
1060
|
-
SignatureAutoPanelImage:
|
|
1061
|
-
SignatureAutoPanelLoader:
|
|
1062
|
-
SignatureAutoPanelNoteIcon:
|
|
1063
|
-
SignatureAutoPanelButton:
|
|
1064
|
-
},
|
|
1065
|
-
const {
|
|
1051
|
+
var lt = ct();
|
|
1052
|
+
const ft = /* @__PURE__ */ Ne(lt), dt = "_Signature_4mfzi_1", ht = "_SignatureMain_4mfzi_5", pt = "_SignatureMainAuto_4mfzi_15", vt = "_SignatureMainManual_4mfzi_19", yt = "_SignatureHeader_4mfzi_26", mt = "_SignatureHeaderReset_4mfzi_34", gt = "_SignatureManualPanel_4mfzi_41", _t = "_SignatureManualPanelPlaceholder_4mfzi_48", bt = "_SignatureManualPanelButton_4mfzi_52", xt = "_SignatureAutoPanelImage_4mfzi_67", Pt = "_SignatureAutoPanelLoader_4mfzi_72", St = "_SignatureAutoPanelNoteIcon_4mfzi_79", wt = "_SignatureAutoPanelButton_4mfzi_83", V = {
|
|
1053
|
+
Signature: dt,
|
|
1054
|
+
SignatureMain: ht,
|
|
1055
|
+
SignatureMainAuto: pt,
|
|
1056
|
+
SignatureMainManual: vt,
|
|
1057
|
+
SignatureHeader: yt,
|
|
1058
|
+
SignatureHeaderReset: mt,
|
|
1059
|
+
SignatureManualPanel: gt,
|
|
1060
|
+
SignatureManualPanelPlaceholder: _t,
|
|
1061
|
+
SignatureManualPanelButton: bt,
|
|
1062
|
+
SignatureAutoPanelImage: xt,
|
|
1063
|
+
SignatureAutoPanelLoader: Pt,
|
|
1064
|
+
SignatureAutoPanelNoteIcon: St,
|
|
1065
|
+
SignatureAutoPanelButton: wt
|
|
1066
|
+
}, Lt = (e) => {
|
|
1067
|
+
const { auto: n, manual: r, getSignature: t, onChangeManual: a, onChangeAuto: o, className: c = "" } = e, u = Se(null), d = Se(!1), [i, l] = se(null), [v, m] = se(r ? "manual" : "auto"), [_, x] = se(""), [b, P] = se(!1), { width: g = 0, height: W = 0 } = Ue({ ref: u, box: "border-box" }), $ = v === "auto" ? n ? "auto-generated" : "auto-loading" : _ ? "manual-drawn" : r ? "manual-stored" : "manual-blank", k = n !== "" || b, f = r || _, X = re(
|
|
1066
1068
|
(U) => {
|
|
1067
1069
|
!i || !g || !W || !U || i.fromDataURL(U, {
|
|
1068
1070
|
width: +g.toFixed(),
|
|
@@ -1073,17 +1075,17 @@ const ct = /* @__PURE__ */ Be(ut), lt = "_Signature_4mfzi_1", ft = "_SignatureMa
|
|
|
1073
1075
|
), ne = re(() => {
|
|
1074
1076
|
if (!i) return;
|
|
1075
1077
|
const U = i.getCanvas().toDataURL("image/png");
|
|
1076
|
-
|
|
1077
|
-
}, [i, a]),
|
|
1078
|
-
i && (i.clear(),
|
|
1078
|
+
x(U), a(U);
|
|
1079
|
+
}, [i, a]), Q = re(() => {
|
|
1080
|
+
i && (i.clear(), x(""), a(""));
|
|
1079
1081
|
}, [i, a]), O = re(() => {
|
|
1080
|
-
m("auto"),
|
|
1081
|
-
}, []),
|
|
1082
|
+
m("auto"), x("");
|
|
1083
|
+
}, []), S = re(() => {
|
|
1082
1084
|
m("manual");
|
|
1083
1085
|
}, []), B = re(() => {
|
|
1084
|
-
m("manual"),
|
|
1085
|
-
}, [a]),
|
|
1086
|
-
_ &&
|
|
1086
|
+
m("manual"), x(""), a("");
|
|
1087
|
+
}, [a]), F = re(() => {
|
|
1088
|
+
_ && x("");
|
|
1087
1089
|
}, [_]), y = (U) => U.includes($);
|
|
1088
1090
|
we(() => {
|
|
1089
1091
|
v === "manual" && _ && g && W && X(_);
|
|
@@ -1094,21 +1096,21 @@ const ct = /* @__PURE__ */ Be(ut), lt = "_Signature_4mfzi_1", ft = "_SignatureMa
|
|
|
1094
1096
|
}
|
|
1095
1097
|
d.current || (d.current = !0, t().then((U) => {
|
|
1096
1098
|
const Y = `data:image/png;base64,${U.signature}`;
|
|
1097
|
-
|
|
1099
|
+
P(!1), o(Y);
|
|
1098
1100
|
}).catch(() => {
|
|
1099
|
-
|
|
1101
|
+
P(!0);
|
|
1100
1102
|
}));
|
|
1101
1103
|
}, [n, t, o]);
|
|
1102
1104
|
const G = re(() => {
|
|
1103
|
-
|
|
1105
|
+
P(!1), d.current = !0, t().then((U) => {
|
|
1104
1106
|
const Y = `data:image/png;base64,${U.signature}`;
|
|
1105
|
-
|
|
1107
|
+
P(!1), o(Y);
|
|
1106
1108
|
}).catch(() => {
|
|
1107
|
-
|
|
1109
|
+
P(!0);
|
|
1108
1110
|
});
|
|
1109
1111
|
}, [t, o]);
|
|
1110
|
-
return /* @__PURE__ */
|
|
1111
|
-
/* @__PURE__ */
|
|
1112
|
+
return /* @__PURE__ */ ee("div", { className: Ee(V.Signature, c), children: [
|
|
1113
|
+
/* @__PURE__ */ ee(
|
|
1112
1114
|
"div",
|
|
1113
1115
|
{
|
|
1114
1116
|
className: Ee(
|
|
@@ -1117,40 +1119,40 @@ const ct = /* @__PURE__ */ Be(ut), lt = "_Signature_4mfzi_1", ft = "_SignatureMa
|
|
|
1117
1119
|
),
|
|
1118
1120
|
ref: u,
|
|
1119
1121
|
children: [
|
|
1120
|
-
/* @__PURE__ */
|
|
1121
|
-
/* @__PURE__ */
|
|
1122
|
-
/* @__PURE__ */ j(
|
|
1123
|
-
/* @__PURE__ */ j(
|
|
1122
|
+
/* @__PURE__ */ ee(ie, { direction: "row", justify: y(["manual-drawn"]) ? "end" : "center", className: V.SignatureHeader, children: [
|
|
1123
|
+
/* @__PURE__ */ ee(he.Tag, { tag: "h6", weight: "medium", size: "regular", color: "primary", align: "center", children: [
|
|
1124
|
+
/* @__PURE__ */ j(te, { name: "generated-signature", condition: y(["auto-generated", "auto-loading"]), children: "Wir haben eine digitale Signature Sie generiert." }),
|
|
1125
|
+
/* @__PURE__ */ j(te, { name: "create-signature", condition: y(["manual-blank", "manual-stored"]), children: "Ihre Signatur:" })
|
|
1124
1126
|
] }),
|
|
1125
|
-
/* @__PURE__ */ j(
|
|
1127
|
+
/* @__PURE__ */ j(Xe, { name: "reset", direction: "rtl", condition: y(["manual-drawn"]), children: /* @__PURE__ */ j("div", { className: V.SignatureHeaderReset, children: /* @__PURE__ */ j(ue, { blurAfterClick: !0, underlined: !0, icon: /* @__PURE__ */ j(Ye, {}), onClick: Q, children: "Neu starten" }) }) })
|
|
1126
1128
|
] }),
|
|
1127
|
-
/* @__PURE__ */ j(
|
|
1128
|
-
/* @__PURE__ */ j(
|
|
1129
|
-
/* @__PURE__ */ j(
|
|
1130
|
-
/* @__PURE__ */ j(
|
|
1129
|
+
/* @__PURE__ */ j(ie, { direction: "row", align: "end", justify: "center", children: y(["auto-generated", "auto-loading"]) ? /* @__PURE__ */ ee(ie, { direction: "column", align: "center", justify: "start", children: [
|
|
1130
|
+
/* @__PURE__ */ j(te, { name: "signature", condition: n !== "", children: /* @__PURE__ */ j("img", { className: V.SignatureAutoPanelImage, src: n, alt: "signature" }) }),
|
|
1131
|
+
/* @__PURE__ */ j(te, { name: "signature", condition: n === "" && !b, children: /* @__PURE__ */ j("div", { className: V.SignatureAutoPanelLoader, style: { height: 142 }, children: /* @__PURE__ */ j(Je, { size: "sm", color: "accent-primary" }) }) }),
|
|
1132
|
+
/* @__PURE__ */ j(te, { name: "auto-failed", condition: n === "" && b, children: /* @__PURE__ */ ee(ie, { direction: "column", align: "center", justify: "center", style: { height: 78 }, gap: "xs", children: [
|
|
1131
1133
|
/* @__PURE__ */ j(he.Tag, { weight: "regular", size: "small", color: "secondary", children: "Automatische Signatur konnte nicht geladen werden." }),
|
|
1132
1134
|
/* @__PURE__ */ j(
|
|
1133
|
-
|
|
1135
|
+
ue,
|
|
1134
1136
|
{
|
|
1135
1137
|
blurAfterClick: !0,
|
|
1136
1138
|
underlined: !0,
|
|
1137
1139
|
size: "sm",
|
|
1138
1140
|
iconPosition: "right",
|
|
1139
|
-
icon: /* @__PURE__ */ j(
|
|
1141
|
+
icon: /* @__PURE__ */ j(He, {}),
|
|
1140
1142
|
onClick: G,
|
|
1141
1143
|
children: "Erneut versuchen"
|
|
1142
1144
|
}
|
|
1143
1145
|
)
|
|
1144
1146
|
] }) }),
|
|
1145
|
-
/* @__PURE__ */ j(
|
|
1146
|
-
/* @__PURE__ */ j(
|
|
1147
|
+
/* @__PURE__ */ j(te, { name: "auto-note", condition: n !== "", children: /* @__PURE__ */ ee(ie, { direction: "row", align: "center", justify: "center", gap: "xxs", mt: "xs", children: [
|
|
1148
|
+
/* @__PURE__ */ j(Ve, { size: 24, className: V.SignatureAutoPanelNoteIcon }),
|
|
1147
1149
|
/* @__PURE__ */ j(he.Tag, { weight: "regular", size: "small", color: "secondary", children: "Diese Unterschrift ist ausreichend" })
|
|
1148
1150
|
] }) }),
|
|
1149
|
-
/* @__PURE__ */ j(
|
|
1150
|
-
] }) : /* @__PURE__ */
|
|
1151
|
+
/* @__PURE__ */ j(te, { name: "manual-switch", condition: k, children: /* @__PURE__ */ j("div", { className: V.SignatureAutoPanelButton, children: /* @__PURE__ */ j(ue, { blurAfterClick: !0, underlined: !0, onClick: S, children: "per Hand/Maus unterschreiben" }) }) })
|
|
1152
|
+
] }) : /* @__PURE__ */ ee("div", { className: V.SignatureManualPanel, children: [
|
|
1151
1153
|
/* @__PURE__ */ j("div", { className: V.SignatureManualPanelPlaceholder }),
|
|
1152
1154
|
y(["manual-stored"]) ? /* @__PURE__ */ j("img", { width: g, height: W, alt: "signature", src: f }) : /* @__PURE__ */ j(
|
|
1153
|
-
|
|
1155
|
+
ft,
|
|
1154
1156
|
{
|
|
1155
1157
|
penColor: "#262626",
|
|
1156
1158
|
dotSize: 2,
|
|
@@ -1164,34 +1166,24 @@ const ct = /* @__PURE__ */ Be(ut), lt = "_Signature_4mfzi_1", ft = "_SignatureMa
|
|
|
1164
1166
|
}
|
|
1165
1167
|
),
|
|
1166
1168
|
/* @__PURE__ */ j(
|
|
1167
|
-
|
|
1169
|
+
te,
|
|
1168
1170
|
{
|
|
1169
1171
|
name: "to-generated",
|
|
1170
1172
|
condition: y(["manual-stored"]),
|
|
1171
1173
|
className: V.SignatureManualPanelButton,
|
|
1172
|
-
children: /* @__PURE__ */ j(
|
|
1174
|
+
children: /* @__PURE__ */ j(ue, { blurAfterClick: !0, underlined: !0, onClick: B, children: "Zurücksetzen" })
|
|
1173
1175
|
}
|
|
1174
1176
|
)
|
|
1175
1177
|
] }) })
|
|
1176
1178
|
]
|
|
1177
1179
|
}
|
|
1178
1180
|
),
|
|
1179
|
-
/* @__PURE__ */ j(
|
|
1180
|
-
/* @__PURE__ */ j(
|
|
1181
|
-
/* @__PURE__ */ j(
|
|
1182
|
-
ie.Button,
|
|
1183
|
-
{
|
|
1184
|
-
fullWidth: !0,
|
|
1185
|
-
blurAfterClick: !0,
|
|
1186
|
-
color: "primary",
|
|
1187
|
-
disabled: !_,
|
|
1188
|
-
onClick: q,
|
|
1189
|
-
children: "Speichern"
|
|
1190
|
-
}
|
|
1191
|
-
)
|
|
1181
|
+
/* @__PURE__ */ j(te, { name: "footer", condition: y(["manual-blank", "manual-drawn"]), children: /* @__PURE__ */ ee(ie, { direction: "row", grow: "equal", align: "center", justify: "space-between", gap: "md", mt: "md", children: [
|
|
1182
|
+
/* @__PURE__ */ j(Te, { fullWidth: !0, blurAfterClick: !0, color: "tertiary", onClick: O, children: "Abbrechen" }),
|
|
1183
|
+
/* @__PURE__ */ j(Te, { fullWidth: !0, blurAfterClick: !0, color: "primary", disabled: !_, onClick: F, children: "Speichern" })
|
|
1192
1184
|
] }) })
|
|
1193
1185
|
] });
|
|
1194
1186
|
};
|
|
1195
1187
|
export {
|
|
1196
|
-
|
|
1188
|
+
Lt as Signature
|
|
1197
1189
|
};
|