@easyv/biz-components 2.1.3 → 2.1.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/lib/_virtual/index.es2.js +2 -2
- package/dist/lib/_virtual/index.es3.js +2 -2
- package/dist/lib/components/ai-components/ai-message-render/ai-message-render.es.js +1 -0
- package/dist/lib/components/ai-components/ai-message-render/ai-message-render.es.js.map +1 -1
- package/dist/lib/components/ai-components/mobile-voice-input/icon-button.es.js +3 -2
- package/dist/lib/components/ai-components/mobile-voice-input/icon-button.es.js.map +1 -1
- package/dist/lib/components/ai-components/mobile-voice-input/mobile-voice-input.es.js +11 -8
- package/dist/lib/components/ai-components/mobile-voice-input/mobile-voice-input.es.js.map +1 -1
- package/dist/lib/easyv-biz-components/src/components/easyv-reactgrid/test/easyv-react-grid.cy.d.ts +1 -0
- package/dist/lib/easyv-biz-components/src/components/voice-animation/test/voice-animation.cy.d.ts +1 -0
- package/dist/lib/easyv-biz-components/src/index.d.ts +4 -0
- package/dist/lib/easyv-biz-components/src/utils/show-modal/test/show-modal.cy.d.ts +1 -0
- package/dist/lib/hooks/use-tencent-sentence-recognition/use-tencent-sentence-recognition.es.js +3 -2
- package/dist/lib/hooks/use-tencent-sentence-recognition/use-tencent-sentence-recognition.es.js.map +1 -1
- package/dist/lib/index.d.ts +1 -4
- package/dist/lib/node_modules/.pnpm/co-web-worker@1.0.1/node_modules/co-web-worker/index.es.js +1 -1
- package/dist/lib/node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/index.es.js +1 -1
- package/dist/lib/packages/easyv-arco/dist/lib/chunks/button-Dip6wfc7.es.es.js +29 -0
- package/dist/lib/packages/easyv-arco/dist/lib/chunks/button-Dip6wfc7.es.es.js.map +1 -0
- package/dist/lib/packages/easyv-arco/dist/lib/chunks/index-EAFzPBke.es.es.js +720 -0
- package/dist/lib/packages/easyv-arco/dist/lib/chunks/index-EAFzPBke.es.es.js.map +1 -0
- package/dist/lib/packages/easyv-arco/dist/lib/chunks/index-zvVd1BJp.es.es.js +3508 -0
- package/dist/lib/packages/easyv-arco/dist/lib/chunks/index-zvVd1BJp.es.es.js.map +1 -0
- package/dist/lib/packages/easyv-arco/dist/lib/chunks/input-Dhdn9e9Z.es.es.js +1276 -0
- package/dist/lib/packages/easyv-arco/dist/lib/chunks/input-Dhdn9e9Z.es.es.js.map +1 -0
- package/dist/lib/packages/easyv-arco/dist/lib/chunks/keycode-DOHuQiUY.es.es.js +77 -0
- package/dist/lib/packages/easyv-arco/dist/lib/chunks/keycode-DOHuQiUY.es.es.js.map +1 -0
- package/dist/lib/packages/easyv-arco/dist/lib/index.es.es.js +2 -0
- package/dist/lib/packages/easyv-arco/dist/lib/index.es.es.js.map +1 -0
- package/dist/lib/stats.html +1 -1
- package/dist/lib/utils/show-modal/show-modal.es.js +5 -5
- package/dist/lib/utils/show-modal/show-modal.es.js.map +1 -1
- package/dist/tailwindcss.pkg.css +0 -4
- package/package.json +3 -2
- package/dist/lib/components/ai-components/ai-message-render/test/ai-message-render.cy.d.ts +0 -1
- package/dist/lib/components/ai-components/ai-message-render/test/ai-message-table.cy.d.ts +0 -1
- package/dist/lib/utils/show-modal/test/show-modal.cy.d.ts +0 -1
- /package/dist/lib/{components → easyv-biz-components/src/components}/ai-components/ai-message-render/ai-message-render.d.ts +0 -0
- /package/dist/lib/{components → easyv-biz-components/src/components}/ai-components/ai-message-render/constants.d.ts +0 -0
- /package/dist/lib/{components → easyv-biz-components/src/components}/ai-components/ai-message-render/image-preview.d.ts +0 -0
- /package/dist/lib/{components → easyv-biz-components/src/components}/ai-components/ai-message-render/index.d.ts +0 -0
- /package/dist/lib/{components → easyv-biz-components/src/components}/ai-components/ai-message-render/render-utils.d.ts +0 -0
- /package/dist/lib/{components/easyv-monaco-editor/test/easyv-monaco-editor.cy.d.ts → easyv-biz-components/src/components/ai-components/ai-message-render/test/ai-message-render.cy.d.ts} +0 -0
- /package/dist/lib/{components/easyv-reactgrid/test/easyv-react-grid.cy.d.ts → easyv-biz-components/src/components/ai-components/ai-message-render/test/ai-message-table.cy.d.ts} +0 -0
- /package/dist/lib/{components → easyv-biz-components/src/components}/ai-components/ai-message-render/types.d.ts +0 -0
- /package/dist/lib/{components → easyv-biz-components/src/components}/ai-components/ai-message-render/utils.d.ts +0 -0
- /package/dist/lib/{components → easyv-biz-components/src/components}/ai-components/mobile-voice-input/icon-button.d.ts +0 -0
- /package/dist/lib/{components → easyv-biz-components/src/components}/ai-components/mobile-voice-input/index.d.ts +0 -0
- /package/dist/lib/{components → easyv-biz-components/src/components}/ai-components/mobile-voice-input/mobile-voice-input.d.ts +0 -0
- /package/dist/lib/{components → easyv-biz-components/src/components}/ai-model-select/ai-model-select-panel.d.ts +0 -0
- /package/dist/lib/{components → easyv-biz-components/src/components}/ai-model-select/iconBtn.d.ts +0 -0
- /package/dist/lib/{components → easyv-biz-components/src/components}/ai-model-select/index.d.ts +0 -0
- /package/dist/lib/{components → easyv-biz-components/src/components}/ai-model-select/test/ai-model-select-panel.cy.d.ts +0 -0
- /package/dist/lib/{components → easyv-biz-components/src/components}/ai-model-select/types.d.ts +0 -0
- /package/dist/lib/{components → easyv-biz-components/src/components}/circle-loading/circle-loading.d.ts +0 -0
- /package/dist/lib/{components → easyv-biz-components/src/components}/circle-loading/index.d.ts +0 -0
- /package/dist/lib/{components → easyv-biz-components/src/components}/circle-loading/test/circle-loading.cy.d.ts +0 -0
- /package/dist/lib/{components → easyv-biz-components/src/components}/code-mirror-editor/code-mirror-editor.d.ts +0 -0
- /package/dist/lib/{components → easyv-biz-components/src/components}/code-mirror-editor/constants.d.ts +0 -0
- /package/dist/lib/{components → easyv-biz-components/src/components}/code-mirror-editor/format-utils.d.ts +0 -0
- /package/dist/lib/{components → easyv-biz-components/src/components}/code-mirror-editor/index.d.ts +0 -0
- /package/dist/lib/{components → easyv-biz-components/src/components}/code-mirror-editor/test/CodeEditor.cy.d.ts +0 -0
- /package/dist/lib/{components → easyv-biz-components/src/components}/code-mirror-editor/theme.d.ts +0 -0
- /package/dist/lib/{components → easyv-biz-components/src/components}/code-mirror-editor/types.d.ts +0 -0
- /package/dist/lib/{components → easyv-biz-components/src/components}/code-mirror-editor/utils.d.ts +0 -0
- /package/dist/lib/{components → easyv-biz-components/src/components}/easyv-monaco-editor/easyv-monaco-editor.d.ts +0 -0
- /package/dist/lib/{components → easyv-biz-components/src/components}/easyv-monaco-editor/index.d.ts +0 -0
- /package/dist/lib/{components/voice-animation/test/voice-animation.cy.d.ts → easyv-biz-components/src/components/easyv-monaco-editor/test/easyv-monaco-editor.cy.d.ts} +0 -0
- /package/dist/lib/{components → easyv-biz-components/src/components}/easyv-monaco-editor/types.d.ts +0 -0
- /package/dist/lib/{components → easyv-biz-components/src/components}/easyv-reactgrid/constants.d.ts +0 -0
- /package/dist/lib/{components → easyv-biz-components/src/components}/easyv-reactgrid/easyv-react-grid.d.ts +0 -0
- /package/dist/lib/{components → easyv-biz-components/src/components}/easyv-reactgrid/index.d.ts +0 -0
- /package/dist/lib/{components → easyv-biz-components/src/components}/easyv-reactgrid/utils.d.ts +0 -0
- /package/dist/lib/{components → easyv-biz-components/src/components}/echarts-render/constants.d.ts +0 -0
- /package/dist/lib/{components → easyv-biz-components/src/components}/echarts-render/echarts-render.d.ts +0 -0
- /package/dist/lib/{components → easyv-biz-components/src/components}/echarts-render/index.d.ts +0 -0
- /package/dist/lib/{components → easyv-biz-components/src/components}/echarts-render/test/echarts.cy.d.ts +0 -0
- /package/dist/lib/{components → easyv-biz-components/src/components}/echarts-render/types.d.ts +0 -0
- /package/dist/lib/{components → easyv-biz-components/src/components}/error-boundary/error-boundary.d.ts +0 -0
- /package/dist/lib/{components → easyv-biz-components/src/components}/error-boundary/index.d.ts +0 -0
- /package/dist/lib/{components → easyv-biz-components/src/components}/index.d.ts +0 -0
- /package/dist/lib/{components → easyv-biz-components/src/components}/scroll-controller/index.d.ts +0 -0
- /package/dist/lib/{components → easyv-biz-components/src/components}/scroll-controller/scroll-controller.d.ts +0 -0
- /package/dist/lib/{components → easyv-biz-components/src/components}/shadow-dom/index.d.ts +0 -0
- /package/dist/lib/{components → easyv-biz-components/src/components}/shadow-dom/shadow-dom.d.ts +0 -0
- /package/dist/lib/{components → easyv-biz-components/src/components}/voice-animation/index.d.ts +0 -0
- /package/dist/lib/{components → easyv-biz-components/src/components}/voice-animation/voice-animation.d.ts +0 -0
- /package/dist/lib/{hooks → easyv-biz-components/src/hooks}/index.d.ts +0 -0
- /package/dist/lib/{hooks → easyv-biz-components/src/hooks}/use-ai-agent-message/constants.d.ts +0 -0
- /package/dist/lib/{hooks → easyv-biz-components/src/hooks}/use-ai-agent-message/index.d.ts +0 -0
- /package/dist/lib/{hooks → easyv-biz-components/src/hooks}/use-ai-agent-message/types.d.ts +0 -0
- /package/dist/lib/{hooks → easyv-biz-components/src/hooks}/use-ai-agent-message/use-ai-agent-message.d.ts +0 -0
- /package/dist/lib/{hooks → easyv-biz-components/src/hooks}/use-ai-agent-message/utils.d.ts +0 -0
- /package/dist/lib/{hooks → easyv-biz-components/src/hooks}/use-div-auto-scroll.d.ts +0 -0
- /package/dist/lib/{hooks → easyv-biz-components/src/hooks}/use-document-unmount/index.d.ts +0 -0
- /package/dist/lib/{hooks → easyv-biz-components/src/hooks}/use-document-unmount/use-document-unmount.d.ts +0 -0
- /package/dist/lib/{hooks → easyv-biz-components/src/hooks}/use-initialized.d.ts +0 -0
- /package/dist/lib/{hooks → easyv-biz-components/src/hooks}/use-socket-events/constant.d.ts +0 -0
- /package/dist/lib/{hooks → easyv-biz-components/src/hooks}/use-socket-events/index.d.ts +0 -0
- /package/dist/lib/{hooks → easyv-biz-components/src/hooks}/use-socket-events/types.d.ts +0 -0
- /package/dist/lib/{hooks → easyv-biz-components/src/hooks}/use-socket-events/use-socket-events.d.ts +0 -0
- /package/dist/lib/{hooks → easyv-biz-components/src/hooks}/use-tencent-sentence-recognition/index.d.ts +0 -0
- /package/dist/lib/{hooks → easyv-biz-components/src/hooks}/use-tencent-sentence-recognition/use-tencent-sentence-recognition.d.ts +0 -0
- /package/dist/lib/{hooks → easyv-biz-components/src/hooks}/use-watch-value/playground.cy.d.ts +0 -0
- /package/dist/lib/{hooks → easyv-biz-components/src/hooks}/use-watch-value/use-watch-value.cy.d.ts +0 -0
- /package/dist/lib/{hooks → easyv-biz-components/src/hooks}/use-watch-value/use-watch-value.d.ts +0 -0
- /package/dist/lib/{types → easyv-biz-components/src/types}/ai-agent.d.ts +0 -0
- /package/dist/lib/{types → easyv-biz-components/src/types}/common.d.ts +0 -0
- /package/dist/lib/{types → easyv-biz-components/src/types}/index.d.ts +0 -0
- /package/dist/lib/{utils → easyv-biz-components/src/utils}/ai-agent-message-manager/ai-agent-message-manager.d.ts +0 -0
- /package/dist/lib/{utils → easyv-biz-components/src/utils}/ai-agent-message-manager/constants.d.ts +0 -0
- /package/dist/lib/{utils → easyv-biz-components/src/utils}/ai-agent-message-manager/index.d.ts +0 -0
- /package/dist/lib/{utils → easyv-biz-components/src/utils}/ai-agent-message-manager/types.d.ts +0 -0
- /package/dist/lib/{utils → easyv-biz-components/src/utils}/ai-agent-message-manager/utils.d.ts +0 -0
- /package/dist/lib/{utils → easyv-biz-components/src/utils}/common/common.d.ts +0 -0
- /package/dist/lib/{utils → easyv-biz-components/src/utils}/common/index.d.ts +0 -0
- /package/dist/lib/{utils → easyv-biz-components/src/utils}/common/url.d.ts +0 -0
- /package/dist/lib/{utils → easyv-biz-components/src/utils}/common/voice-helper-utils.d.ts +0 -0
- /package/dist/lib/{utils → easyv-biz-components/src/utils}/easyv-gui-helper/common.d.ts +0 -0
- /package/dist/lib/{utils → easyv-biz-components/src/utils}/easyv-gui-helper/component-dimension.d.ts +0 -0
- /package/dist/lib/{utils → easyv-biz-components/src/utils}/easyv-gui-helper/constants.d.ts +0 -0
- /package/dist/lib/{utils → easyv-biz-components/src/utils}/easyv-gui-helper/easyv-gui-helper.d.ts +0 -0
- /package/dist/lib/{utils → easyv-biz-components/src/utils}/easyv-gui-helper/index.d.ts +0 -0
- /package/dist/lib/{utils → easyv-biz-components/src/utils}/easyv-gui-helper/test/get-config-value.cy.d.ts +0 -0
- /package/dist/lib/{utils → easyv-biz-components/src/utils}/easyv-gui-helper/test/get-new-config-from-value.cy.d.ts +0 -0
- /package/dist/lib/{utils → easyv-biz-components/src/utils}/easyv-gui-helper/test/test-data.d.ts +0 -0
- /package/dist/lib/{utils → easyv-biz-components/src/utils}/easyv-gui-helper/test/update-gui-config-list.cy.d.ts +0 -0
- /package/dist/lib/{utils → easyv-biz-components/src/utils}/easyv-gui-helper/types.d.ts +0 -0
- /package/dist/lib/{utils → easyv-biz-components/src/utils}/fetch-knowledge/fetch-knowledge.d.ts +0 -0
- /package/dist/lib/{utils → easyv-biz-components/src/utils}/fetch-knowledge/index.d.ts +0 -0
- /package/dist/lib/{utils → easyv-biz-components/src/utils}/fun-ASR/fun-ASR-manager.d.ts +0 -0
- /package/dist/lib/{utils → easyv-biz-components/src/utils}/fun-ASR/index.d.ts +0 -0
- /package/dist/lib/{utils → easyv-biz-components/src/utils}/index.d.ts +0 -0
- /package/dist/lib/{utils → easyv-biz-components/src/utils}/show-modal/index.d.ts +0 -0
- /package/dist/lib/{utils → easyv-biz-components/src/utils}/show-modal/show-modal.d.ts +0 -0
- /package/dist/lib/{utils → easyv-biz-components/src/utils}/voice-record-manager/index.d.ts +0 -0
- /package/dist/lib/{utils → easyv-biz-components/src/utils}/voice-record-manager/voice-record-manager.d.ts +0 -0
- /package/dist/lib/{utils → easyv-biz-components/src/utils}/vosk-browser-manager/audio-manager/audio-manager.d.ts +0 -0
- /package/dist/lib/{utils → easyv-biz-components/src/utils}/vosk-browser-manager/audio-manager/test/audio-manager.cy.d.ts +0 -0
- /package/dist/lib/{utils → easyv-biz-components/src/utils}/vosk-browser-manager/audio-manager/types.d.ts +0 -0
- /package/dist/lib/{utils → easyv-biz-components/src/utils}/vosk-browser-manager/index.d.ts +0 -0
- /package/dist/lib/{utils → easyv-biz-components/src/utils}/vosk-browser-manager/test/voskBrowserManager.cy.d.ts +0 -0
- /package/dist/lib/{utils → easyv-biz-components/src/utils}/vosk-browser-manager/vosk-browser-manager.d.ts +0 -0
- /package/dist/lib/{utils → easyv-biz-components/src/utils}/wait-something/index.d.ts +0 -0
- /package/dist/lib/{utils → easyv-biz-components/src/utils}/xun-fei-voice/XF-stream-voice-manager.d.ts +0 -0
- /package/dist/lib/{utils → easyv-biz-components/src/utils}/xun-fei-voice/index.d.ts +0 -0
- /package/dist/lib/{utils → easyv-biz-components/src/utils}/xun-fei-voice/recorder-manager/RecorderManager-draft.d.ts +0 -0
- /package/dist/lib/{utils → easyv-biz-components/src/utils}/xun-fei-voice/recorder-manager/index.d.ts +0 -0
- /package/dist/lib/{utils → easyv-biz-components/src/utils}/xun-fei-voice/test/RecorderManager.cy.d.ts +0 -0
- /package/dist/lib/{utils → easyv-biz-components/src/utils}/xun-fei-voice/test/XunFeiVoiceManager.cy.d.ts +0 -0
- /package/dist/lib/{utils → easyv-biz-components/src/utils}/xun-fei-voice/types.d.ts +0 -0
|
@@ -0,0 +1,720 @@
|
|
|
1
|
+
import React__default, { forwardRef, useContext, useState, useRef, useEffect } from "react";
|
|
2
|
+
import { C as _e$1, u as Lr, I as Nt, c as De } from "./index-zvVd1BJp.es.es.js";
|
|
3
|
+
var me = { exports: {} }, q = {};
|
|
4
|
+
/**
|
|
5
|
+
* @license React
|
|
6
|
+
* react-jsx-runtime.production.min.js
|
|
7
|
+
*
|
|
8
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
9
|
+
*
|
|
10
|
+
* This source code is licensed under the MIT license found in the
|
|
11
|
+
* LICENSE file in the root directory of this source tree.
|
|
12
|
+
*/
|
|
13
|
+
var Ae;
|
|
14
|
+
function mr() {
|
|
15
|
+
if (Ae) return q;
|
|
16
|
+
Ae = 1;
|
|
17
|
+
var i = React__default, s = Symbol.for("react.element"), o = Symbol.for("react.fragment"), n = Object.prototype.hasOwnProperty, u = i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, C = { key: true, ref: true, __self: true, __source: true };
|
|
18
|
+
function m(E, g, v) {
|
|
19
|
+
var b, P = {}, w = null, N = null;
|
|
20
|
+
v !== void 0 && (w = "" + v), g.key !== void 0 && (w = "" + g.key), g.ref !== void 0 && (N = g.ref);
|
|
21
|
+
for (b in g) n.call(g, b) && !C.hasOwnProperty(b) && (P[b] = g[b]);
|
|
22
|
+
if (E && E.defaultProps) for (b in g = E.defaultProps, g) P[b] === void 0 && (P[b] = g[b]);
|
|
23
|
+
return { $$typeof: s, type: E, key: w, ref: N, props: P, _owner: u.current };
|
|
24
|
+
}
|
|
25
|
+
return q.Fragment = o, q.jsx = m, q.jsxs = m, q;
|
|
26
|
+
}
|
|
27
|
+
var J = {};
|
|
28
|
+
/**
|
|
29
|
+
* @license React
|
|
30
|
+
* react-jsx-runtime.development.js
|
|
31
|
+
*
|
|
32
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
33
|
+
*
|
|
34
|
+
* This source code is licensed under the MIT license found in the
|
|
35
|
+
* LICENSE file in the root directory of this source tree.
|
|
36
|
+
*/
|
|
37
|
+
var $e;
|
|
38
|
+
function br() {
|
|
39
|
+
return $e || ($e = 1, process.env.NODE_ENV !== "production" && function() {
|
|
40
|
+
var i = React__default, s = Symbol.for("react.element"), o = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), u = Symbol.for("react.strict_mode"), C = Symbol.for("react.profiler"), m = Symbol.for("react.provider"), E = Symbol.for("react.context"), g = Symbol.for("react.forward_ref"), v = Symbol.for("react.suspense"), b = Symbol.for("react.suspense_list"), P = Symbol.for("react.memo"), w = Symbol.for("react.lazy"), N = Symbol.for("react.offscreen"), B = Symbol.iterator, H = "@@iterator";
|
|
41
|
+
function oe(e) {
|
|
42
|
+
if (e === null || typeof e != "object")
|
|
43
|
+
return null;
|
|
44
|
+
var r = B && e[B] || e[H];
|
|
45
|
+
return typeof r == "function" ? r : null;
|
|
46
|
+
}
|
|
47
|
+
var D = i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
48
|
+
function h(e) {
|
|
49
|
+
{
|
|
50
|
+
for (var r = arguments.length, t = new Array(r > 1 ? r - 1 : 0), a = 1; a < r; a++)
|
|
51
|
+
t[a - 1] = arguments[a];
|
|
52
|
+
ie("error", e, t);
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
function ie(e, r, t) {
|
|
56
|
+
{
|
|
57
|
+
var a = D.ReactDebugCurrentFrame, c = a.getStackAddendum();
|
|
58
|
+
c !== "" && (r += "%s", t = t.concat([c]));
|
|
59
|
+
var d = t.map(function(f) {
|
|
60
|
+
return String(f);
|
|
61
|
+
});
|
|
62
|
+
d.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, d);
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
var A = false, L = false, ue = false, le = false, se = false, M;
|
|
66
|
+
M = Symbol.for("react.module.reference");
|
|
67
|
+
function fe(e) {
|
|
68
|
+
return !!(typeof e == "string" || typeof e == "function" || e === n || e === C || se || e === u || e === v || e === b || le || e === N || A || L || ue || typeof e == "object" && e !== null && (e.$$typeof === w || e.$$typeof === P || e.$$typeof === m || e.$$typeof === E || e.$$typeof === g || // This needs to include all possible module reference object
|
|
69
|
+
// types supported by any Flight configuration anywhere since
|
|
70
|
+
// we don't know which Flight build this will end up being used
|
|
71
|
+
// with.
|
|
72
|
+
e.$$typeof === M || e.getModuleId !== void 0));
|
|
73
|
+
}
|
|
74
|
+
function X(e, r, t) {
|
|
75
|
+
var a = e.displayName;
|
|
76
|
+
if (a)
|
|
77
|
+
return a;
|
|
78
|
+
var c = r.displayName || r.name || "";
|
|
79
|
+
return c !== "" ? t + "(" + c + ")" : t;
|
|
80
|
+
}
|
|
81
|
+
function U(e) {
|
|
82
|
+
return e.displayName || "Context";
|
|
83
|
+
}
|
|
84
|
+
function S(e) {
|
|
85
|
+
if (e == null)
|
|
86
|
+
return null;
|
|
87
|
+
if (typeof e.tag == "number" && h("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
|
|
88
|
+
return e.displayName || e.name || null;
|
|
89
|
+
if (typeof e == "string")
|
|
90
|
+
return e;
|
|
91
|
+
switch (e) {
|
|
92
|
+
case n:
|
|
93
|
+
return "Fragment";
|
|
94
|
+
case o:
|
|
95
|
+
return "Portal";
|
|
96
|
+
case C:
|
|
97
|
+
return "Profiler";
|
|
98
|
+
case u:
|
|
99
|
+
return "StrictMode";
|
|
100
|
+
case v:
|
|
101
|
+
return "Suspense";
|
|
102
|
+
case b:
|
|
103
|
+
return "SuspenseList";
|
|
104
|
+
}
|
|
105
|
+
if (typeof e == "object")
|
|
106
|
+
switch (e.$$typeof) {
|
|
107
|
+
case E:
|
|
108
|
+
var r = e;
|
|
109
|
+
return U(r) + ".Consumer";
|
|
110
|
+
case m:
|
|
111
|
+
var t = e;
|
|
112
|
+
return U(t._context) + ".Provider";
|
|
113
|
+
case g:
|
|
114
|
+
return X(e, e.render, "ForwardRef");
|
|
115
|
+
case P:
|
|
116
|
+
var a = e.displayName || null;
|
|
117
|
+
return a !== null ? a : S(e.type) || "Memo";
|
|
118
|
+
case w: {
|
|
119
|
+
var c = e, d = c._payload, f = c._init;
|
|
120
|
+
try {
|
|
121
|
+
return S(f(d));
|
|
122
|
+
} catch (l) {
|
|
123
|
+
return null;
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
return null;
|
|
128
|
+
}
|
|
129
|
+
var x = Object.assign, I = 0, Z, j, _, Q, V, z, G;
|
|
130
|
+
function $() {
|
|
131
|
+
}
|
|
132
|
+
$.__reactDisabledLog = true;
|
|
133
|
+
function k() {
|
|
134
|
+
{
|
|
135
|
+
if (I === 0) {
|
|
136
|
+
Z = console.log, j = console.info, _ = console.warn, Q = console.error, V = console.group, z = console.groupCollapsed, G = console.groupEnd;
|
|
137
|
+
var e = {
|
|
138
|
+
configurable: true,
|
|
139
|
+
enumerable: true,
|
|
140
|
+
value: $,
|
|
141
|
+
writable: true
|
|
142
|
+
};
|
|
143
|
+
Object.defineProperties(console, {
|
|
144
|
+
info: e,
|
|
145
|
+
log: e,
|
|
146
|
+
warn: e,
|
|
147
|
+
error: e,
|
|
148
|
+
group: e,
|
|
149
|
+
groupCollapsed: e,
|
|
150
|
+
groupEnd: e
|
|
151
|
+
});
|
|
152
|
+
}
|
|
153
|
+
I++;
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
function Me() {
|
|
157
|
+
{
|
|
158
|
+
if (I--, I === 0) {
|
|
159
|
+
var e = {
|
|
160
|
+
configurable: true,
|
|
161
|
+
enumerable: true,
|
|
162
|
+
writable: true
|
|
163
|
+
};
|
|
164
|
+
Object.defineProperties(console, {
|
|
165
|
+
log: x({}, e, {
|
|
166
|
+
value: Z
|
|
167
|
+
}),
|
|
168
|
+
info: x({}, e, {
|
|
169
|
+
value: j
|
|
170
|
+
}),
|
|
171
|
+
warn: x({}, e, {
|
|
172
|
+
value: _
|
|
173
|
+
}),
|
|
174
|
+
error: x({}, e, {
|
|
175
|
+
value: Q
|
|
176
|
+
}),
|
|
177
|
+
group: x({}, e, {
|
|
178
|
+
value: V
|
|
179
|
+
}),
|
|
180
|
+
groupCollapsed: x({}, e, {
|
|
181
|
+
value: z
|
|
182
|
+
}),
|
|
183
|
+
groupEnd: x({}, e, {
|
|
184
|
+
value: G
|
|
185
|
+
})
|
|
186
|
+
});
|
|
187
|
+
}
|
|
188
|
+
I < 0 && h("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
var ce = D.ReactCurrentDispatcher, de;
|
|
192
|
+
function ee(e, r, t) {
|
|
193
|
+
{
|
|
194
|
+
if (de === void 0)
|
|
195
|
+
try {
|
|
196
|
+
throw Error();
|
|
197
|
+
} catch (c) {
|
|
198
|
+
var a = c.stack.trim().match(/\n( *(at )?)/);
|
|
199
|
+
de = a && a[1] || "";
|
|
200
|
+
}
|
|
201
|
+
return `
|
|
202
|
+
` + de + e;
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
var ve = false, re;
|
|
206
|
+
{
|
|
207
|
+
var Ue = typeof WeakMap == "function" ? WeakMap : Map;
|
|
208
|
+
re = new Ue();
|
|
209
|
+
}
|
|
210
|
+
function Ee(e, r) {
|
|
211
|
+
if (!e || ve)
|
|
212
|
+
return "";
|
|
213
|
+
{
|
|
214
|
+
var t = re.get(e);
|
|
215
|
+
if (t !== void 0)
|
|
216
|
+
return t;
|
|
217
|
+
}
|
|
218
|
+
var a;
|
|
219
|
+
ve = true;
|
|
220
|
+
var c = Error.prepareStackTrace;
|
|
221
|
+
Error.prepareStackTrace = void 0;
|
|
222
|
+
var d;
|
|
223
|
+
d = ce.current, ce.current = null, k();
|
|
224
|
+
try {
|
|
225
|
+
if (r) {
|
|
226
|
+
var f = function() {
|
|
227
|
+
throw Error();
|
|
228
|
+
};
|
|
229
|
+
if (Object.defineProperty(f.prototype, "props", {
|
|
230
|
+
set: function() {
|
|
231
|
+
throw Error();
|
|
232
|
+
}
|
|
233
|
+
}), typeof Reflect == "object" && Reflect.construct) {
|
|
234
|
+
try {
|
|
235
|
+
Reflect.construct(f, []);
|
|
236
|
+
} catch (F) {
|
|
237
|
+
a = F;
|
|
238
|
+
}
|
|
239
|
+
Reflect.construct(e, [], f);
|
|
240
|
+
} else {
|
|
241
|
+
try {
|
|
242
|
+
f.call();
|
|
243
|
+
} catch (F) {
|
|
244
|
+
a = F;
|
|
245
|
+
}
|
|
246
|
+
e.call(f.prototype);
|
|
247
|
+
}
|
|
248
|
+
} else {
|
|
249
|
+
try {
|
|
250
|
+
throw Error();
|
|
251
|
+
} catch (F) {
|
|
252
|
+
a = F;
|
|
253
|
+
}
|
|
254
|
+
e();
|
|
255
|
+
}
|
|
256
|
+
} catch (F) {
|
|
257
|
+
if (F && a && typeof F.stack == "string") {
|
|
258
|
+
for (var l = F.stack.split(`
|
|
259
|
+
`), R = a.stack.split(`
|
|
260
|
+
`), p = l.length - 1, y = R.length - 1; p >= 1 && y >= 0 && l[p] !== R[y]; )
|
|
261
|
+
y--;
|
|
262
|
+
for (; p >= 1 && y >= 0; p--, y--)
|
|
263
|
+
if (l[p] !== R[y]) {
|
|
264
|
+
if (p !== 1 || y !== 1)
|
|
265
|
+
do
|
|
266
|
+
if (p--, y--, y < 0 || l[p] !== R[y]) {
|
|
267
|
+
var O = `
|
|
268
|
+
` + l[p].replace(" at new ", " at ");
|
|
269
|
+
return e.displayName && O.includes("<anonymous>") && (O = O.replace("<anonymous>", e.displayName)), typeof e == "function" && re.set(e, O), O;
|
|
270
|
+
}
|
|
271
|
+
while (p >= 1 && y >= 0);
|
|
272
|
+
break;
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
} finally {
|
|
276
|
+
ve = false, ce.current = d, Me(), Error.prepareStackTrace = c;
|
|
277
|
+
}
|
|
278
|
+
var Y = e ? e.displayName || e.name : "", Ne = Y ? ee(Y) : "";
|
|
279
|
+
return typeof e == "function" && re.set(e, Ne), Ne;
|
|
280
|
+
}
|
|
281
|
+
function Ve(e, r, t) {
|
|
282
|
+
return Ee(e, false);
|
|
283
|
+
}
|
|
284
|
+
function ze(e) {
|
|
285
|
+
var r = e.prototype;
|
|
286
|
+
return !!(r && r.isReactComponent);
|
|
287
|
+
}
|
|
288
|
+
function te(e, r, t) {
|
|
289
|
+
if (e == null)
|
|
290
|
+
return "";
|
|
291
|
+
if (typeof e == "function")
|
|
292
|
+
return Ee(e, ze(e));
|
|
293
|
+
if (typeof e == "string")
|
|
294
|
+
return ee(e);
|
|
295
|
+
switch (e) {
|
|
296
|
+
case v:
|
|
297
|
+
return ee("Suspense");
|
|
298
|
+
case b:
|
|
299
|
+
return ee("SuspenseList");
|
|
300
|
+
}
|
|
301
|
+
if (typeof e == "object")
|
|
302
|
+
switch (e.$$typeof) {
|
|
303
|
+
case g:
|
|
304
|
+
return Ve(e.render);
|
|
305
|
+
case P:
|
|
306
|
+
return te(e.type, r, t);
|
|
307
|
+
case w: {
|
|
308
|
+
var a = e, c = a._payload, d = a._init;
|
|
309
|
+
try {
|
|
310
|
+
return te(d(c), r, t);
|
|
311
|
+
} catch (f) {
|
|
312
|
+
}
|
|
313
|
+
}
|
|
314
|
+
}
|
|
315
|
+
return "";
|
|
316
|
+
}
|
|
317
|
+
var ne = Object.prototype.hasOwnProperty, Re = {}, Ce = D.ReactDebugCurrentFrame;
|
|
318
|
+
function ae(e) {
|
|
319
|
+
if (e) {
|
|
320
|
+
var r = e._owner, t = te(e.type, e._source, r ? r.type : null);
|
|
321
|
+
Ce.setExtraStackFrame(t);
|
|
322
|
+
} else
|
|
323
|
+
Ce.setExtraStackFrame(null);
|
|
324
|
+
}
|
|
325
|
+
function Ge(e, r, t, a, c) {
|
|
326
|
+
{
|
|
327
|
+
var d = Function.call.bind(ne);
|
|
328
|
+
for (var f in e)
|
|
329
|
+
if (d(e, f)) {
|
|
330
|
+
var l = void 0;
|
|
331
|
+
try {
|
|
332
|
+
if (typeof e[f] != "function") {
|
|
333
|
+
var R = Error((a || "React class") + ": " + t + " type `" + f + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[f] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
334
|
+
throw R.name = "Invariant Violation", R;
|
|
335
|
+
}
|
|
336
|
+
l = e[f](r, f, a, t, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
337
|
+
} catch (p) {
|
|
338
|
+
l = p;
|
|
339
|
+
}
|
|
340
|
+
l && !(l instanceof Error) && (ae(c), h("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", a || "React class", t, f, typeof l), ae(null)), l instanceof Error && !(l.message in Re) && (Re[l.message] = true, ae(c), h("Failed %s type: %s", t, l.message), ae(null));
|
|
341
|
+
}
|
|
342
|
+
}
|
|
343
|
+
}
|
|
344
|
+
var qe = Array.isArray;
|
|
345
|
+
function pe(e) {
|
|
346
|
+
return qe(e);
|
|
347
|
+
}
|
|
348
|
+
function Je(e) {
|
|
349
|
+
{
|
|
350
|
+
var r = typeof Symbol == "function" && Symbol.toStringTag, t = r && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
351
|
+
return t;
|
|
352
|
+
}
|
|
353
|
+
}
|
|
354
|
+
function Ke(e) {
|
|
355
|
+
try {
|
|
356
|
+
return Oe(e), false;
|
|
357
|
+
} catch (r) {
|
|
358
|
+
return true;
|
|
359
|
+
}
|
|
360
|
+
}
|
|
361
|
+
function Oe(e) {
|
|
362
|
+
return "" + e;
|
|
363
|
+
}
|
|
364
|
+
function Te(e) {
|
|
365
|
+
if (Ke(e))
|
|
366
|
+
return h("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Je(e)), Oe(e);
|
|
367
|
+
}
|
|
368
|
+
var Pe = D.ReactCurrentOwner, He = {
|
|
369
|
+
key: true,
|
|
370
|
+
ref: true,
|
|
371
|
+
__self: true,
|
|
372
|
+
__source: true
|
|
373
|
+
}, we, xe;
|
|
374
|
+
function Xe(e) {
|
|
375
|
+
if (ne.call(e, "ref")) {
|
|
376
|
+
var r = Object.getOwnPropertyDescriptor(e, "ref").get;
|
|
377
|
+
if (r && r.isReactWarning)
|
|
378
|
+
return false;
|
|
379
|
+
}
|
|
380
|
+
return e.ref !== void 0;
|
|
381
|
+
}
|
|
382
|
+
function Ze(e) {
|
|
383
|
+
if (ne.call(e, "key")) {
|
|
384
|
+
var r = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
385
|
+
if (r && r.isReactWarning)
|
|
386
|
+
return false;
|
|
387
|
+
}
|
|
388
|
+
return e.key !== void 0;
|
|
389
|
+
}
|
|
390
|
+
function Qe(e, r) {
|
|
391
|
+
typeof e.ref == "string" && Pe.current;
|
|
392
|
+
}
|
|
393
|
+
function er(e, r) {
|
|
394
|
+
{
|
|
395
|
+
var t = function() {
|
|
396
|
+
we || (we = true, h("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
|
|
397
|
+
};
|
|
398
|
+
t.isReactWarning = true, Object.defineProperty(e, "key", {
|
|
399
|
+
get: t,
|
|
400
|
+
configurable: true
|
|
401
|
+
});
|
|
402
|
+
}
|
|
403
|
+
}
|
|
404
|
+
function rr(e, r) {
|
|
405
|
+
{
|
|
406
|
+
var t = function() {
|
|
407
|
+
xe || (xe = true, h("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
|
|
408
|
+
};
|
|
409
|
+
t.isReactWarning = true, Object.defineProperty(e, "ref", {
|
|
410
|
+
get: t,
|
|
411
|
+
configurable: true
|
|
412
|
+
});
|
|
413
|
+
}
|
|
414
|
+
}
|
|
415
|
+
var tr = function(e, r, t, a, c, d, f) {
|
|
416
|
+
var l = {
|
|
417
|
+
// This tag allows us to uniquely identify this as a React Element
|
|
418
|
+
$$typeof: s,
|
|
419
|
+
// Built-in properties that belong on the element
|
|
420
|
+
type: e,
|
|
421
|
+
key: r,
|
|
422
|
+
ref: t,
|
|
423
|
+
props: f,
|
|
424
|
+
// Record the component responsible for creating this element.
|
|
425
|
+
_owner: d
|
|
426
|
+
};
|
|
427
|
+
return l._store = {}, Object.defineProperty(l._store, "validated", {
|
|
428
|
+
configurable: false,
|
|
429
|
+
enumerable: false,
|
|
430
|
+
writable: true,
|
|
431
|
+
value: false
|
|
432
|
+
}), Object.defineProperty(l, "_self", {
|
|
433
|
+
configurable: false,
|
|
434
|
+
enumerable: false,
|
|
435
|
+
writable: false,
|
|
436
|
+
value: a
|
|
437
|
+
}), Object.defineProperty(l, "_source", {
|
|
438
|
+
configurable: false,
|
|
439
|
+
enumerable: false,
|
|
440
|
+
writable: false,
|
|
441
|
+
value: c
|
|
442
|
+
}), Object.freeze && (Object.freeze(l.props), Object.freeze(l)), l;
|
|
443
|
+
};
|
|
444
|
+
function nr(e, r, t, a, c) {
|
|
445
|
+
{
|
|
446
|
+
var d, f = {}, l = null, R = null;
|
|
447
|
+
t !== void 0 && (Te(t), l = "" + t), Ze(r) && (Te(r.key), l = "" + r.key), Xe(r) && (R = r.ref, Qe(r));
|
|
448
|
+
for (d in r)
|
|
449
|
+
ne.call(r, d) && !He.hasOwnProperty(d) && (f[d] = r[d]);
|
|
450
|
+
if (e && e.defaultProps) {
|
|
451
|
+
var p = e.defaultProps;
|
|
452
|
+
for (d in p)
|
|
453
|
+
f[d] === void 0 && (f[d] = p[d]);
|
|
454
|
+
}
|
|
455
|
+
if (l || R) {
|
|
456
|
+
var y = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
457
|
+
l && er(f, y), R && rr(f, y);
|
|
458
|
+
}
|
|
459
|
+
return tr(e, l, R, c, a, Pe.current, f);
|
|
460
|
+
}
|
|
461
|
+
}
|
|
462
|
+
var ye = D.ReactCurrentOwner, Se = D.ReactDebugCurrentFrame;
|
|
463
|
+
function W(e) {
|
|
464
|
+
if (e) {
|
|
465
|
+
var r = e._owner, t = te(e.type, e._source, r ? r.type : null);
|
|
466
|
+
Se.setExtraStackFrame(t);
|
|
467
|
+
} else
|
|
468
|
+
Se.setExtraStackFrame(null);
|
|
469
|
+
}
|
|
470
|
+
var ge;
|
|
471
|
+
ge = false;
|
|
472
|
+
function he(e) {
|
|
473
|
+
return typeof e == "object" && e !== null && e.$$typeof === s;
|
|
474
|
+
}
|
|
475
|
+
function je() {
|
|
476
|
+
{
|
|
477
|
+
if (ye.current) {
|
|
478
|
+
var e = S(ye.current.type);
|
|
479
|
+
if (e)
|
|
480
|
+
return `
|
|
481
|
+
|
|
482
|
+
Check the render method of \`` + e + "`.";
|
|
483
|
+
}
|
|
484
|
+
return "";
|
|
485
|
+
}
|
|
486
|
+
}
|
|
487
|
+
function ar(e) {
|
|
488
|
+
return "";
|
|
489
|
+
}
|
|
490
|
+
var ke = {};
|
|
491
|
+
function or(e) {
|
|
492
|
+
{
|
|
493
|
+
var r = je();
|
|
494
|
+
if (!r) {
|
|
495
|
+
var t = typeof e == "string" ? e : e.displayName || e.name;
|
|
496
|
+
t && (r = `
|
|
497
|
+
|
|
498
|
+
Check the top-level render call using <` + t + ">.");
|
|
499
|
+
}
|
|
500
|
+
return r;
|
|
501
|
+
}
|
|
502
|
+
}
|
|
503
|
+
function Fe(e, r) {
|
|
504
|
+
{
|
|
505
|
+
if (!e._store || e._store.validated || e.key != null)
|
|
506
|
+
return;
|
|
507
|
+
e._store.validated = true;
|
|
508
|
+
var t = or(r);
|
|
509
|
+
if (ke[t])
|
|
510
|
+
return;
|
|
511
|
+
ke[t] = true;
|
|
512
|
+
var a = "";
|
|
513
|
+
e && e._owner && e._owner !== ye.current && (a = " It was passed a child from " + S(e._owner.type) + "."), W(e), h('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', t, a), W(null);
|
|
514
|
+
}
|
|
515
|
+
}
|
|
516
|
+
function De2(e, r) {
|
|
517
|
+
{
|
|
518
|
+
if (typeof e != "object")
|
|
519
|
+
return;
|
|
520
|
+
if (pe(e))
|
|
521
|
+
for (var t = 0; t < e.length; t++) {
|
|
522
|
+
var a = e[t];
|
|
523
|
+
he(a) && Fe(a, r);
|
|
524
|
+
}
|
|
525
|
+
else if (he(e))
|
|
526
|
+
e._store && (e._store.validated = true);
|
|
527
|
+
else if (e) {
|
|
528
|
+
var c = oe(e);
|
|
529
|
+
if (typeof c == "function" && c !== e.entries)
|
|
530
|
+
for (var d = c.call(e), f; !(f = d.next()).done; )
|
|
531
|
+
he(f.value) && Fe(f.value, r);
|
|
532
|
+
}
|
|
533
|
+
}
|
|
534
|
+
}
|
|
535
|
+
function ir(e) {
|
|
536
|
+
{
|
|
537
|
+
var r = e.type;
|
|
538
|
+
if (r == null || typeof r == "string")
|
|
539
|
+
return;
|
|
540
|
+
var t;
|
|
541
|
+
if (typeof r == "function")
|
|
542
|
+
t = r.propTypes;
|
|
543
|
+
else if (typeof r == "object" && (r.$$typeof === g || // Note: Memo only checks outer props here.
|
|
544
|
+
// Inner props are checked in the reconciler.
|
|
545
|
+
r.$$typeof === P))
|
|
546
|
+
t = r.propTypes;
|
|
547
|
+
else
|
|
548
|
+
return;
|
|
549
|
+
if (t) {
|
|
550
|
+
var a = S(r);
|
|
551
|
+
Ge(t, e.props, "prop", a, e);
|
|
552
|
+
} else if (r.PropTypes !== void 0 && !ge) {
|
|
553
|
+
ge = true;
|
|
554
|
+
var c = S(r);
|
|
555
|
+
h("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", c || "Unknown");
|
|
556
|
+
}
|
|
557
|
+
typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && h("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
558
|
+
}
|
|
559
|
+
}
|
|
560
|
+
function ur(e) {
|
|
561
|
+
{
|
|
562
|
+
for (var r = Object.keys(e.props), t = 0; t < r.length; t++) {
|
|
563
|
+
var a = r[t];
|
|
564
|
+
if (a !== "children" && a !== "key") {
|
|
565
|
+
W(e), h("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", a), W(null);
|
|
566
|
+
break;
|
|
567
|
+
}
|
|
568
|
+
}
|
|
569
|
+
e.ref !== null && (W(e), h("Invalid attribute `ref` supplied to `React.Fragment`."), W(null));
|
|
570
|
+
}
|
|
571
|
+
}
|
|
572
|
+
function Ie(e, r, t, a, c, d) {
|
|
573
|
+
{
|
|
574
|
+
var f = fe(e);
|
|
575
|
+
if (!f) {
|
|
576
|
+
var l = "";
|
|
577
|
+
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (l += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
578
|
+
var R = ar();
|
|
579
|
+
R ? l += R : l += je();
|
|
580
|
+
var p;
|
|
581
|
+
e === null ? p = "null" : pe(e) ? p = "array" : e !== void 0 && e.$$typeof === s ? (p = "<" + (S(e.type) || "Unknown") + " />", l = " Did you accidentally export a JSX literal instead of a component?") : p = typeof e, h("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", p, l);
|
|
582
|
+
}
|
|
583
|
+
var y = nr(e, r, t, c, d);
|
|
584
|
+
if (y == null)
|
|
585
|
+
return y;
|
|
586
|
+
if (f) {
|
|
587
|
+
var O = r.children;
|
|
588
|
+
if (O !== void 0)
|
|
589
|
+
if (a)
|
|
590
|
+
if (pe(O)) {
|
|
591
|
+
for (var Y = 0; Y < O.length; Y++)
|
|
592
|
+
De2(O[Y], e);
|
|
593
|
+
Object.freeze && Object.freeze(O);
|
|
594
|
+
} else
|
|
595
|
+
h("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
596
|
+
else
|
|
597
|
+
De2(O, e);
|
|
598
|
+
}
|
|
599
|
+
return e === n ? ur(y) : ir(y), y;
|
|
600
|
+
}
|
|
601
|
+
}
|
|
602
|
+
function lr(e, r, t) {
|
|
603
|
+
return Ie(e, r, t, true);
|
|
604
|
+
}
|
|
605
|
+
function sr(e, r, t) {
|
|
606
|
+
return Ie(e, r, t, false);
|
|
607
|
+
}
|
|
608
|
+
var fr = sr, cr = lr;
|
|
609
|
+
J.Fragment = n, J.jsx = fr, J.jsxs = cr;
|
|
610
|
+
}()), J;
|
|
611
|
+
}
|
|
612
|
+
process.env.NODE_ENV === "production" ? me.exports = mr() : me.exports = br();
|
|
613
|
+
var kr = me.exports, be = function() {
|
|
614
|
+
return be = Object.assign || function(i) {
|
|
615
|
+
for (var s, o = 1, n = arguments.length; o < n; o++) {
|
|
616
|
+
s = arguments[o];
|
|
617
|
+
for (var u in s) Object.prototype.hasOwnProperty.call(s, u) && (i[u] = s[u]);
|
|
618
|
+
}
|
|
619
|
+
return i;
|
|
620
|
+
}, be.apply(this, arguments);
|
|
621
|
+
}, _r = function(i, s) {
|
|
622
|
+
var o = {};
|
|
623
|
+
for (var n in i) Object.prototype.hasOwnProperty.call(i, n) && s.indexOf(n) < 0 && (o[n] = i[n]);
|
|
624
|
+
if (i != null && typeof Object.getOwnPropertySymbols == "function")
|
|
625
|
+
for (var u = 0, n = Object.getOwnPropertySymbols(i); u < n.length; u++)
|
|
626
|
+
s.indexOf(n[u]) < 0 && Object.prototype.propertyIsEnumerable.call(i, n[u]) && (o[n[u]] = i[n[u]]);
|
|
627
|
+
return o;
|
|
628
|
+
};
|
|
629
|
+
function Er(i, s) {
|
|
630
|
+
var o = i.className, n = i.style, u = i.children, C = _r(i, ["className", "style", "children"]), m = useContext(_e$1).getPrefixCls, E = m("btn-group"), g = De(E, o);
|
|
631
|
+
return React__default.createElement("div", be({ ref: s, className: g, style: n }, C), u);
|
|
632
|
+
}
|
|
633
|
+
var Le = React__default.forwardRef(Er);
|
|
634
|
+
Le.displayName = "ButtonGroup";
|
|
635
|
+
var K = function() {
|
|
636
|
+
return K = Object.assign || function(i) {
|
|
637
|
+
for (var s, o = 1, n = arguments.length; o < n; o++) {
|
|
638
|
+
s = arguments[o];
|
|
639
|
+
for (var u in s) Object.prototype.hasOwnProperty.call(s, u) && (i[u] = s[u]);
|
|
640
|
+
}
|
|
641
|
+
return i;
|
|
642
|
+
}, K.apply(this, arguments);
|
|
643
|
+
}, Rr = function(i, s) {
|
|
644
|
+
var o = {};
|
|
645
|
+
for (var n in i) Object.prototype.hasOwnProperty.call(i, n) && s.indexOf(n) < 0 && (o[n] = i[n]);
|
|
646
|
+
if (i != null && typeof Object.getOwnPropertySymbols == "function")
|
|
647
|
+
for (var u = 0, n = Object.getOwnPropertySymbols(i); u < n.length; u++)
|
|
648
|
+
s.indexOf(n[u]) < 0 && Object.prototype.propertyIsEnumerable.call(i, n[u]) && (o[n[u]] = i[n[u]]);
|
|
649
|
+
return o;
|
|
650
|
+
}, Cr = function(i, s) {
|
|
651
|
+
var o = typeof Symbol == "function" && i[Symbol.iterator];
|
|
652
|
+
if (!o) return i;
|
|
653
|
+
var n = o.call(i), u, C = [], m;
|
|
654
|
+
try {
|
|
655
|
+
for (; (s === void 0 || s-- > 0) && !(u = n.next()).done; ) C.push(u.value);
|
|
656
|
+
} catch (E) {
|
|
657
|
+
m = { error: E };
|
|
658
|
+
} finally {
|
|
659
|
+
try {
|
|
660
|
+
u && !u.done && (o = n.return) && o.call(n);
|
|
661
|
+
} finally {
|
|
662
|
+
if (m) throw m.error;
|
|
663
|
+
}
|
|
664
|
+
}
|
|
665
|
+
return C;
|
|
666
|
+
}, Or = /^[\u4e00-\u9fa5]{2}$/;
|
|
667
|
+
function Tr(i) {
|
|
668
|
+
var s = [], o = false;
|
|
669
|
+
return React__default.Children.forEach(i, function(n) {
|
|
670
|
+
var u = typeof n == "string" || typeof n == "number";
|
|
671
|
+
if (u && o) {
|
|
672
|
+
var C = s.length - 1, m = s[C];
|
|
673
|
+
s[C] = "" + m + n;
|
|
674
|
+
} else
|
|
675
|
+
s.push(n);
|
|
676
|
+
o = u;
|
|
677
|
+
}), React__default.Children.map(s, function(n) {
|
|
678
|
+
return typeof n == "string" ? React__default.createElement("span", null, n) : n;
|
|
679
|
+
});
|
|
680
|
+
}
|
|
681
|
+
var Pr = {
|
|
682
|
+
htmlType: "button",
|
|
683
|
+
type: "default",
|
|
684
|
+
shape: "square"
|
|
685
|
+
};
|
|
686
|
+
function wr(i, s) {
|
|
687
|
+
var o, n = useContext(_e$1), u = n.getPrefixCls, C = n.size, m = n.autoInsertSpaceInButton, E = n.componentConfig, g = n.rtl, v = Lr(i, Pr, E == null ? void 0 : E.Button), b = v.style, P = v.className, w = v.children, N = v.htmlType, B = v.type, H = v.status, oe = v.size, D = v.shape, h = v.href, ie = v.anchorProps, A = v.disabled, L = v.loading, ue = v.loadingFixedWidth, le = v.icon, se = v.iconOnly, M = v.onClick, fe = v.long, X = Rr(v, ["style", "className", "children", "htmlType", "type", "status", "size", "shape", "href", "anchorProps", "disabled", "loading", "loadingFixedWidth", "icon", "iconOnly", "onClick", "long"]), U = L ? React__default.createElement(Nt, null) : le, S = Cr(useState(false), 2), x = S[0], I = S[1], Z = useRef(), j = s || Z;
|
|
688
|
+
useEffect(function() {
|
|
689
|
+
if (m && j && j.current) {
|
|
690
|
+
var k = j.current.textContent;
|
|
691
|
+
Or.test(k) ? x || I(true) : x && I(false);
|
|
692
|
+
}
|
|
693
|
+
}, [j.current, m]);
|
|
694
|
+
var _ = u("btn"), Q = B === "default" ? "secondary" : B, V = De(_, _ + "-" + Q, _ + "-size-" + (oe || C), _ + "-shape-" + D, (o = {}, o[_ + "-long"] = fe, o[_ + "-status-" + H] = H, o[_ + "-loading-fixed-width"] = ue, o[_ + "-loading"] = L, o[_ + "-link"] = h, o[_ + "-icon-only"] = se || !w && w !== 0 && U, o[_ + "-disabled"] = A, o[_ + "-two-chinese-chars"] = x, o[_ + "-rtl"] = g, o), P), z = function(k) {
|
|
695
|
+
if (L || A) {
|
|
696
|
+
typeof (k == null ? void 0 : k.preventDefault) == "function" && k.preventDefault();
|
|
697
|
+
return;
|
|
698
|
+
}
|
|
699
|
+
M && M(k);
|
|
700
|
+
}, G = React__default.createElement(
|
|
701
|
+
React__default.Fragment,
|
|
702
|
+
null,
|
|
703
|
+
U,
|
|
704
|
+
Tr(w)
|
|
705
|
+
);
|
|
706
|
+
if (h) {
|
|
707
|
+
var $ = K({}, ie);
|
|
708
|
+
return A ? delete $.href : $.href = h, React__default.createElement("a", K({ ref: j }, X, $, { style: b, className: V, onClick: z }), G);
|
|
709
|
+
}
|
|
710
|
+
return React__default.createElement("button", K({ ref: j }, X, { style: b, className: V, type: N, disabled: A, onClick: z }), G);
|
|
711
|
+
}
|
|
712
|
+
var xr = forwardRef(wr), _e = xr;
|
|
713
|
+
_e.__BYTE_BUTTON = true;
|
|
714
|
+
_e.Group = Le;
|
|
715
|
+
_e.displayName = "Button";
|
|
716
|
+
export {
|
|
717
|
+
_e as B,
|
|
718
|
+
kr as j
|
|
719
|
+
};
|
|
720
|
+
//# sourceMappingURL=index-EAFzPBke.es.es.js.map
|