@cniot/android-pda-components 2.0.0-beta.25 → 2.0.0-beta.27
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/README.md +25 -4
- package/es/index.cjs.js +11 -11
- package/es/index.es.js +790 -223
- package/package.json +1 -1
package/es/index.es.js
CHANGED
|
@@ -7,8 +7,7 @@ var __publicField = (obj, key, value) => {
|
|
|
7
7
|
var _a;
|
|
8
8
|
import * as React$1 from "react";
|
|
9
9
|
import React__default, { useState as useState$1, useEffect as useEffect$1, forwardRef, useImperativeHandle, createRef, useRef, Component, useContext, useMemo, useCallback, useLayoutEffect as useLayoutEffect$2, memo, version as version$1, isValidElement, createContext, cloneElement } from "react";
|
|
10
|
-
import
|
|
11
|
-
import ReactDOM__default, { unstable_batchedUpdates, createPortal } from "react-dom";
|
|
10
|
+
import ReactDOM$1, { unstable_batchedUpdates, createPortal } from "react-dom";
|
|
12
11
|
var global$2 = "";
|
|
13
12
|
window.PDA_IMAGE_PATH = window.PDA_IMAGE_PATH ? window.PDA_IMAGE_PATH : "https://img.alicdn.com/imgextra/i3/";
|
|
14
13
|
const PDA_IMAGE_PATH = window.PDA_IMAGE_PATH;
|
|
@@ -82,17 +81,17 @@ function _arrayWithHoles$1(arr) {
|
|
|
82
81
|
if (Array.isArray(arr))
|
|
83
82
|
return arr;
|
|
84
83
|
}
|
|
85
|
-
function _typeof$
|
|
84
|
+
function _typeof$2(obj) {
|
|
86
85
|
if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
|
|
87
|
-
_typeof$
|
|
86
|
+
_typeof$2 = function _typeof3(obj2) {
|
|
88
87
|
return typeof obj2;
|
|
89
88
|
};
|
|
90
89
|
} else {
|
|
91
|
-
_typeof$
|
|
90
|
+
_typeof$2 = function _typeof3(obj2) {
|
|
92
91
|
return obj2 && typeof Symbol === "function" && obj2.constructor === Symbol && obj2 !== Symbol.prototype ? "symbol" : typeof obj2;
|
|
93
92
|
};
|
|
94
93
|
}
|
|
95
|
-
return _typeof$
|
|
94
|
+
return _typeof$2(obj);
|
|
96
95
|
}
|
|
97
96
|
var ContainerType;
|
|
98
97
|
util$1.ContainerType = ContainerType;
|
|
@@ -104,7 +103,7 @@ function getContainerType() {
|
|
|
104
103
|
var type = "";
|
|
105
104
|
if (typeof callNative === "function") {
|
|
106
105
|
type = ContainerType.weex;
|
|
107
|
-
} else if ((typeof navigator === "undefined" ? "undefined" : _typeof$
|
|
106
|
+
} else if ((typeof navigator === "undefined" ? "undefined" : _typeof$2(navigator)) === "object" && (navigator.appCodeName === "Mozilla" || navigator.product === "Gecko")) {
|
|
108
107
|
type = ContainerType.web;
|
|
109
108
|
}
|
|
110
109
|
return type;
|
|
@@ -197,8 +196,8 @@ function assign$1(target) {
|
|
|
197
196
|
exports.getJSON = getJSON;
|
|
198
197
|
exports.remove = removeCookie;
|
|
199
198
|
exports["default"] = void 0;
|
|
200
|
-
var Util =
|
|
201
|
-
function
|
|
199
|
+
var Util = _interopRequireWildcard2(util$1);
|
|
200
|
+
function _interopRequireWildcard2(obj) {
|
|
202
201
|
if (obj && obj.__esModule) {
|
|
203
202
|
return obj;
|
|
204
203
|
} else {
|
|
@@ -308,9 +307,9 @@ function assign$1(target) {
|
|
|
308
307
|
value: true
|
|
309
308
|
});
|
|
310
309
|
exports["default"] = exports.LOCALE_KEY_NAME = void 0;
|
|
311
|
-
var Cookie =
|
|
312
|
-
var Util =
|
|
313
|
-
function
|
|
310
|
+
var Cookie = _interopRequireWildcard2(cookie);
|
|
311
|
+
var Util = _interopRequireWildcard2(util$1);
|
|
312
|
+
function _interopRequireWildcard2(obj) {
|
|
314
313
|
if (obj && obj.__esModule) {
|
|
315
314
|
return obj;
|
|
316
315
|
} else {
|
|
@@ -331,17 +330,17 @@ function assign$1(target) {
|
|
|
331
330
|
return newObj;
|
|
332
331
|
}
|
|
333
332
|
}
|
|
334
|
-
function
|
|
333
|
+
function _typeof3(obj) {
|
|
335
334
|
if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
|
|
336
|
-
|
|
335
|
+
_typeof3 = function _typeof4(obj2) {
|
|
337
336
|
return typeof obj2;
|
|
338
337
|
};
|
|
339
338
|
} else {
|
|
340
|
-
|
|
339
|
+
_typeof3 = function _typeof4(obj2) {
|
|
341
340
|
return obj2 && typeof Symbol === "function" && obj2.constructor === Symbol && obj2 !== Symbol.prototype ? "symbol" : typeof obj2;
|
|
342
341
|
};
|
|
343
342
|
}
|
|
344
|
-
return
|
|
343
|
+
return _typeof3(obj);
|
|
345
344
|
}
|
|
346
345
|
function _classCallCheck2(instance, Constructor) {
|
|
347
346
|
if (!(instance instanceof Constructor)) {
|
|
@@ -491,7 +490,7 @@ function assign$1(target) {
|
|
|
491
490
|
key: "weex",
|
|
492
491
|
value: function weex() {
|
|
493
492
|
var str = "";
|
|
494
|
-
if ((typeof WXEnvironment === "undefined" ? "undefined" :
|
|
493
|
+
if ((typeof WXEnvironment === "undefined" ? "undefined" : _typeof3(WXEnvironment)) === "object") {
|
|
495
494
|
str = WXEnvironment && WXEnvironment[this.key] || "";
|
|
496
495
|
}
|
|
497
496
|
var localeObject = Util.parseQueryString(str);
|
|
@@ -512,13 +511,13 @@ function assign$1(target) {
|
|
|
512
511
|
}
|
|
513
512
|
});
|
|
514
513
|
}
|
|
515
|
-
if ((typeof window === "undefined" ? "undefined" :
|
|
514
|
+
if ((typeof window === "undefined" ? "undefined" : _typeof3(window)) === "object") {
|
|
516
515
|
var win = window;
|
|
517
516
|
str = window[this.key];
|
|
518
517
|
if (str) {
|
|
519
518
|
var windowLocale = Util.parseQueryString(str);
|
|
520
519
|
localeObject = Util.assign({}, windowLocale, localeObject);
|
|
521
|
-
} else if (
|
|
520
|
+
} else if (_typeof3(win.g_config) === "object") {
|
|
522
521
|
var _win$g_config = win.g_config, regionID = _win$g_config.regionID, language2 = _win$g_config.language;
|
|
523
522
|
var localeFromGConfig = {};
|
|
524
523
|
if (regionID)
|
|
@@ -567,9 +566,9 @@ function assign$1(target) {
|
|
|
567
566
|
exports.createInstance = createInstance;
|
|
568
567
|
exports["default"] = void 0;
|
|
569
568
|
var _locale = _interopRequireDefault2(locale$1);
|
|
570
|
-
var util2 =
|
|
569
|
+
var util2 = _interopRequireWildcard2(util$1);
|
|
571
570
|
var _cookie = _interopRequireDefault2(cookie);
|
|
572
|
-
function
|
|
571
|
+
function _interopRequireWildcard2(obj) {
|
|
573
572
|
if (obj && obj.__esModule) {
|
|
574
573
|
return obj;
|
|
575
574
|
} else {
|
|
@@ -698,7 +697,7 @@ var realDefineProp = function() {
|
|
|
698
697
|
return false;
|
|
699
698
|
}
|
|
700
699
|
}();
|
|
701
|
-
var defineProperty = realDefineProp ? Object.defineProperty : function(obj, name, desc) {
|
|
700
|
+
var defineProperty$1 = realDefineProp ? Object.defineProperty : function(obj, name, desc) {
|
|
702
701
|
if ("get" in desc && obj.__defineGetter__) {
|
|
703
702
|
obj.__defineGetter__(name, desc.get);
|
|
704
703
|
} else if (!hop.call(obj, name) || "value" in desc) {
|
|
@@ -713,7 +712,7 @@ var objCreate = Object.create || function(proto, props) {
|
|
|
713
712
|
obj = new F();
|
|
714
713
|
for (k2 in props) {
|
|
715
714
|
if (hop.call(props, k2)) {
|
|
716
|
-
defineProperty(obj, k2, props[k2]);
|
|
715
|
+
defineProperty$1(obj, k2, props[k2]);
|
|
717
716
|
}
|
|
718
717
|
}
|
|
719
718
|
return obj;
|
|
@@ -2112,7 +2111,7 @@ function MessageFormat(message, locales, formats) {
|
|
|
2112
2111
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
2113
2112
|
}
|
|
2114
2113
|
formats = this._mergeFormats(MessageFormat.formats, formats);
|
|
2115
|
-
defineProperty(this, "_locale", { value: this._resolveLocale(locales) });
|
|
2114
|
+
defineProperty$1(this, "_locale", { value: this._resolveLocale(locales) });
|
|
2116
2115
|
var pluralFn = this._findPluralRuleFunction(this._locale);
|
|
2117
2116
|
var pattern = this._compilePattern(ast, locales, formats, pluralFn);
|
|
2118
2117
|
var messageFormat = this;
|
|
@@ -2130,7 +2129,7 @@ function MessageFormat(message, locales, formats) {
|
|
|
2130
2129
|
}
|
|
2131
2130
|
};
|
|
2132
2131
|
}
|
|
2133
|
-
defineProperty(MessageFormat, "formats", {
|
|
2132
|
+
defineProperty$1(MessageFormat, "formats", {
|
|
2134
2133
|
enumerable: true,
|
|
2135
2134
|
value: {
|
|
2136
2135
|
number: {
|
|
@@ -2189,8 +2188,8 @@ defineProperty(MessageFormat, "formats", {
|
|
|
2189
2188
|
}
|
|
2190
2189
|
}
|
|
2191
2190
|
});
|
|
2192
|
-
defineProperty(MessageFormat, "__localeData__", { value: objCreate(null) });
|
|
2193
|
-
defineProperty(MessageFormat, "__addLocaleData", { value: function(data) {
|
|
2191
|
+
defineProperty$1(MessageFormat, "__localeData__", { value: objCreate(null) });
|
|
2192
|
+
defineProperty$1(MessageFormat, "__addLocaleData", { value: function(data) {
|
|
2194
2193
|
if (!(data && data.locale)) {
|
|
2195
2194
|
throw new Error(
|
|
2196
2195
|
"Locale data provided to IntlMessageFormat is missing a `locale` property"
|
|
@@ -2198,8 +2197,8 @@ defineProperty(MessageFormat, "__addLocaleData", { value: function(data) {
|
|
|
2198
2197
|
}
|
|
2199
2198
|
MessageFormat.__localeData__[data.locale.toLowerCase()] = data;
|
|
2200
2199
|
} });
|
|
2201
|
-
defineProperty(MessageFormat, "__parse", { value: parser.parse });
|
|
2202
|
-
defineProperty(MessageFormat, "defaultLocale", {
|
|
2200
|
+
defineProperty$1(MessageFormat, "__parse", { value: parser.parse });
|
|
2201
|
+
defineProperty$1(MessageFormat, "defaultLocale", {
|
|
2203
2202
|
enumerable: true,
|
|
2204
2203
|
writable: true,
|
|
2205
2204
|
value: void 0
|
|
@@ -2317,9 +2316,9 @@ Object.defineProperty(stringFormat, "__esModule", {
|
|
|
2317
2316
|
value: true
|
|
2318
2317
|
});
|
|
2319
2318
|
stringFormat.default = void 0;
|
|
2320
|
-
var _intlMessageformat = _interopRequireDefault$
|
|
2319
|
+
var _intlMessageformat = _interopRequireDefault$2(require$$0);
|
|
2321
2320
|
var _util$1 = util;
|
|
2322
|
-
function _interopRequireDefault$
|
|
2321
|
+
function _interopRequireDefault$2(obj) {
|
|
2323
2322
|
return obj && obj.__esModule ? obj : { default: obj };
|
|
2324
2323
|
}
|
|
2325
2324
|
function _toConsumableArray(arr) {
|
|
@@ -2548,9 +2547,9 @@ lib$2.init = init;
|
|
|
2548
2547
|
lib$2.format = format;
|
|
2549
2548
|
var default_1 = lib$2.default = void 0;
|
|
2550
2549
|
var _universalEnv = lib$1;
|
|
2551
|
-
var _stringFormat = _interopRequireDefault(stringFormat);
|
|
2550
|
+
var _stringFormat = _interopRequireDefault$1(stringFormat);
|
|
2552
2551
|
var _util = util;
|
|
2553
|
-
function _interopRequireDefault(obj) {
|
|
2552
|
+
function _interopRequireDefault$1(obj) {
|
|
2554
2553
|
return obj && obj.__esModule ? obj : { default: obj };
|
|
2555
2554
|
}
|
|
2556
2555
|
var NAMESPACE = "__GLOBAL_STRING_FORMAT__";
|
|
@@ -2713,7 +2712,7 @@ var i18n = {
|
|
|
2713
2712
|
locale,
|
|
2714
2713
|
addMessage
|
|
2715
2714
|
};
|
|
2716
|
-
var
|
|
2715
|
+
var classnames = { exports: {} };
|
|
2717
2716
|
/*!
|
|
2718
2717
|
Copyright (c) 2018 Jed Watson.
|
|
2719
2718
|
Licensed under the MIT License (MIT), see
|
|
@@ -2769,8 +2768,8 @@ var _classnames_2_5_1_classnames = { exports: {} };
|
|
|
2769
2768
|
window.classNames = classNames2;
|
|
2770
2769
|
}
|
|
2771
2770
|
})();
|
|
2772
|
-
})(
|
|
2773
|
-
var classNames =
|
|
2771
|
+
})(classnames);
|
|
2772
|
+
var classNames = classnames.exports;
|
|
2774
2773
|
var index$14 = "";
|
|
2775
2774
|
function getTypeClass$2(type) {
|
|
2776
2775
|
return {
|
|
@@ -2857,7 +2856,7 @@ class PdaTitle extends React__default.Component {
|
|
|
2857
2856
|
}, menuList)));
|
|
2858
2857
|
}
|
|
2859
2858
|
}
|
|
2860
|
-
var
|
|
2859
|
+
var keycode$1 = { exports: {} };
|
|
2861
2860
|
(function(module, exports) {
|
|
2862
2861
|
function keyCode(searchInput) {
|
|
2863
2862
|
if (searchInput && "object" === typeof searchInput) {
|
|
@@ -2984,8 +2983,8 @@ var _keycode_2_2_1_keycode = { exports: {} };
|
|
|
2984
2983
|
for (var alias in aliases) {
|
|
2985
2984
|
codes[alias] = aliases[alias];
|
|
2986
2985
|
}
|
|
2987
|
-
})(
|
|
2988
|
-
var keycode =
|
|
2986
|
+
})(keycode$1, keycode$1.exports);
|
|
2987
|
+
var keycode = keycode$1.exports;
|
|
2989
2988
|
var index$12 = "";
|
|
2990
2989
|
function Button$2(props) {
|
|
2991
2990
|
const { type = "default", onClick, className = "", tabIndex = 1, dataClick = "" } = props;
|
|
@@ -3510,7 +3509,7 @@ const InternalToast = (p2) => {
|
|
|
3510
3509
|
};
|
|
3511
3510
|
const containers = [];
|
|
3512
3511
|
function unmount$1(container) {
|
|
3513
|
-
const unmountResult =
|
|
3512
|
+
const unmountResult = ReactDOM$1.unmountComponentAtNode(container);
|
|
3514
3513
|
if (unmountResult && container.parentNode) {
|
|
3515
3514
|
container.parentNode.removeChild(container);
|
|
3516
3515
|
}
|
|
@@ -3560,7 +3559,7 @@ function show$1(p2) {
|
|
|
3560
3559
|
});
|
|
3561
3560
|
});
|
|
3562
3561
|
const ref = createRef();
|
|
3563
|
-
|
|
3562
|
+
ReactDOM$1.render(/* @__PURE__ */ React__default.createElement(TempToast, {
|
|
3564
3563
|
ref
|
|
3565
3564
|
}), container);
|
|
3566
3565
|
return {
|
|
@@ -4758,6 +4757,7 @@ const zhCN = {
|
|
|
4758
4757
|
confirm: "\u786E\u8BA4",
|
|
4759
4758
|
start: "\u5F00\u59CB",
|
|
4760
4759
|
end: "\u7ED3\u675F",
|
|
4760
|
+
startAndEnd: "\u5F00\u59CB/\u7ED3\u675F",
|
|
4761
4761
|
today: "\u4ECA\u65E5",
|
|
4762
4762
|
markItems: ["\u4E00", "\u4E8C", "\u4E09", "\u56DB", "\u4E94", "\u516D", "\u65E5"],
|
|
4763
4763
|
yearAndMonth: "${year}\u5E74${month}\u6708"
|
|
@@ -4858,6 +4858,9 @@ const zhCN = {
|
|
|
4858
4858
|
Modal: {
|
|
4859
4859
|
ok: "\u6211\u77E5\u9053\u4E86"
|
|
4860
4860
|
},
|
|
4861
|
+
NumberKeyboard: {
|
|
4862
|
+
backspace: "\u5220\u9664"
|
|
4863
|
+
},
|
|
4861
4864
|
PasscodeInput: {
|
|
4862
4865
|
name: "\u5BC6\u7801\u8F93\u5165\u6846"
|
|
4863
4866
|
},
|
|
@@ -4970,7 +4973,7 @@ var isFunction = function(value) {
|
|
|
4970
4973
|
};
|
|
4971
4974
|
var isDev$1 = false;
|
|
4972
4975
|
var isDev$2 = isDev$1;
|
|
4973
|
-
|
|
4976
|
+
var useMemoizedFn = function(fn) {
|
|
4974
4977
|
if (isDev$2) {
|
|
4975
4978
|
if (!isFunction(fn)) {
|
|
4976
4979
|
console.error("useMemoizedFn expected parameter is a function, got ".concat(typeof fn));
|
|
@@ -4980,7 +4983,7 @@ function useMemoizedFn(fn) {
|
|
|
4980
4983
|
fnRef.current = useMemo(function() {
|
|
4981
4984
|
return fn;
|
|
4982
4985
|
}, [fn]);
|
|
4983
|
-
var memoizedFn = useRef();
|
|
4986
|
+
var memoizedFn = useRef(void 0);
|
|
4984
4987
|
if (!memoizedFn.current) {
|
|
4985
4988
|
memoizedFn.current = function() {
|
|
4986
4989
|
var args = [];
|
|
@@ -4991,14 +4994,17 @@ function useMemoizedFn(fn) {
|
|
|
4991
4994
|
};
|
|
4992
4995
|
}
|
|
4993
4996
|
return memoizedFn.current;
|
|
4994
|
-
}
|
|
4997
|
+
};
|
|
4998
|
+
var useMemoizedFn$1 = useMemoizedFn;
|
|
4995
4999
|
var useUpdateEffect = createUpdateEffect(useEffect$1);
|
|
4996
5000
|
function depsAreSame(oldDeps, deps) {
|
|
4997
|
-
if (oldDeps === deps)
|
|
5001
|
+
if (oldDeps === deps) {
|
|
4998
5002
|
return true;
|
|
5003
|
+
}
|
|
4999
5004
|
for (var i = 0; i < oldDeps.length; i++) {
|
|
5000
|
-
if (!Object.is(oldDeps[i], deps[i]))
|
|
5005
|
+
if (!Object.is(oldDeps[i], deps[i])) {
|
|
5001
5006
|
return false;
|
|
5007
|
+
}
|
|
5002
5008
|
}
|
|
5003
5009
|
return true;
|
|
5004
5010
|
}
|
|
@@ -5262,7 +5268,7 @@ var createEffectWithTarget = function(useEffectType) {
|
|
|
5262
5268
|
var hasInitRef = useRef(false);
|
|
5263
5269
|
var lastElementRef = useRef([]);
|
|
5264
5270
|
var lastDepsRef = useRef([]);
|
|
5265
|
-
var unLoadRef = useRef();
|
|
5271
|
+
var unLoadRef = useRef(void 0);
|
|
5266
5272
|
useEffectType(function() {
|
|
5267
5273
|
var _a2;
|
|
5268
5274
|
var targets = Array.isArray(target) ? target : [target];
|
|
@@ -5708,7 +5714,7 @@ function equal(a, b2) {
|
|
|
5708
5714
|
}
|
|
5709
5715
|
return a !== a && b2 !== b2;
|
|
5710
5716
|
}
|
|
5711
|
-
var
|
|
5717
|
+
var reactFastCompare = function isEqual(a, b2) {
|
|
5712
5718
|
try {
|
|
5713
5719
|
return equal(a, b2);
|
|
5714
5720
|
} catch (error2) {
|
|
@@ -6274,9 +6280,7 @@ function useInViewport(target, options) {
|
|
|
6274
6280
|
callback === null || callback === void 0 ? void 0 : callback(entry);
|
|
6275
6281
|
}
|
|
6276
6282
|
} catch (e_1_1) {
|
|
6277
|
-
e_1 = {
|
|
6278
|
-
error: e_1_1
|
|
6279
|
-
};
|
|
6283
|
+
e_1 = { error: e_1_1 };
|
|
6280
6284
|
} finally {
|
|
6281
6285
|
try {
|
|
6282
6286
|
if (entries_1_1 && !entries_1_1.done && (_a3 = entries_1.return))
|
|
@@ -6286,9 +6290,7 @@ function useInViewport(target, options) {
|
|
|
6286
6290
|
throw e_1.error;
|
|
6287
6291
|
}
|
|
6288
6292
|
}
|
|
6289
|
-
}, __assign(__assign({}, option), {
|
|
6290
|
-
root: getTargetElement(options === null || options === void 0 ? void 0 : options.root)
|
|
6291
|
-
}));
|
|
6293
|
+
}, __assign(__assign({}, option), { root: getTargetElement(options === null || options === void 0 ? void 0 : options.root) }));
|
|
6292
6294
|
els.forEach(function(el) {
|
|
6293
6295
|
return observer.observe(el);
|
|
6294
6296
|
});
|
|
@@ -6981,13 +6983,13 @@ const colors = {
|
|
|
6981
6983
|
};
|
|
6982
6984
|
const NUMBER = "[-+]?\\d*\\.?\\d+";
|
|
6983
6985
|
const PERCENTAGE = NUMBER + "%";
|
|
6984
|
-
function call$
|
|
6986
|
+
function call$2(...parts) {
|
|
6985
6987
|
return "\\(\\s*(" + parts.join(")\\s*,\\s*(") + ")\\s*\\)";
|
|
6986
6988
|
}
|
|
6987
|
-
const rgb = new RegExp("rgb" + call$
|
|
6988
|
-
const rgba = new RegExp("rgba" + call$
|
|
6989
|
-
const hsl = new RegExp("hsl" + call$
|
|
6990
|
-
const hsla = new RegExp("hsla" + call$
|
|
6989
|
+
const rgb = new RegExp("rgb" + call$2(NUMBER, NUMBER, NUMBER));
|
|
6990
|
+
const rgba = new RegExp("rgba" + call$2(NUMBER, NUMBER, NUMBER, NUMBER));
|
|
6991
|
+
const hsl = new RegExp("hsl" + call$2(NUMBER, PERCENTAGE, PERCENTAGE));
|
|
6992
|
+
const hsla = new RegExp("hsla" + call$2(NUMBER, PERCENTAGE, PERCENTAGE, NUMBER));
|
|
6991
6993
|
const hex3 = /^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/;
|
|
6992
6994
|
const hex4 = /^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/;
|
|
6993
6995
|
const hex6 = /^#([0-9a-fA-F]{6})$/;
|
|
@@ -9735,6 +9737,7 @@ function withStopPropagation(events, element) {
|
|
|
9735
9737
|
props[prop] = function(e2) {
|
|
9736
9738
|
var _a2, _b;
|
|
9737
9739
|
e2.stopPropagation();
|
|
9740
|
+
e2.nativeEvent.stopImmediatePropagation();
|
|
9738
9741
|
(_b = (_a2 = element.props)[prop]) === null || _b === void 0 ? void 0 : _b.call(_a2, e2);
|
|
9739
9742
|
};
|
|
9740
9743
|
}
|
|
@@ -10387,7 +10390,7 @@ function ownKeys(e2, r) {
|
|
|
10387
10390
|
}
|
|
10388
10391
|
return t2;
|
|
10389
10392
|
}
|
|
10390
|
-
function _objectSpread2(e2) {
|
|
10393
|
+
function _objectSpread2$1(e2) {
|
|
10391
10394
|
for (var r = 1; r < arguments.length; r++) {
|
|
10392
10395
|
var t2 = null != arguments[r] ? arguments[r] : {};
|
|
10393
10396
|
r % 2 ? ownKeys(Object(t2), true).forEach(function(r2) {
|
|
@@ -10525,7 +10528,7 @@ function getEventDetails(event2) {
|
|
|
10525
10528
|
}
|
|
10526
10529
|
return payload;
|
|
10527
10530
|
}
|
|
10528
|
-
function call(v2, ...args) {
|
|
10531
|
+
function call$1(v2, ...args) {
|
|
10529
10532
|
if (typeof v2 === "function") {
|
|
10530
10533
|
return v2(...args);
|
|
10531
10534
|
} else {
|
|
@@ -10626,7 +10629,7 @@ class Engine {
|
|
|
10626
10629
|
state._active = true;
|
|
10627
10630
|
state.target = event2.target;
|
|
10628
10631
|
state.currentTarget = event2.currentTarget;
|
|
10629
|
-
state.lastOffset = config2.from ? call(config2.from, state) : state.offset;
|
|
10632
|
+
state.lastOffset = config2.from ? call$1(config2.from, state) : state.offset;
|
|
10630
10633
|
state.offset = state.lastOffset;
|
|
10631
10634
|
state.startTime = state.timeStamp = event2.timeStamp;
|
|
10632
10635
|
}
|
|
@@ -10708,7 +10711,7 @@ class Engine {
|
|
|
10708
10711
|
if (event2) {
|
|
10709
10712
|
if (state.first) {
|
|
10710
10713
|
if ("bounds" in config2)
|
|
10711
|
-
state._bounds = call(config2.bounds, state);
|
|
10714
|
+
state._bounds = call$1(config2.bounds, state);
|
|
10712
10715
|
if (this.setup)
|
|
10713
10716
|
this.setup();
|
|
10714
10717
|
}
|
|
@@ -10745,7 +10748,7 @@ class Engine {
|
|
|
10745
10748
|
this.clean();
|
|
10746
10749
|
if ((state._blocked || !state.intentional) && !state._force && !config2.triggerAllEvents)
|
|
10747
10750
|
return;
|
|
10748
|
-
const memo2 = this.handler(_objectSpread2(_objectSpread2(_objectSpread2({}, shared), state), {}, {
|
|
10751
|
+
const memo2 = this.handler(_objectSpread2$1(_objectSpread2$1(_objectSpread2$1({}, shared), state), {}, {
|
|
10749
10752
|
[this.aliasKey]: state.values
|
|
10750
10753
|
}));
|
|
10751
10754
|
if (memo2 !== void 0)
|
|
@@ -10815,7 +10818,7 @@ const commonConfigResolver = {
|
|
|
10815
10818
|
return value;
|
|
10816
10819
|
},
|
|
10817
10820
|
eventOptions(value, _k, config2) {
|
|
10818
|
-
return _objectSpread2(_objectSpread2({}, config2.shared.eventOptions), value);
|
|
10821
|
+
return _objectSpread2$1(_objectSpread2$1({}, config2.shared.eventOptions), value);
|
|
10819
10822
|
},
|
|
10820
10823
|
preventDefault(value = false) {
|
|
10821
10824
|
return value;
|
|
@@ -10849,7 +10852,7 @@ const commonConfigResolver = {
|
|
|
10849
10852
|
}
|
|
10850
10853
|
};
|
|
10851
10854
|
const DEFAULT_AXIS_THRESHOLD = 0;
|
|
10852
|
-
const coordinatesConfigResolver = _objectSpread2(_objectSpread2({}, commonConfigResolver), {}, {
|
|
10855
|
+
const coordinatesConfigResolver = _objectSpread2$1(_objectSpread2$1({}, commonConfigResolver), {}, {
|
|
10853
10856
|
axis(_v, _k, {
|
|
10854
10857
|
axis
|
|
10855
10858
|
}) {
|
|
@@ -11184,7 +11187,7 @@ const DEFAULT_DRAG_AXIS_THRESHOLD = {
|
|
|
11184
11187
|
touch: 0,
|
|
11185
11188
|
pen: 8
|
|
11186
11189
|
};
|
|
11187
|
-
const dragConfigResolver = _objectSpread2(_objectSpread2({}, coordinatesConfigResolver), {}, {
|
|
11190
|
+
const dragConfigResolver = _objectSpread2$1(_objectSpread2$1({}, coordinatesConfigResolver), {}, {
|
|
11188
11191
|
device(_v, _k, {
|
|
11189
11192
|
pointer: {
|
|
11190
11193
|
touch = false,
|
|
@@ -11256,7 +11259,7 @@ const dragConfigResolver = _objectSpread2(_objectSpread2({}, coordinatesConfigRe
|
|
|
11256
11259
|
axisThreshold(value) {
|
|
11257
11260
|
if (!value)
|
|
11258
11261
|
return DEFAULT_DRAG_AXIS_THRESHOLD;
|
|
11259
|
-
return _objectSpread2(_objectSpread2({}, DEFAULT_DRAG_AXIS_THRESHOLD), value);
|
|
11262
|
+
return _objectSpread2$1(_objectSpread2$1({}, DEFAULT_DRAG_AXIS_THRESHOLD), value);
|
|
11260
11263
|
},
|
|
11261
11264
|
keyboardDisplacement(value = DEFAULT_KEYBOARD_DISPLACEMENT) {
|
|
11262
11265
|
return value;
|
|
@@ -11273,7 +11276,7 @@ function clampStateInternalMovementToBounds(state) {
|
|
|
11273
11276
|
state._movement[1] = state._movementBound[1];
|
|
11274
11277
|
}
|
|
11275
11278
|
}
|
|
11276
|
-
_objectSpread2(_objectSpread2({}, commonConfigResolver), {}, {
|
|
11279
|
+
_objectSpread2$1(_objectSpread2$1({}, commonConfigResolver), {}, {
|
|
11277
11280
|
device(_v, _k, {
|
|
11278
11281
|
shared,
|
|
11279
11282
|
pointer: {
|
|
@@ -11297,14 +11300,14 @@ _objectSpread2(_objectSpread2({}, commonConfigResolver), {}, {
|
|
|
11297
11300
|
angleBounds = {}
|
|
11298
11301
|
}) {
|
|
11299
11302
|
const _scaleBounds = (state) => {
|
|
11300
|
-
const D = assignDefault(call(scaleBounds, state), {
|
|
11303
|
+
const D = assignDefault(call$1(scaleBounds, state), {
|
|
11301
11304
|
min: -Infinity,
|
|
11302
11305
|
max: Infinity
|
|
11303
11306
|
});
|
|
11304
11307
|
return [D.min, D.max];
|
|
11305
11308
|
};
|
|
11306
11309
|
const _angleBounds = (state) => {
|
|
11307
|
-
const A = assignDefault(call(angleBounds, state), {
|
|
11310
|
+
const A = assignDefault(call$1(angleBounds, state), {
|
|
11308
11311
|
min: -Infinity,
|
|
11309
11312
|
max: Infinity
|
|
11310
11313
|
});
|
|
@@ -11328,7 +11331,7 @@ _objectSpread2(_objectSpread2({}, commonConfigResolver), {}, {
|
|
|
11328
11331
|
return value;
|
|
11329
11332
|
}
|
|
11330
11333
|
});
|
|
11331
|
-
_objectSpread2(_objectSpread2({}, coordinatesConfigResolver), {}, {
|
|
11334
|
+
_objectSpread2$1(_objectSpread2$1({}, coordinatesConfigResolver), {}, {
|
|
11332
11335
|
mouseOnly: (value = true) => value
|
|
11333
11336
|
});
|
|
11334
11337
|
class WheelEngine extends CoordinatesEngine {
|
|
@@ -11362,7 +11365,7 @@ class WheelEngine extends CoordinatesEngine {
|
|
|
11362
11365
|
}
|
|
11363
11366
|
}
|
|
11364
11367
|
const wheelConfigResolver = coordinatesConfigResolver;
|
|
11365
|
-
_objectSpread2(_objectSpread2({}, coordinatesConfigResolver), {}, {
|
|
11368
|
+
_objectSpread2$1(_objectSpread2$1({}, coordinatesConfigResolver), {}, {
|
|
11366
11369
|
mouseOnly: (value = true) => value
|
|
11367
11370
|
});
|
|
11368
11371
|
const EngineMap = /* @__PURE__ */ new Map();
|
|
@@ -11477,14 +11480,14 @@ function parse(newConfig, gestureKey, _config = {}) {
|
|
|
11477
11480
|
}, sharedConfigResolver);
|
|
11478
11481
|
if (gestureKey) {
|
|
11479
11482
|
const resolver = ConfigResolverMap.get(gestureKey);
|
|
11480
|
-
_config[gestureKey] = resolveWith(_objectSpread2({
|
|
11483
|
+
_config[gestureKey] = resolveWith(_objectSpread2$1({
|
|
11481
11484
|
shared: _config.shared
|
|
11482
11485
|
}, rest), resolver);
|
|
11483
11486
|
} else {
|
|
11484
11487
|
for (const key in rest) {
|
|
11485
11488
|
const resolver = ConfigResolverMap.get(key);
|
|
11486
11489
|
if (resolver) {
|
|
11487
|
-
_config[key] = resolveWith(_objectSpread2({
|
|
11490
|
+
_config[key] = resolveWith(_objectSpread2$1({
|
|
11488
11491
|
shared: _config.shared
|
|
11489
11492
|
}, rest[key]), resolver);
|
|
11490
11493
|
}
|
|
@@ -11502,7 +11505,7 @@ class EventStore {
|
|
|
11502
11505
|
const listeners = this._listeners;
|
|
11503
11506
|
const type = toDomEventType(device, action);
|
|
11504
11507
|
const _options = this._gestureKey ? this._ctrl.config[this._gestureKey].eventOptions : {};
|
|
11505
|
-
const eventOptions = _objectSpread2(_objectSpread2({}, _options), options);
|
|
11508
|
+
const eventOptions = _objectSpread2$1(_objectSpread2$1({}, _options), options);
|
|
11506
11509
|
element.addEventListener(type, handler, eventOptions);
|
|
11507
11510
|
const remove = () => {
|
|
11508
11511
|
element.removeEventListener(type, handler, eventOptions);
|
|
@@ -11605,7 +11608,7 @@ class Controller {
|
|
|
11605
11608
|
}
|
|
11606
11609
|
const nativeBindFunction = bindToProps(props, sharedConfig.eventOptions, !!target);
|
|
11607
11610
|
for (const eventKey in this.nativeHandlers) {
|
|
11608
|
-
nativeBindFunction(eventKey, "", (event2) => this.nativeHandlers[eventKey](_objectSpread2(_objectSpread2({}, this.state.shared), {}, {
|
|
11611
|
+
nativeBindFunction(eventKey, "", (event2) => this.nativeHandlers[eventKey](_objectSpread2$1(_objectSpread2$1({}, this.state.shared), {}, {
|
|
11609
11612
|
event: event2,
|
|
11610
11613
|
args
|
|
11611
11614
|
})), void 0, true);
|
|
@@ -11807,75 +11810,597 @@ const SafeArea$1 = (props) => {
|
|
|
11807
11810
|
}));
|
|
11808
11811
|
};
|
|
11809
11812
|
var SafeArea = SafeArea$1;
|
|
11810
|
-
|
|
11811
|
-
|
|
11812
|
-
|
|
11813
|
-
|
|
11814
|
-
|
|
11815
|
-
|
|
11816
|
-
|
|
11813
|
+
var warning$2 = {};
|
|
11814
|
+
Object.defineProperty(warning$2, "__esModule", {
|
|
11815
|
+
value: true
|
|
11816
|
+
});
|
|
11817
|
+
warning$2.call = call;
|
|
11818
|
+
warning$2.default = void 0;
|
|
11819
|
+
warning$2.note = note;
|
|
11820
|
+
warning$2.noteOnce = noteOnce;
|
|
11821
|
+
warning$2.preMessage = void 0;
|
|
11822
|
+
warning$2.resetWarned = resetWarned;
|
|
11823
|
+
warning$2.warning = warning$1;
|
|
11824
|
+
warning$2.warningOnce = warningOnce;
|
|
11825
|
+
var warned = {};
|
|
11826
|
+
var preMessage = warning$2.preMessage = function preMessage2(fn) {
|
|
11827
|
+
};
|
|
11828
|
+
function warning$1(valid, message) {
|
|
11829
|
+
}
|
|
11830
|
+
function note(valid, message) {
|
|
11831
|
+
}
|
|
11832
|
+
function resetWarned() {
|
|
11833
|
+
warned = {};
|
|
11834
|
+
}
|
|
11835
|
+
function call(method, valid, message) {
|
|
11836
|
+
if (!valid && !warned[message]) {
|
|
11837
|
+
method(false, message);
|
|
11838
|
+
warned[message] = true;
|
|
11839
|
+
}
|
|
11840
|
+
}
|
|
11841
|
+
function warningOnce(valid, message) {
|
|
11842
|
+
call(warning$1, valid, message);
|
|
11843
|
+
}
|
|
11844
|
+
function noteOnce(valid, message) {
|
|
11845
|
+
call(note, valid, message);
|
|
11846
|
+
}
|
|
11847
|
+
warningOnce.preMessage = preMessage;
|
|
11848
|
+
warningOnce.resetWarned = resetWarned;
|
|
11849
|
+
warningOnce.noteOnce = noteOnce;
|
|
11850
|
+
warning$2.default = warningOnce;
|
|
11851
|
+
var render$1 = {};
|
|
11852
|
+
var interopRequireWildcard = { exports: {} };
|
|
11853
|
+
var _typeof$1 = { exports: {} };
|
|
11854
|
+
(function(module) {
|
|
11855
|
+
function _typeof3(o) {
|
|
11856
|
+
"@babel/helpers - typeof";
|
|
11857
|
+
return module.exports = _typeof3 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o2) {
|
|
11858
|
+
return typeof o2;
|
|
11859
|
+
} : function(o2) {
|
|
11860
|
+
return o2 && "function" == typeof Symbol && o2.constructor === Symbol && o2 !== Symbol.prototype ? "symbol" : typeof o2;
|
|
11861
|
+
}, module.exports.__esModule = true, module.exports["default"] = module.exports, _typeof3(o);
|
|
11862
|
+
}
|
|
11863
|
+
module.exports = _typeof3, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
11864
|
+
})(_typeof$1);
|
|
11865
|
+
(function(module) {
|
|
11866
|
+
var _typeof3 = _typeof$1.exports["default"];
|
|
11867
|
+
function _interopRequireWildcard2(e2, t2) {
|
|
11868
|
+
if ("function" == typeof WeakMap)
|
|
11869
|
+
var r = /* @__PURE__ */ new WeakMap(), n2 = /* @__PURE__ */ new WeakMap();
|
|
11870
|
+
return (module.exports = _interopRequireWildcard2 = function _interopRequireWildcard3(e3, t3) {
|
|
11871
|
+
if (!t3 && e3 && e3.__esModule)
|
|
11872
|
+
return e3;
|
|
11873
|
+
var o, i, f2 = {
|
|
11874
|
+
__proto__: null,
|
|
11875
|
+
"default": e3
|
|
11876
|
+
};
|
|
11877
|
+
if (null === e3 || "object" != _typeof3(e3) && "function" != typeof e3)
|
|
11878
|
+
return f2;
|
|
11879
|
+
if (o = t3 ? n2 : r) {
|
|
11880
|
+
if (o.has(e3))
|
|
11881
|
+
return o.get(e3);
|
|
11882
|
+
o.set(e3, f2);
|
|
11883
|
+
}
|
|
11884
|
+
for (var _t in e3)
|
|
11885
|
+
"default" !== _t && {}.hasOwnProperty.call(e3, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e3, _t)) && (i.get || i.set) ? o(f2, _t, i) : f2[_t] = e3[_t]);
|
|
11886
|
+
return f2;
|
|
11887
|
+
}, module.exports.__esModule = true, module.exports["default"] = module.exports)(e2, t2);
|
|
11888
|
+
}
|
|
11889
|
+
module.exports = _interopRequireWildcard2, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
11890
|
+
})(interopRequireWildcard);
|
|
11891
|
+
var interopRequireDefault = { exports: {} };
|
|
11892
|
+
(function(module) {
|
|
11893
|
+
function _interopRequireDefault2(e2) {
|
|
11894
|
+
return e2 && e2.__esModule ? e2 : {
|
|
11895
|
+
"default": e2
|
|
11896
|
+
};
|
|
11897
|
+
}
|
|
11898
|
+
module.exports = _interopRequireDefault2, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
11899
|
+
})(interopRequireDefault);
|
|
11900
|
+
var regeneratorRuntime = { exports: {} };
|
|
11901
|
+
var OverloadYield = { exports: {} };
|
|
11902
|
+
(function(module) {
|
|
11903
|
+
function _OverloadYield(e2, d2) {
|
|
11904
|
+
this.v = e2, this.k = d2;
|
|
11905
|
+
}
|
|
11906
|
+
module.exports = _OverloadYield, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
11907
|
+
})(OverloadYield);
|
|
11908
|
+
var regenerator = { exports: {} };
|
|
11909
|
+
var regeneratorDefine = { exports: {} };
|
|
11910
|
+
(function(module) {
|
|
11911
|
+
function _regeneratorDefine(e2, r, n2, t2) {
|
|
11912
|
+
var i = Object.defineProperty;
|
|
11913
|
+
try {
|
|
11914
|
+
i({}, "", {});
|
|
11915
|
+
} catch (e3) {
|
|
11916
|
+
i = 0;
|
|
11917
|
+
}
|
|
11918
|
+
module.exports = _regeneratorDefine = function regeneratorDefine2(e3, r2, n3, t3) {
|
|
11919
|
+
function o(r3, n4) {
|
|
11920
|
+
_regeneratorDefine(e3, r3, function(e4) {
|
|
11921
|
+
return this._invoke(r3, n4, e4);
|
|
11922
|
+
});
|
|
11923
|
+
}
|
|
11924
|
+
r2 ? i ? i(e3, r2, {
|
|
11925
|
+
value: n3,
|
|
11926
|
+
enumerable: !t3,
|
|
11927
|
+
configurable: !t3,
|
|
11928
|
+
writable: !t3
|
|
11929
|
+
}) : e3[r2] = n3 : (o("next", 0), o("throw", 1), o("return", 2));
|
|
11930
|
+
}, module.exports.__esModule = true, module.exports["default"] = module.exports, _regeneratorDefine(e2, r, n2, t2);
|
|
11931
|
+
}
|
|
11932
|
+
module.exports = _regeneratorDefine, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
11933
|
+
})(regeneratorDefine);
|
|
11934
|
+
(function(module) {
|
|
11935
|
+
var regeneratorDefine$1 = regeneratorDefine.exports;
|
|
11936
|
+
function _regenerator() {
|
|
11937
|
+
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */
|
|
11938
|
+
var e2, t2, r = "function" == typeof Symbol ? Symbol : {}, n2 = r.iterator || "@@iterator", o = r.toStringTag || "@@toStringTag";
|
|
11939
|
+
function i(r2, n3, o2, i2) {
|
|
11940
|
+
var c7 = n3 && n3.prototype instanceof Generator ? n3 : Generator, u3 = Object.create(c7.prototype);
|
|
11941
|
+
return regeneratorDefine$1(u3, "_invoke", function(r3, n4, o3) {
|
|
11942
|
+
var i3, c8, u4, f3 = 0, p2 = o3 || [], y = false, G = {
|
|
11943
|
+
p: 0,
|
|
11944
|
+
n: 0,
|
|
11945
|
+
v: e2,
|
|
11946
|
+
a: d2,
|
|
11947
|
+
f: d2.bind(e2, 4),
|
|
11948
|
+
d: function d3(t3, r4) {
|
|
11949
|
+
return i3 = t3, c8 = 0, u4 = e2, G.n = r4, a;
|
|
11950
|
+
}
|
|
11951
|
+
};
|
|
11952
|
+
function d2(r4, n5) {
|
|
11953
|
+
for (c8 = r4, u4 = n5, t2 = 0; !y && f3 && !o4 && t2 < p2.length; t2++) {
|
|
11954
|
+
var o4, i4 = p2[t2], d3 = G.p, l2 = i4[2];
|
|
11955
|
+
r4 > 3 ? (o4 = l2 === n5) && (u4 = i4[(c8 = i4[4]) ? 5 : (c8 = 3, 3)], i4[4] = i4[5] = e2) : i4[0] <= d3 && ((o4 = r4 < 2 && d3 < i4[1]) ? (c8 = 0, G.v = n5, G.n = i4[1]) : d3 < l2 && (o4 = r4 < 3 || i4[0] > n5 || n5 > l2) && (i4[4] = r4, i4[5] = n5, G.n = l2, c8 = 0));
|
|
11956
|
+
}
|
|
11957
|
+
if (o4 || r4 > 1)
|
|
11958
|
+
return a;
|
|
11959
|
+
throw y = true, n5;
|
|
11960
|
+
}
|
|
11961
|
+
return function(o4, p3, l2) {
|
|
11962
|
+
if (f3 > 1)
|
|
11963
|
+
throw TypeError("Generator is already running");
|
|
11964
|
+
for (y && 1 === p3 && d2(p3, l2), c8 = p3, u4 = l2; (t2 = c8 < 2 ? e2 : u4) || !y; ) {
|
|
11965
|
+
i3 || (c8 ? c8 < 3 ? (c8 > 1 && (G.n = -1), d2(c8, u4)) : G.n = u4 : G.v = u4);
|
|
11966
|
+
try {
|
|
11967
|
+
if (f3 = 2, i3) {
|
|
11968
|
+
if (c8 || (o4 = "next"), t2 = i3[o4]) {
|
|
11969
|
+
if (!(t2 = t2.call(i3, u4)))
|
|
11970
|
+
throw TypeError("iterator result is not an object");
|
|
11971
|
+
if (!t2.done)
|
|
11972
|
+
return t2;
|
|
11973
|
+
u4 = t2.value, c8 < 2 && (c8 = 0);
|
|
11974
|
+
} else
|
|
11975
|
+
1 === c8 && (t2 = i3["return"]) && t2.call(i3), c8 < 2 && (u4 = TypeError("The iterator does not provide a '" + o4 + "' method"), c8 = 1);
|
|
11976
|
+
i3 = e2;
|
|
11977
|
+
} else if ((t2 = (y = G.n < 0) ? u4 : r3.call(n4, G)) !== a)
|
|
11978
|
+
break;
|
|
11979
|
+
} catch (t3) {
|
|
11980
|
+
i3 = e2, c8 = 1, u4 = t3;
|
|
11981
|
+
} finally {
|
|
11982
|
+
f3 = 1;
|
|
11983
|
+
}
|
|
11984
|
+
}
|
|
11985
|
+
return {
|
|
11986
|
+
value: t2,
|
|
11987
|
+
done: y
|
|
11988
|
+
};
|
|
11989
|
+
};
|
|
11990
|
+
}(r2, o2, i2), true), u3;
|
|
11991
|
+
}
|
|
11992
|
+
var a = {};
|
|
11993
|
+
function Generator() {
|
|
11994
|
+
}
|
|
11995
|
+
function GeneratorFunction() {
|
|
11996
|
+
}
|
|
11997
|
+
function GeneratorFunctionPrototype() {
|
|
11998
|
+
}
|
|
11999
|
+
t2 = Object.getPrototypeOf;
|
|
12000
|
+
var c6 = [][n2] ? t2(t2([][n2]())) : (regeneratorDefine$1(t2 = {}, n2, function() {
|
|
12001
|
+
return this;
|
|
12002
|
+
}), t2), u2 = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(c6);
|
|
12003
|
+
function f2(e3) {
|
|
12004
|
+
return Object.setPrototypeOf ? Object.setPrototypeOf(e3, GeneratorFunctionPrototype) : (e3.__proto__ = GeneratorFunctionPrototype, regeneratorDefine$1(e3, o, "GeneratorFunction")), e3.prototype = Object.create(u2), e3;
|
|
12005
|
+
}
|
|
12006
|
+
return GeneratorFunction.prototype = GeneratorFunctionPrototype, regeneratorDefine$1(u2, "constructor", GeneratorFunctionPrototype), regeneratorDefine$1(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = "GeneratorFunction", regeneratorDefine$1(GeneratorFunctionPrototype, o, "GeneratorFunction"), regeneratorDefine$1(u2), regeneratorDefine$1(u2, o, "Generator"), regeneratorDefine$1(u2, n2, function() {
|
|
12007
|
+
return this;
|
|
12008
|
+
}), regeneratorDefine$1(u2, "toString", function() {
|
|
12009
|
+
return "[object Generator]";
|
|
12010
|
+
}), (module.exports = _regenerator = function _regenerator2() {
|
|
12011
|
+
return {
|
|
12012
|
+
w: i,
|
|
12013
|
+
m: f2
|
|
12014
|
+
};
|
|
12015
|
+
}, module.exports.__esModule = true, module.exports["default"] = module.exports)();
|
|
12016
|
+
}
|
|
12017
|
+
module.exports = _regenerator, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
12018
|
+
})(regenerator);
|
|
12019
|
+
var regeneratorAsync = { exports: {} };
|
|
12020
|
+
var regeneratorAsyncGen = { exports: {} };
|
|
12021
|
+
var regeneratorAsyncIterator = { exports: {} };
|
|
12022
|
+
(function(module) {
|
|
12023
|
+
var OverloadYield$1 = OverloadYield.exports;
|
|
12024
|
+
var regeneratorDefine$1 = regeneratorDefine.exports;
|
|
12025
|
+
function AsyncIterator(t2, e2) {
|
|
12026
|
+
function n2(r2, o, i, f2) {
|
|
12027
|
+
try {
|
|
12028
|
+
var c6 = t2[r2](o), u2 = c6.value;
|
|
12029
|
+
return u2 instanceof OverloadYield$1 ? e2.resolve(u2.v).then(function(t3) {
|
|
12030
|
+
n2("next", t3, i, f2);
|
|
12031
|
+
}, function(t3) {
|
|
12032
|
+
n2("throw", t3, i, f2);
|
|
12033
|
+
}) : e2.resolve(u2).then(function(t3) {
|
|
12034
|
+
c6.value = t3, i(c6);
|
|
12035
|
+
}, function(t3) {
|
|
12036
|
+
return n2("throw", t3, i, f2);
|
|
12037
|
+
});
|
|
12038
|
+
} catch (t3) {
|
|
12039
|
+
f2(t3);
|
|
12040
|
+
}
|
|
12041
|
+
}
|
|
12042
|
+
var r;
|
|
12043
|
+
this.next || (regeneratorDefine$1(AsyncIterator.prototype), regeneratorDefine$1(AsyncIterator.prototype, "function" == typeof Symbol && Symbol.asyncIterator || "@asyncIterator", function() {
|
|
12044
|
+
return this;
|
|
12045
|
+
})), regeneratorDefine$1(this, "_invoke", function(t3, o, i) {
|
|
12046
|
+
function f2() {
|
|
12047
|
+
return new e2(function(e3, r2) {
|
|
12048
|
+
n2(t3, i, e3, r2);
|
|
12049
|
+
});
|
|
12050
|
+
}
|
|
12051
|
+
return r = r ? r.then(f2, f2) : f2();
|
|
12052
|
+
}, true);
|
|
12053
|
+
}
|
|
12054
|
+
module.exports = AsyncIterator, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
12055
|
+
})(regeneratorAsyncIterator);
|
|
12056
|
+
(function(module) {
|
|
12057
|
+
var regenerator$1 = regenerator.exports;
|
|
12058
|
+
var regeneratorAsyncIterator$1 = regeneratorAsyncIterator.exports;
|
|
12059
|
+
function _regeneratorAsyncGen(r, e2, t2, o, n2) {
|
|
12060
|
+
return new regeneratorAsyncIterator$1(regenerator$1().w(r, e2, t2, o), n2 || Promise);
|
|
12061
|
+
}
|
|
12062
|
+
module.exports = _regeneratorAsyncGen, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
12063
|
+
})(regeneratorAsyncGen);
|
|
12064
|
+
(function(module) {
|
|
12065
|
+
var regeneratorAsyncGen$1 = regeneratorAsyncGen.exports;
|
|
12066
|
+
function _regeneratorAsync(n2, e2, r, t2, o) {
|
|
12067
|
+
var a = regeneratorAsyncGen$1(n2, e2, r, t2, o);
|
|
12068
|
+
return a.next().then(function(n3) {
|
|
12069
|
+
return n3.done ? n3.value : a.next();
|
|
12070
|
+
});
|
|
12071
|
+
}
|
|
12072
|
+
module.exports = _regeneratorAsync, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
12073
|
+
})(regeneratorAsync);
|
|
12074
|
+
var regeneratorKeys = { exports: {} };
|
|
12075
|
+
(function(module) {
|
|
12076
|
+
function _regeneratorKeys(e2) {
|
|
12077
|
+
var n2 = Object(e2), r = [];
|
|
12078
|
+
for (var t2 in n2)
|
|
12079
|
+
r.unshift(t2);
|
|
12080
|
+
return function e3() {
|
|
12081
|
+
for (; r.length; )
|
|
12082
|
+
if ((t2 = r.pop()) in n2)
|
|
12083
|
+
return e3.value = t2, e3.done = false, e3;
|
|
12084
|
+
return e3.done = true, e3;
|
|
12085
|
+
};
|
|
12086
|
+
}
|
|
12087
|
+
module.exports = _regeneratorKeys, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
12088
|
+
})(regeneratorKeys);
|
|
12089
|
+
var regeneratorValues = { exports: {} };
|
|
12090
|
+
(function(module) {
|
|
12091
|
+
var _typeof3 = _typeof$1.exports["default"];
|
|
12092
|
+
function _regeneratorValues(e2) {
|
|
12093
|
+
if (null != e2) {
|
|
12094
|
+
var t2 = e2["function" == typeof Symbol && Symbol.iterator || "@@iterator"], r = 0;
|
|
12095
|
+
if (t2)
|
|
12096
|
+
return t2.call(e2);
|
|
12097
|
+
if ("function" == typeof e2.next)
|
|
12098
|
+
return e2;
|
|
12099
|
+
if (!isNaN(e2.length))
|
|
12100
|
+
return {
|
|
12101
|
+
next: function next() {
|
|
12102
|
+
return e2 && r >= e2.length && (e2 = void 0), {
|
|
12103
|
+
value: e2 && e2[r++],
|
|
12104
|
+
done: !e2
|
|
12105
|
+
};
|
|
12106
|
+
}
|
|
12107
|
+
};
|
|
12108
|
+
}
|
|
12109
|
+
throw new TypeError(_typeof3(e2) + " is not iterable");
|
|
12110
|
+
}
|
|
12111
|
+
module.exports = _regeneratorValues, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
12112
|
+
})(regeneratorValues);
|
|
12113
|
+
(function(module) {
|
|
12114
|
+
var OverloadYield$1 = OverloadYield.exports;
|
|
12115
|
+
var regenerator$1 = regenerator.exports;
|
|
12116
|
+
var regeneratorAsync$1 = regeneratorAsync.exports;
|
|
12117
|
+
var regeneratorAsyncGen$1 = regeneratorAsyncGen.exports;
|
|
12118
|
+
var regeneratorAsyncIterator$1 = regeneratorAsyncIterator.exports;
|
|
12119
|
+
var regeneratorKeys$1 = regeneratorKeys.exports;
|
|
12120
|
+
var regeneratorValues$1 = regeneratorValues.exports;
|
|
12121
|
+
function _regeneratorRuntime() {
|
|
12122
|
+
var r = regenerator$1(), e2 = r.m(_regeneratorRuntime), t2 = (Object.getPrototypeOf ? Object.getPrototypeOf(e2) : e2.__proto__).constructor;
|
|
12123
|
+
function n2(r2) {
|
|
12124
|
+
var e3 = "function" == typeof r2 && r2.constructor;
|
|
12125
|
+
return !!e3 && (e3 === t2 || "GeneratorFunction" === (e3.displayName || e3.name));
|
|
12126
|
+
}
|
|
12127
|
+
var o = {
|
|
12128
|
+
"throw": 1,
|
|
12129
|
+
"return": 2,
|
|
12130
|
+
"break": 3,
|
|
12131
|
+
"continue": 3
|
|
12132
|
+
};
|
|
12133
|
+
function a(r2) {
|
|
12134
|
+
var e3, t3;
|
|
12135
|
+
return function(n3) {
|
|
12136
|
+
e3 || (e3 = {
|
|
12137
|
+
stop: function stop2() {
|
|
12138
|
+
return t3(n3.a, 2);
|
|
12139
|
+
},
|
|
12140
|
+
"catch": function _catch() {
|
|
12141
|
+
return n3.v;
|
|
12142
|
+
},
|
|
12143
|
+
abrupt: function abrupt(r3, e4) {
|
|
12144
|
+
return t3(n3.a, o[r3], e4);
|
|
12145
|
+
},
|
|
12146
|
+
delegateYield: function delegateYield(r3, o2, a2) {
|
|
12147
|
+
return e3.resultName = o2, t3(n3.d, regeneratorValues$1(r3), a2);
|
|
12148
|
+
},
|
|
12149
|
+
finish: function finish(r3) {
|
|
12150
|
+
return t3(n3.f, r3);
|
|
12151
|
+
}
|
|
12152
|
+
}, t3 = function t4(r3, _t, o2) {
|
|
12153
|
+
n3.p = e3.prev, n3.n = e3.next;
|
|
12154
|
+
try {
|
|
12155
|
+
return r3(_t, o2);
|
|
12156
|
+
} finally {
|
|
12157
|
+
e3.next = n3.n;
|
|
12158
|
+
}
|
|
12159
|
+
}), e3.resultName && (e3[e3.resultName] = n3.v, e3.resultName = void 0), e3.sent = n3.v, e3.next = n3.n;
|
|
12160
|
+
try {
|
|
12161
|
+
return r2.call(this, e3);
|
|
12162
|
+
} finally {
|
|
12163
|
+
n3.p = e3.prev, n3.n = e3.next;
|
|
12164
|
+
}
|
|
12165
|
+
};
|
|
12166
|
+
}
|
|
12167
|
+
return (module.exports = _regeneratorRuntime = function _regeneratorRuntime3() {
|
|
12168
|
+
return {
|
|
12169
|
+
wrap: function wrap(e3, t3, n3, o2) {
|
|
12170
|
+
return r.w(a(e3), t3, n3, o2 && o2.reverse());
|
|
12171
|
+
},
|
|
12172
|
+
isGeneratorFunction: n2,
|
|
12173
|
+
mark: r.m,
|
|
12174
|
+
awrap: function awrap(r2, e3) {
|
|
12175
|
+
return new OverloadYield$1(r2, e3);
|
|
12176
|
+
},
|
|
12177
|
+
AsyncIterator: regeneratorAsyncIterator$1,
|
|
12178
|
+
async: function async(r2, e3, t3, o2, u2) {
|
|
12179
|
+
return (n2(e3) ? regeneratorAsyncGen$1 : regeneratorAsync$1)(a(r2), e3, t3, o2, u2);
|
|
12180
|
+
},
|
|
12181
|
+
keys: regeneratorKeys$1,
|
|
12182
|
+
values: regeneratorValues$1
|
|
12183
|
+
};
|
|
12184
|
+
}, module.exports.__esModule = true, module.exports["default"] = module.exports)();
|
|
12185
|
+
}
|
|
12186
|
+
module.exports = _regeneratorRuntime, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
12187
|
+
})(regeneratorRuntime);
|
|
12188
|
+
var asyncToGenerator = { exports: {} };
|
|
12189
|
+
(function(module) {
|
|
12190
|
+
function asyncGeneratorStep(n2, t2, e2, r, o, a, c6) {
|
|
12191
|
+
try {
|
|
12192
|
+
var i = n2[a](c6), u2 = i.value;
|
|
12193
|
+
} catch (n3) {
|
|
12194
|
+
return void e2(n3);
|
|
12195
|
+
}
|
|
12196
|
+
i.done ? t2(u2) : Promise.resolve(u2).then(r, o);
|
|
12197
|
+
}
|
|
12198
|
+
function _asyncToGenerator(n2) {
|
|
12199
|
+
return function() {
|
|
12200
|
+
var t2 = this, e2 = arguments;
|
|
12201
|
+
return new Promise(function(r, o) {
|
|
12202
|
+
var a = n2.apply(t2, e2);
|
|
12203
|
+
function _next(n3) {
|
|
12204
|
+
asyncGeneratorStep(a, r, o, _next, _throw, "next", n3);
|
|
12205
|
+
}
|
|
12206
|
+
function _throw(n3) {
|
|
12207
|
+
asyncGeneratorStep(a, r, o, _next, _throw, "throw", n3);
|
|
12208
|
+
}
|
|
12209
|
+
_next(void 0);
|
|
12210
|
+
});
|
|
12211
|
+
};
|
|
12212
|
+
}
|
|
12213
|
+
module.exports = _asyncToGenerator, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
12214
|
+
})(asyncToGenerator);
|
|
12215
|
+
var objectSpread2 = { exports: {} };
|
|
12216
|
+
var defineProperty = { exports: {} };
|
|
12217
|
+
var toPropertyKey$1 = { exports: {} };
|
|
12218
|
+
var toPrimitive$1 = { exports: {} };
|
|
12219
|
+
(function(module) {
|
|
12220
|
+
var _typeof3 = _typeof$1.exports["default"];
|
|
12221
|
+
function toPrimitive2(t2, r) {
|
|
12222
|
+
if ("object" != _typeof3(t2) || !t2)
|
|
12223
|
+
return t2;
|
|
12224
|
+
var e2 = t2[Symbol.toPrimitive];
|
|
12225
|
+
if (void 0 !== e2) {
|
|
12226
|
+
var i = e2.call(t2, r || "default");
|
|
12227
|
+
if ("object" != _typeof3(i))
|
|
12228
|
+
return i;
|
|
12229
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
12230
|
+
}
|
|
12231
|
+
return ("string" === r ? String : Number)(t2);
|
|
12232
|
+
}
|
|
12233
|
+
module.exports = toPrimitive2, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
12234
|
+
})(toPrimitive$1);
|
|
12235
|
+
(function(module) {
|
|
12236
|
+
var _typeof3 = _typeof$1.exports["default"];
|
|
12237
|
+
var toPrimitive2 = toPrimitive$1.exports;
|
|
12238
|
+
function toPropertyKey2(t2) {
|
|
12239
|
+
var i = toPrimitive2(t2, "string");
|
|
12240
|
+
return "symbol" == _typeof3(i) ? i : i + "";
|
|
12241
|
+
}
|
|
12242
|
+
module.exports = toPropertyKey2, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
12243
|
+
})(toPropertyKey$1);
|
|
12244
|
+
(function(module) {
|
|
12245
|
+
var toPropertyKey2 = toPropertyKey$1.exports;
|
|
12246
|
+
function _defineProperty2(e2, r, t2) {
|
|
12247
|
+
return (r = toPropertyKey2(r)) in e2 ? Object.defineProperty(e2, r, {
|
|
12248
|
+
value: t2,
|
|
12249
|
+
enumerable: true,
|
|
12250
|
+
configurable: true,
|
|
12251
|
+
writable: true
|
|
12252
|
+
}) : e2[r] = t2, e2;
|
|
12253
|
+
}
|
|
12254
|
+
module.exports = _defineProperty2, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
12255
|
+
})(defineProperty);
|
|
12256
|
+
(function(module) {
|
|
12257
|
+
var defineProperty$12 = defineProperty.exports;
|
|
12258
|
+
function ownKeys2(e2, r) {
|
|
12259
|
+
var t2 = Object.keys(e2);
|
|
12260
|
+
if (Object.getOwnPropertySymbols) {
|
|
12261
|
+
var o = Object.getOwnPropertySymbols(e2);
|
|
12262
|
+
r && (o = o.filter(function(r2) {
|
|
12263
|
+
return Object.getOwnPropertyDescriptor(e2, r2).enumerable;
|
|
12264
|
+
})), t2.push.apply(t2, o);
|
|
12265
|
+
}
|
|
12266
|
+
return t2;
|
|
12267
|
+
}
|
|
12268
|
+
function _objectSpread22(e2) {
|
|
12269
|
+
for (var r = 1; r < arguments.length; r++) {
|
|
12270
|
+
var t2 = null != arguments[r] ? arguments[r] : {};
|
|
12271
|
+
r % 2 ? ownKeys2(Object(t2), true).forEach(function(r2) {
|
|
12272
|
+
defineProperty$12(e2, r2, t2[r2]);
|
|
12273
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e2, Object.getOwnPropertyDescriptors(t2)) : ownKeys2(Object(t2)).forEach(function(r2) {
|
|
12274
|
+
Object.defineProperty(e2, r2, Object.getOwnPropertyDescriptor(t2, r2));
|
|
12275
|
+
});
|
|
12276
|
+
}
|
|
12277
|
+
return e2;
|
|
12278
|
+
}
|
|
12279
|
+
module.exports = _objectSpread22, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
12280
|
+
})(objectSpread2);
|
|
12281
|
+
var _interopRequireWildcard = interopRequireWildcard.exports.default;
|
|
12282
|
+
var _interopRequireDefault = interopRequireDefault.exports.default;
|
|
12283
|
+
Object.defineProperty(render$1, "__esModule", {
|
|
12284
|
+
value: true
|
|
12285
|
+
});
|
|
12286
|
+
render$1._r = _r;
|
|
12287
|
+
render$1._u = _u;
|
|
12288
|
+
var render_2 = render$1.render = render;
|
|
12289
|
+
var unmount_1 = render$1.unmount = unmount;
|
|
12290
|
+
var _regeneratorRuntime2 = _interopRequireDefault(regeneratorRuntime.exports);
|
|
12291
|
+
var _asyncToGenerator2 = _interopRequireDefault(asyncToGenerator.exports);
|
|
12292
|
+
var _typeof2 = _interopRequireDefault(_typeof$1.exports);
|
|
12293
|
+
var _objectSpread2 = _interopRequireDefault(objectSpread2.exports);
|
|
12294
|
+
var ReactDOM = _interopRequireWildcard(ReactDOM$1);
|
|
12295
|
+
var fullClone = (0, _objectSpread2.default)({}, ReactDOM);
|
|
12296
|
+
var version = fullClone.version, reactRender = fullClone.render, unmountComponentAtNode = fullClone.unmountComponentAtNode;
|
|
12297
|
+
var createRoot;
|
|
11817
12298
|
try {
|
|
11818
|
-
|
|
11819
|
-
if (mainVersion >= 18
|
|
12299
|
+
var mainVersion = Number((version || "").split(".")[0]);
|
|
12300
|
+
if (mainVersion >= 18) {
|
|
11820
12301
|
createRoot = fullClone.createRoot;
|
|
11821
12302
|
}
|
|
11822
12303
|
} catch (e2) {
|
|
11823
12304
|
}
|
|
11824
12305
|
function toggleWarning(skip) {
|
|
11825
|
-
|
|
11826
|
-
|
|
11827
|
-
} = fullClone;
|
|
11828
|
-
if (__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED && typeof __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED === "object") {
|
|
12306
|
+
var __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = fullClone.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
12307
|
+
if (__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED && (0, _typeof2.default)(__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED) === "object") {
|
|
11829
12308
|
__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.usingClientEntryPoint = skip;
|
|
11830
12309
|
}
|
|
11831
12310
|
}
|
|
11832
|
-
|
|
11833
|
-
function
|
|
11834
|
-
reactRender(node, container);
|
|
11835
|
-
}
|
|
11836
|
-
function concurrentRender(node, container) {
|
|
12311
|
+
var MARK = "__rc_react_root__";
|
|
12312
|
+
function modernRender(node, container) {
|
|
11837
12313
|
toggleWarning(true);
|
|
11838
|
-
|
|
12314
|
+
var root2 = container[MARK] || createRoot(container);
|
|
11839
12315
|
toggleWarning(false);
|
|
11840
12316
|
root2.render(node);
|
|
11841
12317
|
container[MARK] = root2;
|
|
11842
12318
|
}
|
|
12319
|
+
function legacyRender(node, container) {
|
|
12320
|
+
reactRender === null || reactRender === void 0 || reactRender(node, container);
|
|
12321
|
+
}
|
|
12322
|
+
function _r(node, container) {
|
|
12323
|
+
}
|
|
11843
12324
|
function render(node, container) {
|
|
11844
12325
|
if (createRoot) {
|
|
11845
|
-
|
|
12326
|
+
modernRender(node, container);
|
|
11846
12327
|
return;
|
|
11847
12328
|
}
|
|
11848
12329
|
legacyRender(node, container);
|
|
11849
12330
|
}
|
|
12331
|
+
function modernUnmount(_x) {
|
|
12332
|
+
return _modernUnmount.apply(this, arguments);
|
|
12333
|
+
}
|
|
12334
|
+
function _modernUnmount() {
|
|
12335
|
+
_modernUnmount = (0, _asyncToGenerator2.default)(/* @__PURE__ */ (0, _regeneratorRuntime2.default)().mark(function _callee(container) {
|
|
12336
|
+
return (0, _regeneratorRuntime2.default)().wrap(function _callee$(_context) {
|
|
12337
|
+
while (1)
|
|
12338
|
+
switch (_context.prev = _context.next) {
|
|
12339
|
+
case 0:
|
|
12340
|
+
return _context.abrupt("return", Promise.resolve().then(function() {
|
|
12341
|
+
var _container$MARK;
|
|
12342
|
+
(_container$MARK = container[MARK]) === null || _container$MARK === void 0 || _container$MARK.unmount();
|
|
12343
|
+
delete container[MARK];
|
|
12344
|
+
}));
|
|
12345
|
+
case 1:
|
|
12346
|
+
case "end":
|
|
12347
|
+
return _context.stop();
|
|
12348
|
+
}
|
|
12349
|
+
}, _callee);
|
|
12350
|
+
}));
|
|
12351
|
+
return _modernUnmount.apply(this, arguments);
|
|
12352
|
+
}
|
|
11850
12353
|
function legacyUnmount(container) {
|
|
11851
|
-
|
|
12354
|
+
unmountComponentAtNode(container);
|
|
11852
12355
|
}
|
|
11853
|
-
function
|
|
11854
|
-
return __awaiter$1(this, void 0, void 0, function* () {
|
|
11855
|
-
return Promise.resolve().then(() => {
|
|
11856
|
-
var _a2;
|
|
11857
|
-
(_a2 = container[MARK]) === null || _a2 === void 0 ? void 0 : _a2.unmount();
|
|
11858
|
-
delete container[MARK];
|
|
11859
|
-
});
|
|
11860
|
-
});
|
|
12356
|
+
function _u(container) {
|
|
11861
12357
|
}
|
|
11862
|
-
function unmount(
|
|
11863
|
-
|
|
11864
|
-
|
|
12358
|
+
function unmount(_x2) {
|
|
12359
|
+
return _unmount.apply(this, arguments);
|
|
12360
|
+
}
|
|
12361
|
+
function _unmount() {
|
|
12362
|
+
_unmount = (0, _asyncToGenerator2.default)(/* @__PURE__ */ (0, _regeneratorRuntime2.default)().mark(function _callee2(container) {
|
|
12363
|
+
return (0, _regeneratorRuntime2.default)().wrap(function _callee2$(_context2) {
|
|
12364
|
+
while (1)
|
|
12365
|
+
switch (_context2.prev = _context2.next) {
|
|
12366
|
+
case 0:
|
|
12367
|
+
if (!(createRoot !== void 0)) {
|
|
12368
|
+
_context2.next = 2;
|
|
12369
|
+
break;
|
|
12370
|
+
}
|
|
12371
|
+
return _context2.abrupt("return", modernUnmount(container));
|
|
12372
|
+
case 2:
|
|
12373
|
+
legacyUnmount(container);
|
|
12374
|
+
case 3:
|
|
12375
|
+
case "end":
|
|
12376
|
+
return _context2.stop();
|
|
12377
|
+
}
|
|
12378
|
+
}, _callee2);
|
|
12379
|
+
}));
|
|
12380
|
+
return _unmount.apply(this, arguments);
|
|
12381
|
+
}
|
|
12382
|
+
const defaultReactRender = (node, container) => {
|
|
12383
|
+
render_2(node, container);
|
|
12384
|
+
return () => {
|
|
12385
|
+
return unmount_1(container);
|
|
12386
|
+
};
|
|
12387
|
+
};
|
|
12388
|
+
let unstableRender = defaultReactRender;
|
|
12389
|
+
function unstableSetRender(render2) {
|
|
12390
|
+
if (render2) {
|
|
12391
|
+
unstableRender = render2;
|
|
11865
12392
|
}
|
|
11866
|
-
return
|
|
12393
|
+
return unstableRender;
|
|
11867
12394
|
}
|
|
11868
12395
|
function renderToBody(element) {
|
|
11869
12396
|
const container = document.createElement("div");
|
|
11870
12397
|
document.body.appendChild(container);
|
|
11871
|
-
|
|
11872
|
-
|
|
11873
|
-
|
|
11874
|
-
|
|
11875
|
-
|
|
11876
|
-
}
|
|
11877
|
-
render(element, container);
|
|
11878
|
-
return unmount$12;
|
|
12398
|
+
const unmount2 = unstableSetRender()(element, container);
|
|
12399
|
+
return () => {
|
|
12400
|
+
var _a2;
|
|
12401
|
+
unmount2();
|
|
12402
|
+
(_a2 = container.parentNode) === null || _a2 === void 0 ? void 0 : _a2.removeChild(container);
|
|
12403
|
+
};
|
|
11879
12404
|
}
|
|
11880
12405
|
function renderImperatively(element) {
|
|
11881
12406
|
const Wrapper = React__default.forwardRef((_, ref) => {
|
|
@@ -11947,12 +12472,12 @@ const AutoCenter$1 = (props) => withNativeProps(props, React__default.createElem
|
|
|
11947
12472
|
}, props.children)));
|
|
11948
12473
|
var AutoCenter = AutoCenter$1;
|
|
11949
12474
|
var image = "";
|
|
11950
|
-
var
|
|
12475
|
+
var stagedComponents = {};
|
|
11951
12476
|
var __importDefault = commonjsGlobal && commonjsGlobal.__importDefault || function(mod) {
|
|
11952
12477
|
return mod && mod.__esModule ? mod : { "default": mod };
|
|
11953
12478
|
};
|
|
11954
|
-
Object.defineProperty(
|
|
11955
|
-
var staged_1 =
|
|
12479
|
+
Object.defineProperty(stagedComponents, "__esModule", { value: true });
|
|
12480
|
+
var staged_1 = stagedComponents.staged = void 0;
|
|
11956
12481
|
const react_1 = __importDefault(React__default);
|
|
11957
12482
|
function processNext(next) {
|
|
11958
12483
|
if (typeof next === "function") {
|
|
@@ -11971,39 +12496,39 @@ function staged(stage) {
|
|
|
11971
12496
|
return processNext(next);
|
|
11972
12497
|
};
|
|
11973
12498
|
}
|
|
11974
|
-
staged_1 =
|
|
12499
|
+
staged_1 = stagedComponents.staged = staged;
|
|
11975
12500
|
function toCSSLength(val) {
|
|
11976
12501
|
return typeof val === "number" ? `${val}px` : val;
|
|
11977
12502
|
}
|
|
11978
|
-
const LazyDetector = (props) => {
|
|
11979
|
-
const ref = useRef(null);
|
|
11980
|
-
const [inViewport] = useInViewport(ref);
|
|
11981
|
-
useEffect$1(() => {
|
|
11982
|
-
if (inViewport) {
|
|
11983
|
-
props.onActive();
|
|
11984
|
-
}
|
|
11985
|
-
}, [inViewport]);
|
|
11986
|
-
return React__default.createElement("div", {
|
|
11987
|
-
ref
|
|
11988
|
-
});
|
|
11989
|
-
};
|
|
11990
12503
|
const useIsomorphicUpdateLayoutEffect = createUpdateEffect(useIsomorphicLayoutEffect$2);
|
|
11991
|
-
const
|
|
12504
|
+
const BrokenImageIcon = () => React__default.createElement("svg", {
|
|
11992
12505
|
viewBox: "0 0 48 48",
|
|
11993
12506
|
xmlns: "http://www.w3.org/2000/svg"
|
|
11994
12507
|
}, React__default.createElement("path", {
|
|
11995
|
-
d: "
|
|
12508
|
+
d: "M19.233 6.233 17.42 9.08l-10.817.001a.665.665 0 0 0-.647.562l-.007.096V34.9l5.989-8.707a2.373 2.373 0 0 1 1.801-1.005 2.415 2.415 0 0 1 1.807.625l.126.127 4.182 4.525 2.267-3.292 5.461 7.841-4.065 7.375H6.604c-1.86 0-3.382-1.47-3.482-3.317l-.005-.192V9.744c0-1.872 1.461-3.405 3.296-3.505l.19-.005h12.63Zm22.163 0c1.86 0 3.382 1.472 3.482 3.314l.005.192v29.14a3.507 3.507 0 0 1-3.3 3.505l-.191.006H27.789l3.63-6.587.06-.119a1.87 1.87 0 0 0-.163-1.853l-6.928-9.949 3.047-4.422a2.374 2.374 0 0 1 1.96-1.01 2.4 2.4 0 0 1 1.86.87l.106.14L42.05 34.89V9.74a.664.664 0 0 0-.654-.658H21.855l1.812-2.848h17.73Zm-28.305 5.611c.794 0 1.52.298 2.07.788l-.843 1.325-.067.114a1.87 1.87 0 0 0 .11 1.959l.848 1.217c-.556.515-1.3.83-2.118.83a3.122 3.122 0 0 1-3.117-3.116 3.119 3.119 0 0 1 3.117-3.117Z",
|
|
11996
12509
|
fill: "#DBDBDB",
|
|
11997
12510
|
fillRule: "nonzero"
|
|
11998
12511
|
}));
|
|
11999
|
-
const
|
|
12512
|
+
const ImageIcon = () => React__default.createElement("svg", {
|
|
12000
12513
|
viewBox: "0 0 48 48",
|
|
12001
12514
|
xmlns: "http://www.w3.org/2000/svg"
|
|
12002
12515
|
}, React__default.createElement("path", {
|
|
12003
|
-
d: "
|
|
12516
|
+
d: "M41.396 6.234c1.923 0 3.487 1.574 3.487 3.505v29.14c0 1.937-1.568 3.51-3.491 3.51H6.604c-1.923 0-3.487-1.573-3.487-3.51V9.745c0-1.936 1.564-3.51 3.487-3.51Zm0 2.847H6.604c-.355 0-.654.3-.654.658V34.9l5.989-8.707a2.373 2.373 0 0 1 1.801-1.005 2.405 2.405 0 0 1 1.933.752l4.182 4.525 7.58-11.005a2.374 2.374 0 0 1 1.96-1.01c.79 0 1.532.38 1.966 1.01L42.05 34.89V9.74a.664.664 0 0 0-.654-.658Zm-28.305 2.763a3.119 3.119 0 0 1 3.117 3.117 3.119 3.119 0 0 1-3.117 3.117 3.122 3.122 0 0 1-3.117-3.117 3.119 3.119 0 0 1 3.117-3.117Z",
|
|
12004
12517
|
fill: "#DBDBDB",
|
|
12005
12518
|
fillRule: "nonzero"
|
|
12006
12519
|
}));
|
|
12520
|
+
const LazyDetector = (props) => {
|
|
12521
|
+
const ref = useRef(null);
|
|
12522
|
+
const [inViewport] = useInViewport(ref);
|
|
12523
|
+
useEffect$1(() => {
|
|
12524
|
+
if (inViewport) {
|
|
12525
|
+
props.onActive();
|
|
12526
|
+
}
|
|
12527
|
+
}, [inViewport]);
|
|
12528
|
+
return React__default.createElement("div", {
|
|
12529
|
+
ref
|
|
12530
|
+
});
|
|
12531
|
+
};
|
|
12007
12532
|
const classPrefix$k = `adm-image`;
|
|
12008
12533
|
const defaultProps$i = {
|
|
12009
12534
|
fit: "fill",
|
|
@@ -12038,7 +12563,7 @@ const Image$1 = staged_1((p2) => {
|
|
|
12038
12563
|
}
|
|
12039
12564
|
}, []);
|
|
12040
12565
|
function renderInner() {
|
|
12041
|
-
if (failed) {
|
|
12566
|
+
if (failed || src === void 0 && !srcSet) {
|
|
12042
12567
|
return React__default.createElement(React__default.Fragment, null, props.fallback);
|
|
12043
12568
|
}
|
|
12044
12569
|
const img = React__default.createElement("img", {
|
|
@@ -12229,6 +12754,7 @@ const Button$1 = forwardRef((p2, ref) => {
|
|
|
12229
12754
|
return withNativeProps(props, React__default.createElement("button", {
|
|
12230
12755
|
ref: nativeButtonRef,
|
|
12231
12756
|
type: props.type,
|
|
12757
|
+
form: props.form,
|
|
12232
12758
|
onClick: handleClick,
|
|
12233
12759
|
className: classNames(classPrefix$h, {
|
|
12234
12760
|
[`${classPrefix$h}-${props.color}`]: props.color,
|
|
@@ -12280,6 +12806,12 @@ var isoWeek$1 = { exports: {} };
|
|
|
12280
12806
|
});
|
|
12281
12807
|
})(isoWeek$1);
|
|
12282
12808
|
var isoWeek = isoWeek$1.exports;
|
|
12809
|
+
const isDev = false;
|
|
12810
|
+
function devWarning(component, message) {
|
|
12811
|
+
if (isDev) {
|
|
12812
|
+
console.warn(`[antd-mobile: ${component}] ${message}`);
|
|
12813
|
+
}
|
|
12814
|
+
}
|
|
12283
12815
|
function usePropsValue(options) {
|
|
12284
12816
|
const {
|
|
12285
12817
|
value,
|
|
@@ -12291,7 +12823,7 @@ function usePropsValue(options) {
|
|
|
12291
12823
|
if (value !== void 0) {
|
|
12292
12824
|
stateRef.current = value;
|
|
12293
12825
|
}
|
|
12294
|
-
const setState = useMemoizedFn((v2, forceTrigger = false) => {
|
|
12826
|
+
const setState = useMemoizedFn$1((v2, forceTrigger = false) => {
|
|
12295
12827
|
const nextValue = typeof v2 === "function" ? v2(stateRef.current) : v2;
|
|
12296
12828
|
if (!forceTrigger && nextValue === stateRef.current)
|
|
12297
12829
|
return;
|
|
@@ -12301,12 +12833,6 @@ function usePropsValue(options) {
|
|
|
12301
12833
|
});
|
|
12302
12834
|
return [stateRef.current, setState];
|
|
12303
12835
|
}
|
|
12304
|
-
const isDev = false;
|
|
12305
|
-
function devWarning(component, message) {
|
|
12306
|
-
if (isDev) {
|
|
12307
|
-
console.warn(`[antd-mobile: ${component}] ${message}`);
|
|
12308
|
-
}
|
|
12309
|
-
}
|
|
12310
12836
|
function useEvent(callback) {
|
|
12311
12837
|
var fnRef = React$1.useRef();
|
|
12312
12838
|
fnRef.current = callback;
|
|
@@ -12452,7 +12978,7 @@ function _typeof(o) {
|
|
|
12452
12978
|
return o2 && "function" == typeof Symbol && o2.constructor === Symbol && o2 !== Symbol.prototype ? "symbol" : typeof o2;
|
|
12453
12979
|
}, _typeof(o);
|
|
12454
12980
|
}
|
|
12455
|
-
var
|
|
12981
|
+
var reactIs = { exports: {} };
|
|
12456
12982
|
var reactIs_production_min = {};
|
|
12457
12983
|
/**
|
|
12458
12984
|
* @license React
|
|
@@ -12554,7 +13080,7 @@ reactIs_production_min.isValidElementType = function(a) {
|
|
|
12554
13080
|
};
|
|
12555
13081
|
reactIs_production_min.typeOf = v;
|
|
12556
13082
|
{
|
|
12557
|
-
|
|
13083
|
+
reactIs.exports = reactIs_production_min;
|
|
12558
13084
|
}
|
|
12559
13085
|
Number(version$1.split(".")[0]);
|
|
12560
13086
|
function toPrimitive(t2, r) {
|
|
@@ -12582,7 +13108,7 @@ function _defineProperty(e2, r, t2) {
|
|
|
12582
13108
|
}) : e2[r] = t2, e2;
|
|
12583
13109
|
}
|
|
12584
13110
|
function useResizeEffect(effect, targetRef) {
|
|
12585
|
-
const fn = useMemoizedFn(effect);
|
|
13111
|
+
const fn = useMemoizedFn$1(effect);
|
|
12586
13112
|
useIsomorphicLayoutEffect$2(() => {
|
|
12587
13113
|
const target = targetRef.current;
|
|
12588
13114
|
if (!target)
|
|
@@ -12619,7 +13145,7 @@ function observe(element, options, callback) {
|
|
|
12619
13145
|
};
|
|
12620
13146
|
}
|
|
12621
13147
|
function useMutationEffect(effect, targetRef, options) {
|
|
12622
|
-
const fn = useMemoizedFn(effect);
|
|
13148
|
+
const fn = useMemoizedFn$1(effect);
|
|
12623
13149
|
useEffect$1(() => {
|
|
12624
13150
|
const cleanup = observe(targetRef.current, options, fn);
|
|
12625
13151
|
return cleanup;
|
|
@@ -12639,7 +13165,7 @@ function traverseReactNode(children, fn) {
|
|
|
12639
13165
|
let i = 0;
|
|
12640
13166
|
function handle(target) {
|
|
12641
13167
|
React__default.Children.forEach(target, (child) => {
|
|
12642
|
-
if (!
|
|
13168
|
+
if (!reactIs.exports.isFragment(child)) {
|
|
12643
13169
|
fn(child, i);
|
|
12644
13170
|
i += 1;
|
|
12645
13171
|
} else {
|
|
@@ -12914,7 +13440,7 @@ const Wheel = memo((props) => {
|
|
|
12914
13440
|
return false;
|
|
12915
13441
|
if (prev.mouseWheel !== next.mouseWheel)
|
|
12916
13442
|
return false;
|
|
12917
|
-
if (!
|
|
13443
|
+
if (!reactFastCompare(prev.column, next.column))
|
|
12918
13444
|
return false;
|
|
12919
13445
|
return true;
|
|
12920
13446
|
});
|
|
@@ -13214,7 +13740,7 @@ const Picker$1 = memo(forwardRef((p2, ref) => {
|
|
|
13214
13740
|
setInnerValue(value);
|
|
13215
13741
|
}
|
|
13216
13742
|
}, [value]);
|
|
13217
|
-
const onChange = useMemoizedFn((val, ext) => {
|
|
13743
|
+
const onChange = useMemoizedFn$1((val, ext) => {
|
|
13218
13744
|
var _a3;
|
|
13219
13745
|
setInnerValue(val);
|
|
13220
13746
|
if (visible) {
|
|
@@ -13329,6 +13855,7 @@ const Tabs$1 = (p2) => {
|
|
|
13329
13855
|
const props = mergeProps(defaultProps$c, p2);
|
|
13330
13856
|
const tabListContainerRef = useRef(null);
|
|
13331
13857
|
const activeLineRef = useRef(null);
|
|
13858
|
+
const tabRefs = useRef({});
|
|
13332
13859
|
const keyToIndexRecord = {};
|
|
13333
13860
|
let firstActiveKey = null;
|
|
13334
13861
|
const panes = [];
|
|
@@ -13355,6 +13882,7 @@ const Tabs$1 = (p2) => {
|
|
|
13355
13882
|
(_a3 = props.onChange) === null || _a3 === void 0 ? void 0 : _a3.call(props, v2);
|
|
13356
13883
|
}
|
|
13357
13884
|
});
|
|
13885
|
+
const manuallyActiveRef = useRef(null);
|
|
13358
13886
|
const [{
|
|
13359
13887
|
x,
|
|
13360
13888
|
width
|
|
@@ -13468,7 +13996,7 @@ const Tabs$1 = (p2) => {
|
|
|
13468
13996
|
});
|
|
13469
13997
|
const {
|
|
13470
13998
|
run: updateMask
|
|
13471
|
-
} = useThrottleFn((immediate
|
|
13999
|
+
} = useThrottleFn((immediate) => {
|
|
13472
14000
|
const container = tabListContainerRef.current;
|
|
13473
14001
|
if (!container)
|
|
13474
14002
|
return;
|
|
@@ -13495,6 +14023,37 @@ const Tabs$1 = (p2) => {
|
|
|
13495
14023
|
useIsomorphicLayoutEffect$2(() => {
|
|
13496
14024
|
updateMask(true);
|
|
13497
14025
|
}, []);
|
|
14026
|
+
const handleKeyDown = (e2) => {
|
|
14027
|
+
const keys = Object.keys(keyToIndexRecord);
|
|
14028
|
+
const currentIndex = keyToIndexRecord[activeKey];
|
|
14029
|
+
const isNext = isRTL ? e2.key === "ArrowLeft" : e2.key === "ArrowRight";
|
|
14030
|
+
const isPrev = isRTL ? e2.key === "ArrowRight" : e2.key === "ArrowLeft";
|
|
14031
|
+
const offsetDirection = isNext ? 1 : -1;
|
|
14032
|
+
const findNextEnabledTab = (startIndex, direction) => {
|
|
14033
|
+
const length = keys.length;
|
|
14034
|
+
for (let i = 0; i < length; i++) {
|
|
14035
|
+
const index2 = (startIndex + direction * (i + 1) + length) % length;
|
|
14036
|
+
const key = keys[index2];
|
|
14037
|
+
const pane = panes.find((p3) => p3.key === key);
|
|
14038
|
+
if (!(pane === null || pane === void 0 ? void 0 : pane.props.disabled))
|
|
14039
|
+
return key;
|
|
14040
|
+
}
|
|
14041
|
+
return keys[startIndex];
|
|
14042
|
+
};
|
|
14043
|
+
const currentKey = findNextEnabledTab(currentIndex, offsetDirection);
|
|
14044
|
+
if (isNext || isPrev) {
|
|
14045
|
+
e2.preventDefault();
|
|
14046
|
+
manuallyActiveRef.current = currentKey;
|
|
14047
|
+
setActiveKey(currentKey);
|
|
14048
|
+
}
|
|
14049
|
+
};
|
|
14050
|
+
useEffect$1(() => {
|
|
14051
|
+
var _a3;
|
|
14052
|
+
if (activeKey && tabRefs.current[activeKey] && manuallyActiveRef.current === activeKey) {
|
|
14053
|
+
(_a3 = tabRefs.current[activeKey]) === null || _a3 === void 0 ? void 0 : _a3.focus();
|
|
14054
|
+
manuallyActiveRef.current = null;
|
|
14055
|
+
}
|
|
14056
|
+
}, [activeKey]);
|
|
13498
14057
|
return withNativeProps(props, React__default.createElement("div", {
|
|
13499
14058
|
className: classPrefix$c,
|
|
13500
14059
|
style: {
|
|
@@ -13517,6 +14076,7 @@ const Tabs$1 = (p2) => {
|
|
|
13517
14076
|
ref: tabListContainerRef,
|
|
13518
14077
|
scrollLeft,
|
|
13519
14078
|
onScroll: updateMask,
|
|
14079
|
+
onKeyDown: handleKeyDown,
|
|
13520
14080
|
role: "tablist"
|
|
13521
14081
|
}, React__default.createElement(animated.div, {
|
|
13522
14082
|
ref: activeLineRef,
|
|
@@ -13531,6 +14091,10 @@ const Tabs$1 = (p2) => {
|
|
|
13531
14091
|
[`${classPrefix$c}-tab-wrapper-stretch`]: props.stretch
|
|
13532
14092
|
})
|
|
13533
14093
|
}, React__default.createElement("div", {
|
|
14094
|
+
role: "tab",
|
|
14095
|
+
"aria-selected": pane.key === activeKey,
|
|
14096
|
+
tabIndex: pane.key === activeKey ? 0 : -1,
|
|
14097
|
+
ref: (el) => tabRefs.current[pane.key] = el,
|
|
13534
14098
|
onClick: () => {
|
|
13535
14099
|
const {
|
|
13536
14100
|
key
|
|
@@ -13545,9 +14109,7 @@ const Tabs$1 = (p2) => {
|
|
|
13545
14109
|
className: classNames(`${classPrefix$c}-tab`, {
|
|
13546
14110
|
[`${classPrefix$c}-tab-active`]: pane.key === activeKey,
|
|
13547
14111
|
[`${classPrefix$c}-tab-disabled`]: pane.props.disabled
|
|
13548
|
-
})
|
|
13549
|
-
role: "tab",
|
|
13550
|
-
"aria-selected": pane.key === activeKey
|
|
14112
|
+
})
|
|
13551
14113
|
}, pane.props.title)))))), panes.map((pane) => {
|
|
13552
14114
|
if (pane.props.children === void 0) {
|
|
13553
14115
|
return null;
|
|
@@ -13815,7 +14377,7 @@ const CheckIcon = memo((props) => {
|
|
|
13815
14377
|
});
|
|
13816
14378
|
const NativeInput = (props) => {
|
|
13817
14379
|
const inputRef = useRef(null);
|
|
13818
|
-
const handleClick = useMemoizedFn((e2) => {
|
|
14380
|
+
const handleClick = useMemoizedFn$1((e2) => {
|
|
13819
14381
|
e2.stopPropagation();
|
|
13820
14382
|
e2.stopImmediatePropagation();
|
|
13821
14383
|
const latestChecked = e2.target.checked;
|
|
@@ -13845,6 +14407,19 @@ const NativeInput = (props) => {
|
|
|
13845
14407
|
});
|
|
13846
14408
|
};
|
|
13847
14409
|
var datePicker = "";
|
|
14410
|
+
var isLeapYear$1 = { exports: {} };
|
|
14411
|
+
(function(module, exports) {
|
|
14412
|
+
!function(e2, t2) {
|
|
14413
|
+
module.exports = t2();
|
|
14414
|
+
}(commonjsGlobal, function() {
|
|
14415
|
+
return function(e2, t2) {
|
|
14416
|
+
t2.prototype.isLeapYear = function() {
|
|
14417
|
+
return this.$y % 4 == 0 && this.$y % 100 != 0 || this.$y % 400 == 0;
|
|
14418
|
+
};
|
|
14419
|
+
};
|
|
14420
|
+
});
|
|
14421
|
+
})(isLeapYear$1);
|
|
14422
|
+
var isLeapYear = isLeapYear$1.exports;
|
|
13848
14423
|
var isoWeeksInYear$1 = { exports: {} };
|
|
13849
14424
|
(function(module, exports) {
|
|
13850
14425
|
!function(e2, n2) {
|
|
@@ -13859,19 +14434,6 @@ var isoWeeksInYear$1 = { exports: {} };
|
|
|
13859
14434
|
});
|
|
13860
14435
|
})(isoWeeksInYear$1);
|
|
13861
14436
|
var isoWeeksInYear = isoWeeksInYear$1.exports;
|
|
13862
|
-
var isLeapYear$1 = { exports: {} };
|
|
13863
|
-
(function(module, exports) {
|
|
13864
|
-
!function(e2, t2) {
|
|
13865
|
-
module.exports = t2();
|
|
13866
|
-
}(commonjsGlobal, function() {
|
|
13867
|
-
return function(e2, t2) {
|
|
13868
|
-
t2.prototype.isLeapYear = function() {
|
|
13869
|
-
return this.$y % 4 == 0 && this.$y % 100 != 0 || this.$y % 400 == 0;
|
|
13870
|
-
};
|
|
13871
|
-
};
|
|
13872
|
-
});
|
|
13873
|
-
})(isLeapYear$1);
|
|
13874
|
-
var isLeapYear = isLeapYear$1.exports;
|
|
13875
14437
|
const TILL_NOW = "TILL_NOW";
|
|
13876
14438
|
dayjs.extend(isoWeek);
|
|
13877
14439
|
dayjs.extend(isoWeeksInYear);
|
|
@@ -13905,6 +14467,7 @@ function generateDatePickerColumns$3(selected, min, max, precision, renderLabel,
|
|
|
13905
14467
|
const selectedDay = parseInt(selected[2]);
|
|
13906
14468
|
const selectedHour = parseInt(selected[3]);
|
|
13907
14469
|
const selectedMinute = parseInt(selected[4]);
|
|
14470
|
+
const selectedSecond = parseInt(selected[5]);
|
|
13908
14471
|
const isInMinYear = selectedYear === minYear;
|
|
13909
14472
|
const isInMaxYear = selectedYear === maxYear;
|
|
13910
14473
|
const isInMinMonth = isInMinYear && selectedMonth === minMonth;
|
|
@@ -13937,7 +14500,9 @@ function generateDatePickerColumns$3(selected, min, max, precision, renderLabel,
|
|
|
13937
14500
|
const upper = maxYear;
|
|
13938
14501
|
const years = generateColumn(lower, upper, "year");
|
|
13939
14502
|
ret.push(years.map((v2) => ({
|
|
13940
|
-
label: renderLabel("year", v2
|
|
14503
|
+
label: renderLabel("year", v2, {
|
|
14504
|
+
selected: selectedYear === v2
|
|
14505
|
+
}),
|
|
13941
14506
|
value: v2.toString()
|
|
13942
14507
|
})));
|
|
13943
14508
|
}
|
|
@@ -13946,7 +14511,9 @@ function generateDatePickerColumns$3(selected, min, max, precision, renderLabel,
|
|
|
13946
14511
|
const upper = isInMaxYear ? maxMonth : 12;
|
|
13947
14512
|
const months = generateColumn(lower, upper, "month");
|
|
13948
14513
|
ret.push(months.map((v2) => ({
|
|
13949
|
-
label: renderLabel("month", v2
|
|
14514
|
+
label: renderLabel("month", v2, {
|
|
14515
|
+
selected: selectedMonth === v2
|
|
14516
|
+
}),
|
|
13950
14517
|
value: v2.toString()
|
|
13951
14518
|
})));
|
|
13952
14519
|
}
|
|
@@ -13955,7 +14522,9 @@ function generateDatePickerColumns$3(selected, min, max, precision, renderLabel,
|
|
|
13955
14522
|
const upper = isInMaxMonth ? maxDay : firstDayInSelectedMonth.daysInMonth();
|
|
13956
14523
|
const days = generateColumn(lower, upper, "day");
|
|
13957
14524
|
ret.push(days.map((v2) => ({
|
|
13958
|
-
label: renderLabel("day", v2
|
|
14525
|
+
label: renderLabel("day", v2, {
|
|
14526
|
+
selected: selectedDay === v2
|
|
14527
|
+
}),
|
|
13959
14528
|
value: v2.toString()
|
|
13960
14529
|
})));
|
|
13961
14530
|
}
|
|
@@ -13964,7 +14533,9 @@ function generateDatePickerColumns$3(selected, min, max, precision, renderLabel,
|
|
|
13964
14533
|
const upper = isInMaxDay ? maxHour : 23;
|
|
13965
14534
|
const hours = generateColumn(lower, upper, "hour");
|
|
13966
14535
|
ret.push(hours.map((v2) => ({
|
|
13967
|
-
label: renderLabel("hour", v2
|
|
14536
|
+
label: renderLabel("hour", v2, {
|
|
14537
|
+
selected: selectedHour === v2
|
|
14538
|
+
}),
|
|
13968
14539
|
value: v2.toString()
|
|
13969
14540
|
})));
|
|
13970
14541
|
}
|
|
@@ -13973,7 +14544,9 @@ function generateDatePickerColumns$3(selected, min, max, precision, renderLabel,
|
|
|
13973
14544
|
const upper = isInMaxHour ? maxMinute : 59;
|
|
13974
14545
|
const minutes = generateColumn(lower, upper, "minute");
|
|
13975
14546
|
ret.push(minutes.map((v2) => ({
|
|
13976
|
-
label: renderLabel("minute", v2
|
|
14547
|
+
label: renderLabel("minute", v2, {
|
|
14548
|
+
selected: selectedMinute === v2
|
|
14549
|
+
}),
|
|
13977
14550
|
value: v2.toString()
|
|
13978
14551
|
})));
|
|
13979
14552
|
}
|
|
@@ -13982,13 +14555,17 @@ function generateDatePickerColumns$3(selected, min, max, precision, renderLabel,
|
|
|
13982
14555
|
const upper = isInMaxMinute ? maxSecond : 59;
|
|
13983
14556
|
const seconds = generateColumn(lower, upper, "second");
|
|
13984
14557
|
ret.push(seconds.map((v2) => ({
|
|
13985
|
-
label: renderLabel("second", v2
|
|
14558
|
+
label: renderLabel("second", v2, {
|
|
14559
|
+
selected: selectedSecond === v2
|
|
14560
|
+
}),
|
|
13986
14561
|
value: v2.toString()
|
|
13987
14562
|
})));
|
|
13988
14563
|
}
|
|
13989
14564
|
if (tillNow) {
|
|
13990
14565
|
ret[0].push({
|
|
13991
|
-
label: renderLabel("now", null
|
|
14566
|
+
label: renderLabel("now", null, {
|
|
14567
|
+
selected: selected[0] === TILL_NOW
|
|
14568
|
+
}),
|
|
13992
14569
|
value: TILL_NOW
|
|
13993
14570
|
});
|
|
13994
14571
|
if (TILL_NOW === (selected === null || selected === void 0 ? void 0 : selected[0])) {
|
|
@@ -14059,6 +14636,7 @@ function generateDatePickerColumns$2(selected, min, max, precision, renderLabel,
|
|
|
14059
14636
|
const maxDay = dayjs(max);
|
|
14060
14637
|
const minQuarter = minDay.quarter();
|
|
14061
14638
|
const maxQuarter = maxDay.quarter();
|
|
14639
|
+
const selectedQuarter = parseInt(selected[1]);
|
|
14062
14640
|
const generateColumn = (from, to2, precision2) => {
|
|
14063
14641
|
let column = [];
|
|
14064
14642
|
for (let i = from; i <= to2; i++) {
|
|
@@ -14081,7 +14659,9 @@ function generateDatePickerColumns$2(selected, min, max, precision, renderLabel,
|
|
|
14081
14659
|
const upper = maxYear;
|
|
14082
14660
|
const years = generateColumn(lower, upper, "year");
|
|
14083
14661
|
ret.push(years.map((v2) => ({
|
|
14084
|
-
label: renderLabel("year", v2
|
|
14662
|
+
label: renderLabel("year", v2, {
|
|
14663
|
+
selected: selectedYear === v2
|
|
14664
|
+
}),
|
|
14085
14665
|
value: v2.toString()
|
|
14086
14666
|
})));
|
|
14087
14667
|
}
|
|
@@ -14090,7 +14670,9 @@ function generateDatePickerColumns$2(selected, min, max, precision, renderLabel,
|
|
|
14090
14670
|
const upper = isInMaxYear ? maxQuarter : 4;
|
|
14091
14671
|
const quarters = generateColumn(lower, upper, "quarter");
|
|
14092
14672
|
ret.push(quarters.map((v2) => ({
|
|
14093
|
-
label: renderLabel("quarter", v2
|
|
14673
|
+
label: renderLabel("quarter", v2, {
|
|
14674
|
+
selected: selectedQuarter === v2
|
|
14675
|
+
}),
|
|
14094
14676
|
value: v2.toString()
|
|
14095
14677
|
})));
|
|
14096
14678
|
}
|
|
@@ -14132,6 +14714,7 @@ function generateDatePickerColumns$1(selected, min, max, precision, renderLabel,
|
|
|
14132
14714
|
const minWeekday = minDay.isoWeekday();
|
|
14133
14715
|
const maxWeekday = maxDay.isoWeekday();
|
|
14134
14716
|
const selectedWeek = parseInt(selected[1]);
|
|
14717
|
+
const selectedWeekday = parseInt(selected[2]);
|
|
14135
14718
|
const isInMinWeek = isInMinYear && selectedWeek === minWeek;
|
|
14136
14719
|
const isInMaxWeek = isInMaxYear && selectedWeek === maxWeek;
|
|
14137
14720
|
const selectedYearWeeks = dayjs(`${selectedYear}-01-01`).isoWeeksInYear();
|
|
@@ -14157,7 +14740,9 @@ function generateDatePickerColumns$1(selected, min, max, precision, renderLabel,
|
|
|
14157
14740
|
const upper = maxYear;
|
|
14158
14741
|
const years = generateColumn(lower, upper, "year");
|
|
14159
14742
|
ret.push(years.map((v2) => ({
|
|
14160
|
-
label: renderLabel("year", v2
|
|
14743
|
+
label: renderLabel("year", v2, {
|
|
14744
|
+
selected: selectedYear === v2
|
|
14745
|
+
}),
|
|
14161
14746
|
value: v2.toString()
|
|
14162
14747
|
})));
|
|
14163
14748
|
}
|
|
@@ -14166,7 +14751,9 @@ function generateDatePickerColumns$1(selected, min, max, precision, renderLabel,
|
|
|
14166
14751
|
const upper = isInMaxYear ? maxWeek : selectedYearWeeks;
|
|
14167
14752
|
const weeks = generateColumn(lower, upper, "week");
|
|
14168
14753
|
ret.push(weeks.map((v2) => ({
|
|
14169
|
-
label: renderLabel("week", v2
|
|
14754
|
+
label: renderLabel("week", v2, {
|
|
14755
|
+
selected: selectedWeek === v2
|
|
14756
|
+
}),
|
|
14170
14757
|
value: v2.toString()
|
|
14171
14758
|
})));
|
|
14172
14759
|
}
|
|
@@ -14175,7 +14762,9 @@ function generateDatePickerColumns$1(selected, min, max, precision, renderLabel,
|
|
|
14175
14762
|
const upper = isInMaxWeek ? maxWeekday : 7;
|
|
14176
14763
|
const weeks = generateColumn(lower, upper, "week-day");
|
|
14177
14764
|
ret.push(weeks.map((v2) => ({
|
|
14178
|
-
label: renderLabel("week-day", v2
|
|
14765
|
+
label: renderLabel("week-day", v2, {
|
|
14766
|
+
selected: selectedWeekday === v2
|
|
14767
|
+
}),
|
|
14179
14768
|
value: v2.toString()
|
|
14180
14769
|
})));
|
|
14181
14770
|
}
|
|
@@ -14192,7 +14781,7 @@ function convertStringArrayToDate$1(value) {
|
|
|
14192
14781
|
const yearString = (_a2 = value[0]) !== null && _a2 !== void 0 ? _a2 : "1900";
|
|
14193
14782
|
const weekString = (_b = value[1]) !== null && _b !== void 0 ? _b : "1";
|
|
14194
14783
|
const weekdayString = (_c = value[2]) !== null && _c !== void 0 ? _c : "1";
|
|
14195
|
-
const day = dayjs(`${parseInt(yearString)}-01-
|
|
14784
|
+
const day = dayjs(`${parseInt(yearString)}-01-04`).isoWeek(parseInt(weekString)).isoWeekday(parseInt(weekdayString)).hour(0).minute(0).second(0);
|
|
14196
14785
|
return day.toDate();
|
|
14197
14786
|
}
|
|
14198
14787
|
const precisionLengthRecord = {
|
|
@@ -14241,9 +14830,9 @@ function useRenderLabel(renderLabel) {
|
|
|
14241
14830
|
const {
|
|
14242
14831
|
locale: locale2
|
|
14243
14832
|
} = useConfig();
|
|
14244
|
-
return useCallback((type, data) => {
|
|
14833
|
+
return useCallback((type, data, info) => {
|
|
14245
14834
|
if (renderLabel) {
|
|
14246
|
-
return renderLabel(type, data);
|
|
14835
|
+
return renderLabel(type, data, info);
|
|
14247
14836
|
}
|
|
14248
14837
|
switch (type) {
|
|
14249
14838
|
case "minute":
|
|
@@ -14293,7 +14882,7 @@ const DatePicker$1 = forwardRef((p2, ref) => {
|
|
|
14293
14882
|
const date = convertStringArrayToDate(val, props.precision);
|
|
14294
14883
|
setValue(date, true);
|
|
14295
14884
|
}, [setValue, props.precision]);
|
|
14296
|
-
const onSelect = useMemoizedFn((val) => {
|
|
14885
|
+
const onSelect = useMemoizedFn$1((val) => {
|
|
14297
14886
|
var _a2;
|
|
14298
14887
|
const date = convertStringArrayToDate(val, props.precision);
|
|
14299
14888
|
(_a2 = props.onSelect) === null || _a2 === void 0 ? void 0 : _a2.call(props, date);
|
|
@@ -14545,21 +15134,10 @@ function _createClass(e2, r, t2) {
|
|
|
14545
15134
|
writable: false
|
|
14546
15135
|
}), e2;
|
|
14547
15136
|
}
|
|
14548
|
-
var interopRequireDefault = { exports: {} };
|
|
14549
|
-
(function(module) {
|
|
14550
|
-
function _interopRequireDefault2(e2) {
|
|
14551
|
-
return e2 && e2.__esModule ? e2 : {
|
|
14552
|
-
"default": e2
|
|
14553
|
-
};
|
|
14554
|
-
}
|
|
14555
|
-
module.exports = _interopRequireDefault2, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
14556
|
-
})(interopRequireDefault);
|
|
14557
15137
|
var input = "";
|
|
14558
15138
|
function useInputHandleKeyDown({
|
|
14559
15139
|
onEnterPress,
|
|
14560
|
-
onKeyDown
|
|
14561
|
-
nativeInputRef,
|
|
14562
|
-
enterKeyHint
|
|
15140
|
+
onKeyDown
|
|
14563
15141
|
}) {
|
|
14564
15142
|
const handleKeydown = (e2) => {
|
|
14565
15143
|
if (onEnterPress && (e2.code === "Enter" || e2.keyCode === 13)) {
|
|
@@ -14567,15 +15145,6 @@ function useInputHandleKeyDown({
|
|
|
14567
15145
|
}
|
|
14568
15146
|
onKeyDown === null || onKeyDown === void 0 ? void 0 : onKeyDown(e2);
|
|
14569
15147
|
};
|
|
14570
|
-
useIsomorphicLayoutEffect$2(() => {
|
|
14571
|
-
const ele = nativeInputRef.current;
|
|
14572
|
-
if (!enterKeyHint || !ele)
|
|
14573
|
-
return;
|
|
14574
|
-
ele.setAttribute("enterkeyhint", enterKeyHint);
|
|
14575
|
-
return () => {
|
|
14576
|
-
ele.removeAttribute("enterkeyhint");
|
|
14577
|
-
};
|
|
14578
|
-
}, [enterKeyHint]);
|
|
14579
15148
|
return handleKeydown;
|
|
14580
15149
|
}
|
|
14581
15150
|
const classPrefix$6 = `adm-input`;
|
|
@@ -14596,9 +15165,7 @@ const Input$1 = forwardRef((props, ref) => {
|
|
|
14596
15165
|
const nativeInputRef = useRef(null);
|
|
14597
15166
|
const handleKeydown = useInputHandleKeyDown({
|
|
14598
15167
|
onEnterPress: mergedProps.onEnterPress,
|
|
14599
|
-
onKeyDown: mergedProps.onKeyDown
|
|
14600
|
-
nativeInputRef,
|
|
14601
|
-
enterKeyHint: mergedProps.enterKeyHint
|
|
15168
|
+
onKeyDown: mergedProps.onKeyDown
|
|
14602
15169
|
});
|
|
14603
15170
|
useImperativeHandle(ref, () => ({
|
|
14604
15171
|
clear: () => {
|
|
@@ -15837,18 +16404,18 @@ var keyboard = { exports: {} };
|
|
|
15837
16404
|
(function(global2, factory) {
|
|
15838
16405
|
module.exports = factory();
|
|
15839
16406
|
})(commonjsGlobal, function() {
|
|
15840
|
-
function
|
|
16407
|
+
function _typeof3(obj) {
|
|
15841
16408
|
"@babel/helpers - typeof";
|
|
15842
16409
|
if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
|
|
15843
|
-
|
|
16410
|
+
_typeof3 = function(obj2) {
|
|
15844
16411
|
return typeof obj2;
|
|
15845
16412
|
};
|
|
15846
16413
|
} else {
|
|
15847
|
-
|
|
16414
|
+
_typeof3 = function(obj2) {
|
|
15848
16415
|
return obj2 && typeof Symbol === "function" && obj2.constructor === Symbol && obj2 !== Symbol.prototype ? "symbol" : typeof obj2;
|
|
15849
16416
|
};
|
|
15850
16417
|
}
|
|
15851
|
-
return
|
|
16418
|
+
return _typeof3(obj);
|
|
15852
16419
|
}
|
|
15853
16420
|
function _classCallCheck2(instance, Constructor) {
|
|
15854
16421
|
if (!(instance instanceof Constructor)) {
|
|
@@ -15930,7 +16497,7 @@ var keyboard = { exports: {} };
|
|
|
15930
16497
|
}, {
|
|
15931
16498
|
key: "isEqual",
|
|
15932
16499
|
value: function isEqual3(otherKeyCombo) {
|
|
15933
|
-
if (!otherKeyCombo || typeof otherKeyCombo !== "string" &&
|
|
16500
|
+
if (!otherKeyCombo || typeof otherKeyCombo !== "string" && _typeof3(otherKeyCombo) !== "object") {
|
|
15934
16501
|
return false;
|
|
15935
16502
|
}
|
|
15936
16503
|
if (typeof otherKeyCombo === "string") {
|
|
@@ -16236,7 +16803,7 @@ var keyboard = { exports: {} };
|
|
|
16236
16803
|
pressHandler = keyComboStr;
|
|
16237
16804
|
keyComboStr = null;
|
|
16238
16805
|
}
|
|
16239
|
-
if (keyComboStr &&
|
|
16806
|
+
if (keyComboStr && _typeof3(keyComboStr) === "object" && typeof keyComboStr.length === "number") {
|
|
16240
16807
|
for (var i = 0; i < keyComboStr.length; i += 1) {
|
|
16241
16808
|
this.bind(keyComboStr[i], pressHandler, releaseHandler);
|
|
16242
16809
|
}
|
|
@@ -16280,7 +16847,7 @@ var keyboard = { exports: {} };
|
|
|
16280
16847
|
pressHandler = keyComboStr;
|
|
16281
16848
|
keyComboStr = null;
|
|
16282
16849
|
}
|
|
16283
|
-
if (keyComboStr &&
|
|
16850
|
+
if (keyComboStr && _typeof3(keyComboStr) === "object" && typeof keyComboStr.length === "number") {
|
|
16284
16851
|
for (var i = 0; i < keyComboStr.length; i += 1) {
|
|
16285
16852
|
this.unbind(keyComboStr[i], pressHandler, releaseHandler);
|
|
16286
16853
|
}
|
|
@@ -17764,7 +18331,7 @@ ToastForPages.toast = (props) => {
|
|
|
17764
18331
|
toastRoot.id = "op-pda-active-toast-for-pages-root";
|
|
17765
18332
|
document.body.appendChild(toastRoot);
|
|
17766
18333
|
}
|
|
17767
|
-
|
|
18334
|
+
ReactDOM$1.render(/* @__PURE__ */ React__default.createElement(ToastForPages, {
|
|
17768
18335
|
key: Math.random(),
|
|
17769
18336
|
..._props,
|
|
17770
18337
|
hasNext: false
|
|
@@ -17915,7 +18482,7 @@ function PlaySound(props) {
|
|
|
17915
18482
|
playSoundRoot.id = "op-pda-active-play-sound-root";
|
|
17916
18483
|
document.body.appendChild(playSoundRoot);
|
|
17917
18484
|
}
|
|
17918
|
-
|
|
18485
|
+
ReactDOM$1.render(
|
|
17919
18486
|
/* @__PURE__ */ React__default.createElement("audio", {
|
|
17920
18487
|
src: ROUND_MAP.get(level),
|
|
17921
18488
|
autoPlay: true,
|
|
@@ -18105,7 +18672,7 @@ class ImageUploader extends Component {
|
|
|
18105
18672
|
if (agentFlag) {
|
|
18106
18673
|
if (selectMode) {
|
|
18107
18674
|
const handler = Dialog.show({
|
|
18108
|
-
title: "\u9009\u62E9\u6A21\u5F0F",
|
|
18675
|
+
title: i18n.get("\u9009\u62E9\u6A21\u5F0F"),
|
|
18109
18676
|
content: /* @__PURE__ */ React__default.createElement("div", {
|
|
18110
18677
|
className: "op-pda-confirm-v2-content"
|
|
18111
18678
|
}, /* @__PURE__ */ React__default.createElement(ButtonV2.Group, null, /* @__PURE__ */ React__default.createElement(ButtonV2, {
|
|
@@ -18115,14 +18682,14 @@ class ImageUploader extends Component {
|
|
|
18115
18682
|
self2.handlerUpload(params);
|
|
18116
18683
|
handler.close();
|
|
18117
18684
|
}
|
|
18118
|
-
}, "\u76F8\u673A"), /* @__PURE__ */ React__default.createElement(ButtonV2, {
|
|
18685
|
+
}, i18n.get("\u76F8\u673A")), /* @__PURE__ */ React__default.createElement(ButtonV2, {
|
|
18119
18686
|
fullWidth: true,
|
|
18120
18687
|
type: "primary",
|
|
18121
18688
|
onClick: () => {
|
|
18122
18689
|
self2.handlerUploadNavigator();
|
|
18123
18690
|
handler.close();
|
|
18124
18691
|
}
|
|
18125
|
-
}, "\u76F8\u518C"))),
|
|
18692
|
+
}, i18n.get("\u76F8\u518C")))),
|
|
18126
18693
|
closeOnMaskClick: true
|
|
18127
18694
|
});
|
|
18128
18695
|
} else {
|