@x-edu/live-player 0.0.12 → 0.0.14
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/.gem-mine +11 -11
- package/dist/XEduLivePlayer.common.js +628 -842
- package/dist/XEduLivePlayerPre.common.js +631 -845
- package/package.json +1 -1
- package/public/JsBridge.js +1602 -1602
- package/src/demo/List.jsx +16 -14
- package/src/detail/LiveStatus/index.jsx +1 -1
- package/src/detail/LiveVideo/index.jsx +1 -3
- package/src/detail/RecordVideo/index.jsx +0 -2
- package/src/detail/index.jsx +31 -5
- package/src/list/ListItem/Action/index.jsx +1 -1
- package/src/list/ListItem/index.jsx +3 -2
- package/src/list/ListItem/index.module.less +1 -1
- package/src/list/index.jsx +1 -1
|
@@ -2615,7 +2615,7 @@ ___CSS_LOADER_EXPORT___.locals = {
|
|
|
2615
2615
|
|
|
2616
2616
|
var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default()(function(i){return i[1]});
|
|
2617
2617
|
// Module
|
|
2618
|
-
___CSS_LOADER_EXPORT___.push([module.id, ".index-module_container_2HydZ{padding:24px 0;margin:0 24px;display:flex;justify-content:flex-start;border-top:1px solid #eee;cursor:pointer}.index-module_container_2HydZ:first-child{border-top:none}.index-module_container_2HydZ .index-module_left_qKfes{margin-right:24px;border-radius:8px;position:relative}.index-module_container_2HydZ .index-module_left_qKfes .index-module_avatar_kO\\+gr{width:204px;height:120px;border-radius:4px;object-fit:cover}.index-module_container_2HydZ .index-module_left_qKfes .index-module_tag_6g0Vd{position:absolute;top:0;border-radius:4px 0;font-size:12px;line-height:12px;height:20px;padding:0 8px;display:flex;align-items:center;color:#fff}.index-module_container_2HydZ .index-module_left_qKfes .index-module_tag0_L-uaW{background-color:#ff7826}.index-module_container_2HydZ .index-module_left_qKfes .index-module_tag1_1Mqse{background-color:#1e62ec;padding:0 5px}.index-module_container_2HydZ .index-module_left_qKfes .index-module_tag1_1Mqse img{transform:rotate(180deg);height:10px;width:10px;margin-right:5px}.index-module_container_2HydZ .index-module_left_qKfes .index-module_tag2_sEPZA{background-color:rgba(0,0,0,.6)}.index-module_container_2HydZ .index-module_right_LjXan{display:flex;flex-direction:column;justify-content:space-between;width:calc(100% - 228px)}.index-module_container_2HydZ .index-module_right-top_4Ry90 .index-module_title_\\+g0nw{overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-box-orient:vertical;word-wrap:break-word;line-height:28px;-webkit-line-clamp:2;font-size:20px;font-weight:600;color:#333}.index-module_container_2HydZ .index-module_right-bottom_ZCIxf{display:flex;justify-content:space-between;align-items:center}.index-module_container_2HydZ .index-module_right-bottom_ZCIxf .index-module_time_sEG7-{font-size:14px;color:#999;display:flex;align-items:center}.index-module_container_2HydZ .index-module_right-bottom_ZCIxf .index-module_time-icon_Rg1x0{width:16px;height:16px;color:#ccc;margin-right:4px}.index-module_action_MHhqt,.index-module_container_2HydZ:hover .index-module_title_\\+g0nw{color:#1e62ec}.index-module_action_MHhqt{font-size:14px;line-height:22px;border-radius:144.889px;border:1px solid #1e62ec;width:88px;height:32px;display:flex;align-items:center;justify-content:center}.index-module_action-subscribe_CvlKL{background:#1e62ec;color:#fff}", ""]);
|
|
2618
|
+
___CSS_LOADER_EXPORT___.push([module.id, ".index-module_container_2HydZ{padding:24px 0;margin:0 24px;display:flex;justify-content:flex-start;border-top:1px solid #eee;cursor:pointer}.index-module_container_2HydZ:first-child{border-top:none}.index-module_container_2HydZ .index-module_left_qKfes{margin-right:24px;border-radius:8px;position:relative}.index-module_container_2HydZ .index-module_left_qKfes .index-module_avatar_kO\\+gr{width:204px;height:120px;border-radius:4px;object-fit:cover}.index-module_container_2HydZ .index-module_left_qKfes .index-module_tag_6g0Vd{position:absolute;top:0;border-radius:4px 0;font-size:12px;line-height:12px;height:20px;padding:0 8px;display:flex;align-items:center;color:#fff}.index-module_container_2HydZ .index-module_left_qKfes .index-module_tag0_L-uaW{background-color:#ff7826}.index-module_container_2HydZ .index-module_left_qKfes .index-module_tag1_1Mqse,.index-module_container_2HydZ .index-module_left_qKfes .index-module_tag3_8NDod{background-color:#1e62ec;padding:0 5px}.index-module_container_2HydZ .index-module_left_qKfes .index-module_tag1_1Mqse img,.index-module_container_2HydZ .index-module_left_qKfes .index-module_tag3_8NDod img{transform:rotate(180deg);height:10px;width:10px;margin-right:5px}.index-module_container_2HydZ .index-module_left_qKfes .index-module_tag2_sEPZA{background-color:rgba(0,0,0,.6)}.index-module_container_2HydZ .index-module_right_LjXan{display:flex;flex-direction:column;justify-content:space-between;width:calc(100% - 228px)}.index-module_container_2HydZ .index-module_right-top_4Ry90 .index-module_title_\\+g0nw{overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-box-orient:vertical;word-wrap:break-word;line-height:28px;-webkit-line-clamp:2;font-size:20px;font-weight:600;color:#333}.index-module_container_2HydZ .index-module_right-bottom_ZCIxf{display:flex;justify-content:space-between;align-items:center}.index-module_container_2HydZ .index-module_right-bottom_ZCIxf .index-module_time_sEG7-{font-size:14px;color:#999;display:flex;align-items:center}.index-module_container_2HydZ .index-module_right-bottom_ZCIxf .index-module_time-icon_Rg1x0{width:16px;height:16px;color:#ccc;margin-right:4px}.index-module_action_MHhqt,.index-module_container_2HydZ:hover .index-module_title_\\+g0nw{color:#1e62ec}.index-module_action_MHhqt{font-size:14px;line-height:22px;border-radius:144.889px;border:1px solid #1e62ec;width:88px;height:32px;display:flex;align-items:center;justify-content:center}.index-module_action-subscribe_CvlKL{background:#1e62ec;color:#fff}", ""]);
|
|
2619
2619
|
// Exports
|
|
2620
2620
|
___CSS_LOADER_EXPORT___.locals = {
|
|
2621
2621
|
"container": "index-module_container_2HydZ",
|
|
@@ -2624,6 +2624,7 @@ ___CSS_LOADER_EXPORT___.locals = {
|
|
|
2624
2624
|
"tag": "index-module_tag_6g0Vd",
|
|
2625
2625
|
"tag0": "index-module_tag0_L-uaW",
|
|
2626
2626
|
"tag1": "index-module_tag1_1Mqse",
|
|
2627
|
+
"tag3": "index-module_tag3_8NDod",
|
|
2627
2628
|
"tag2": "index-module_tag2_sEPZA",
|
|
2628
2629
|
"right": "index-module_right_LjXan",
|
|
2629
2630
|
"right-top": "index-module_right-top_4Ry90",
|
|
@@ -25807,17 +25808,10 @@ module.exports = styleTagTransform;
|
|
|
25807
25808
|
|
|
25808
25809
|
/***/ }),
|
|
25809
25810
|
|
|
25810
|
-
/***/ 5273:
|
|
25811
|
-
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
25812
|
-
|
|
25813
|
-
module.exports = __webpack_require__(5666);
|
|
25814
|
-
|
|
25815
|
-
/***/ }),
|
|
25816
|
-
|
|
25817
25811
|
/***/ 3006:
|
|
25818
25812
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
25819
25813
|
|
|
25820
|
-
var _regeneratorRuntime = __webpack_require__(
|
|
25814
|
+
var _regeneratorRuntime = __webpack_require__(7757);
|
|
25821
25815
|
|
|
25822
25816
|
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
|
|
25823
25817
|
|
|
@@ -27025,7 +27019,7 @@ module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAlgAAAFgCAYAAABn
|
|
|
27025
27019
|
/***/ (function(module) {
|
|
27026
27020
|
|
|
27027
27021
|
"use strict";
|
|
27028
|
-
module.exports = JSON.parse('{"_args":[["axios@0.21.4","
|
|
27022
|
+
module.exports = JSON.parse('{"_args":[["axios@0.21.4","/Users/guoyanhao/Desktop/ND/x-cloud/x-edu-live-player"]],"_from":"axios@0.21.4","_id":"axios@0.21.4","_inBundle":false,"_integrity":"sha1-xnuQ3AVo5cHPKwuFjEO6KOLtpXU=","_location":"/axios","_phantomChildren":{},"_requested":{"type":"version","registry":true,"raw":"axios@0.21.4","name":"axios","escapedName":"axios","rawSpec":"0.21.4","saveSpec":null,"fetchSpec":"0.21.4"},"_requiredBy":["/","/@gem-mine/request"],"_resolved":"http://registry.npm.sdp.nd/axios/download/axios-0.21.4.tgz","_spec":"0.21.4","_where":"/Users/guoyanhao/Desktop/ND/x-cloud/x-edu-live-player","author":{"name":"Matt Zabriskie"},"browser":{"./lib/adapters/http.js":"./lib/adapters/xhr.js"},"bugs":{"url":"https://github.com/axios/axios/issues"},"bundlesize":[{"path":"./dist/axios.min.js","threshold":"5kB"}],"dependencies":{"follow-redirects":"^1.14.0"},"description":"Promise based HTTP client for the browser and node.js","devDependencies":{"coveralls":"^3.0.0","es6-promise":"^4.2.4","grunt":"^1.3.0","grunt-banner":"^0.6.0","grunt-cli":"^1.2.0","grunt-contrib-clean":"^1.1.0","grunt-contrib-watch":"^1.0.0","grunt-eslint":"^23.0.0","grunt-karma":"^4.0.0","grunt-mocha-test":"^0.13.3","grunt-ts":"^6.0.0-beta.19","grunt-webpack":"^4.0.2","istanbul-instrumenter-loader":"^1.0.0","jasmine-core":"^2.4.1","karma":"^6.3.2","karma-chrome-launcher":"^3.1.0","karma-firefox-launcher":"^2.1.0","karma-jasmine":"^1.1.1","karma-jasmine-ajax":"^0.1.13","karma-safari-launcher":"^1.0.0","karma-sauce-launcher":"^4.3.6","karma-sinon":"^1.0.5","karma-sourcemap-loader":"^0.3.8","karma-webpack":"^4.0.2","load-grunt-tasks":"^3.5.2","minimist":"^1.2.0","mocha":"^8.2.1","sinon":"^4.5.0","terser-webpack-plugin":"^4.2.3","typescript":"^4.0.5","url-search-params":"^0.10.0","webpack":"^4.44.2","webpack-dev-server":"^3.11.0"},"homepage":"https://axios-http.com","jsdelivr":"dist/axios.min.js","keywords":["xhr","http","ajax","promise","node"],"license":"MIT","main":"index.js","name":"axios","repository":{"type":"git","url":"git+https://github.com/axios/axios.git"},"scripts":{"build":"NODE_ENV=production grunt build","coveralls":"cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js","examples":"node ./examples/server.js","fix":"eslint --fix lib/**/*.js","postversion":"git push && git push --tags","preversion":"npm test","start":"node ./sandbox/server.js","test":"grunt test","version":"npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json"},"typings":"./index.d.ts","unpkg":"dist/axios.min.js","version":"0.21.4"}');
|
|
27029
27023
|
|
|
27030
27024
|
/***/ })
|
|
27031
27025
|
|
|
@@ -30762,7 +30756,7 @@ var LIVING_CLOSE_LOGIN = {
|
|
|
30762
30756
|
CLOSE: '1'
|
|
30763
30757
|
}; // 子类型 1 网龙会议 2 外部推流 3 转播
|
|
30764
30758
|
|
|
30765
|
-
var
|
|
30759
|
+
var publicLive_SUB_TYPE = {
|
|
30766
30760
|
NET_DRAGON: 1,
|
|
30767
30761
|
OUTSIDE: 2,
|
|
30768
30762
|
REBROADCAST: 3
|
|
@@ -31778,7 +31772,7 @@ function _getOpenClassLiveBase() {
|
|
|
31778
31772
|
data = _context14.sent;
|
|
31779
31773
|
subType = data.sub_type; // 外部推流则直接返回, 不去请求兼容接口
|
|
31780
31774
|
|
|
31781
|
-
if (!(subType ===
|
|
31775
|
+
if (!(subType === publicLive_SUB_TYPE.OUTSIDE)) {
|
|
31782
31776
|
_context14.next = 7;
|
|
31783
31777
|
break;
|
|
31784
31778
|
}
|
|
@@ -32539,6 +32533,119 @@ function Loading_Loading(_ref) {
|
|
|
32539
32533
|
wrapperClassName: classnames_default()('x-edu-nested-loading', wrapperClassName)
|
|
32540
32534
|
}, children);
|
|
32541
32535
|
}
|
|
32536
|
+
// EXTERNAL MODULE: ./node_modules/@sdp.nd/fish/es/loader/style/index.js
|
|
32537
|
+
var loader_style = __webpack_require__(4646);
|
|
32538
|
+
;// CONCATENATED MODULE: ./src/util/push/index.js
|
|
32539
|
+
|
|
32540
|
+
|
|
32541
|
+
|
|
32542
|
+
|
|
32543
|
+
function push_asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
|
|
32544
|
+
|
|
32545
|
+
function push_asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { push_asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { push_asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
|
|
32546
|
+
|
|
32547
|
+
function push_classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
32548
|
+
|
|
32549
|
+
function push_defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
32550
|
+
|
|
32551
|
+
function push_createClass(Constructor, protoProps, staticProps) { if (protoProps) push_defineProperties(Constructor.prototype, protoProps); if (staticProps) push_defineProperties(Constructor, staticProps); return Constructor; }
|
|
32552
|
+
|
|
32553
|
+
|
|
32554
|
+
var push_url = '/3rd/im-web-push/index.umd.js';
|
|
32555
|
+
var push_loadJS = loader.loadJS;
|
|
32556
|
+
var instPromise; // http://git.sdp.nd/component-h5/web-im-push/-/tree/master
|
|
32557
|
+
|
|
32558
|
+
var ImPush = /*#__PURE__*/function () {
|
|
32559
|
+
function ImPush() {
|
|
32560
|
+
push_classCallCheck(this, ImPush);
|
|
32561
|
+
|
|
32562
|
+
this.listeners = [];
|
|
32563
|
+
}
|
|
32564
|
+
|
|
32565
|
+
push_createClass(ImPush, [{
|
|
32566
|
+
key: "init",
|
|
32567
|
+
value: function () {
|
|
32568
|
+
var _init = push_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee() {
|
|
32569
|
+
return regenerator_default().wrap(function _callee$(_context) {
|
|
32570
|
+
while (1) {
|
|
32571
|
+
switch (_context.prev = _context.next) {
|
|
32572
|
+
case 0:
|
|
32573
|
+
if (!instPromise) {
|
|
32574
|
+
_context.next = 2;
|
|
32575
|
+
break;
|
|
32576
|
+
}
|
|
32577
|
+
|
|
32578
|
+
return _context.abrupt("return", instPromise);
|
|
32579
|
+
|
|
32580
|
+
case 2:
|
|
32581
|
+
instPromise = push_loadJS(push_url, 'ndiot_push').then(function () {
|
|
32582
|
+
window.ndiot_push.open({
|
|
32583
|
+
url: env["default"].push.host,
|
|
32584
|
+
appId: env["default"].app.appid,
|
|
32585
|
+
disableSharedWorker: true
|
|
32586
|
+
});
|
|
32587
|
+
return window.ndiot_push;
|
|
32588
|
+
});
|
|
32589
|
+
return _context.abrupt("return", instPromise);
|
|
32590
|
+
|
|
32591
|
+
case 4:
|
|
32592
|
+
case "end":
|
|
32593
|
+
return _context.stop();
|
|
32594
|
+
}
|
|
32595
|
+
}
|
|
32596
|
+
}, _callee);
|
|
32597
|
+
}));
|
|
32598
|
+
|
|
32599
|
+
function init() {
|
|
32600
|
+
return _init.apply(this, arguments);
|
|
32601
|
+
}
|
|
32602
|
+
|
|
32603
|
+
return init;
|
|
32604
|
+
}()
|
|
32605
|
+
}, {
|
|
32606
|
+
key: "getInstance",
|
|
32607
|
+
value: function getInstance() {
|
|
32608
|
+
return window.ndiot_push;
|
|
32609
|
+
}
|
|
32610
|
+
}, {
|
|
32611
|
+
key: "addTopicListener",
|
|
32612
|
+
value: function addTopicListener(name, listener) {
|
|
32613
|
+
var inst = this.getInstance();
|
|
32614
|
+
this.listeners.push(listener);
|
|
32615
|
+
inst.subscribe(name);
|
|
32616
|
+
this.listen();
|
|
32617
|
+
}
|
|
32618
|
+
}, {
|
|
32619
|
+
key: "removeTopicListener",
|
|
32620
|
+
value: function removeTopicListener(name, listener) {
|
|
32621
|
+
var inst = this.getInstance();
|
|
32622
|
+
this.listeners = this.listeners.filter(function (l) {
|
|
32623
|
+
return l !== listener;
|
|
32624
|
+
});
|
|
32625
|
+
inst.unsubscribe(name);
|
|
32626
|
+
this.listen();
|
|
32627
|
+
}
|
|
32628
|
+
}, {
|
|
32629
|
+
key: "listen",
|
|
32630
|
+
value: function listen() {
|
|
32631
|
+
var _this = this;
|
|
32632
|
+
|
|
32633
|
+
var inst = this.getInstance();
|
|
32634
|
+
|
|
32635
|
+
inst.onNewMessage = function (data) {
|
|
32636
|
+
console.log('im-push', data);
|
|
32637
|
+
|
|
32638
|
+
_this.listeners.forEach(function (l) {
|
|
32639
|
+
l(data);
|
|
32640
|
+
});
|
|
32641
|
+
};
|
|
32642
|
+
}
|
|
32643
|
+
}]);
|
|
32644
|
+
|
|
32645
|
+
return ImPush;
|
|
32646
|
+
}();
|
|
32647
|
+
|
|
32648
|
+
/* harmony default export */ var push = (new ImPush());
|
|
32542
32649
|
;// CONCATENATED MODULE: ./src/util/object.js
|
|
32543
32650
|
function pick(obj, keys) {
|
|
32544
32651
|
if (!Array.isArray(keys)) {
|
|
@@ -33018,9 +33125,6 @@ var index_module_update = injectStylesIntoStyleTag_default()(index_module/* defa
|
|
|
33018
33125
|
|
|
33019
33126
|
/* harmony default export */ var LiveCountDown_index_module = (index_module/* default */.Z && index_module/* default.locals */.Z.locals ? index_module/* default.locals */.Z.locals : undefined);
|
|
33020
33127
|
|
|
33021
|
-
// EXTERNAL MODULE: ./node_modules/@babel/runtime/regenerator/index.js
|
|
33022
|
-
var runtime_regenerator = __webpack_require__(5273);
|
|
33023
|
-
var runtime_regenerator_default = /*#__PURE__*/__webpack_require__.n(runtime_regenerator);
|
|
33024
33128
|
;// CONCATENATED MODULE: ./src/hook/useIsMounted.js
|
|
33025
33129
|
|
|
33026
33130
|
|
|
@@ -33087,9 +33191,9 @@ function isSourceReady(_x) {
|
|
|
33087
33191
|
}
|
|
33088
33192
|
|
|
33089
33193
|
function _isSourceReady() {
|
|
33090
|
-
_isSourceReady = usePullState_asyncToGenerator( /*#__PURE__*/
|
|
33194
|
+
_isSourceReady = usePullState_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee(liveInfo) {
|
|
33091
33195
|
var newLiveInfo;
|
|
33092
|
-
return
|
|
33196
|
+
return regenerator_default().wrap(function _callee$(_context) {
|
|
33093
33197
|
while (1) {
|
|
33094
33198
|
switch (_context.prev = _context.next) {
|
|
33095
33199
|
case 0:
|
|
@@ -33280,8 +33384,8 @@ function usePullSource_isSourceReady(_x) {
|
|
|
33280
33384
|
}
|
|
33281
33385
|
|
|
33282
33386
|
function hook_usePullSource_isSourceReady() {
|
|
33283
|
-
hook_usePullSource_isSourceReady = usePullSource_asyncToGenerator( /*#__PURE__*/
|
|
33284
|
-
return
|
|
33387
|
+
hook_usePullSource_isSourceReady = usePullSource_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee(url) {
|
|
33388
|
+
return regenerator_default().wrap(function _callee$(_context) {
|
|
33285
33389
|
while (1) {
|
|
33286
33390
|
switch (_context.prev = _context.next) {
|
|
33287
33391
|
case 0:
|
|
@@ -33386,8 +33490,7 @@ function LiveStatus_arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
|
33386
33490
|
|
|
33387
33491
|
|
|
33388
33492
|
function LiveStatus(_ref) {
|
|
33389
|
-
var
|
|
33390
|
-
handleLogin = _ref.handleLogin,
|
|
33493
|
+
var handleLogin = _ref.handleLogin,
|
|
33391
33494
|
userInfo = _ref.userInfo,
|
|
33392
33495
|
liveInfo = _ref.liveInfo,
|
|
33393
33496
|
hasPlayed = _ref.hasPlayed,
|
|
@@ -33418,7 +33521,8 @@ function LiveStatus(_ref) {
|
|
|
33418
33521
|
var isCompleted = liveInfo.status === publicLive_PUBLIC_LIVE_STATUS.COMPLETEED;
|
|
33419
33522
|
var isPaused = liveInfo.status === publicLive_PUBLIC_LIVE_STATUS.PASUED;
|
|
33420
33523
|
var isOffline = liveInfo.status === publicLive_PUBLIC_LIVE_STATUS.OFFLINE;
|
|
33421
|
-
var isRecordLive = liveInfo.type === PUBLIC_LIVE_MODE.RECORDED;
|
|
33524
|
+
var isRecordLive = liveInfo.type === PUBLIC_LIVE_MODE.RECORDED;
|
|
33525
|
+
var isStreamLive = liveInfo.type === PUBLIC_LIVE_MODE.LIVING && (liveInfo.sub_type === SUB_TYPE.OUTSIDE || liveInfo.sub_type === SUB_TYPE.REBROADCAST); // 当前时间是否在回放时间开始前, 如果没有回放开始时间, 则直接判断未回放还没生成
|
|
33422
33526
|
|
|
33423
33527
|
var isBeforeRecordTime = liveInfo.replay_begin_time ? dayjs_min_default()().isBefore(dayjs_min_default()(liveInfo.replay_begin_time)) : true;
|
|
33424
33528
|
var mustLogin = !userInfo && liveInfo.login;
|
|
@@ -33597,8 +33701,7 @@ function RecordVideo_arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
|
33597
33701
|
|
|
33598
33702
|
|
|
33599
33703
|
function RecordVideo(_ref) {
|
|
33600
|
-
var
|
|
33601
|
-
userInfo = _ref.userInfo,
|
|
33704
|
+
var userInfo = _ref.userInfo,
|
|
33602
33705
|
liveInfo = _ref.liveInfo,
|
|
33603
33706
|
visitTime = _ref.visitTime,
|
|
33604
33707
|
diffTime = _ref.diffTime,
|
|
@@ -33739,7 +33842,6 @@ function RecordVideo(_ref) {
|
|
|
33739
33842
|
options: options,
|
|
33740
33843
|
onReady: handleVideoReady
|
|
33741
33844
|
}), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(detail_LiveStatus, {
|
|
33742
|
-
isStreamLive: isStreamLive,
|
|
33743
33845
|
userInfo: userInfo,
|
|
33744
33846
|
visitTime: visitTime,
|
|
33745
33847
|
diffTime: diffTime,
|
|
@@ -33751,8 +33853,6 @@ function RecordVideo(_ref) {
|
|
|
33751
33853
|
onReloadLive: handleVideoReload
|
|
33752
33854
|
}));
|
|
33753
33855
|
}
|
|
33754
|
-
// EXTERNAL MODULE: ./node_modules/@sdp.nd/fish/es/loader/style/index.js
|
|
33755
|
-
var loader_style = __webpack_require__(4646);
|
|
33756
33856
|
;// CONCATENATED MODULE: ./src/component/AliPlayer/index.jsx
|
|
33757
33857
|
|
|
33758
33858
|
|
|
@@ -33918,39 +34018,6 @@ var button_style_update = injectStylesIntoStyleTag_default()(button_style/* defa
|
|
|
33918
34018
|
// style dependencies
|
|
33919
34019
|
|
|
33920
34020
|
|
|
33921
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
|
33922
|
-
function defineProperty_defineProperty(obj, key, value) {
|
|
33923
|
-
if (key in obj) {
|
|
33924
|
-
Object.defineProperty(obj, key, {
|
|
33925
|
-
value: value,
|
|
33926
|
-
enumerable: true,
|
|
33927
|
-
configurable: true,
|
|
33928
|
-
writable: true
|
|
33929
|
-
});
|
|
33930
|
-
} else {
|
|
33931
|
-
obj[key] = value;
|
|
33932
|
-
}
|
|
33933
|
-
|
|
33934
|
-
return obj;
|
|
33935
|
-
}
|
|
33936
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
|
|
33937
|
-
function esm_extends_extends() {
|
|
33938
|
-
esm_extends_extends = Object.assign || function (target) {
|
|
33939
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
33940
|
-
var source = arguments[i];
|
|
33941
|
-
|
|
33942
|
-
for (var key in source) {
|
|
33943
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
33944
|
-
target[key] = source[key];
|
|
33945
|
-
}
|
|
33946
|
-
}
|
|
33947
|
-
}
|
|
33948
|
-
|
|
33949
|
-
return target;
|
|
33950
|
-
};
|
|
33951
|
-
|
|
33952
|
-
return esm_extends_extends.apply(this, arguments);
|
|
33953
|
-
}
|
|
33954
34021
|
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js
|
|
33955
34022
|
function arrayWithHoles_arrayWithHoles(arr) {
|
|
33956
34023
|
if (Array.isArray(arr)) return arr;
|
|
@@ -33985,26 +34052,6 @@ function iterableToArrayLimit_iterableToArrayLimit(arr, i) {
|
|
|
33985
34052
|
|
|
33986
34053
|
return _arr;
|
|
33987
34054
|
}
|
|
33988
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
|
|
33989
|
-
function arrayLikeToArray_arrayLikeToArray(arr, len) {
|
|
33990
|
-
if (len == null || len > arr.length) len = arr.length;
|
|
33991
|
-
|
|
33992
|
-
for (var i = 0, arr2 = new Array(len); i < len; i++) {
|
|
33993
|
-
arr2[i] = arr[i];
|
|
33994
|
-
}
|
|
33995
|
-
|
|
33996
|
-
return arr2;
|
|
33997
|
-
}
|
|
33998
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js
|
|
33999
|
-
|
|
34000
|
-
function unsupportedIterableToArray_unsupportedIterableToArray(o, minLen) {
|
|
34001
|
-
if (!o) return;
|
|
34002
|
-
if (typeof o === "string") return arrayLikeToArray_arrayLikeToArray(o, minLen);
|
|
34003
|
-
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
34004
|
-
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
34005
|
-
if (n === "Map" || n === "Set") return Array.from(o);
|
|
34006
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray_arrayLikeToArray(o, minLen);
|
|
34007
|
-
}
|
|
34008
34055
|
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableRest.js
|
|
34009
34056
|
function nonIterableRest_nonIterableRest() {
|
|
34010
34057
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
@@ -34015,130 +34062,7 @@ function nonIterableRest_nonIterableRest() {
|
|
|
34015
34062
|
|
|
34016
34063
|
|
|
34017
34064
|
function slicedToArray_slicedToArray(arr, i) {
|
|
34018
|
-
return arrayWithHoles_arrayWithHoles(arr) || iterableToArrayLimit_iterableToArrayLimit(arr, i) ||
|
|
34019
|
-
}
|
|
34020
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js
|
|
34021
|
-
function classCallCheck_classCallCheck(instance, Constructor) {
|
|
34022
|
-
if (!(instance instanceof Constructor)) {
|
|
34023
|
-
throw new TypeError("Cannot call a class as a function");
|
|
34024
|
-
}
|
|
34025
|
-
}
|
|
34026
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/createClass.js
|
|
34027
|
-
function createClass_defineProperties(target, props) {
|
|
34028
|
-
for (var i = 0; i < props.length; i++) {
|
|
34029
|
-
var descriptor = props[i];
|
|
34030
|
-
descriptor.enumerable = descriptor.enumerable || false;
|
|
34031
|
-
descriptor.configurable = true;
|
|
34032
|
-
if ("value" in descriptor) descriptor.writable = true;
|
|
34033
|
-
Object.defineProperty(target, descriptor.key, descriptor);
|
|
34034
|
-
}
|
|
34035
|
-
}
|
|
34036
|
-
|
|
34037
|
-
function createClass_createClass(Constructor, protoProps, staticProps) {
|
|
34038
|
-
if (protoProps) createClass_defineProperties(Constructor.prototype, protoProps);
|
|
34039
|
-
if (staticProps) createClass_defineProperties(Constructor, staticProps);
|
|
34040
|
-
return Constructor;
|
|
34041
|
-
}
|
|
34042
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js
|
|
34043
|
-
function setPrototypeOf_setPrototypeOf(o, p) {
|
|
34044
|
-
setPrototypeOf_setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
|
|
34045
|
-
o.__proto__ = p;
|
|
34046
|
-
return o;
|
|
34047
|
-
};
|
|
34048
|
-
|
|
34049
|
-
return setPrototypeOf_setPrototypeOf(o, p);
|
|
34050
|
-
}
|
|
34051
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/inherits.js
|
|
34052
|
-
|
|
34053
|
-
function inherits_inherits(subClass, superClass) {
|
|
34054
|
-
if (typeof superClass !== "function" && superClass !== null) {
|
|
34055
|
-
throw new TypeError("Super expression must either be null or a function");
|
|
34056
|
-
}
|
|
34057
|
-
|
|
34058
|
-
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
34059
|
-
constructor: {
|
|
34060
|
-
value: subClass,
|
|
34061
|
-
writable: true,
|
|
34062
|
-
configurable: true
|
|
34063
|
-
}
|
|
34064
|
-
});
|
|
34065
|
-
if (superClass) setPrototypeOf_setPrototypeOf(subClass, superClass);
|
|
34066
|
-
}
|
|
34067
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js
|
|
34068
|
-
function getPrototypeOf_getPrototypeOf(o) {
|
|
34069
|
-
getPrototypeOf_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
|
|
34070
|
-
return o.__proto__ || Object.getPrototypeOf(o);
|
|
34071
|
-
};
|
|
34072
|
-
return getPrototypeOf_getPrototypeOf(o);
|
|
34073
|
-
}
|
|
34074
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js
|
|
34075
|
-
function isNativeReflectConstruct_isNativeReflectConstruct() {
|
|
34076
|
-
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
34077
|
-
if (Reflect.construct.sham) return false;
|
|
34078
|
-
if (typeof Proxy === "function") return true;
|
|
34079
|
-
|
|
34080
|
-
try {
|
|
34081
|
-
Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
|
|
34082
|
-
return true;
|
|
34083
|
-
} catch (e) {
|
|
34084
|
-
return false;
|
|
34085
|
-
}
|
|
34086
|
-
}
|
|
34087
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/typeof.js
|
|
34088
|
-
function esm_typeof_typeof(obj) {
|
|
34089
|
-
"@babel/helpers - typeof";
|
|
34090
|
-
|
|
34091
|
-
if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
|
|
34092
|
-
esm_typeof_typeof = function _typeof(obj) {
|
|
34093
|
-
return typeof obj;
|
|
34094
|
-
};
|
|
34095
|
-
} else {
|
|
34096
|
-
esm_typeof_typeof = function _typeof(obj) {
|
|
34097
|
-
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
34098
|
-
};
|
|
34099
|
-
}
|
|
34100
|
-
|
|
34101
|
-
return esm_typeof_typeof(obj);
|
|
34102
|
-
}
|
|
34103
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js
|
|
34104
|
-
function assertThisInitialized_assertThisInitialized(self) {
|
|
34105
|
-
if (self === void 0) {
|
|
34106
|
-
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
34107
|
-
}
|
|
34108
|
-
|
|
34109
|
-
return self;
|
|
34110
|
-
}
|
|
34111
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js
|
|
34112
|
-
|
|
34113
|
-
|
|
34114
|
-
function possibleConstructorReturn_possibleConstructorReturn(self, call) {
|
|
34115
|
-
if (call && (esm_typeof_typeof(call) === "object" || typeof call === "function")) {
|
|
34116
|
-
return call;
|
|
34117
|
-
} else if (call !== void 0) {
|
|
34118
|
-
throw new TypeError("Derived constructors may only return object or undefined");
|
|
34119
|
-
}
|
|
34120
|
-
|
|
34121
|
-
return assertThisInitialized_assertThisInitialized(self);
|
|
34122
|
-
}
|
|
34123
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/createSuper.js
|
|
34124
|
-
|
|
34125
|
-
|
|
34126
|
-
|
|
34127
|
-
function createSuper_createSuper(Derived) {
|
|
34128
|
-
var hasNativeReflectConstruct = isNativeReflectConstruct_isNativeReflectConstruct();
|
|
34129
|
-
return function _createSuperInternal() {
|
|
34130
|
-
var Super = getPrototypeOf_getPrototypeOf(Derived),
|
|
34131
|
-
result;
|
|
34132
|
-
|
|
34133
|
-
if (hasNativeReflectConstruct) {
|
|
34134
|
-
var NewTarget = getPrototypeOf_getPrototypeOf(this).constructor;
|
|
34135
|
-
result = Reflect.construct(Super, arguments, NewTarget);
|
|
34136
|
-
} else {
|
|
34137
|
-
result = Super.apply(this, arguments);
|
|
34138
|
-
}
|
|
34139
|
-
|
|
34140
|
-
return possibleConstructorReturn_possibleConstructorReturn(this, result);
|
|
34141
|
-
};
|
|
34065
|
+
return arrayWithHoles_arrayWithHoles(arr) || iterableToArrayLimit_iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || nonIterableRest_nonIterableRest();
|
|
34142
34066
|
}
|
|
34143
34067
|
;// CONCATENATED MODULE: ./node_modules/rc-util/es/raf.js
|
|
34144
34068
|
var raf = function raf(callback) {
|
|
@@ -34365,27 +34289,6 @@ var cacheStyle = {};
|
|
|
34365
34289
|
}
|
|
34366
34290
|
}
|
|
34367
34291
|
});
|
|
34368
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js
|
|
34369
|
-
|
|
34370
|
-
function arrayWithoutHoles_arrayWithoutHoles(arr) {
|
|
34371
|
-
if (Array.isArray(arr)) return arrayLikeToArray_arrayLikeToArray(arr);
|
|
34372
|
-
}
|
|
34373
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/iterableToArray.js
|
|
34374
|
-
function iterableToArray_iterableToArray(iter) {
|
|
34375
|
-
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
34376
|
-
}
|
|
34377
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js
|
|
34378
|
-
function nonIterableSpread_nonIterableSpread() {
|
|
34379
|
-
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
34380
|
-
}
|
|
34381
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js
|
|
34382
|
-
|
|
34383
|
-
|
|
34384
|
-
|
|
34385
|
-
|
|
34386
|
-
function toConsumableArray_toConsumableArray(arr) {
|
|
34387
|
-
return arrayWithoutHoles_arrayWithoutHoles(arr) || iterableToArray_iterableToArray(arr) || unsupportedIterableToArray_unsupportedIterableToArray(arr) || nonIterableSpread_nonIterableSpread();
|
|
34388
|
-
}
|
|
34389
34292
|
;// CONCATENATED MODULE: ./node_modules/rc-util/es/Dom/scrollLocker.js
|
|
34390
34293
|
|
|
34391
34294
|
|
|
@@ -34402,7 +34305,7 @@ var scrollLocker_cacheStyle = new Map();
|
|
|
34402
34305
|
var ScrollLocker = function ScrollLocker(_options) {
|
|
34403
34306
|
var _this = this;
|
|
34404
34307
|
|
|
34405
|
-
|
|
34308
|
+
_classCallCheck(this, ScrollLocker);
|
|
34406
34309
|
|
|
34407
34310
|
this.lockTarget = void 0;
|
|
34408
34311
|
this.options = void 0;
|
|
@@ -34450,7 +34353,7 @@ var ScrollLocker = function ScrollLocker(_options) {
|
|
|
34450
34353
|
var options = _ref3.options;
|
|
34451
34354
|
return (options === null || options === void 0 ? void 0 : options.container) === ((_this$options2 = _this.options) === null || _this$options2 === void 0 ? void 0 : _this$options2.container);
|
|
34452
34355
|
})) {
|
|
34453
|
-
locks = [].concat(
|
|
34356
|
+
locks = [].concat(_toConsumableArray(locks), [{
|
|
34454
34357
|
target: _this.lockTarget,
|
|
34455
34358
|
options: _this.options
|
|
34456
34359
|
}]);
|
|
@@ -34488,7 +34391,7 @@ var ScrollLocker = function ScrollLocker(_options) {
|
|
|
34488
34391
|
container.className = addClassName.trim();
|
|
34489
34392
|
}
|
|
34490
34393
|
|
|
34491
|
-
locks = [].concat(
|
|
34394
|
+
locks = [].concat(_toConsumableArray(locks), [{
|
|
34492
34395
|
target: _this.lockTarget,
|
|
34493
34396
|
options: _this.options
|
|
34494
34397
|
}]);
|
|
@@ -34572,7 +34475,7 @@ var getParent = function getParent(getContainer) {
|
|
|
34572
34475
|
return getContainer();
|
|
34573
34476
|
}
|
|
34574
34477
|
|
|
34575
|
-
if (
|
|
34478
|
+
if (typeof_typeof(getContainer) === 'object' && getContainer instanceof window.HTMLElement) {
|
|
34576
34479
|
return getContainer;
|
|
34577
34480
|
}
|
|
34578
34481
|
}
|
|
@@ -34581,14 +34484,14 @@ var getParent = function getParent(getContainer) {
|
|
|
34581
34484
|
};
|
|
34582
34485
|
|
|
34583
34486
|
var PortalWrapper = /*#__PURE__*/function (_React$Component) {
|
|
34584
|
-
|
|
34487
|
+
_inherits(PortalWrapper, _React$Component);
|
|
34585
34488
|
|
|
34586
|
-
var _super =
|
|
34489
|
+
var _super = _createSuper(PortalWrapper);
|
|
34587
34490
|
|
|
34588
34491
|
function PortalWrapper(props) {
|
|
34589
34492
|
var _this;
|
|
34590
34493
|
|
|
34591
|
-
|
|
34494
|
+
_classCallCheck(this, PortalWrapper);
|
|
34592
34495
|
|
|
34593
34496
|
_this = _super.call(this, props);
|
|
34594
34497
|
_this.container = void 0;
|
|
@@ -34708,7 +34611,7 @@ var PortalWrapper = /*#__PURE__*/function (_React$Component) {
|
|
|
34708
34611
|
return _this;
|
|
34709
34612
|
}
|
|
34710
34613
|
|
|
34711
|
-
|
|
34614
|
+
_createClass(PortalWrapper, [{
|
|
34712
34615
|
key: "componentDidMount",
|
|
34713
34616
|
value: function componentDidMount() {
|
|
34714
34617
|
var _this2 = this;
|
|
@@ -34776,46 +34679,6 @@ var PortalWrapper = /*#__PURE__*/function (_React$Component) {
|
|
|
34776
34679
|
}(external_commonjs_react_commonjs2_react_root_React_namespaceObject.Component);
|
|
34777
34680
|
|
|
34778
34681
|
/* harmony default export */ var es_PortalWrapper = (PortalWrapper);
|
|
34779
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/objectSpread2.js
|
|
34780
|
-
|
|
34781
|
-
|
|
34782
|
-
function objectSpread2_ownKeys(object, enumerableOnly) {
|
|
34783
|
-
var keys = Object.keys(object);
|
|
34784
|
-
|
|
34785
|
-
if (Object.getOwnPropertySymbols) {
|
|
34786
|
-
var symbols = Object.getOwnPropertySymbols(object);
|
|
34787
|
-
|
|
34788
|
-
if (enumerableOnly) {
|
|
34789
|
-
symbols = symbols.filter(function (sym) {
|
|
34790
|
-
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
34791
|
-
});
|
|
34792
|
-
}
|
|
34793
|
-
|
|
34794
|
-
keys.push.apply(keys, symbols);
|
|
34795
|
-
}
|
|
34796
|
-
|
|
34797
|
-
return keys;
|
|
34798
|
-
}
|
|
34799
|
-
|
|
34800
|
-
function objectSpread2_objectSpread2(target) {
|
|
34801
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
34802
|
-
var source = arguments[i] != null ? arguments[i] : {};
|
|
34803
|
-
|
|
34804
|
-
if (i % 2) {
|
|
34805
|
-
objectSpread2_ownKeys(Object(source), true).forEach(function (key) {
|
|
34806
|
-
defineProperty_defineProperty(target, key, source[key]);
|
|
34807
|
-
});
|
|
34808
|
-
} else if (Object.getOwnPropertyDescriptors) {
|
|
34809
|
-
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
34810
|
-
} else {
|
|
34811
|
-
objectSpread2_ownKeys(Object(source)).forEach(function (key) {
|
|
34812
|
-
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
34813
|
-
});
|
|
34814
|
-
}
|
|
34815
|
-
}
|
|
34816
|
-
|
|
34817
|
-
return target;
|
|
34818
|
-
}
|
|
34819
34682
|
;// CONCATENATED MODULE: ./node_modules/rc-util/es/KeyCode.js
|
|
34820
34683
|
/**
|
|
34821
34684
|
* @ignore
|
|
@@ -35482,7 +35345,7 @@ function pickAttrs(props) {
|
|
|
35482
35345
|
aria: true
|
|
35483
35346
|
};
|
|
35484
35347
|
} else {
|
|
35485
|
-
mergedConfig =
|
|
35348
|
+
mergedConfig = _objectSpread2({}, ariaOnly);
|
|
35486
35349
|
}
|
|
35487
35350
|
|
|
35488
35351
|
var attrs = {};
|
|
@@ -35515,7 +35378,7 @@ var react_is = __webpack_require__(9864);
|
|
|
35515
35378
|
function fillRef(ref, node) {
|
|
35516
35379
|
if (typeof ref === 'function') {
|
|
35517
35380
|
ref(node);
|
|
35518
|
-
} else if (
|
|
35381
|
+
} else if (typeof_typeof(ref) === 'object' && ref && 'current' in ref) {
|
|
35519
35382
|
ref.current = node;
|
|
35520
35383
|
}
|
|
35521
35384
|
}
|
|
@@ -35625,7 +35488,7 @@ var transitionEndName = internalTransitionEndName || 'transitionend';
|
|
|
35625
35488
|
function getTransitionName(transitionName, transitionType) {
|
|
35626
35489
|
if (!transitionName) return null;
|
|
35627
35490
|
|
|
35628
|
-
if (
|
|
35491
|
+
if (typeof_typeof(transitionName) === 'object') {
|
|
35629
35492
|
var type = transitionType.replace(/-\w/g, function (match) {
|
|
35630
35493
|
return match[1].toUpperCase();
|
|
35631
35494
|
});
|
|
@@ -35918,13 +35781,13 @@ function useStatus(supportMotion, visible, getElement, _ref) {
|
|
|
35918
35781
|
|
|
35919
35782
|
switch (status) {
|
|
35920
35783
|
case 'appear':
|
|
35921
|
-
return _ref2 = {},
|
|
35784
|
+
return _ref2 = {}, _defineProperty(_ref2, STEP_PREPARE, onAppearPrepare), _defineProperty(_ref2, STEP_START, onAppearStart), _defineProperty(_ref2, STEP_ACTIVE, onAppearActive), _ref2;
|
|
35922
35785
|
|
|
35923
35786
|
case 'enter':
|
|
35924
|
-
return _ref3 = {},
|
|
35787
|
+
return _ref3 = {}, _defineProperty(_ref3, STEP_PREPARE, onEnterPrepare), _defineProperty(_ref3, STEP_START, onEnterStart), _defineProperty(_ref3, STEP_ACTIVE, onEnterActive), _ref3;
|
|
35925
35788
|
|
|
35926
35789
|
case 'leave':
|
|
35927
|
-
return _ref4 = {},
|
|
35790
|
+
return _ref4 = {}, _defineProperty(_ref4, STEP_PREPARE, onLeavePrepare), _defineProperty(_ref4, STEP_START, onLeaveStart), _defineProperty(_ref4, STEP_ACTIVE, onLeaveActive), _ref4;
|
|
35928
35791
|
|
|
35929
35792
|
default:
|
|
35930
35793
|
return {};
|
|
@@ -36032,7 +35895,7 @@ function useStatus(supportMotion, visible, getElement, _ref) {
|
|
|
36032
35895
|
var mergedStyle = style;
|
|
36033
35896
|
|
|
36034
35897
|
if (eventHandlers[STEP_PREPARE] && step === STEP_START) {
|
|
36035
|
-
mergedStyle =
|
|
35898
|
+
mergedStyle = _objectSpread2({
|
|
36036
35899
|
transition: 'none'
|
|
36037
35900
|
}, mergedStyle);
|
|
36038
35901
|
}
|
|
@@ -36047,17 +35910,17 @@ function useStatus(supportMotion, visible, getElement, _ref) {
|
|
|
36047
35910
|
|
|
36048
35911
|
|
|
36049
35912
|
var DomWrapper = /*#__PURE__*/function (_React$Component) {
|
|
36050
|
-
|
|
35913
|
+
_inherits(DomWrapper, _React$Component);
|
|
36051
35914
|
|
|
36052
|
-
var _super =
|
|
35915
|
+
var _super = _createSuper(DomWrapper);
|
|
36053
35916
|
|
|
36054
35917
|
function DomWrapper() {
|
|
36055
|
-
|
|
35918
|
+
_classCallCheck(this, DomWrapper);
|
|
36056
35919
|
|
|
36057
35920
|
return _super.apply(this, arguments);
|
|
36058
35921
|
}
|
|
36059
35922
|
|
|
36060
|
-
|
|
35923
|
+
_createClass(DomWrapper, [{
|
|
36061
35924
|
key: "render",
|
|
36062
35925
|
value: function render() {
|
|
36063
35926
|
return this.props.children;
|
|
@@ -36093,7 +35956,7 @@ var DomWrapper = /*#__PURE__*/function (_React$Component) {
|
|
|
36093
35956
|
function genCSSMotion(config) {
|
|
36094
35957
|
var transitionSupport = config;
|
|
36095
35958
|
|
|
36096
|
-
if (
|
|
35959
|
+
if (typeof_typeof(config) === 'object') {
|
|
36097
35960
|
transitionSupport = config.transitionSupport;
|
|
36098
35961
|
}
|
|
36099
35962
|
|
|
@@ -36151,7 +36014,7 @@ function genCSSMotion(config) {
|
|
|
36151
36014
|
|
|
36152
36015
|
var motionChildren;
|
|
36153
36016
|
|
|
36154
|
-
var mergedProps =
|
|
36017
|
+
var mergedProps = _objectSpread2(_objectSpread2({}, eventProps), {}, {
|
|
36155
36018
|
visible: visible
|
|
36156
36019
|
});
|
|
36157
36020
|
|
|
@@ -36161,13 +36024,13 @@ function genCSSMotion(config) {
|
|
|
36161
36024
|
} else if (status === STATUS_NONE || !isSupportTransition(props)) {
|
|
36162
36025
|
// Stable children
|
|
36163
36026
|
if (mergedVisible) {
|
|
36164
|
-
motionChildren = children(
|
|
36027
|
+
motionChildren = children(_objectSpread2({}, mergedProps), setNodeRef);
|
|
36165
36028
|
} else if (!removeOnLeave && renderedRef.current) {
|
|
36166
|
-
motionChildren = children(
|
|
36029
|
+
motionChildren = children(_objectSpread2(_objectSpread2({}, mergedProps), {}, {
|
|
36167
36030
|
className: leavedClassName
|
|
36168
36031
|
}), setNodeRef);
|
|
36169
36032
|
} else if (forceRender) {
|
|
36170
|
-
motionChildren = children(
|
|
36033
|
+
motionChildren = children(_objectSpread2(_objectSpread2({}, mergedProps), {}, {
|
|
36171
36034
|
style: {
|
|
36172
36035
|
display: 'none'
|
|
36173
36036
|
}
|
|
@@ -36189,8 +36052,8 @@ function genCSSMotion(config) {
|
|
|
36189
36052
|
statusSuffix = 'start';
|
|
36190
36053
|
}
|
|
36191
36054
|
|
|
36192
|
-
motionChildren = children(
|
|
36193
|
-
className: classnames_default()(getTransitionName(motionName, status), (_classNames = {},
|
|
36055
|
+
motionChildren = children(_objectSpread2(_objectSpread2({}, mergedProps), {}, {
|
|
36056
|
+
className: classnames_default()(getTransitionName(motionName, status), (_classNames = {}, _defineProperty(_classNames, getTransitionName(motionName, "".concat(status, "-").concat(statusSuffix)), statusSuffix), _defineProperty(_classNames, motionName, typeof motionName === 'string'), _classNames)),
|
|
36194
36057
|
style: statusStyle
|
|
36195
36058
|
}), setNodeRef);
|
|
36196
36059
|
}
|
|
@@ -36203,41 +36066,6 @@ function genCSSMotion(config) {
|
|
|
36203
36066
|
return CSSMotion;
|
|
36204
36067
|
}
|
|
36205
36068
|
/* harmony default export */ var es_CSSMotion = (genCSSMotion(supportTransition));
|
|
36206
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js
|
|
36207
|
-
function objectWithoutPropertiesLoose_objectWithoutPropertiesLoose(source, excluded) {
|
|
36208
|
-
if (source == null) return {};
|
|
36209
|
-
var target = {};
|
|
36210
|
-
var sourceKeys = Object.keys(source);
|
|
36211
|
-
var key, i;
|
|
36212
|
-
|
|
36213
|
-
for (i = 0; i < sourceKeys.length; i++) {
|
|
36214
|
-
key = sourceKeys[i];
|
|
36215
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
36216
|
-
target[key] = source[key];
|
|
36217
|
-
}
|
|
36218
|
-
|
|
36219
|
-
return target;
|
|
36220
|
-
}
|
|
36221
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js
|
|
36222
|
-
|
|
36223
|
-
function objectWithoutProperties_objectWithoutProperties(source, excluded) {
|
|
36224
|
-
if (source == null) return {};
|
|
36225
|
-
var target = objectWithoutPropertiesLoose_objectWithoutPropertiesLoose(source, excluded);
|
|
36226
|
-
var key, i;
|
|
36227
|
-
|
|
36228
|
-
if (Object.getOwnPropertySymbols) {
|
|
36229
|
-
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
36230
|
-
|
|
36231
|
-
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
|
36232
|
-
key = sourceSymbolKeys[i];
|
|
36233
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
36234
|
-
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
36235
|
-
target[key] = source[key];
|
|
36236
|
-
}
|
|
36237
|
-
}
|
|
36238
|
-
|
|
36239
|
-
return target;
|
|
36240
|
-
}
|
|
36241
36069
|
;// CONCATENATED MODULE: ./node_modules/rc-motion/es/util/diff.js
|
|
36242
36070
|
|
|
36243
36071
|
|
|
@@ -36248,7 +36076,7 @@ var STATUS_REMOVED = 'removed';
|
|
|
36248
36076
|
function wrapKeyToObject(key) {
|
|
36249
36077
|
var keyObj;
|
|
36250
36078
|
|
|
36251
|
-
if (key &&
|
|
36079
|
+
if (key && typeof_typeof(key) === 'object' && 'key' in key) {
|
|
36252
36080
|
keyObj = key;
|
|
36253
36081
|
} else {
|
|
36254
36082
|
keyObj = {
|
|
@@ -36256,7 +36084,7 @@ function wrapKeyToObject(key) {
|
|
|
36256
36084
|
};
|
|
36257
36085
|
}
|
|
36258
36086
|
|
|
36259
|
-
return
|
|
36087
|
+
return _objectSpread2(_objectSpread2({}, keyObj), {}, {
|
|
36260
36088
|
key: String(keyObj.key)
|
|
36261
36089
|
});
|
|
36262
36090
|
}
|
|
@@ -36283,14 +36111,14 @@ function diffKeys() {
|
|
|
36283
36111
|
// New added keys should add before current key
|
|
36284
36112
|
if (currentIndex < i) {
|
|
36285
36113
|
list = list.concat(currentKeyObjects.slice(currentIndex, i).map(function (obj) {
|
|
36286
|
-
return
|
|
36114
|
+
return _objectSpread2(_objectSpread2({}, obj), {}, {
|
|
36287
36115
|
status: STATUS_ADD
|
|
36288
36116
|
});
|
|
36289
36117
|
}));
|
|
36290
36118
|
currentIndex = i;
|
|
36291
36119
|
}
|
|
36292
36120
|
|
|
36293
|
-
list.push(
|
|
36121
|
+
list.push(_objectSpread2(_objectSpread2({}, currentKeyObj), {}, {
|
|
36294
36122
|
status: STATUS_KEEP
|
|
36295
36123
|
}));
|
|
36296
36124
|
currentIndex += 1;
|
|
@@ -36301,7 +36129,7 @@ function diffKeys() {
|
|
|
36301
36129
|
|
|
36302
36130
|
|
|
36303
36131
|
if (!hit) {
|
|
36304
|
-
list.push(
|
|
36132
|
+
list.push(_objectSpread2(_objectSpread2({}, keyObj), {}, {
|
|
36305
36133
|
status: STATUS_REMOVE
|
|
36306
36134
|
}));
|
|
36307
36135
|
}
|
|
@@ -36309,7 +36137,7 @@ function diffKeys() {
|
|
|
36309
36137
|
|
|
36310
36138
|
if (currentIndex < currentLen) {
|
|
36311
36139
|
list = list.concat(currentKeyObjects.slice(currentIndex).map(function (obj) {
|
|
36312
|
-
return
|
|
36140
|
+
return _objectSpread2(_objectSpread2({}, obj), {}, {
|
|
36313
36141
|
status: STATUS_ADD
|
|
36314
36142
|
});
|
|
36315
36143
|
}));
|
|
@@ -36370,14 +36198,14 @@ function genCSSMotionList(transitionSupport) {
|
|
|
36370
36198
|
var CSSMotion = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : es_CSSMotion;
|
|
36371
36199
|
|
|
36372
36200
|
var CSSMotionList = /*#__PURE__*/function (_React$Component) {
|
|
36373
|
-
|
|
36201
|
+
_inherits(CSSMotionList, _React$Component);
|
|
36374
36202
|
|
|
36375
|
-
var _super =
|
|
36203
|
+
var _super = _createSuper(CSSMotionList);
|
|
36376
36204
|
|
|
36377
36205
|
function CSSMotionList() {
|
|
36378
36206
|
var _this;
|
|
36379
36207
|
|
|
36380
|
-
|
|
36208
|
+
_classCallCheck(this, CSSMotionList);
|
|
36381
36209
|
|
|
36382
36210
|
_this = _super.apply(this, arguments);
|
|
36383
36211
|
_this.state = {
|
|
@@ -36390,7 +36218,7 @@ function genCSSMotionList(transitionSupport) {
|
|
|
36390
36218
|
return {
|
|
36391
36219
|
keyEntities: keyEntities.map(function (entity) {
|
|
36392
36220
|
if (entity.key !== removeKey) return entity;
|
|
36393
|
-
return
|
|
36221
|
+
return _objectSpread2(_objectSpread2({}, entity), {}, {
|
|
36394
36222
|
status: STATUS_REMOVED
|
|
36395
36223
|
});
|
|
36396
36224
|
})
|
|
@@ -36401,7 +36229,7 @@ function genCSSMotionList(transitionSupport) {
|
|
|
36401
36229
|
return _this;
|
|
36402
36230
|
}
|
|
36403
36231
|
|
|
36404
|
-
|
|
36232
|
+
_createClass(CSSMotionList, [{
|
|
36405
36233
|
key: "render",
|
|
36406
36234
|
value: function render() {
|
|
36407
36235
|
var _this2 = this;
|
|
@@ -36412,7 +36240,7 @@ function genCSSMotionList(transitionSupport) {
|
|
|
36412
36240
|
component = _this$props.component,
|
|
36413
36241
|
children = _this$props.children,
|
|
36414
36242
|
_onVisibleChanged = _this$props.onVisibleChanged,
|
|
36415
|
-
restProps =
|
|
36243
|
+
restProps = _objectWithoutProperties(_this$props, ["component", "children", "onVisibleChanged"]);
|
|
36416
36244
|
|
|
36417
36245
|
var Component = component || external_commonjs_react_commonjs2_react_root_React_namespaceObject.Fragment;
|
|
36418
36246
|
var motionProps = {};
|
|
@@ -36423,10 +36251,10 @@ function genCSSMotionList(transitionSupport) {
|
|
|
36423
36251
|
delete restProps.keys;
|
|
36424
36252
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Component, restProps, keyEntities.map(function (_ref2) {
|
|
36425
36253
|
var status = _ref2.status,
|
|
36426
|
-
eventProps =
|
|
36254
|
+
eventProps = _objectWithoutProperties(_ref2, ["status"]);
|
|
36427
36255
|
|
|
36428
36256
|
var visible = status === STATUS_ADD || status === STATUS_KEEP;
|
|
36429
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(CSSMotion,
|
|
36257
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(CSSMotion, extends_extends({}, motionProps, {
|
|
36430
36258
|
key: eventProps.key,
|
|
36431
36259
|
visible: visible,
|
|
36432
36260
|
eventProps: eventProps,
|
|
@@ -36500,8 +36328,8 @@ function Mask(props) {
|
|
|
36500
36328
|
}, function (_ref) {
|
|
36501
36329
|
var motionClassName = _ref.className,
|
|
36502
36330
|
motionStyle = _ref.style;
|
|
36503
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
36504
|
-
style:
|
|
36331
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", extends_extends({
|
|
36332
|
+
style: _objectSpread2(_objectSpread2({}, motionStyle), style),
|
|
36505
36333
|
className: classnames_default()("".concat(prefixCls, "-mask"), motionClassName)
|
|
36506
36334
|
}, maskProps));
|
|
36507
36335
|
});
|
|
@@ -36684,7 +36512,7 @@ var Content = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_na
|
|
|
36684
36512
|
|
|
36685
36513
|
var content = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", {
|
|
36686
36514
|
className: "".concat(prefixCls, "-content")
|
|
36687
|
-
}, closer, headerNode, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
36515
|
+
}, closer, headerNode, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", extends_extends({
|
|
36688
36516
|
className: "".concat(prefixCls, "-body"),
|
|
36689
36517
|
style: bodyStyle
|
|
36690
36518
|
}, bodyProps), children), footerNode);
|
|
@@ -36704,7 +36532,7 @@ var Content = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_na
|
|
|
36704
36532
|
key: "dialog-element",
|
|
36705
36533
|
role: "document",
|
|
36706
36534
|
ref: motionRef,
|
|
36707
|
-
style:
|
|
36535
|
+
style: _objectSpread2(_objectSpread2(_objectSpread2({}, motionStyle), style), contentStyle),
|
|
36708
36536
|
className: classnames_default()(prefixCls, className, motionClassName),
|
|
36709
36537
|
onMouseDown: onMouseDown,
|
|
36710
36538
|
onMouseUp: onMouseUp
|
|
@@ -36886,7 +36714,7 @@ function Dialog(props) {
|
|
|
36886
36714
|
return function () {};
|
|
36887
36715
|
}, [animatedVisible, scrollLocker]); // ========================= Render =========================
|
|
36888
36716
|
|
|
36889
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
36717
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", extends_extends({
|
|
36890
36718
|
className: "".concat(prefixCls, "-root")
|
|
36891
36719
|
}, pickAttrs(props, {
|
|
36892
36720
|
data: true
|
|
@@ -36894,11 +36722,11 @@ function Dialog(props) {
|
|
|
36894
36722
|
prefixCls: prefixCls,
|
|
36895
36723
|
visible: mask && visible,
|
|
36896
36724
|
motionName: getMotionName(prefixCls, maskTransitionName, maskAnimation),
|
|
36897
|
-
style:
|
|
36725
|
+
style: _objectSpread2({
|
|
36898
36726
|
zIndex: zIndex
|
|
36899
36727
|
}, maskStyle),
|
|
36900
36728
|
maskProps: maskProps
|
|
36901
|
-
}), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
36729
|
+
}), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", extends_extends({
|
|
36902
36730
|
tabIndex: -1,
|
|
36903
36731
|
onKeyDown: onWrapperKeyDown,
|
|
36904
36732
|
className: classnames_default()("".concat(prefixCls, "-wrap"), wrapClassName),
|
|
@@ -36906,12 +36734,12 @@ function Dialog(props) {
|
|
|
36906
36734
|
onClick: onWrapperClick,
|
|
36907
36735
|
role: "dialog",
|
|
36908
36736
|
"aria-labelledby": title ? ariaIdRef.current : null,
|
|
36909
|
-
style:
|
|
36737
|
+
style: _objectSpread2(_objectSpread2({
|
|
36910
36738
|
zIndex: zIndex
|
|
36911
36739
|
}, wrapStyle), {}, {
|
|
36912
36740
|
display: !animatedVisible ? 'none' : null
|
|
36913
36741
|
})
|
|
36914
|
-
}, wrapProps), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Dialog_Content,
|
|
36742
|
+
}, wrapProps), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Dialog_Content, extends_extends({}, props, {
|
|
36915
36743
|
onMouseDown: onContentMouseDown,
|
|
36916
36744
|
onMouseUp: onContentMouseUp,
|
|
36917
36745
|
ref: contentRef,
|
|
@@ -36959,7 +36787,7 @@ var DialogWrap = function DialogWrap(props) {
|
|
|
36959
36787
|
}, [visible]); // 渲染在当前 dom 里;
|
|
36960
36788
|
|
|
36961
36789
|
if (getContainer === false) {
|
|
36962
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Dialog,
|
|
36790
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Dialog, extends_extends({}, props, {
|
|
36963
36791
|
getOpenCount: function getOpenCount() {
|
|
36964
36792
|
return 2;
|
|
36965
36793
|
} // 不对 body 做任何操作。。
|
|
@@ -36977,7 +36805,7 @@ var DialogWrap = function DialogWrap(props) {
|
|
|
36977
36805
|
forceRender: forceRender,
|
|
36978
36806
|
getContainer: getContainer
|
|
36979
36807
|
}, function (childProps) {
|
|
36980
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Dialog,
|
|
36808
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Dialog, extends_extends({}, props, {
|
|
36981
36809
|
destroyOnClose: destroyOnClose,
|
|
36982
36810
|
afterClose: function afterClose() {
|
|
36983
36811
|
_afterClose === null || _afterClose === void 0 ? void 0 : _afterClose();
|
|
@@ -37012,8 +36840,8 @@ function getConfirmLocale() {
|
|
|
37012
36840
|
|
|
37013
36841
|
|
|
37014
36842
|
|
|
37015
|
-
var UnreachableException = /*#__PURE__*/
|
|
37016
|
-
|
|
36843
|
+
var UnreachableException = /*#__PURE__*/_createClass(function UnreachableException(value) {
|
|
36844
|
+
_classCallCheck(this, UnreachableException);
|
|
37017
36845
|
|
|
37018
36846
|
this.error = new Error("unreachable case: ".concat(JSON.stringify(value)));
|
|
37019
36847
|
});
|
|
@@ -37076,8 +36904,8 @@ var ButtonGroup = function ButtonGroup(props) {
|
|
|
37076
36904
|
console.warn(new UnreachableException(size).error);
|
|
37077
36905
|
}
|
|
37078
36906
|
|
|
37079
|
-
var classes = classnames_default()(prefixCls, (_classNames = {},
|
|
37080
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
36907
|
+
var classes = classnames_default()(prefixCls, (_classNames = {}, _defineProperty(_classNames, "".concat(prefixCls, "-").concat(sizeCls), sizeCls), _defineProperty(_classNames, "".concat(prefixCls, "-rtl"), direction === 'rtl'), _classNames), className);
|
|
36908
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", extends_extends({}, others, {
|
|
37081
36909
|
className: classes
|
|
37082
36910
|
}));
|
|
37083
36911
|
});
|
|
@@ -37148,14 +36976,14 @@ function isNotGrey(color) {
|
|
|
37148
36976
|
}
|
|
37149
36977
|
|
|
37150
36978
|
var Wave = /*#__PURE__*/function (_React$Component) {
|
|
37151
|
-
|
|
36979
|
+
_inherits(Wave, _React$Component);
|
|
37152
36980
|
|
|
37153
|
-
var _super =
|
|
36981
|
+
var _super = _createSuper(Wave);
|
|
37154
36982
|
|
|
37155
36983
|
function Wave() {
|
|
37156
36984
|
var _this;
|
|
37157
36985
|
|
|
37158
|
-
|
|
36986
|
+
_classCallCheck(this, Wave);
|
|
37159
36987
|
|
|
37160
36988
|
_this = _super.apply(this, arguments);
|
|
37161
36989
|
_this.containerRef = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createRef();
|
|
@@ -37175,7 +37003,7 @@ var Wave = /*#__PURE__*/function (_React$Component) {
|
|
|
37175
37003
|
|
|
37176
37004
|
_this.extraNode = document.createElement('div');
|
|
37177
37005
|
|
|
37178
|
-
var _assertThisInitialize =
|
|
37006
|
+
var _assertThisInitialize = _assertThisInitialized(_this),
|
|
37179
37007
|
extraNode = _assertThisInitialize.extraNode;
|
|
37180
37008
|
|
|
37181
37009
|
var getPrefixCls = _this.context.getPrefixCls;
|
|
@@ -37282,7 +37110,7 @@ var Wave = /*#__PURE__*/function (_React$Component) {
|
|
|
37282
37110
|
return _this;
|
|
37283
37111
|
}
|
|
37284
37112
|
|
|
37285
|
-
|
|
37113
|
+
_createClass(Wave, [{
|
|
37286
37114
|
key: "componentDidMount",
|
|
37287
37115
|
value: function componentDidMount() {
|
|
37288
37116
|
var node = this.containerRef.current;
|
|
@@ -37509,7 +37337,7 @@ function spaceChildren(children, needInserted) {
|
|
|
37509
37337
|
var isPrevChildPure = false;
|
|
37510
37338
|
var childList = [];
|
|
37511
37339
|
external_commonjs_react_commonjs2_react_root_React_namespaceObject.Children.forEach(children, function (child) {
|
|
37512
|
-
var type =
|
|
37340
|
+
var type = typeof_typeof(child);
|
|
37513
37341
|
|
|
37514
37342
|
var isCurrentChildPure = type === 'string' || type === 'number';
|
|
37515
37343
|
|
|
@@ -37609,7 +37437,7 @@ var InternalButton = function InternalButton(props, ref) {
|
|
|
37609
37437
|
}; // =============== Update Loading ===============
|
|
37610
37438
|
|
|
37611
37439
|
|
|
37612
|
-
var loadingOrDelay =
|
|
37440
|
+
var loadingOrDelay = typeof_typeof(loading) === 'object' && loading.delay ? loading.delay || true : !!loading;
|
|
37613
37441
|
external_commonjs_react_commonjs2_react_root_React_namespaceObject.useEffect(function () {
|
|
37614
37442
|
clearTimeout(delayTimeoutRef.current);
|
|
37615
37443
|
|
|
@@ -37649,7 +37477,7 @@ var InternalButton = function InternalButton(props, ref) {
|
|
|
37649
37477
|
var sizeFullname = customizeSize || size;
|
|
37650
37478
|
var sizeCls = sizeFullname ? sizeClassNameMap[sizeFullname] || '' : '';
|
|
37651
37479
|
var iconType = innerLoading ? 'loading' : icon;
|
|
37652
|
-
var classes = classnames_default()(prefixCls, (_classNames = {},
|
|
37480
|
+
var classes = classnames_default()(prefixCls, (_classNames = {}, _defineProperty(_classNames, "".concat(prefixCls, "-").concat(type), type), _defineProperty(_classNames, "".concat(prefixCls, "-").concat(shape), shape !== 'default' && shape), _defineProperty(_classNames, "".concat(prefixCls, "-").concat(sizeCls), sizeCls), _defineProperty(_classNames, "".concat(prefixCls, "-icon-only"), !children && children !== 0 && !!iconType), _defineProperty(_classNames, "".concat(prefixCls, "-background-ghost"), ghost && !isUnborderedButtonType(type)), _defineProperty(_classNames, "".concat(prefixCls, "-loading"), innerLoading), _defineProperty(_classNames, "".concat(prefixCls, "-two-chinese-chars"), hasTwoCNChar && autoInsertSpace), _defineProperty(_classNames, "".concat(prefixCls, "-block"), block), _defineProperty(_classNames, "".concat(prefixCls, "-dangerous"), !!danger), _defineProperty(_classNames, "".concat(prefixCls, "-rtl"), direction === 'rtl'), _classNames), className);
|
|
37653
37481
|
var iconNode;
|
|
37654
37482
|
|
|
37655
37483
|
if (typeof iconType === 'string' && iconType !== 'loading') {
|
|
@@ -37668,14 +37496,14 @@ var InternalButton = function InternalButton(props, ref) {
|
|
|
37668
37496
|
var linkButtonRestProps = omit(rest, ['navigate']);
|
|
37669
37497
|
|
|
37670
37498
|
if (linkButtonRestProps.href !== undefined) {
|
|
37671
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("a",
|
|
37499
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("a", extends_extends({}, linkButtonRestProps, {
|
|
37672
37500
|
className: classes,
|
|
37673
37501
|
onClick: handleClick,
|
|
37674
37502
|
ref: buttonRef
|
|
37675
37503
|
}), iconNode, kids);
|
|
37676
37504
|
}
|
|
37677
37505
|
|
|
37678
|
-
var buttonNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("button",
|
|
37506
|
+
var buttonNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("button", extends_extends({}, rest, {
|
|
37679
37507
|
type: htmlType,
|
|
37680
37508
|
className: classes,
|
|
37681
37509
|
onClick: handleClick,
|
|
@@ -37853,9 +37681,9 @@ var Modal = function Modal(props) {
|
|
|
37853
37681
|
okType = props.okType,
|
|
37854
37682
|
cancelText = props.cancelText,
|
|
37855
37683
|
confirmLoading = props.confirmLoading;
|
|
37856
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement((external_commonjs_react_commonjs2_react_root_React_default()).Fragment, null, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(es_button,
|
|
37684
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement((external_commonjs_react_commonjs2_react_root_React_default()).Fragment, null, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(es_button, extends_extends({
|
|
37857
37685
|
onClick: handleCancel
|
|
37858
|
-
}, props.cancelButtonProps), cancelText || locale.cancelText), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(es_button,
|
|
37686
|
+
}, props.cancelButtonProps), cancelText || locale.cancelText), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(es_button, extends_extends({}, convertLegacyProps(okType), {
|
|
37859
37687
|
loading: confirmLoading,
|
|
37860
37688
|
onClick: handleOk
|
|
37861
37689
|
}, props.okButtonProps), okText || locale.okText));
|
|
@@ -37890,8 +37718,8 @@ var Modal = function Modal(props) {
|
|
|
37890
37718
|
type: "close",
|
|
37891
37719
|
className: "".concat(prefixCls, "-close-icon")
|
|
37892
37720
|
}));
|
|
37893
|
-
var wrapClassNameExtended = classnames_default()(wrapClassName, (_classNames = {},
|
|
37894
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(rc_dialog_es,
|
|
37721
|
+
var wrapClassNameExtended = classnames_default()(wrapClassName, (_classNames = {}, _defineProperty(_classNames, "".concat(prefixCls, "-centered"), !!centered), _defineProperty(_classNames, "".concat(prefixCls, "-wrap-rtl"), direction === 'rtl'), _classNames));
|
|
37722
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(rc_dialog_es, extends_extends({}, restProps, {
|
|
37895
37723
|
getContainer: getContainer === undefined ? getContextPopupContainer : getContainer,
|
|
37896
37724
|
prefixCls: prefixCls,
|
|
37897
37725
|
wrapClassName: wrapClassNameExtended,
|
|
@@ -38017,7 +37845,7 @@ var ActionButton = function ActionButton(props) {
|
|
|
38017
37845
|
children = props.children,
|
|
38018
37846
|
prefixCls = props.prefixCls,
|
|
38019
37847
|
buttonProps = props.buttonProps;
|
|
38020
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_button,
|
|
37848
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_button, extends_extends({}, convertLegacyProps(type), {
|
|
38021
37849
|
onClick: onClick,
|
|
38022
37850
|
loading: loading,
|
|
38023
37851
|
prefixCls: prefixCls
|
|
@@ -39534,7 +39362,7 @@ function get(entity, path) {
|
|
|
39534
39362
|
|
|
39535
39363
|
|
|
39536
39364
|
function _toArray(arr) {
|
|
39537
|
-
return arrayWithHoles_arrayWithHoles(arr) ||
|
|
39365
|
+
return arrayWithHoles_arrayWithHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || nonIterableRest_nonIterableRest();
|
|
39538
39366
|
}
|
|
39539
39367
|
;// CONCATENATED MODULE: ./node_modules/rc-util/es/utils/set.js
|
|
39540
39368
|
|
|
@@ -39556,9 +39384,9 @@ function internalSet(entity, paths, value, removeIfUndefined) {
|
|
|
39556
39384
|
if (!entity && typeof path === 'number') {
|
|
39557
39385
|
clone = [];
|
|
39558
39386
|
} else if (Array.isArray(entity)) {
|
|
39559
|
-
clone =
|
|
39387
|
+
clone = _toConsumableArray(entity);
|
|
39560
39388
|
} else {
|
|
39561
|
-
clone =
|
|
39389
|
+
clone = _objectSpread2({}, entity);
|
|
39562
39390
|
} // Delete prop if `removeIfUndefined` and value is undefined
|
|
39563
39391
|
|
|
39564
39392
|
|
|
@@ -39622,7 +39450,7 @@ function containsNamePath(namePathList, namePath) {
|
|
|
39622
39450
|
}
|
|
39623
39451
|
|
|
39624
39452
|
function isObject(obj) {
|
|
39625
|
-
return
|
|
39453
|
+
return typeof_typeof(obj) === 'object' && obj !== null && Object.getPrototypeOf(obj) === Object.prototype;
|
|
39626
39454
|
}
|
|
39627
39455
|
/**
|
|
39628
39456
|
* Copy values into store and return a new values object
|
|
@@ -39631,7 +39459,7 @@ function isObject(obj) {
|
|
|
39631
39459
|
|
|
39632
39460
|
|
|
39633
39461
|
function internalSetValues(store, values) {
|
|
39634
|
-
var newStore = Array.isArray(store) ?
|
|
39462
|
+
var newStore = Array.isArray(store) ? _toConsumableArray(store) : _objectSpread2({}, store);
|
|
39635
39463
|
|
|
39636
39464
|
if (!values) {
|
|
39637
39465
|
return newStore;
|
|
@@ -39674,14 +39502,14 @@ function isSimilar(source, target) {
|
|
|
39674
39502
|
return false;
|
|
39675
39503
|
}
|
|
39676
39504
|
|
|
39677
|
-
if (!source || !target ||
|
|
39505
|
+
if (!source || !target || typeof_typeof(source) !== 'object' || typeof_typeof(target) !== 'object') {
|
|
39678
39506
|
return false;
|
|
39679
39507
|
}
|
|
39680
39508
|
|
|
39681
39509
|
var sourceKeys = Object.keys(source);
|
|
39682
39510
|
var targetKeys = Object.keys(target);
|
|
39683
|
-
var keys = new Set([].concat(
|
|
39684
|
-
return
|
|
39511
|
+
var keys = new Set([].concat(_toConsumableArray(sourceKeys), _toConsumableArray(targetKeys)));
|
|
39512
|
+
return _toConsumableArray(keys).every(function (key) {
|
|
39685
39513
|
var sourceValue = source[key];
|
|
39686
39514
|
var targetValue = target[key];
|
|
39687
39515
|
|
|
@@ -39724,12 +39552,12 @@ function valueUtil_move(array, moveIndex, toIndex) {
|
|
|
39724
39552
|
|
|
39725
39553
|
if (diff > 0) {
|
|
39726
39554
|
// move left
|
|
39727
|
-
return [].concat(
|
|
39555
|
+
return [].concat(_toConsumableArray(array.slice(0, toIndex)), [item], _toConsumableArray(array.slice(toIndex, moveIndex)), _toConsumableArray(array.slice(moveIndex + 1, length)));
|
|
39728
39556
|
}
|
|
39729
39557
|
|
|
39730
39558
|
if (diff < 0) {
|
|
39731
39559
|
// move right
|
|
39732
|
-
return [].concat(
|
|
39560
|
+
return [].concat(_toConsumableArray(array.slice(0, moveIndex)), _toConsumableArray(array.slice(moveIndex + 1, toIndex + 1)), [item], _toConsumableArray(array.slice(toIndex + 1, length)));
|
|
39733
39561
|
}
|
|
39734
39562
|
|
|
39735
39563
|
return array;
|
|
@@ -39769,13 +39597,13 @@ function validateRule(_x, _x2, _x3, _x4, _x5) {
|
|
|
39769
39597
|
|
|
39770
39598
|
|
|
39771
39599
|
function _validateRule() {
|
|
39772
|
-
_validateRule = asyncToGenerator_asyncToGenerator( /*#__PURE__*/
|
|
39600
|
+
_validateRule = asyncToGenerator_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee2(name, value, rule, options, messageVariables) {
|
|
39773
39601
|
var cloneRule, subRuleField, validator, messages, result, subResults, kv, fillVariableResult;
|
|
39774
|
-
return
|
|
39602
|
+
return regenerator_default().wrap(function _callee2$(_context2) {
|
|
39775
39603
|
while (1) {
|
|
39776
39604
|
switch (_context2.prev = _context2.next) {
|
|
39777
39605
|
case 0:
|
|
39778
|
-
cloneRule =
|
|
39606
|
+
cloneRule = _objectSpread2({}, rule); // Bug of `async-validator`
|
|
39779
39607
|
// https://github.com/react-component/field-form/issues/316
|
|
39780
39608
|
// https://github.com/react-component/field-form/issues/313
|
|
39781
39609
|
|
|
@@ -39788,13 +39616,13 @@ function _validateRule() {
|
|
|
39788
39616
|
delete cloneRule.defaultField;
|
|
39789
39617
|
}
|
|
39790
39618
|
|
|
39791
|
-
validator = new AsyncValidator(
|
|
39619
|
+
validator = new AsyncValidator(_defineProperty({}, name, [cloneRule]));
|
|
39792
39620
|
messages = setValues({}, defaultValidateMessages, options.validateMessages);
|
|
39793
39621
|
validator.messages(messages);
|
|
39794
39622
|
result = [];
|
|
39795
39623
|
_context2.prev = 8;
|
|
39796
39624
|
_context2.next = 11;
|
|
39797
|
-
return Promise.resolve(validator.validate(
|
|
39625
|
+
return Promise.resolve(validator.validate(_defineProperty({}, name, value), _objectSpread2({}, options)));
|
|
39798
39626
|
|
|
39799
39627
|
case 11:
|
|
39800
39628
|
_context2.next = 16;
|
|
@@ -39834,12 +39662,12 @@ function _validateRule() {
|
|
|
39834
39662
|
case 19:
|
|
39835
39663
|
subResults = _context2.sent;
|
|
39836
39664
|
return _context2.abrupt("return", subResults.reduce(function (prev, errors) {
|
|
39837
|
-
return [].concat(
|
|
39665
|
+
return [].concat(_toConsumableArray(prev), _toConsumableArray(errors));
|
|
39838
39666
|
}, []));
|
|
39839
39667
|
|
|
39840
39668
|
case 21:
|
|
39841
39669
|
// Replace message with variables
|
|
39842
|
-
kv =
|
|
39670
|
+
kv = _objectSpread2(_objectSpread2({}, rule), {}, {
|
|
39843
39671
|
name: name,
|
|
39844
39672
|
enum: (rule.enum || []).join(', ')
|
|
39845
39673
|
}, messageVariables);
|
|
@@ -39868,7 +39696,7 @@ function validateRules(namePath, value, rules, options, validateFirst, messageVa
|
|
|
39868
39696
|
var filledRules = rules.map(function (currentRule, ruleIndex) {
|
|
39869
39697
|
var originValidatorFunc = currentRule.validator;
|
|
39870
39698
|
|
|
39871
|
-
var cloneRule =
|
|
39699
|
+
var cloneRule = _objectSpread2(_objectSpread2({}, currentRule), {}, {
|
|
39872
39700
|
ruleIndex: ruleIndex
|
|
39873
39701
|
}); // Replace validator if needed
|
|
39874
39702
|
|
|
@@ -39936,9 +39764,9 @@ function validateRules(namePath, value, rules, options, validateFirst, messageVa
|
|
|
39936
39764
|
if (validateFirst === true) {
|
|
39937
39765
|
// >>>>> Validate by serialization
|
|
39938
39766
|
summaryPromise = new Promise( /*#__PURE__*/function () {
|
|
39939
|
-
var _ref3 = asyncToGenerator_asyncToGenerator( /*#__PURE__*/
|
|
39767
|
+
var _ref3 = asyncToGenerator_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee(resolve, reject) {
|
|
39940
39768
|
var i, rule, errors;
|
|
39941
|
-
return
|
|
39769
|
+
return regenerator_default().wrap(function _callee$(_context) {
|
|
39942
39770
|
while (1) {
|
|
39943
39771
|
switch (_context.prev = _context.next) {
|
|
39944
39772
|
case 0:
|
|
@@ -40017,15 +39845,15 @@ function finishOnAllFailed(_x8) {
|
|
|
40017
39845
|
}
|
|
40018
39846
|
|
|
40019
39847
|
function _finishOnAllFailed() {
|
|
40020
|
-
_finishOnAllFailed = asyncToGenerator_asyncToGenerator( /*#__PURE__*/
|
|
40021
|
-
return
|
|
39848
|
+
_finishOnAllFailed = asyncToGenerator_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee3(rulePromises) {
|
|
39849
|
+
return regenerator_default().wrap(function _callee3$(_context3) {
|
|
40022
39850
|
while (1) {
|
|
40023
39851
|
switch (_context3.prev = _context3.next) {
|
|
40024
39852
|
case 0:
|
|
40025
39853
|
return _context3.abrupt("return", Promise.all(rulePromises).then(function (errorsList) {
|
|
40026
39854
|
var _ref5;
|
|
40027
39855
|
|
|
40028
|
-
var errors = (_ref5 = []).concat.apply(_ref5,
|
|
39856
|
+
var errors = (_ref5 = []).concat.apply(_ref5, _toConsumableArray(errorsList));
|
|
40029
39857
|
|
|
40030
39858
|
return errors;
|
|
40031
39859
|
}));
|
|
@@ -40045,9 +39873,9 @@ function finishOnFirstFailed(_x9) {
|
|
|
40045
39873
|
}
|
|
40046
39874
|
|
|
40047
39875
|
function _finishOnFirstFailed() {
|
|
40048
|
-
_finishOnFirstFailed = asyncToGenerator_asyncToGenerator( /*#__PURE__*/
|
|
39876
|
+
_finishOnFirstFailed = asyncToGenerator_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee4(rulePromises) {
|
|
40049
39877
|
var count;
|
|
40050
|
-
return
|
|
39878
|
+
return regenerator_default().wrap(function _callee4$(_context4) {
|
|
40051
39879
|
while (1) {
|
|
40052
39880
|
switch (_context4.prev = _context4.next) {
|
|
40053
39881
|
case 0:
|
|
@@ -40110,9 +39938,9 @@ function requireUpdate(shouldUpdate, prev, next, prevValue, nextValue, info) {
|
|
|
40110
39938
|
|
|
40111
39939
|
|
|
40112
39940
|
var Field = /*#__PURE__*/function (_React$Component) {
|
|
40113
|
-
|
|
39941
|
+
_inherits(Field, _React$Component);
|
|
40114
39942
|
|
|
40115
|
-
var _super =
|
|
39943
|
+
var _super = _createSuper(Field);
|
|
40116
39944
|
|
|
40117
39945
|
/**
|
|
40118
39946
|
* Follow state should not management in State since it will async update by React.
|
|
@@ -40128,7 +39956,7 @@ var Field = /*#__PURE__*/function (_React$Component) {
|
|
|
40128
39956
|
function Field(props) {
|
|
40129
39957
|
var _this;
|
|
40130
39958
|
|
|
40131
|
-
|
|
39959
|
+
_classCallCheck(this, Field);
|
|
40132
39960
|
|
|
40133
39961
|
_this = _super.call(this, props); // Register on init
|
|
40134
39962
|
|
|
@@ -40163,7 +39991,7 @@ var Field = /*#__PURE__*/function (_React$Component) {
|
|
|
40163
39991
|
fieldContext = _this$props2.fieldContext;
|
|
40164
39992
|
var _fieldContext$prefixN = fieldContext.prefixName,
|
|
40165
39993
|
prefixName = _fieldContext$prefixN === void 0 ? [] : _fieldContext$prefixN;
|
|
40166
|
-
return name !== undefined ? [].concat(
|
|
39994
|
+
return name !== undefined ? [].concat(_toConsumableArray(prefixName), _toConsumableArray(name)) : [];
|
|
40167
39995
|
};
|
|
40168
39996
|
|
|
40169
39997
|
_this.getRules = function () {
|
|
@@ -40196,7 +40024,7 @@ var Field = /*#__PURE__*/function (_React$Component) {
|
|
|
40196
40024
|
|
|
40197
40025
|
_this.triggerMetaEvent = function (destroy) {
|
|
40198
40026
|
var onMetaChange = _this.props.onMetaChange;
|
|
40199
|
-
onMetaChange === null || onMetaChange === void 0 ? void 0 : onMetaChange(
|
|
40027
|
+
onMetaChange === null || onMetaChange === void 0 ? void 0 : onMetaChange(_objectSpread2(_objectSpread2({}, _this.getMeta()), {}, {
|
|
40200
40028
|
destroy: destroy
|
|
40201
40029
|
}));
|
|
40202
40030
|
};
|
|
@@ -40385,9 +40213,9 @@ var Field = /*#__PURE__*/function (_React$Component) {
|
|
|
40385
40213
|
errors = _ref3$errors === void 0 ? EMPTY_ERRORS : _ref3$errors;
|
|
40386
40214
|
|
|
40387
40215
|
if (warningOnly) {
|
|
40388
|
-
nextWarnings.push.apply(nextWarnings,
|
|
40216
|
+
nextWarnings.push.apply(nextWarnings, _toConsumableArray(errors));
|
|
40389
40217
|
} else {
|
|
40390
|
-
nextErrors.push.apply(nextErrors,
|
|
40218
|
+
nextErrors.push.apply(nextErrors, _toConsumableArray(errors));
|
|
40391
40219
|
}
|
|
40392
40220
|
});
|
|
40393
40221
|
_this.errors = nextErrors;
|
|
@@ -40478,7 +40306,7 @@ var Field = /*#__PURE__*/function (_React$Component) {
|
|
|
40478
40306
|
if (typeof children === 'function') {
|
|
40479
40307
|
var meta = _this.getMeta();
|
|
40480
40308
|
|
|
40481
|
-
return
|
|
40309
|
+
return _objectSpread2(_objectSpread2({}, _this.getOnlyChild(children(_this.getControlled(), meta, _this.props.fieldContext))), {}, {
|
|
40482
40310
|
isFunction: true
|
|
40483
40311
|
});
|
|
40484
40312
|
} // Filed element only
|
|
@@ -40530,13 +40358,13 @@ var Field = /*#__PURE__*/function (_React$Component) {
|
|
|
40530
40358
|
var value = _this.getValue();
|
|
40531
40359
|
|
|
40532
40360
|
var mergedGetValueProps = getValueProps || function (val) {
|
|
40533
|
-
return
|
|
40361
|
+
return _defineProperty({}, valuePropName, val);
|
|
40534
40362
|
}; // eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
40535
40363
|
|
|
40536
40364
|
|
|
40537
40365
|
var originTriggerFunc = childProps[trigger];
|
|
40538
40366
|
|
|
40539
|
-
var control =
|
|
40367
|
+
var control = _objectSpread2(_objectSpread2({}, childProps), mergedGetValueProps(value)); // Add trigger
|
|
40540
40368
|
|
|
40541
40369
|
|
|
40542
40370
|
control[trigger] = function () {
|
|
@@ -40607,13 +40435,13 @@ var Field = /*#__PURE__*/function (_React$Component) {
|
|
|
40607
40435
|
var _getInternalHooks2 = getInternalHooks(HOOK_MARK),
|
|
40608
40436
|
initEntityValue = _getInternalHooks2.initEntityValue;
|
|
40609
40437
|
|
|
40610
|
-
initEntityValue(
|
|
40438
|
+
initEntityValue(_assertThisInitialized(_this));
|
|
40611
40439
|
}
|
|
40612
40440
|
|
|
40613
40441
|
return _this;
|
|
40614
40442
|
}
|
|
40615
40443
|
|
|
40616
|
-
|
|
40444
|
+
_createClass(Field, [{
|
|
40617
40445
|
key: "componentDidMount",
|
|
40618
40446
|
value: function componentDidMount() {
|
|
40619
40447
|
var _this$props7 = this.props,
|
|
@@ -40687,7 +40515,7 @@ Field.defaultProps = {
|
|
|
40687
40515
|
|
|
40688
40516
|
function WrapperField(_ref5) {
|
|
40689
40517
|
var name = _ref5.name,
|
|
40690
|
-
restProps =
|
|
40518
|
+
restProps = _objectWithoutProperties(_ref5, Field_excluded);
|
|
40691
40519
|
|
|
40692
40520
|
var fieldContext = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useContext(FieldContext);
|
|
40693
40521
|
var namePath = name !== undefined ? getNamePath(name) : undefined;
|
|
@@ -40701,7 +40529,7 @@ function WrapperField(_ref5) {
|
|
|
40701
40529
|
|
|
40702
40530
|
if (false) {}
|
|
40703
40531
|
|
|
40704
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Field,
|
|
40532
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Field, extends_extends({
|
|
40705
40533
|
key: key,
|
|
40706
40534
|
name: namePath
|
|
40707
40535
|
}, restProps, {
|
|
@@ -40738,7 +40566,7 @@ var List = function List(_ref) {
|
|
|
40738
40566
|
}
|
|
40739
40567
|
|
|
40740
40568
|
var parentPrefixName = getNamePath(context.prefixName) || [];
|
|
40741
|
-
var prefixName = [].concat(
|
|
40569
|
+
var prefixName = [].concat(_toConsumableArray(parentPrefixName), _toConsumableArray(getNamePath(name)));
|
|
40742
40570
|
|
|
40743
40571
|
var shouldUpdate = function shouldUpdate(prevValue, nextValue, _ref2) {
|
|
40744
40572
|
var source = _ref2.source;
|
|
@@ -40751,7 +40579,7 @@ var List = function List(_ref) {
|
|
|
40751
40579
|
};
|
|
40752
40580
|
|
|
40753
40581
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(FieldContext.Provider, {
|
|
40754
|
-
value:
|
|
40582
|
+
value: _objectSpread2(_objectSpread2({}, context), {}, {
|
|
40755
40583
|
prefixName: prefixName
|
|
40756
40584
|
})
|
|
40757
40585
|
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Field, {
|
|
@@ -40782,13 +40610,13 @@ var List = function List(_ref) {
|
|
|
40782
40610
|
var newValue = getNewValue();
|
|
40783
40611
|
|
|
40784
40612
|
if (index >= 0 && index <= newValue.length) {
|
|
40785
|
-
keyManager.keys = [].concat(
|
|
40786
|
-
onChange([].concat(
|
|
40613
|
+
keyManager.keys = [].concat(_toConsumableArray(keyManager.keys.slice(0, index)), [keyManager.id], _toConsumableArray(keyManager.keys.slice(index)));
|
|
40614
|
+
onChange([].concat(_toConsumableArray(newValue.slice(0, index)), [defaultValue], _toConsumableArray(newValue.slice(index))));
|
|
40787
40615
|
} else {
|
|
40788
40616
|
if (false) {}
|
|
40789
40617
|
|
|
40790
|
-
keyManager.keys = [].concat(
|
|
40791
|
-
onChange([].concat(
|
|
40618
|
+
keyManager.keys = [].concat(_toConsumableArray(keyManager.keys), [keyManager.id]);
|
|
40619
|
+
onChange([].concat(_toConsumableArray(newValue), [defaultValue]));
|
|
40792
40620
|
}
|
|
40793
40621
|
|
|
40794
40622
|
keyManager.id += 1;
|
|
@@ -40897,7 +40725,7 @@ var SPLIT = '__@field_split__';
|
|
|
40897
40725
|
|
|
40898
40726
|
function normalize(namePath) {
|
|
40899
40727
|
return namePath.map(function (cell) {
|
|
40900
|
-
return "".concat(
|
|
40728
|
+
return "".concat(typeof_typeof(cell), ":").concat(cell);
|
|
40901
40729
|
}) // Magic split
|
|
40902
40730
|
.join(SPLIT);
|
|
40903
40731
|
}
|
|
@@ -40908,12 +40736,12 @@ function normalize(namePath) {
|
|
|
40908
40736
|
|
|
40909
40737
|
var NameMap = /*#__PURE__*/function () {
|
|
40910
40738
|
function NameMap() {
|
|
40911
|
-
|
|
40739
|
+
_classCallCheck(this, NameMap);
|
|
40912
40740
|
|
|
40913
40741
|
this.kvs = new Map();
|
|
40914
40742
|
}
|
|
40915
40743
|
|
|
40916
|
-
|
|
40744
|
+
_createClass(NameMap, [{
|
|
40917
40745
|
key: "set",
|
|
40918
40746
|
value: function set(key, value) {
|
|
40919
40747
|
this.kvs.set(normalize(key), value);
|
|
@@ -40944,7 +40772,7 @@ var NameMap = /*#__PURE__*/function () {
|
|
|
40944
40772
|
}, {
|
|
40945
40773
|
key: "map",
|
|
40946
40774
|
value: function map(callback) {
|
|
40947
|
-
return
|
|
40775
|
+
return _toConsumableArray(this.kvs.entries()).map(function (_ref) {
|
|
40948
40776
|
var _ref2 = slicedToArray_slicedToArray(_ref, 2),
|
|
40949
40777
|
key = _ref2[0],
|
|
40950
40778
|
value = _ref2[1];
|
|
@@ -40998,7 +40826,7 @@ var useForm_excluded = ["name", "errors"];
|
|
|
40998
40826
|
var FormStore = function FormStore(forceRootUpdate) {
|
|
40999
40827
|
var _this = this;
|
|
41000
40828
|
|
|
41001
|
-
|
|
40829
|
+
_classCallCheck(this, FormStore);
|
|
41002
40830
|
|
|
41003
40831
|
this.formHooked = false;
|
|
41004
40832
|
this.forceRootUpdate = void 0;
|
|
@@ -41258,7 +41086,7 @@ var FormStore = function FormStore(forceRootUpdate) {
|
|
|
41258
41086
|
return fieldNamePath[i] === nameUnit;
|
|
41259
41087
|
})) {
|
|
41260
41088
|
map.update(shortNamePath, function (list) {
|
|
41261
|
-
return [].concat(
|
|
41089
|
+
return [].concat(_toConsumableArray(list), [field]);
|
|
41262
41090
|
});
|
|
41263
41091
|
}
|
|
41264
41092
|
});
|
|
@@ -41349,7 +41177,7 @@ var FormStore = function FormStore(forceRootUpdate) {
|
|
|
41349
41177
|
|
|
41350
41178
|
|
|
41351
41179
|
if (!info.skipExist || originValue === undefined) {
|
|
41352
|
-
_this.store = setValue(_this.store, namePath,
|
|
41180
|
+
_this.store = setValue(_this.store, namePath, _toConsumableArray(records)[0].value);
|
|
41353
41181
|
}
|
|
41354
41182
|
}
|
|
41355
41183
|
}
|
|
@@ -41369,7 +41197,7 @@ var FormStore = function FormStore(forceRootUpdate) {
|
|
|
41369
41197
|
if (records) {
|
|
41370
41198
|
var _requiredFieldEntitie;
|
|
41371
41199
|
|
|
41372
|
-
(_requiredFieldEntitie = requiredFieldEntities).push.apply(_requiredFieldEntitie,
|
|
41200
|
+
(_requiredFieldEntitie = requiredFieldEntities).push.apply(_requiredFieldEntitie, _toConsumableArray(_toConsumableArray(records).map(function (r) {
|
|
41373
41201
|
return r.entity;
|
|
41374
41202
|
})));
|
|
41375
41203
|
}
|
|
@@ -41422,7 +41250,7 @@ var FormStore = function FormStore(forceRootUpdate) {
|
|
|
41422
41250
|
fields.forEach(function (fieldData) {
|
|
41423
41251
|
var name = fieldData.name,
|
|
41424
41252
|
errors = fieldData.errors,
|
|
41425
|
-
data =
|
|
41253
|
+
data = _objectWithoutProperties(fieldData, useForm_excluded);
|
|
41426
41254
|
|
|
41427
41255
|
var namePath = getNamePath(name); // Value
|
|
41428
41256
|
|
|
@@ -41444,7 +41272,7 @@ var FormStore = function FormStore(forceRootUpdate) {
|
|
|
41444
41272
|
var namePath = field.getNamePath();
|
|
41445
41273
|
var meta = field.getMeta();
|
|
41446
41274
|
|
|
41447
|
-
var fieldData =
|
|
41275
|
+
var fieldData = _objectSpread2(_objectSpread2({}, meta), {}, {
|
|
41448
41276
|
name: namePath,
|
|
41449
41277
|
value: _this.getFieldValue(namePath)
|
|
41450
41278
|
});
|
|
@@ -41543,7 +41371,7 @@ var FormStore = function FormStore(forceRootUpdate) {
|
|
|
41543
41371
|
|
|
41544
41372
|
this.notifyObservers = function (prevStore, namePathList, info) {
|
|
41545
41373
|
if (_this.subscribable) {
|
|
41546
|
-
var mergedInfo =
|
|
41374
|
+
var mergedInfo = _objectSpread2(_objectSpread2({}, info), {}, {
|
|
41547
41375
|
store: _this.getFieldsValue(true)
|
|
41548
41376
|
});
|
|
41549
41377
|
|
|
@@ -41576,7 +41404,7 @@ var FormStore = function FormStore(forceRootUpdate) {
|
|
|
41576
41404
|
|
|
41577
41405
|
_this.notifyObservers(prevStore, childrenFields, {
|
|
41578
41406
|
type: 'dependenciesUpdate',
|
|
41579
|
-
relatedFields: [namePath].concat(
|
|
41407
|
+
relatedFields: [namePath].concat(_toConsumableArray(childrenFields))
|
|
41580
41408
|
}); // trigger callback function
|
|
41581
41409
|
|
|
41582
41410
|
|
|
@@ -41587,7 +41415,7 @@ var FormStore = function FormStore(forceRootUpdate) {
|
|
|
41587
41415
|
onValuesChange(changedValues, _this.getFieldsValue());
|
|
41588
41416
|
}
|
|
41589
41417
|
|
|
41590
|
-
_this.triggerOnFieldsChange([namePath].concat(
|
|
41418
|
+
_this.triggerOnFieldsChange([namePath].concat(_toConsumableArray(childrenFields)));
|
|
41591
41419
|
};
|
|
41592
41420
|
|
|
41593
41421
|
this.setFieldsValue = function (store) {
|
|
@@ -41715,8 +41543,8 @@ var FormStore = function FormStore(forceRootUpdate) {
|
|
|
41715
41543
|
var fieldNamePath = field.getNamePath(); // Add field validate rule in to promise list
|
|
41716
41544
|
|
|
41717
41545
|
if (!provideNameList || containsNamePath(namePathList, fieldNamePath)) {
|
|
41718
|
-
var promise = field.validateRules(
|
|
41719
|
-
validateMessages:
|
|
41546
|
+
var promise = field.validateRules(_objectSpread2({
|
|
41547
|
+
validateMessages: _objectSpread2(_objectSpread2({}, defaultValidateMessages), _this.validateMessages)
|
|
41720
41548
|
}, options)); // Wrap promise with field
|
|
41721
41549
|
|
|
41722
41550
|
promiseList.push(promise.then(function () {
|
|
@@ -41733,9 +41561,9 @@ var FormStore = function FormStore(forceRootUpdate) {
|
|
|
41733
41561
|
errors = _ref5.errors;
|
|
41734
41562
|
|
|
41735
41563
|
if (warningOnly) {
|
|
41736
|
-
mergedWarnings.push.apply(mergedWarnings,
|
|
41564
|
+
mergedWarnings.push.apply(mergedWarnings, _toConsumableArray(errors));
|
|
41737
41565
|
} else {
|
|
41738
|
-
mergedErrors.push.apply(mergedErrors,
|
|
41566
|
+
mergedErrors.push.apply(mergedErrors, _toConsumableArray(errors));
|
|
41739
41567
|
}
|
|
41740
41568
|
});
|
|
41741
41569
|
|
|
@@ -41866,8 +41694,8 @@ var FormProvider = function FormProvider(_ref) {
|
|
|
41866
41694
|
var formContext = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useContext(FormContext);
|
|
41867
41695
|
var formsRef = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useRef({});
|
|
41868
41696
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(FormContext.Provider, {
|
|
41869
|
-
value:
|
|
41870
|
-
validateMessages:
|
|
41697
|
+
value: _objectSpread2(_objectSpread2({}, formContext), {}, {
|
|
41698
|
+
validateMessages: _objectSpread2(_objectSpread2({}, formContext.validateMessages), validateMessages),
|
|
41871
41699
|
// =========================================================
|
|
41872
41700
|
// = Global Form Control =
|
|
41873
41701
|
// =========================================================
|
|
@@ -41893,13 +41721,13 @@ var FormProvider = function FormProvider(_ref) {
|
|
|
41893
41721
|
},
|
|
41894
41722
|
registerForm: function registerForm(name, form) {
|
|
41895
41723
|
if (name) {
|
|
41896
|
-
formsRef.current =
|
|
41724
|
+
formsRef.current = _objectSpread2(_objectSpread2({}, formsRef.current), {}, _defineProperty({}, name, form));
|
|
41897
41725
|
}
|
|
41898
41726
|
|
|
41899
41727
|
formContext.registerForm(name, form);
|
|
41900
41728
|
},
|
|
41901
41729
|
unregisterForm: function unregisterForm(name) {
|
|
41902
|
-
var newForms =
|
|
41730
|
+
var newForms = _objectSpread2({}, formsRef.current);
|
|
41903
41731
|
|
|
41904
41732
|
delete newForms[name];
|
|
41905
41733
|
formsRef.current = newForms;
|
|
@@ -41939,7 +41767,7 @@ var Form = function Form(_ref, ref) {
|
|
|
41939
41767
|
_onFieldsChange = _ref.onFieldsChange,
|
|
41940
41768
|
_onFinish = _ref.onFinish,
|
|
41941
41769
|
onFinishFailed = _ref.onFinishFailed,
|
|
41942
|
-
restProps =
|
|
41770
|
+
restProps = _objectWithoutProperties(_ref, Form_excluded);
|
|
41943
41771
|
|
|
41944
41772
|
var formContext = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useContext(es_FormContext); // We customize handle event since Context will makes all the consumer re-render:
|
|
41945
41773
|
// https://reactjs.org/docs/context.html#contextprovider
|
|
@@ -41967,7 +41795,7 @@ var Form = function Form(_ref, ref) {
|
|
|
41967
41795
|
};
|
|
41968
41796
|
}, [formContext, formInstance, name]); // Pass props to store
|
|
41969
41797
|
|
|
41970
|
-
setValidateMessages(
|
|
41798
|
+
setValidateMessages(_objectSpread2(_objectSpread2({}, formContext.validateMessages), validateMessages));
|
|
41971
41799
|
setCallbacks({
|
|
41972
41800
|
onValuesChange: onValuesChange,
|
|
41973
41801
|
onFieldsChange: function onFieldsChange(changedFields) {
|
|
@@ -42020,7 +41848,7 @@ var Form = function Form(_ref, ref) {
|
|
|
42020
41848
|
prevFieldsRef.current = fields;
|
|
42021
41849
|
}, [fields, formInstance]);
|
|
42022
41850
|
var formContextValue = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useMemo(function () {
|
|
42023
|
-
return
|
|
41851
|
+
return _objectSpread2(_objectSpread2({}, formInstance), {}, {
|
|
42024
41852
|
validateTrigger: validateTrigger
|
|
42025
41853
|
});
|
|
42026
41854
|
}, [formInstance, validateTrigger]);
|
|
@@ -42032,7 +41860,7 @@ var Form = function Form(_ref, ref) {
|
|
|
42032
41860
|
return wrapperNode;
|
|
42033
41861
|
}
|
|
42034
41862
|
|
|
42035
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Component,
|
|
41863
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Component, extends_extends({}, restProps, {
|
|
42036
41864
|
onSubmit: function onSubmit(event) {
|
|
42037
41865
|
event.preventDefault();
|
|
42038
41866
|
event.stopPropagation();
|
|
@@ -42214,14 +42042,14 @@ LocaleProvider.defaultProps = {
|
|
|
42214
42042
|
|
|
42215
42043
|
|
|
42216
42044
|
var Notice = /*#__PURE__*/function (_Component) {
|
|
42217
|
-
|
|
42045
|
+
_inherits(Notice, _Component);
|
|
42218
42046
|
|
|
42219
|
-
var _super =
|
|
42047
|
+
var _super = _createSuper(Notice);
|
|
42220
42048
|
|
|
42221
42049
|
function Notice() {
|
|
42222
42050
|
var _this;
|
|
42223
42051
|
|
|
42224
|
-
|
|
42052
|
+
_classCallCheck(this, Notice);
|
|
42225
42053
|
|
|
42226
42054
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
42227
42055
|
args[_key] = arguments[_key];
|
|
@@ -42264,7 +42092,7 @@ var Notice = /*#__PURE__*/function (_Component) {
|
|
|
42264
42092
|
return _this;
|
|
42265
42093
|
}
|
|
42266
42094
|
|
|
42267
|
-
|
|
42095
|
+
_createClass(Notice, [{
|
|
42268
42096
|
key: "componentDidMount",
|
|
42269
42097
|
value: function componentDidMount() {
|
|
42270
42098
|
this.startCloseTimer();
|
|
@@ -42310,8 +42138,8 @@ var Notice = /*#__PURE__*/function (_Component) {
|
|
|
42310
42138
|
|
|
42311
42139
|
return acc;
|
|
42312
42140
|
}, {});
|
|
42313
|
-
var node = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
42314
|
-
className: classnames_default()(componentClass, className,
|
|
42141
|
+
var node = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", extends_extends({
|
|
42142
|
+
className: classnames_default()(componentClass, className, _defineProperty({}, "".concat(componentClass, "-closable"), closable)),
|
|
42315
42143
|
style: style,
|
|
42316
42144
|
onMouseEnter: this.clearCloseTimer,
|
|
42317
42145
|
onMouseLeave: this.startCloseTimer,
|
|
@@ -42342,52 +42170,6 @@ Notice.defaultProps = {
|
|
|
42342
42170
|
duration: 1.5
|
|
42343
42171
|
};
|
|
42344
42172
|
|
|
42345
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js
|
|
42346
|
-
function esm_arrayWithHoles_arrayWithHoles(arr) {
|
|
42347
|
-
if (Array.isArray(arr)) return arr;
|
|
42348
|
-
}
|
|
42349
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js
|
|
42350
|
-
function esm_iterableToArrayLimit_iterableToArrayLimit(arr, i) {
|
|
42351
|
-
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
42352
|
-
|
|
42353
|
-
if (_i == null) return;
|
|
42354
|
-
var _arr = [];
|
|
42355
|
-
var _n = true;
|
|
42356
|
-
var _d = false;
|
|
42357
|
-
|
|
42358
|
-
var _s, _e;
|
|
42359
|
-
|
|
42360
|
-
try {
|
|
42361
|
-
for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
|
|
42362
|
-
_arr.push(_s.value);
|
|
42363
|
-
|
|
42364
|
-
if (i && _arr.length === i) break;
|
|
42365
|
-
}
|
|
42366
|
-
} catch (err) {
|
|
42367
|
-
_d = true;
|
|
42368
|
-
_e = err;
|
|
42369
|
-
} finally {
|
|
42370
|
-
try {
|
|
42371
|
-
if (!_n && _i["return"] != null) _i["return"]();
|
|
42372
|
-
} finally {
|
|
42373
|
-
if (_d) throw _e;
|
|
42374
|
-
}
|
|
42375
|
-
}
|
|
42376
|
-
|
|
42377
|
-
return _arr;
|
|
42378
|
-
}
|
|
42379
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableRest.js
|
|
42380
|
-
function esm_nonIterableRest_nonIterableRest() {
|
|
42381
|
-
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
42382
|
-
}
|
|
42383
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js
|
|
42384
|
-
|
|
42385
|
-
|
|
42386
|
-
|
|
42387
|
-
|
|
42388
|
-
function esm_slicedToArray_slicedToArray(arr, i) {
|
|
42389
|
-
return esm_arrayWithHoles_arrayWithHoles(arr) || esm_iterableToArrayLimit_iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || esm_nonIterableRest_nonIterableRest();
|
|
42390
|
-
}
|
|
42391
42173
|
;// CONCATENATED MODULE: ./node_modules/rc-notification/es/useNotification.js
|
|
42392
42174
|
|
|
42393
42175
|
|
|
@@ -42398,7 +42180,7 @@ function useNotification_useNotification(notificationInstance) {
|
|
|
42398
42180
|
var createdRef = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useRef({});
|
|
42399
42181
|
|
|
42400
42182
|
var _React$useState = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState([]),
|
|
42401
|
-
_React$useState2 =
|
|
42183
|
+
_React$useState2 = slicedToArray_slicedToArray(_React$useState, 2),
|
|
42402
42184
|
elements = _React$useState2[0],
|
|
42403
42185
|
setElements = _React$useState2[1];
|
|
42404
42186
|
|
|
@@ -42459,14 +42241,14 @@ function getUuid() {
|
|
|
42459
42241
|
}
|
|
42460
42242
|
|
|
42461
42243
|
var Notification = /*#__PURE__*/function (_Component) {
|
|
42462
|
-
|
|
42244
|
+
_inherits(Notification, _Component);
|
|
42463
42245
|
|
|
42464
|
-
var _super =
|
|
42246
|
+
var _super = _createSuper(Notification);
|
|
42465
42247
|
|
|
42466
42248
|
function Notification() {
|
|
42467
42249
|
var _this;
|
|
42468
42250
|
|
|
42469
|
-
|
|
42251
|
+
_classCallCheck(this, Notification);
|
|
42470
42252
|
|
|
42471
42253
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
42472
42254
|
args[_key] = arguments[_key];
|
|
@@ -42481,7 +42263,7 @@ var Notification = /*#__PURE__*/function (_Component) {
|
|
|
42481
42263
|
_this.add = function (originNotice, holderCallback) {
|
|
42482
42264
|
var key = originNotice.key || getUuid();
|
|
42483
42265
|
|
|
42484
|
-
var notice =
|
|
42266
|
+
var notice = _objectSpread2(_objectSpread2({}, originNotice), {}, {
|
|
42485
42267
|
key: key
|
|
42486
42268
|
});
|
|
42487
42269
|
|
|
@@ -42548,7 +42330,7 @@ var Notification = /*#__PURE__*/function (_Component) {
|
|
|
42548
42330
|
return _this;
|
|
42549
42331
|
}
|
|
42550
42332
|
|
|
42551
|
-
|
|
42333
|
+
_createClass(Notification, [{
|
|
42552
42334
|
key: "getTransitionName",
|
|
42553
42335
|
value: function getTransitionName() {
|
|
42554
42336
|
var _this$props = this.props,
|
|
@@ -42581,7 +42363,7 @@ var Notification = /*#__PURE__*/function (_Component) {
|
|
|
42581
42363
|
var key = notice.key,
|
|
42582
42364
|
userPassKey = notice.userPassKey;
|
|
42583
42365
|
|
|
42584
|
-
var noticeProps =
|
|
42366
|
+
var noticeProps = _objectSpread2(_objectSpread2(_objectSpread2({
|
|
42585
42367
|
prefixCls: prefixCls,
|
|
42586
42368
|
closeIcon: closeIcon
|
|
42587
42369
|
}, notice), notice.props), {}, {
|
|
@@ -42632,7 +42414,7 @@ var Notification = /*#__PURE__*/function (_Component) {
|
|
|
42632
42414
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", {
|
|
42633
42415
|
key: key,
|
|
42634
42416
|
className: classnames_default()(motionClassName, "".concat(prefixCls, "-hook-holder")),
|
|
42635
|
-
style:
|
|
42417
|
+
style: _objectSpread2({}, motionStyle),
|
|
42636
42418
|
ref: function ref(div) {
|
|
42637
42419
|
if (typeof key === 'undefined') {
|
|
42638
42420
|
return;
|
|
@@ -42649,9 +42431,9 @@ var Notification = /*#__PURE__*/function (_Component) {
|
|
|
42649
42431
|
});
|
|
42650
42432
|
}
|
|
42651
42433
|
|
|
42652
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Notice,
|
|
42434
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Notice, extends_extends({}, noticeProps, {
|
|
42653
42435
|
className: classnames_default()(motionClassName, noticeProps === null || noticeProps === void 0 ? void 0 : noticeProps.className),
|
|
42654
|
-
style:
|
|
42436
|
+
style: _objectSpread2(_objectSpread2({}, motionStyle), noticeProps === null || noticeProps === void 0 ? void 0 : noticeProps.style),
|
|
42655
42437
|
visible: visible
|
|
42656
42438
|
}));
|
|
42657
42439
|
}));
|
|
@@ -42674,7 +42456,7 @@ Notification.defaultProps = {
|
|
|
42674
42456
|
Notification.newInstance = function newNotificationInstance(properties, callback) {
|
|
42675
42457
|
var _ref6 = properties || {},
|
|
42676
42458
|
getContainer = _ref6.getContainer,
|
|
42677
|
-
props =
|
|
42459
|
+
props = _objectWithoutProperties(_ref6, ["getContainer"]);
|
|
42678
42460
|
|
|
42679
42461
|
var div = document.createElement('div');
|
|
42680
42462
|
|
|
@@ -42718,7 +42500,7 @@ Notification.newInstance = function newNotificationInstance(properties, callback
|
|
|
42718
42500
|
|
|
42719
42501
|
if (false) {}
|
|
42720
42502
|
|
|
42721
|
-
external_commonjs_react_dom_commonjs2_react_dom_root_ReactDOM_default().render( /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Notification,
|
|
42503
|
+
external_commonjs_react_dom_commonjs2_react_dom_root_ReactDOM_default().render( /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Notification, extends_extends({}, props, {
|
|
42722
42504
|
ref: ref
|
|
42723
42505
|
})), div);
|
|
42724
42506
|
};
|
|
@@ -42748,7 +42530,7 @@ function createUseMessage(getRcNotificationInstance, getRCNoticeProps) {
|
|
|
42748
42530
|
};
|
|
42749
42531
|
|
|
42750
42532
|
var _useRCNotification = useNotification_useNotification(proxy),
|
|
42751
|
-
_useRCNotification2 =
|
|
42533
|
+
_useRCNotification2 = slicedToArray_slicedToArray(_useRCNotification, 2),
|
|
42752
42534
|
hookNotify = _useRCNotification2[0],
|
|
42753
42535
|
holder = _useRCNotification2[1];
|
|
42754
42536
|
|
|
@@ -43077,7 +42859,7 @@ function createUseNotification(getNotificationInstance, getRCNoticeProps) {
|
|
|
43077
42859
|
};
|
|
43078
42860
|
|
|
43079
42861
|
var _useRCNotification = useNotification_useNotification(proxy),
|
|
43080
|
-
_useRCNotification2 =
|
|
42862
|
+
_useRCNotification2 = slicedToArray_slicedToArray(_useRCNotification, 2),
|
|
43081
42863
|
hookNotify = _useRCNotification2[0],
|
|
43082
42864
|
holder = _useRCNotification2[1];
|
|
43083
42865
|
|
|
@@ -43704,7 +43486,7 @@ var ConfirmDialog = function ConfirmDialog(props) {
|
|
|
43704
43486
|
|
|
43705
43487
|
var maskClosable = props.maskClosable === undefined ? false : props.maskClosable;
|
|
43706
43488
|
var autoFocusButton = props.autoFocusButton === null ? false : props.autoFocusButton || 'ok';
|
|
43707
|
-
var classString = classnames_default()(contentPrefixCls, "".concat(contentPrefixCls, "-").concat(props.type),
|
|
43489
|
+
var classString = classnames_default()(contentPrefixCls, "".concat(contentPrefixCls, "-").concat(props.type), _defineProperty({}, "".concat(contentPrefixCls, "-rtl"), direction === 'rtl'), props.className);
|
|
43708
43490
|
var cancelButton = okCancel && /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(_util_ActionButton, {
|
|
43709
43491
|
actionFn: onCancel,
|
|
43710
43492
|
close: close,
|
|
@@ -43722,7 +43504,7 @@ var ConfirmDialog = function ConfirmDialog(props) {
|
|
|
43722
43504
|
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(modal_Modal, {
|
|
43723
43505
|
prefixCls: prefixCls,
|
|
43724
43506
|
className: classString,
|
|
43725
|
-
wrapClassName: classnames_default()(
|
|
43507
|
+
wrapClassName: classnames_default()(_defineProperty({}, "".concat(contentPrefixCls, "-centered"), !!props.centered)),
|
|
43726
43508
|
onCancel: function onCancel() {
|
|
43727
43509
|
return close({
|
|
43728
43510
|
triggerCancel: true
|
|
@@ -43806,7 +43588,7 @@ function getRootPrefixCls() {
|
|
|
43806
43588
|
function confirm_confirm(config) {
|
|
43807
43589
|
var container = document.createDocumentFragment(); // eslint-disable-next-line @typescript-eslint/no-use-before-define
|
|
43808
43590
|
|
|
43809
|
-
var currentConfig =
|
|
43591
|
+
var currentConfig = extends_extends(extends_extends({}, config), {
|
|
43810
43592
|
close: close,
|
|
43811
43593
|
visible: true
|
|
43812
43594
|
});
|
|
@@ -43859,7 +43641,7 @@ function confirm_confirm(config) {
|
|
|
43859
43641
|
var rootPrefixCls = getPrefixCls(undefined, getRootPrefixCls());
|
|
43860
43642
|
var prefixCls = customizePrefixCls || "".concat(rootPrefixCls, "-modal");
|
|
43861
43643
|
var iconPrefixCls = getIconPrefixCls();
|
|
43862
|
-
external_commonjs_react_dom_commonjs2_react_dom_root_ReactDOM_namespaceObject.render( /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(modal_ConfirmDialog,
|
|
43644
|
+
external_commonjs_react_dom_commonjs2_react_dom_root_ReactDOM_namespaceObject.render( /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(modal_ConfirmDialog, extends_extends({}, props, {
|
|
43863
43645
|
prefixCls: prefixCls,
|
|
43864
43646
|
rootPrefixCls: rootPrefixCls,
|
|
43865
43647
|
iconPrefixCls: iconPrefixCls,
|
|
@@ -43876,7 +43658,7 @@ function confirm_confirm(config) {
|
|
|
43876
43658
|
args[_key2] = arguments[_key2];
|
|
43877
43659
|
}
|
|
43878
43660
|
|
|
43879
|
-
currentConfig =
|
|
43661
|
+
currentConfig = extends_extends(extends_extends({}, currentConfig), {
|
|
43880
43662
|
visible: false,
|
|
43881
43663
|
afterClose: function afterClose() {
|
|
43882
43664
|
if (typeof config.afterClose === 'function') {
|
|
@@ -43893,7 +43675,7 @@ function confirm_confirm(config) {
|
|
|
43893
43675
|
if (typeof configUpdate === 'function') {
|
|
43894
43676
|
currentConfig = configUpdate(currentConfig);
|
|
43895
43677
|
} else {
|
|
43896
|
-
currentConfig =
|
|
43678
|
+
currentConfig = extends_extends(extends_extends({}, currentConfig), configUpdate);
|
|
43897
43679
|
}
|
|
43898
43680
|
|
|
43899
43681
|
render(currentConfig);
|
|
@@ -43907,7 +43689,7 @@ function confirm_confirm(config) {
|
|
|
43907
43689
|
};
|
|
43908
43690
|
}
|
|
43909
43691
|
function withWarn(props) {
|
|
43910
|
-
return
|
|
43692
|
+
return extends_extends(extends_extends({
|
|
43911
43693
|
icon: /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_icon, {
|
|
43912
43694
|
type: "exclamation-circle"
|
|
43913
43695
|
}),
|
|
@@ -43917,7 +43699,7 @@ function withWarn(props) {
|
|
|
43917
43699
|
});
|
|
43918
43700
|
}
|
|
43919
43701
|
function withInfo(props) {
|
|
43920
|
-
return
|
|
43702
|
+
return extends_extends(extends_extends({
|
|
43921
43703
|
icon: /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_icon, {
|
|
43922
43704
|
type: "exclamation-circle"
|
|
43923
43705
|
}),
|
|
@@ -43927,7 +43709,7 @@ function withInfo(props) {
|
|
|
43927
43709
|
});
|
|
43928
43710
|
}
|
|
43929
43711
|
function withSuccess(props) {
|
|
43930
|
-
return
|
|
43712
|
+
return extends_extends(extends_extends({
|
|
43931
43713
|
icon: /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_icon, {
|
|
43932
43714
|
type: "check-circle"
|
|
43933
43715
|
}),
|
|
@@ -43937,7 +43719,7 @@ function withSuccess(props) {
|
|
|
43937
43719
|
});
|
|
43938
43720
|
}
|
|
43939
43721
|
function withError(props) {
|
|
43940
|
-
return
|
|
43722
|
+
return extends_extends(extends_extends({
|
|
43941
43723
|
icon: /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_icon, {
|
|
43942
43724
|
type: "close-circle"
|
|
43943
43725
|
}),
|
|
@@ -43947,7 +43729,7 @@ function withError(props) {
|
|
|
43947
43729
|
});
|
|
43948
43730
|
}
|
|
43949
43731
|
function withConfirm(props) {
|
|
43950
|
-
return
|
|
43732
|
+
return extends_extends(extends_extends({
|
|
43951
43733
|
icon: /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_icon, {
|
|
43952
43734
|
type: "question-circle"
|
|
43953
43735
|
}),
|
|
@@ -43974,7 +43756,7 @@ function usePatchElement() {
|
|
|
43974
43756
|
var patchElement = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useCallback(function (element) {
|
|
43975
43757
|
// append a new element to elements (and create a new ref)
|
|
43976
43758
|
setElements(function (originElements) {
|
|
43977
|
-
return [].concat(
|
|
43759
|
+
return [].concat(_toConsumableArray(originElements), [element]);
|
|
43978
43760
|
}); // return a function that removes the new element out of elements (and create a new ref)
|
|
43979
43761
|
// it works a little like useEffect
|
|
43980
43762
|
|
|
@@ -44039,7 +43821,7 @@ var HookModal = function HookModal(_ref, ref) {
|
|
|
44039
43821
|
destroy: close,
|
|
44040
43822
|
update: function update(newConfig) {
|
|
44041
43823
|
setInnerConfig(function (originConfig) {
|
|
44042
|
-
return
|
|
43824
|
+
return extends_extends(extends_extends({}, originConfig), newConfig);
|
|
44043
43825
|
});
|
|
44044
43826
|
}
|
|
44045
43827
|
};
|
|
@@ -44048,7 +43830,7 @@ var HookModal = function HookModal(_ref, ref) {
|
|
|
44048
43830
|
componentName: "Modal",
|
|
44049
43831
|
defaultLocale: locale_default.Modal
|
|
44050
43832
|
}, function (modalLocale) {
|
|
44051
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(modal_ConfirmDialog,
|
|
43833
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(modal_ConfirmDialog, extends_extends({
|
|
44052
43834
|
prefixCls: prefixCls,
|
|
44053
43835
|
rootPrefixCls: rootPrefixCls
|
|
44054
43836
|
}, innerConfig, {
|
|
@@ -44095,7 +43877,7 @@ function useModal() {
|
|
|
44095
43877
|
|
|
44096
43878
|
external_commonjs_react_commonjs2_react_root_React_namespaceObject.useEffect(function () {
|
|
44097
43879
|
if (actionQueue.length) {
|
|
44098
|
-
var cloneQueue =
|
|
43880
|
+
var cloneQueue = _toConsumableArray(actionQueue);
|
|
44099
43881
|
|
|
44100
43882
|
cloneQueue.forEach(function (action) {
|
|
44101
43883
|
action();
|
|
@@ -44132,7 +43914,7 @@ function useModal() {
|
|
|
44132
43914
|
destroyAction();
|
|
44133
43915
|
} else {
|
|
44134
43916
|
setActionQueue(function (prev) {
|
|
44135
|
-
return [].concat(
|
|
43917
|
+
return [].concat(_toConsumableArray(prev), [destroyAction]);
|
|
44136
43918
|
});
|
|
44137
43919
|
}
|
|
44138
43920
|
},
|
|
@@ -44147,7 +43929,7 @@ function useModal() {
|
|
|
44147
43929
|
updateAction();
|
|
44148
43930
|
} else {
|
|
44149
43931
|
setActionQueue(function (prev) {
|
|
44150
|
-
return [].concat(
|
|
43932
|
+
return [].concat(_toConsumableArray(prev), [updateAction]);
|
|
44151
43933
|
});
|
|
44152
43934
|
}
|
|
44153
43935
|
}
|
|
@@ -44372,8 +44154,7 @@ var shouldfixedLoading = window.navigator.userAgent.indexOf('iPad') > -1 || wind
|
|
|
44372
44154
|
function LiveVideo(_ref) {
|
|
44373
44155
|
var _liveInfo$imInfo9, _liveInfo$imInfo9$par;
|
|
44374
44156
|
|
|
44375
|
-
var
|
|
44376
|
-
handleLogin = _ref.handleLogin,
|
|
44157
|
+
var handleLogin = _ref.handleLogin,
|
|
44377
44158
|
userInfo = _ref.userInfo,
|
|
44378
44159
|
liveInfo = _ref.liveInfo,
|
|
44379
44160
|
visitTime = _ref.visitTime,
|
|
@@ -44471,7 +44252,7 @@ function LiveVideo(_ref) {
|
|
|
44471
44252
|
onRequestFullScreen();
|
|
44472
44253
|
});
|
|
44473
44254
|
aliPlayer.on('liveStreamStop', function (err) {
|
|
44474
|
-
|
|
44255
|
+
setIsLiveException(true);
|
|
44475
44256
|
console.warn("liveStreamStop: isOnline ".concat(window.navigator.onLine));
|
|
44476
44257
|
console.error('liveStreamStop', err);
|
|
44477
44258
|
});
|
|
@@ -44507,7 +44288,6 @@ function LiveVideo(_ref) {
|
|
|
44507
44288
|
options: options,
|
|
44508
44289
|
onReady: handleVideoReady
|
|
44509
44290
|
}), supportM3u8 && /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(detail_LiveStatus, {
|
|
44510
|
-
isStreamLive: isStreamLive,
|
|
44511
44291
|
handleLogin: handleLogin,
|
|
44512
44292
|
userInfo: userInfo,
|
|
44513
44293
|
visitTime: visitTime,
|
|
@@ -44592,44 +44372,40 @@ var empty_style_update = injectStylesIntoStyleTag_default()(empty_style/* defaul
|
|
|
44592
44372
|
|
|
44593
44373
|
|
|
44594
44374
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/extends.js
|
|
44595
|
-
function
|
|
44596
|
-
|
|
44375
|
+
function esm_extends_extends() {
|
|
44376
|
+
esm_extends_extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
44597
44377
|
for (var i = 1; i < arguments.length; i++) {
|
|
44598
44378
|
var source = arguments[i];
|
|
44599
|
-
|
|
44600
44379
|
for (var key in source) {
|
|
44601
44380
|
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
44602
44381
|
target[key] = source[key];
|
|
44603
44382
|
}
|
|
44604
44383
|
}
|
|
44605
44384
|
}
|
|
44606
|
-
|
|
44607
44385
|
return target;
|
|
44608
44386
|
};
|
|
44609
|
-
return
|
|
44387
|
+
return esm_extends_extends.apply(this, arguments);
|
|
44610
44388
|
}
|
|
44611
44389
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/typeof.js
|
|
44612
|
-
function
|
|
44390
|
+
function esm_typeof_typeof(obj) {
|
|
44613
44391
|
"@babel/helpers - typeof";
|
|
44614
44392
|
|
|
44615
|
-
return
|
|
44393
|
+
return esm_typeof_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
|
|
44616
44394
|
return typeof obj;
|
|
44617
44395
|
} : function (obj) {
|
|
44618
44396
|
return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
44619
|
-
},
|
|
44397
|
+
}, esm_typeof_typeof(obj);
|
|
44620
44398
|
}
|
|
44621
44399
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/toPrimitive.js
|
|
44622
44400
|
|
|
44623
44401
|
function _toPrimitive(input, hint) {
|
|
44624
|
-
if (
|
|
44402
|
+
if (esm_typeof_typeof(input) !== "object" || input === null) return input;
|
|
44625
44403
|
var prim = input[Symbol.toPrimitive];
|
|
44626
|
-
|
|
44627
44404
|
if (prim !== undefined) {
|
|
44628
44405
|
var res = prim.call(input, hint || "default");
|
|
44629
|
-
if (
|
|
44406
|
+
if (esm_typeof_typeof(res) !== "object") return res;
|
|
44630
44407
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
44631
44408
|
}
|
|
44632
|
-
|
|
44633
44409
|
return (hint === "string" ? String : Number)(input);
|
|
44634
44410
|
}
|
|
44635
44411
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
|
|
@@ -44637,13 +44413,12 @@ function _toPrimitive(input, hint) {
|
|
|
44637
44413
|
|
|
44638
44414
|
function _toPropertyKey(arg) {
|
|
44639
44415
|
var key = _toPrimitive(arg, "string");
|
|
44640
|
-
return
|
|
44416
|
+
return esm_typeof_typeof(key) === "symbol" ? key : String(key);
|
|
44641
44417
|
}
|
|
44642
44418
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
|
44643
44419
|
|
|
44644
|
-
function
|
|
44420
|
+
function defineProperty_defineProperty(obj, key, value) {
|
|
44645
44421
|
key = _toPropertyKey(key);
|
|
44646
|
-
|
|
44647
44422
|
if (key in obj) {
|
|
44648
44423
|
Object.defineProperty(obj, key, {
|
|
44649
44424
|
value: value,
|
|
@@ -44654,61 +44429,51 @@ function esm_defineProperty_defineProperty(obj, key, value) {
|
|
|
44654
44429
|
} else {
|
|
44655
44430
|
obj[key] = value;
|
|
44656
44431
|
}
|
|
44657
|
-
|
|
44658
44432
|
return obj;
|
|
44659
44433
|
}
|
|
44660
44434
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/objectSpread2.js
|
|
44661
44435
|
|
|
44662
|
-
|
|
44663
|
-
function esm_objectSpread2_ownKeys(object, enumerableOnly) {
|
|
44436
|
+
function objectSpread2_ownKeys(object, enumerableOnly) {
|
|
44664
44437
|
var keys = Object.keys(object);
|
|
44665
|
-
|
|
44666
44438
|
if (Object.getOwnPropertySymbols) {
|
|
44667
44439
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
44668
44440
|
enumerableOnly && (symbols = symbols.filter(function (sym) {
|
|
44669
44441
|
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
44670
44442
|
})), keys.push.apply(keys, symbols);
|
|
44671
44443
|
}
|
|
44672
|
-
|
|
44673
44444
|
return keys;
|
|
44674
44445
|
}
|
|
44675
|
-
|
|
44676
|
-
function esm_objectSpread2_objectSpread2(target) {
|
|
44446
|
+
function objectSpread2_objectSpread2(target) {
|
|
44677
44447
|
for (var i = 1; i < arguments.length; i++) {
|
|
44678
44448
|
var source = null != arguments[i] ? arguments[i] : {};
|
|
44679
|
-
i % 2 ?
|
|
44680
|
-
|
|
44681
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) :
|
|
44449
|
+
i % 2 ? objectSpread2_ownKeys(Object(source), !0).forEach(function (key) {
|
|
44450
|
+
defineProperty_defineProperty(target, key, source[key]);
|
|
44451
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : objectSpread2_ownKeys(Object(source)).forEach(function (key) {
|
|
44682
44452
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
44683
44453
|
});
|
|
44684
44454
|
}
|
|
44685
|
-
|
|
44686
44455
|
return target;
|
|
44687
44456
|
}
|
|
44688
44457
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js
|
|
44689
|
-
function
|
|
44458
|
+
function esm_arrayWithHoles_arrayWithHoles(arr) {
|
|
44690
44459
|
if (Array.isArray(arr)) return arr;
|
|
44691
44460
|
}
|
|
44692
44461
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js
|
|
44693
|
-
function
|
|
44462
|
+
function esm_iterableToArrayLimit_iterableToArrayLimit(arr, i) {
|
|
44694
44463
|
var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"];
|
|
44695
|
-
|
|
44696
44464
|
if (null != _i) {
|
|
44697
44465
|
var _s,
|
|
44698
|
-
|
|
44699
|
-
|
|
44700
|
-
|
|
44701
|
-
|
|
44702
|
-
|
|
44703
|
-
|
|
44704
|
-
|
|
44466
|
+
_e,
|
|
44467
|
+
_x,
|
|
44468
|
+
_r,
|
|
44469
|
+
_arr = [],
|
|
44470
|
+
_n = !0,
|
|
44471
|
+
_d = !1;
|
|
44705
44472
|
try {
|
|
44706
44473
|
if (_x = (_i = _i.call(arr)).next, 0 === i) {
|
|
44707
44474
|
if (Object(_i) !== _i) return;
|
|
44708
44475
|
_n = !1;
|
|
44709
|
-
} else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0)
|
|
44710
|
-
;
|
|
44711
|
-
}
|
|
44476
|
+
} else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0);
|
|
44712
44477
|
} catch (err) {
|
|
44713
44478
|
_d = !0, _e = err;
|
|
44714
44479
|
} finally {
|
|
@@ -44718,32 +44483,27 @@ function helpers_esm_iterableToArrayLimit_iterableToArrayLimit(arr, i) {
|
|
|
44718
44483
|
if (_d) throw _e;
|
|
44719
44484
|
}
|
|
44720
44485
|
}
|
|
44721
|
-
|
|
44722
44486
|
return _arr;
|
|
44723
44487
|
}
|
|
44724
44488
|
}
|
|
44725
44489
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
|
|
44726
|
-
function
|
|
44490
|
+
function arrayLikeToArray_arrayLikeToArray(arr, len) {
|
|
44727
44491
|
if (len == null || len > arr.length) len = arr.length;
|
|
44728
|
-
|
|
44729
|
-
for (var i = 0, arr2 = new Array(len); i < len; i++) {
|
|
44730
|
-
arr2[i] = arr[i];
|
|
44731
|
-
}
|
|
44732
|
-
|
|
44492
|
+
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
44733
44493
|
return arr2;
|
|
44734
44494
|
}
|
|
44735
44495
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js
|
|
44736
44496
|
|
|
44737
|
-
function
|
|
44497
|
+
function unsupportedIterableToArray_unsupportedIterableToArray(o, minLen) {
|
|
44738
44498
|
if (!o) return;
|
|
44739
|
-
if (typeof o === "string") return
|
|
44499
|
+
if (typeof o === "string") return arrayLikeToArray_arrayLikeToArray(o, minLen);
|
|
44740
44500
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
44741
44501
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
44742
44502
|
if (n === "Map" || n === "Set") return Array.from(o);
|
|
44743
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return
|
|
44503
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray_arrayLikeToArray(o, minLen);
|
|
44744
44504
|
}
|
|
44745
44505
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/nonIterableRest.js
|
|
44746
|
-
function
|
|
44506
|
+
function esm_nonIterableRest_nonIterableRest() {
|
|
44747
44507
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
44748
44508
|
}
|
|
44749
44509
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/slicedToArray.js
|
|
@@ -44751,34 +44511,30 @@ function helpers_esm_nonIterableRest_nonIterableRest() {
|
|
|
44751
44511
|
|
|
44752
44512
|
|
|
44753
44513
|
|
|
44754
|
-
function
|
|
44755
|
-
return
|
|
44514
|
+
function esm_slicedToArray_slicedToArray(arr, i) {
|
|
44515
|
+
return esm_arrayWithHoles_arrayWithHoles(arr) || esm_iterableToArrayLimit_iterableToArrayLimit(arr, i) || unsupportedIterableToArray_unsupportedIterableToArray(arr, i) || esm_nonIterableRest_nonIterableRest();
|
|
44756
44516
|
}
|
|
44757
44517
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js
|
|
44758
|
-
function
|
|
44518
|
+
function objectWithoutPropertiesLoose_objectWithoutPropertiesLoose(source, excluded) {
|
|
44759
44519
|
if (source == null) return {};
|
|
44760
44520
|
var target = {};
|
|
44761
44521
|
var sourceKeys = Object.keys(source);
|
|
44762
44522
|
var key, i;
|
|
44763
|
-
|
|
44764
44523
|
for (i = 0; i < sourceKeys.length; i++) {
|
|
44765
44524
|
key = sourceKeys[i];
|
|
44766
44525
|
if (excluded.indexOf(key) >= 0) continue;
|
|
44767
44526
|
target[key] = source[key];
|
|
44768
44527
|
}
|
|
44769
|
-
|
|
44770
44528
|
return target;
|
|
44771
44529
|
}
|
|
44772
44530
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js
|
|
44773
44531
|
|
|
44774
|
-
function
|
|
44532
|
+
function objectWithoutProperties_objectWithoutProperties(source, excluded) {
|
|
44775
44533
|
if (source == null) return {};
|
|
44776
|
-
var target =
|
|
44534
|
+
var target = objectWithoutPropertiesLoose_objectWithoutPropertiesLoose(source, excluded);
|
|
44777
44535
|
var key, i;
|
|
44778
|
-
|
|
44779
44536
|
if (Object.getOwnPropertySymbols) {
|
|
44780
44537
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
44781
|
-
|
|
44782
44538
|
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
|
44783
44539
|
key = sourceSymbolKeys[i];
|
|
44784
44540
|
if (excluded.indexOf(key) >= 0) continue;
|
|
@@ -44786,7 +44542,6 @@ function esm_objectWithoutProperties_objectWithoutProperties(source, excluded) {
|
|
|
44786
44542
|
target[key] = source[key];
|
|
44787
44543
|
}
|
|
44788
44544
|
}
|
|
44789
|
-
|
|
44790
44545
|
return target;
|
|
44791
44546
|
}
|
|
44792
44547
|
;// CONCATENATED MODULE: ./node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js
|
|
@@ -45734,14 +45489,14 @@ var index = (function () {
|
|
|
45734
45489
|
var INTERNAL_PREFIX_KEY = 'rc-observer-key'; // Still need to be compatible with React 15, we use class component here
|
|
45735
45490
|
|
|
45736
45491
|
var ReactResizeObserver = /*#__PURE__*/function (_React$Component) {
|
|
45737
|
-
|
|
45492
|
+
_inherits(ReactResizeObserver, _React$Component);
|
|
45738
45493
|
|
|
45739
|
-
var _super =
|
|
45494
|
+
var _super = _createSuper(ReactResizeObserver);
|
|
45740
45495
|
|
|
45741
45496
|
function ReactResizeObserver() {
|
|
45742
45497
|
var _this;
|
|
45743
45498
|
|
|
45744
|
-
|
|
45499
|
+
_classCallCheck(this, ReactResizeObserver);
|
|
45745
45500
|
|
|
45746
45501
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
45747
45502
|
args[_key] = arguments[_key];
|
|
@@ -45792,7 +45547,7 @@ var ReactResizeObserver = /*#__PURE__*/function (_React$Component) {
|
|
|
45792
45547
|
var mergedOffsetHeight = offsetHeight === Math.round(height) ? height : offsetHeight; // defer the callback but not defer to next frame
|
|
45793
45548
|
|
|
45794
45549
|
Promise.resolve().then(function () {
|
|
45795
|
-
onResize(
|
|
45550
|
+
onResize(_objectSpread2(_objectSpread2({}, size), {}, {
|
|
45796
45551
|
offsetWidth: mergedOffsetWidth,
|
|
45797
45552
|
offsetHeight: mergedOffsetHeight
|
|
45798
45553
|
}), target);
|
|
@@ -45808,7 +45563,7 @@ var ReactResizeObserver = /*#__PURE__*/function (_React$Component) {
|
|
|
45808
45563
|
return _this;
|
|
45809
45564
|
}
|
|
45810
45565
|
|
|
45811
|
-
|
|
45566
|
+
_createClass(ReactResizeObserver, [{
|
|
45812
45567
|
key: "componentDidMount",
|
|
45813
45568
|
value: function componentDidMount() {
|
|
45814
45569
|
this.onComponentUpdated();
|
|
@@ -45922,7 +45677,7 @@ var Filler = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_nam
|
|
|
45922
45677
|
position: 'relative',
|
|
45923
45678
|
overflow: 'hidden'
|
|
45924
45679
|
};
|
|
45925
|
-
innerStyle =
|
|
45680
|
+
innerStyle = objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, innerStyle), {}, {
|
|
45926
45681
|
transform: "translateY(".concat(offset, "px)"),
|
|
45927
45682
|
position: 'absolute',
|
|
45928
45683
|
left: 0,
|
|
@@ -45939,24 +45694,23 @@ var Filler = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_nam
|
|
|
45939
45694
|
onInnerResize();
|
|
45940
45695
|
}
|
|
45941
45696
|
}
|
|
45942
|
-
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
45697
|
+
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", esm_extends_extends({
|
|
45943
45698
|
style: innerStyle,
|
|
45944
|
-
className: classnames_default()(
|
|
45699
|
+
className: classnames_default()(defineProperty_defineProperty({}, "".concat(prefixCls, "-holder-inner"), prefixCls)),
|
|
45945
45700
|
ref: ref
|
|
45946
45701
|
}, innerProps), children)));
|
|
45947
45702
|
});
|
|
45948
45703
|
Filler.displayName = 'Filler';
|
|
45949
45704
|
/* harmony default export */ var es_Filler = (Filler);
|
|
45950
45705
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/classCallCheck.js
|
|
45951
|
-
function
|
|
45706
|
+
function classCallCheck_classCallCheck(instance, Constructor) {
|
|
45952
45707
|
if (!(instance instanceof Constructor)) {
|
|
45953
45708
|
throw new TypeError("Cannot call a class as a function");
|
|
45954
45709
|
}
|
|
45955
45710
|
}
|
|
45956
45711
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/createClass.js
|
|
45957
45712
|
|
|
45958
|
-
|
|
45959
|
-
function esm_createClass_defineProperties(target, props) {
|
|
45713
|
+
function createClass_defineProperties(target, props) {
|
|
45960
45714
|
for (var i = 0; i < props.length; i++) {
|
|
45961
45715
|
var descriptor = props[i];
|
|
45962
45716
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -45965,30 +45719,28 @@ function esm_createClass_defineProperties(target, props) {
|
|
|
45965
45719
|
Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
|
|
45966
45720
|
}
|
|
45967
45721
|
}
|
|
45968
|
-
|
|
45969
|
-
|
|
45970
|
-
if (
|
|
45971
|
-
if (staticProps) esm_createClass_defineProperties(Constructor, staticProps);
|
|
45722
|
+
function createClass_createClass(Constructor, protoProps, staticProps) {
|
|
45723
|
+
if (protoProps) createClass_defineProperties(Constructor.prototype, protoProps);
|
|
45724
|
+
if (staticProps) createClass_defineProperties(Constructor, staticProps);
|
|
45972
45725
|
Object.defineProperty(Constructor, "prototype", {
|
|
45973
45726
|
writable: false
|
|
45974
45727
|
});
|
|
45975
45728
|
return Constructor;
|
|
45976
45729
|
}
|
|
45977
45730
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js
|
|
45978
|
-
function
|
|
45979
|
-
|
|
45731
|
+
function setPrototypeOf_setPrototypeOf(o, p) {
|
|
45732
|
+
setPrototypeOf_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
|
|
45980
45733
|
o.__proto__ = p;
|
|
45981
45734
|
return o;
|
|
45982
45735
|
};
|
|
45983
|
-
return
|
|
45736
|
+
return setPrototypeOf_setPrototypeOf(o, p);
|
|
45984
45737
|
}
|
|
45985
45738
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/inherits.js
|
|
45986
45739
|
|
|
45987
|
-
function
|
|
45740
|
+
function inherits_inherits(subClass, superClass) {
|
|
45988
45741
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
45989
45742
|
throw new TypeError("Super expression must either be null or a function");
|
|
45990
45743
|
}
|
|
45991
|
-
|
|
45992
45744
|
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
45993
45745
|
constructor: {
|
|
45994
45746
|
value: subClass,
|
|
@@ -45999,21 +45751,20 @@ function esm_inherits_inherits(subClass, superClass) {
|
|
|
45999
45751
|
Object.defineProperty(subClass, "prototype", {
|
|
46000
45752
|
writable: false
|
|
46001
45753
|
});
|
|
46002
|
-
if (superClass)
|
|
45754
|
+
if (superClass) setPrototypeOf_setPrototypeOf(subClass, superClass);
|
|
46003
45755
|
}
|
|
46004
45756
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js
|
|
46005
|
-
function
|
|
46006
|
-
|
|
45757
|
+
function getPrototypeOf_getPrototypeOf(o) {
|
|
45758
|
+
getPrototypeOf_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {
|
|
46007
45759
|
return o.__proto__ || Object.getPrototypeOf(o);
|
|
46008
45760
|
};
|
|
46009
|
-
return
|
|
45761
|
+
return getPrototypeOf_getPrototypeOf(o);
|
|
46010
45762
|
}
|
|
46011
45763
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js
|
|
46012
|
-
function
|
|
45764
|
+
function isNativeReflectConstruct_isNativeReflectConstruct() {
|
|
46013
45765
|
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
46014
45766
|
if (Reflect.construct.sham) return false;
|
|
46015
45767
|
if (typeof Proxy === "function") return true;
|
|
46016
|
-
|
|
46017
45768
|
try {
|
|
46018
45769
|
Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
|
|
46019
45770
|
return true;
|
|
@@ -46022,43 +45773,39 @@ function esm_isNativeReflectConstruct_isNativeReflectConstruct() {
|
|
|
46022
45773
|
}
|
|
46023
45774
|
}
|
|
46024
45775
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js
|
|
46025
|
-
function
|
|
45776
|
+
function assertThisInitialized_assertThisInitialized(self) {
|
|
46026
45777
|
if (self === void 0) {
|
|
46027
45778
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
46028
45779
|
}
|
|
46029
|
-
|
|
46030
45780
|
return self;
|
|
46031
45781
|
}
|
|
46032
45782
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js
|
|
46033
45783
|
|
|
46034
45784
|
|
|
46035
|
-
function
|
|
46036
|
-
if (call && (
|
|
45785
|
+
function possibleConstructorReturn_possibleConstructorReturn(self, call) {
|
|
45786
|
+
if (call && (esm_typeof_typeof(call) === "object" || typeof call === "function")) {
|
|
46037
45787
|
return call;
|
|
46038
45788
|
} else if (call !== void 0) {
|
|
46039
45789
|
throw new TypeError("Derived constructors may only return object or undefined");
|
|
46040
45790
|
}
|
|
46041
|
-
|
|
46042
|
-
return esm_assertThisInitialized_assertThisInitialized(self);
|
|
45791
|
+
return assertThisInitialized_assertThisInitialized(self);
|
|
46043
45792
|
}
|
|
46044
45793
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/@babel/runtime/helpers/esm/createSuper.js
|
|
46045
45794
|
|
|
46046
45795
|
|
|
46047
45796
|
|
|
46048
|
-
function
|
|
46049
|
-
var hasNativeReflectConstruct =
|
|
45797
|
+
function createSuper_createSuper(Derived) {
|
|
45798
|
+
var hasNativeReflectConstruct = isNativeReflectConstruct_isNativeReflectConstruct();
|
|
46050
45799
|
return function _createSuperInternal() {
|
|
46051
|
-
var Super =
|
|
46052
|
-
|
|
46053
|
-
|
|
45800
|
+
var Super = getPrototypeOf_getPrototypeOf(Derived),
|
|
45801
|
+
result;
|
|
46054
45802
|
if (hasNativeReflectConstruct) {
|
|
46055
|
-
var NewTarget =
|
|
45803
|
+
var NewTarget = getPrototypeOf_getPrototypeOf(this).constructor;
|
|
46056
45804
|
result = Reflect.construct(Super, arguments, NewTarget);
|
|
46057
45805
|
} else {
|
|
46058
45806
|
result = Super.apply(this, arguments);
|
|
46059
45807
|
}
|
|
46060
|
-
|
|
46061
|
-
return esm_possibleConstructorReturn_possibleConstructorReturn(this, result);
|
|
45808
|
+
return possibleConstructorReturn_possibleConstructorReturn(this, result);
|
|
46062
45809
|
};
|
|
46063
45810
|
}
|
|
46064
45811
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/node_modules/rc-util/es/raf.js
|
|
@@ -46133,11 +45880,11 @@ function getPageY(e) {
|
|
|
46133
45880
|
return 'touches' in e ? e.touches[0].pageY : e.pageY;
|
|
46134
45881
|
}
|
|
46135
45882
|
var ScrollBar = /*#__PURE__*/function (_React$Component) {
|
|
46136
|
-
|
|
46137
|
-
var _super =
|
|
45883
|
+
inherits_inherits(ScrollBar, _React$Component);
|
|
45884
|
+
var _super = createSuper_createSuper(ScrollBar);
|
|
46138
45885
|
function ScrollBar() {
|
|
46139
45886
|
var _this;
|
|
46140
|
-
|
|
45887
|
+
classCallCheck_classCallCheck(this, ScrollBar);
|
|
46141
45888
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
46142
45889
|
args[_key] = arguments[_key];
|
|
46143
45890
|
}
|
|
@@ -46265,7 +46012,7 @@ var ScrollBar = /*#__PURE__*/function (_React$Component) {
|
|
|
46265
46012
|
};
|
|
46266
46013
|
return _this;
|
|
46267
46014
|
}
|
|
46268
|
-
|
|
46015
|
+
createClass_createClass(ScrollBar, [{
|
|
46269
46016
|
key: "componentDidMount",
|
|
46270
46017
|
value: function componentDidMount() {
|
|
46271
46018
|
this.scrollbarRef.current.addEventListener('touchstart', this.onScrollbarTouchStart);
|
|
@@ -46299,7 +46046,7 @@ var ScrollBar = /*#__PURE__*/function (_React$Component) {
|
|
|
46299
46046
|
var mergedVisible = canScroll && visible;
|
|
46300
46047
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", {
|
|
46301
46048
|
ref: this.scrollbarRef,
|
|
46302
|
-
className: classnames_default()("".concat(prefixCls, "-scrollbar"),
|
|
46049
|
+
className: classnames_default()("".concat(prefixCls, "-scrollbar"), defineProperty_defineProperty({}, "".concat(prefixCls, "-scrollbar-show"), canScroll)),
|
|
46303
46050
|
style: {
|
|
46304
46051
|
width: 8,
|
|
46305
46052
|
top: 0,
|
|
@@ -46312,7 +46059,7 @@ var ScrollBar = /*#__PURE__*/function (_React$Component) {
|
|
|
46312
46059
|
onMouseMove: this.delayHidden
|
|
46313
46060
|
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", {
|
|
46314
46061
|
ref: this.thumbRef,
|
|
46315
|
-
className: classnames_default()("".concat(prefixCls, "-scrollbar-thumb"),
|
|
46062
|
+
className: classnames_default()("".concat(prefixCls, "-scrollbar-thumb"), defineProperty_defineProperty({}, "".concat(prefixCls, "-scrollbar-thumb-moving"), dragging)),
|
|
46316
46063
|
style: {
|
|
46317
46064
|
width: '100%',
|
|
46318
46065
|
height: spinHeight,
|
|
@@ -46391,11 +46138,11 @@ function findDOMNode_findDOMNode(node) {
|
|
|
46391
46138
|
// Firefox has low performance of map.
|
|
46392
46139
|
var CacheMap = /*#__PURE__*/function () {
|
|
46393
46140
|
function CacheMap() {
|
|
46394
|
-
|
|
46141
|
+
classCallCheck_classCallCheck(this, CacheMap);
|
|
46395
46142
|
this.maps = void 0;
|
|
46396
46143
|
this.maps = Object.create(null);
|
|
46397
46144
|
}
|
|
46398
|
-
|
|
46145
|
+
createClass_createClass(CacheMap, [{
|
|
46399
46146
|
key: "set",
|
|
46400
46147
|
value: function set(key, value) {
|
|
46401
46148
|
this.maps[key] = value;
|
|
@@ -46418,7 +46165,7 @@ var CacheMap = /*#__PURE__*/function () {
|
|
|
46418
46165
|
|
|
46419
46166
|
function useHeights(getKey, onItemAdd, onItemRemove) {
|
|
46420
46167
|
var _React$useState = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState(0),
|
|
46421
|
-
_React$useState2 =
|
|
46168
|
+
_React$useState2 = esm_slicedToArray_slicedToArray(_React$useState, 2),
|
|
46422
46169
|
updatedMark = _React$useState2[0],
|
|
46423
46170
|
setUpdatedMark = _React$useState2[1];
|
|
46424
46171
|
var instanceRef = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useRef)(new Map());
|
|
@@ -46485,7 +46232,7 @@ function useScrollTo(containerRef, data, heights, itemHeight, getKey, collectHei
|
|
|
46485
46232
|
es_raf.cancel(scrollRef.current);
|
|
46486
46233
|
if (typeof arg === 'number') {
|
|
46487
46234
|
syncScrollTop(arg);
|
|
46488
|
-
} else if (arg &&
|
|
46235
|
+
} else if (arg && esm_typeof_typeof(arg) === 'object') {
|
|
46489
46236
|
var index;
|
|
46490
46237
|
var align = arg.align;
|
|
46491
46238
|
if ('index' in arg) {
|
|
@@ -46641,11 +46388,11 @@ function findListDiffIndex(originList, targetList, getKey) {
|
|
|
46641
46388
|
|
|
46642
46389
|
function useDiffItem(data, getKey, onDiff) {
|
|
46643
46390
|
var _React$useState = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState(data),
|
|
46644
|
-
_React$useState2 =
|
|
46391
|
+
_React$useState2 = esm_slicedToArray_slicedToArray(_React$useState, 2),
|
|
46645
46392
|
prevData = _React$useState2[0],
|
|
46646
46393
|
setPrevData = _React$useState2[1];
|
|
46647
46394
|
var _React$useState3 = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState(null),
|
|
46648
|
-
_React$useState4 =
|
|
46395
|
+
_React$useState4 = esm_slicedToArray_slicedToArray(_React$useState3, 2),
|
|
46649
46396
|
diffItem = _React$useState4[0],
|
|
46650
46397
|
setDiffItem = _React$useState4[1];
|
|
46651
46398
|
external_commonjs_react_commonjs2_react_root_React_namespaceObject.useEffect(function () {
|
|
@@ -46660,7 +46407,7 @@ function useDiffItem(data, getKey, onDiff) {
|
|
|
46660
46407
|
}
|
|
46661
46408
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/es/utils/isFirefox.js
|
|
46662
46409
|
|
|
46663
|
-
var isFF = (typeof navigator === "undefined" ? "undefined" :
|
|
46410
|
+
var isFF = (typeof navigator === "undefined" ? "undefined" : esm_typeof_typeof(navigator)) === 'object' && /Firefox/i.test(navigator.userAgent);
|
|
46664
46411
|
/* harmony default export */ var isFirefox = (isFF);
|
|
46665
46412
|
;// CONCATENATED MODULE: ./node_modules/rc-virtual-list/es/hooks/useOriginScroll.js
|
|
46666
46413
|
|
|
@@ -46879,16 +46626,16 @@ function RawList(props, ref) {
|
|
|
46879
46626
|
onScroll = props.onScroll,
|
|
46880
46627
|
onVisibleChange = props.onVisibleChange,
|
|
46881
46628
|
innerProps = props.innerProps,
|
|
46882
|
-
restProps =
|
|
46629
|
+
restProps = objectWithoutProperties_objectWithoutProperties(props, List_excluded);
|
|
46883
46630
|
// ================================= MISC =================================
|
|
46884
46631
|
var useVirtual = !!(virtual !== false && height && itemHeight);
|
|
46885
46632
|
var inVirtual = useVirtual && data && itemHeight * data.length > height;
|
|
46886
46633
|
var _useState = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState)(0),
|
|
46887
|
-
_useState2 =
|
|
46634
|
+
_useState2 = esm_slicedToArray_slicedToArray(_useState, 2),
|
|
46888
46635
|
scrollTop = _useState2[0],
|
|
46889
46636
|
setScrollTop = _useState2[1];
|
|
46890
46637
|
var _useState3 = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState)(false),
|
|
46891
|
-
_useState4 =
|
|
46638
|
+
_useState4 = esm_slicedToArray_slicedToArray(_useState3, 2),
|
|
46892
46639
|
scrollMoving = _useState4[0],
|
|
46893
46640
|
setScrollMoving = _useState4[1];
|
|
46894
46641
|
var mergedClassName = classnames_default()(prefixCls, className);
|
|
@@ -46928,12 +46675,12 @@ function RawList(props, ref) {
|
|
|
46928
46675
|
});
|
|
46929
46676
|
var diffItemRef = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useRef)();
|
|
46930
46677
|
var _useDiffItem = useDiffItem(mergedData, getKey),
|
|
46931
|
-
_useDiffItem2 =
|
|
46678
|
+
_useDiffItem2 = esm_slicedToArray_slicedToArray(_useDiffItem, 1),
|
|
46932
46679
|
diffItem = _useDiffItem2[0];
|
|
46933
46680
|
diffItemRef.current = diffItem;
|
|
46934
46681
|
// ================================ Height ================================
|
|
46935
46682
|
var _useHeights = useHeights(getKey, null, null),
|
|
46936
|
-
_useHeights2 =
|
|
46683
|
+
_useHeights2 = esm_slicedToArray_slicedToArray(_useHeights, 4),
|
|
46937
46684
|
setInstanceRef = _useHeights2[0],
|
|
46938
46685
|
collectHeight = _useHeights2[1],
|
|
46939
46686
|
heights = _useHeights2[2],
|
|
@@ -47039,7 +46786,7 @@ function RawList(props, ref) {
|
|
|
47039
46786
|
return newTop;
|
|
47040
46787
|
});
|
|
47041
46788
|
}),
|
|
47042
|
-
_useFrameWheel2 =
|
|
46789
|
+
_useFrameWheel2 = esm_slicedToArray_slicedToArray(_useFrameWheel, 2),
|
|
47043
46790
|
onRawWheel = _useFrameWheel2[0],
|
|
47044
46791
|
onFireFoxScroll = _useFrameWheel2[1];
|
|
47045
46792
|
// Mobile touch move
|
|
@@ -47093,7 +46840,7 @@ function RawList(props, ref) {
|
|
|
47093
46840
|
var listChildren = useChildren(mergedData, start, end, setInstanceRef, children, sharedConfig);
|
|
47094
46841
|
var componentStyle = null;
|
|
47095
46842
|
if (height) {
|
|
47096
|
-
componentStyle =
|
|
46843
|
+
componentStyle = objectSpread2_objectSpread2(defineProperty_defineProperty({}, fullHeight ? 'height' : 'maxHeight', height), ScrollStyle);
|
|
47097
46844
|
if (useVirtual) {
|
|
47098
46845
|
componentStyle.overflowY = 'hidden';
|
|
47099
46846
|
if (scrollMoving) {
|
|
@@ -47101,8 +46848,8 @@ function RawList(props, ref) {
|
|
|
47101
46848
|
}
|
|
47102
46849
|
}
|
|
47103
46850
|
}
|
|
47104
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
47105
|
-
style:
|
|
46851
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", esm_extends_extends({
|
|
46852
|
+
style: objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, style), {}, {
|
|
47106
46853
|
position: 'relative'
|
|
47107
46854
|
}),
|
|
47108
46855
|
className: mergedClassName
|
|
@@ -47248,7 +46995,7 @@ function toOuterValues(valueList, _ref2) {
|
|
|
47248
46995
|
return values;
|
|
47249
46996
|
}
|
|
47250
46997
|
function removeLastEnabledValue(measureValues, values) {
|
|
47251
|
-
var newValues =
|
|
46998
|
+
var newValues = _toConsumableArray(values);
|
|
47252
46999
|
|
|
47253
47000
|
var removeIndex;
|
|
47254
47001
|
|
|
@@ -47382,7 +47129,7 @@ function flattenOptions(options) {
|
|
|
47382
47129
|
*/
|
|
47383
47130
|
|
|
47384
47131
|
function injectPropsWithOption(option) {
|
|
47385
|
-
var newOption =
|
|
47132
|
+
var newOption = _objectSpread2({}, option);
|
|
47386
47133
|
|
|
47387
47134
|
if (!('props' in newOption)) {
|
|
47388
47135
|
Object.defineProperty(newOption, 'props', {
|
|
@@ -47416,7 +47163,7 @@ function findValueOption(values, options) {
|
|
|
47416
47163
|
var option = optionMap.get(val); // Fallback to try to find prev options
|
|
47417
47164
|
|
|
47418
47165
|
if (!option) {
|
|
47419
|
-
option =
|
|
47166
|
+
option = _objectSpread2({}, prevValueOptions.find(function (opt) {
|
|
47420
47167
|
return opt._INTERNAL_OPTION_VALUE_ === val;
|
|
47421
47168
|
}));
|
|
47422
47169
|
}
|
|
@@ -47435,7 +47182,7 @@ var getLabeledValue = function getLabeledValue(value, _ref5) {
|
|
|
47435
47182
|
};
|
|
47436
47183
|
var prevValItem = labelInValue ? prevValueMap.get(value) : undefined;
|
|
47437
47184
|
|
|
47438
|
-
if (prevValItem &&
|
|
47185
|
+
if (prevValItem && typeof_typeof(prevValItem) === 'object' && 'label' in prevValItem) {
|
|
47439
47186
|
result.label = prevValItem.label;
|
|
47440
47187
|
|
|
47441
47188
|
if (item && typeof prevValItem.label === 'string' && typeof item[optionLabelProp] === 'string' && prevValItem.label.trim() !== item[optionLabelProp].trim()) {
|
|
@@ -47483,7 +47230,7 @@ function filterOptions(searchValue, options, _ref6) {
|
|
|
47483
47230
|
var filterFunc;
|
|
47484
47231
|
|
|
47485
47232
|
if (filterOption === false) {
|
|
47486
|
-
return
|
|
47233
|
+
return _toConsumableArray(options);
|
|
47487
47234
|
}
|
|
47488
47235
|
|
|
47489
47236
|
if (typeof filterOption === 'function') {
|
|
@@ -47507,7 +47254,7 @@ function filterOptions(searchValue, options, _ref6) {
|
|
|
47507
47254
|
});
|
|
47508
47255
|
|
|
47509
47256
|
if (subOptions.length) {
|
|
47510
|
-
filteredOptions.push(
|
|
47257
|
+
filteredOptions.push(_objectSpread2(_objectSpread2({}, item), {}, {
|
|
47511
47258
|
options: subOptions
|
|
47512
47259
|
}));
|
|
47513
47260
|
}
|
|
@@ -47541,7 +47288,7 @@ function getSeparatedContent(text, tokens) {
|
|
|
47541
47288
|
var list = str.split(token);
|
|
47542
47289
|
match = match || list.length > 1;
|
|
47543
47290
|
return list.reduce(function (prevList, unitStr) {
|
|
47544
|
-
return [].concat(
|
|
47291
|
+
return [].concat(_toConsumableArray(prevList), _toConsumableArray(separate(unitStr, restTokens)));
|
|
47545
47292
|
}, []).filter(function (unit) {
|
|
47546
47293
|
return unit;
|
|
47547
47294
|
});
|
|
@@ -47561,7 +47308,7 @@ function isValueDisabled(value, options) {
|
|
|
47561
47308
|
function fillOptionsWithMissingValue(options, value, optionLabelProp, labelInValue) {
|
|
47562
47309
|
var values = commonUtil_toArray(value).slice().sort();
|
|
47563
47310
|
|
|
47564
|
-
var cloneOptions =
|
|
47311
|
+
var cloneOptions = _toConsumableArray(options); // Convert options value to set
|
|
47565
47312
|
|
|
47566
47313
|
|
|
47567
47314
|
var optionValues = new Set();
|
|
@@ -47581,7 +47328,7 @@ function fillOptionsWithMissingValue(options, value, optionLabelProp, labelInVal
|
|
|
47581
47328
|
if (!optionValues.has(val)) {
|
|
47582
47329
|
var _ref9;
|
|
47583
47330
|
|
|
47584
|
-
cloneOptions.push(labelInValue ? (_ref9 = {},
|
|
47331
|
+
cloneOptions.push(labelInValue ? (_ref9 = {}, _defineProperty(_ref9, optionLabelProp, item.label), _defineProperty(_ref9, "value", val), _ref9) : {
|
|
47585
47332
|
value: val
|
|
47586
47333
|
});
|
|
47587
47334
|
}
|
|
@@ -47847,7 +47594,7 @@ var OptionList = function OptionList(_ref, ref) {
|
|
|
47847
47594
|
children = itemData.children;
|
|
47848
47595
|
var attrs = pickAttrs(itemData, true);
|
|
47849
47596
|
var mergedLabel = childrenAsData ? children : label;
|
|
47850
|
-
return item ? /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
47597
|
+
return item ? /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", extends_extends({
|
|
47851
47598
|
"aria-label": typeof mergedLabel === 'string' ? mergedLabel : null
|
|
47852
47599
|
}, attrs, {
|
|
47853
47600
|
key: index,
|
|
@@ -47897,13 +47644,13 @@ var OptionList = function OptionList(_ref, ref) {
|
|
|
47897
47644
|
children = data.children,
|
|
47898
47645
|
style = data.style,
|
|
47899
47646
|
className = data.className,
|
|
47900
|
-
otherProps =
|
|
47647
|
+
otherProps = _objectWithoutProperties(data, OptionList_excluded);
|
|
47901
47648
|
|
|
47902
47649
|
var passedProps = omit(otherProps, omitFieldNameList); // Option
|
|
47903
47650
|
|
|
47904
47651
|
var selected = values.has(value);
|
|
47905
47652
|
var optionPrefixCls = "".concat(itemPrefixCls, "-option");
|
|
47906
|
-
var optionClassName = classnames_default()(itemPrefixCls, optionPrefixCls, className, (_classNames = {},
|
|
47653
|
+
var optionClassName = classnames_default()(itemPrefixCls, optionPrefixCls, className, (_classNames = {}, _defineProperty(_classNames, "".concat(optionPrefixCls, "-grouped"), groupOption), _defineProperty(_classNames, "".concat(optionPrefixCls, "-active"), activeIndex === itemIndex && !disabled), _defineProperty(_classNames, "".concat(optionPrefixCls, "-disabled"), disabled), _defineProperty(_classNames, "".concat(optionPrefixCls, "-selected"), selected), _classNames));
|
|
47907
47654
|
var mergedLabel = childrenAsData ? children : label;
|
|
47908
47655
|
var iconVisible = !menuItemSelectedIcon || typeof menuItemSelectedIcon === 'function' || selected;
|
|
47909
47656
|
var content = mergedLabel || value; // https://github.com/ant-design/ant-design/issues/26717
|
|
@@ -47914,7 +47661,7 @@ var OptionList = function OptionList(_ref, ref) {
|
|
|
47914
47661
|
optionTitle = title;
|
|
47915
47662
|
}
|
|
47916
47663
|
|
|
47917
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
47664
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", extends_extends({}, passedProps, {
|
|
47918
47665
|
"aria-selected": selected,
|
|
47919
47666
|
className: optionClassName,
|
|
47920
47667
|
title: optionTitle,
|
|
@@ -47975,9 +47722,9 @@ function convertNodeToOption(node) {
|
|
|
47975
47722
|
_node$props = node.props,
|
|
47976
47723
|
children = _node$props.children,
|
|
47977
47724
|
value = _node$props.value,
|
|
47978
|
-
restProps =
|
|
47725
|
+
restProps = _objectWithoutProperties(_node$props, legacyUtil_excluded);
|
|
47979
47726
|
|
|
47980
|
-
return
|
|
47727
|
+
return _objectSpread2({
|
|
47981
47728
|
key: key,
|
|
47982
47729
|
value: value !== undefined ? value : key,
|
|
47983
47730
|
children: children
|
|
@@ -47995,13 +47742,13 @@ function convertChildrenToData(nodes) {
|
|
|
47995
47742
|
key = node.key,
|
|
47996
47743
|
_node$props2 = node.props,
|
|
47997
47744
|
children = _node$props2.children,
|
|
47998
|
-
restProps =
|
|
47745
|
+
restProps = _objectWithoutProperties(_node$props2, _excluded2);
|
|
47999
47746
|
|
|
48000
47747
|
if (optionOnly || !isSelectOptGroup) {
|
|
48001
47748
|
return convertNodeToOption(node);
|
|
48002
47749
|
}
|
|
48003
47750
|
|
|
48004
|
-
return
|
|
47751
|
+
return _objectSpread2(_objectSpread2({
|
|
48005
47752
|
key: "__RC_SELECT_GRP__".concat(key === null ? index : key, "__"),
|
|
48006
47753
|
label: key
|
|
48007
47754
|
}, restProps), {}, {
|
|
@@ -48103,7 +47850,7 @@ function InternalItem(props, ref) {
|
|
|
48103
47850
|
order = props.order,
|
|
48104
47851
|
_props$component = props.component,
|
|
48105
47852
|
Component = _props$component === void 0 ? 'div' : _props$component,
|
|
48106
|
-
restProps =
|
|
47853
|
+
restProps = _objectWithoutProperties(props, ["prefixCls", "invalidate", "item", "renderItem", "responsive", "registerSize", "itemKey", "className", "style", "children", "display", "order", "component"]);
|
|
48107
47854
|
|
|
48108
47855
|
var mergedHidden = responsive && !display; // ================================ Effect ================================
|
|
48109
47856
|
|
|
@@ -48137,9 +47884,9 @@ function InternalItem(props, ref) {
|
|
|
48137
47884
|
overflowProps['aria-hidden'] = true;
|
|
48138
47885
|
}
|
|
48139
47886
|
|
|
48140
|
-
var itemNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Component,
|
|
47887
|
+
var itemNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Component, extends_extends({
|
|
48141
47888
|
className: classnames_default()(!invalidate && prefixCls, className),
|
|
48142
|
-
style:
|
|
47889
|
+
style: _objectSpread2(_objectSpread2({}, overflowStyle), style)
|
|
48143
47890
|
}, overflowProps, restProps, {
|
|
48144
47891
|
ref: ref
|
|
48145
47892
|
}), childNode);
|
|
@@ -48224,23 +47971,23 @@ var InternalRawItem = function InternalRawItem(props, ref) {
|
|
|
48224
47971
|
if (!context) {
|
|
48225
47972
|
var _props$component = props.component,
|
|
48226
47973
|
Component = _props$component === void 0 ? 'div' : _props$component,
|
|
48227
|
-
_restProps =
|
|
47974
|
+
_restProps = _objectWithoutProperties(props, ["component"]);
|
|
48228
47975
|
|
|
48229
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Component,
|
|
47976
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Component, extends_extends({}, _restProps, {
|
|
48230
47977
|
ref: ref
|
|
48231
47978
|
}));
|
|
48232
47979
|
}
|
|
48233
47980
|
|
|
48234
47981
|
var contextClassName = context.className,
|
|
48235
|
-
restContext =
|
|
47982
|
+
restContext = _objectWithoutProperties(context, ["className"]);
|
|
48236
47983
|
|
|
48237
47984
|
var className = props.className,
|
|
48238
|
-
restProps =
|
|
47985
|
+
restProps = _objectWithoutProperties(props, ["className"]); // Do not pass context to sub item to avoid multiple measure
|
|
48239
47986
|
|
|
48240
47987
|
|
|
48241
47988
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(OverflowContext.Provider, {
|
|
48242
47989
|
value: null
|
|
48243
|
-
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Item,
|
|
47990
|
+
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Item, extends_extends({
|
|
48244
47991
|
ref: ref,
|
|
48245
47992
|
className: classnames_default()(contextClassName, className)
|
|
48246
47993
|
}, restContext, restProps)));
|
|
@@ -48290,7 +48037,7 @@ function Overflow(props, ref) {
|
|
|
48290
48037
|
Component = _props$component === void 0 ? 'div' : _props$component,
|
|
48291
48038
|
itemComponent = props.itemComponent,
|
|
48292
48039
|
onVisibleChange = props.onVisibleChange,
|
|
48293
|
-
restProps =
|
|
48040
|
+
restProps = _objectWithoutProperties(props, ["prefixCls", "data", "renderItem", "renderRawItem", "itemKey", "itemWidth", "ssr", "style", "className", "maxCount", "renderRest", "renderRawRest", "suffix", "component", "itemComponent", "onVisibleChange"]);
|
|
48294
48041
|
|
|
48295
48042
|
var createUseState = useBatchFrameState();
|
|
48296
48043
|
var fullySSR = ssr === 'full';
|
|
@@ -48500,7 +48247,7 @@ function Overflow(props, ref) {
|
|
|
48500
48247
|
var key = getKey(item, index);
|
|
48501
48248
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(OverflowContext.Provider, {
|
|
48502
48249
|
key: key,
|
|
48503
|
-
value:
|
|
48250
|
+
value: _objectSpread2(_objectSpread2({}, itemSharedProps), {}, {
|
|
48504
48251
|
order: index,
|
|
48505
48252
|
item: item,
|
|
48506
48253
|
itemKey: key,
|
|
@@ -48510,7 +48257,7 @@ function Overflow(props, ref) {
|
|
|
48510
48257
|
}, renderRawItem(item, index));
|
|
48511
48258
|
} : function (item, index) {
|
|
48512
48259
|
var key = getKey(item, index);
|
|
48513
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Item,
|
|
48260
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Item, extends_extends({}, itemSharedProps, {
|
|
48514
48261
|
order: index,
|
|
48515
48262
|
key: key,
|
|
48516
48263
|
item: item,
|
|
@@ -48531,18 +48278,18 @@ function Overflow(props, ref) {
|
|
|
48531
48278
|
|
|
48532
48279
|
if (!renderRawRest) {
|
|
48533
48280
|
var mergedRenderRest = renderRest || defaultRenderRest;
|
|
48534
|
-
restNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Item,
|
|
48281
|
+
restNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Item, extends_extends({}, itemSharedProps, restContextProps), typeof mergedRenderRest === 'function' ? mergedRenderRest(omittedItems) : mergedRenderRest);
|
|
48535
48282
|
} else if (renderRawRest) {
|
|
48536
48283
|
restNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(OverflowContext.Provider, {
|
|
48537
|
-
value:
|
|
48284
|
+
value: _objectSpread2(_objectSpread2({}, itemSharedProps), restContextProps)
|
|
48538
48285
|
}, renderRawRest(omittedItems));
|
|
48539
48286
|
}
|
|
48540
48287
|
|
|
48541
|
-
var overflowNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Component,
|
|
48288
|
+
var overflowNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Component, extends_extends({
|
|
48542
48289
|
className: classnames_default()(!invalidate && prefixCls, className),
|
|
48543
48290
|
style: style,
|
|
48544
48291
|
ref: ref
|
|
48545
|
-
}, restProps), mergedData.map(internalRenderItemNode), showRest ? restNode : null, suffix && /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Item,
|
|
48292
|
+
}, restProps), mergedData.map(internalRenderItemNode), showRest ? restNode : null, suffix && /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Item, extends_extends({}, itemSharedProps, {
|
|
48546
48293
|
order: mergedDisplayCount,
|
|
48547
48294
|
className: "".concat(itemPrefixCls, "-suffix"),
|
|
48548
48295
|
registerSize: registerSuffixSize,
|
|
@@ -48607,7 +48354,7 @@ var Input = function Input(_ref, ref) {
|
|
|
48607
48354
|
onOriginCompositionStart = _inputNode$props.onCompositionStart,
|
|
48608
48355
|
onOriginCompositionEnd = _inputNode$props.onCompositionEnd,
|
|
48609
48356
|
style = _inputNode$props.style;
|
|
48610
|
-
inputNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.cloneElement(inputNode,
|
|
48357
|
+
inputNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.cloneElement(inputNode, _objectSpread2(_objectSpread2({
|
|
48611
48358
|
id: id,
|
|
48612
48359
|
ref: composeRef(ref, originRef),
|
|
48613
48360
|
disabled: disabled,
|
|
@@ -48616,7 +48363,7 @@ var Input = function Input(_ref, ref) {
|
|
|
48616
48363
|
type: 'search',
|
|
48617
48364
|
autoFocus: autoFocus,
|
|
48618
48365
|
className: classnames_default()("".concat(prefixCls, "-selection-search-input"), (_inputNode2 = inputNode) === null || _inputNode2 === void 0 ? void 0 : (_inputNode2$props = _inputNode2.props) === null || _inputNode2$props === void 0 ? void 0 : _inputNode2$props.className),
|
|
48619
|
-
style:
|
|
48366
|
+
style: _objectSpread2(_objectSpread2({}, style), {}, {
|
|
48620
48367
|
opacity: editable ? null : 0
|
|
48621
48368
|
}),
|
|
48622
48369
|
role: 'combobox',
|
|
@@ -48764,7 +48511,7 @@ var SelectSelector = function SelectSelector(props) {
|
|
|
48764
48511
|
|
|
48765
48512
|
function defaultRenderSelector(title, content, itemDisabled, closable, onClose) {
|
|
48766
48513
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("span", {
|
|
48767
|
-
className: classnames_default()("".concat(selectionPrefixCls, "-item"),
|
|
48514
|
+
className: classnames_default()("".concat(selectionPrefixCls, "-item"), _defineProperty({}, "".concat(selectionPrefixCls, "-item-disabled"), itemDisabled)),
|
|
48768
48515
|
title: typeof title === 'string' || typeof title === 'number' ? title.toString() : undefined
|
|
48769
48516
|
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("span", {
|
|
48770
48517
|
className: "".concat(selectionPrefixCls, "-item-content")
|
|
@@ -49179,7 +48926,7 @@ var Selector = function Selector(props, ref) {
|
|
|
49179
48926
|
onInputCompositionStart: onInputCompositionStart,
|
|
49180
48927
|
onInputCompositionEnd: onInputCompositionEnd
|
|
49181
48928
|
};
|
|
49182
|
-
var selectNode = multiple ? /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(MultipleSelector,
|
|
48929
|
+
var selectNode = multiple ? /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(MultipleSelector, extends_extends({}, props, sharedProps)) : /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Selector_SingleSelector, extends_extends({}, props, sharedProps));
|
|
49183
48930
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", {
|
|
49184
48931
|
ref: domRef,
|
|
49185
48932
|
className: "".concat(prefixCls, "-selector"),
|
|
@@ -49224,7 +48971,7 @@ function isPointsEq(a1, a2, isAlignPoint) {
|
|
|
49224
48971
|
|
|
49225
48972
|
function getAlignFromPlacement(builtinPlacements, placementStr, align) {
|
|
49226
48973
|
var baseAlign = builtinPlacements[placementStr] || {};
|
|
49227
|
-
return
|
|
48974
|
+
return _objectSpread2(_objectSpread2({}, baseAlign), align);
|
|
49228
48975
|
}
|
|
49229
48976
|
function getAlignPopupClassName(builtinPlacements, prefixCls, align, isAlignPoint) {
|
|
49230
48977
|
var points = align.points;
|
|
@@ -49288,7 +49035,7 @@ function Mask_Mask(props) {
|
|
|
49288
49035
|
var motion = {};
|
|
49289
49036
|
|
|
49290
49037
|
if (maskMotion || maskTransitionName || maskAnimation) {
|
|
49291
|
-
motion =
|
|
49038
|
+
motion = _objectSpread2({
|
|
49292
49039
|
motionAppear: true
|
|
49293
49040
|
}, getMotion({
|
|
49294
49041
|
motion: maskMotion,
|
|
@@ -49298,7 +49045,7 @@ function Mask_Mask(props) {
|
|
|
49298
49045
|
}));
|
|
49299
49046
|
}
|
|
49300
49047
|
|
|
49301
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es,
|
|
49048
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es, extends_extends({}, motion, {
|
|
49302
49049
|
visible: visible,
|
|
49303
49050
|
removeOnLeave: true
|
|
49304
49051
|
}), function (_ref) {
|
|
@@ -50810,7 +50557,7 @@ function getElement(func) {
|
|
|
50810
50557
|
}
|
|
50811
50558
|
|
|
50812
50559
|
function getPoint(point) {
|
|
50813
|
-
if (
|
|
50560
|
+
if (typeof_typeof(point) !== 'object' || !point) return null;
|
|
50814
50561
|
return point;
|
|
50815
50562
|
}
|
|
50816
50563
|
|
|
@@ -51024,9 +50771,9 @@ var StatusQueue = ['measure', 'align', null, 'motion'];
|
|
|
51024
50771
|
}
|
|
51025
50772
|
|
|
51026
50773
|
if (status) {
|
|
51027
|
-
rafRef.current = wrapperRaf( /*#__PURE__*/asyncToGenerator_asyncToGenerator( /*#__PURE__*/
|
|
50774
|
+
rafRef.current = wrapperRaf( /*#__PURE__*/asyncToGenerator_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee() {
|
|
51028
50775
|
var index, nextStatus;
|
|
51029
|
-
return
|
|
50776
|
+
return regenerator_default().wrap(function _callee$(_context) {
|
|
51030
50777
|
while (1) {
|
|
51031
50778
|
switch (_context.prev = _context.next) {
|
|
51032
50779
|
case 0:
|
|
@@ -51199,7 +50946,7 @@ var PopupInner = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React
|
|
|
51199
50946
|
} // ======================== Motion ========================
|
|
51200
50947
|
|
|
51201
50948
|
|
|
51202
|
-
var motion =
|
|
50949
|
+
var motion = _objectSpread2({}, getMotion(props));
|
|
51203
50950
|
|
|
51204
50951
|
['onAppearEnd', 'onEnterEnd', 'onLeaveEnd'].forEach(function (eventName) {
|
|
51205
50952
|
var originHandler = motion[eventName];
|
|
@@ -51232,7 +50979,7 @@ var PopupInner = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React
|
|
|
51232
50979
|
};
|
|
51233
50980
|
}); // ======================== Render ========================
|
|
51234
50981
|
|
|
51235
|
-
var mergedStyle =
|
|
50982
|
+
var mergedStyle = _objectSpread2(_objectSpread2({}, stretchStyle), {}, {
|
|
51236
50983
|
zIndex: zIndex,
|
|
51237
50984
|
opacity: status === 'motion' || status === 'stable' || !visible ? undefined : 0,
|
|
51238
50985
|
pointerEvents: status === 'stable' ? undefined : 'none'
|
|
@@ -51253,7 +51000,7 @@ var PopupInner = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React
|
|
|
51253
51000
|
}, children);
|
|
51254
51001
|
}
|
|
51255
51002
|
|
|
51256
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es,
|
|
51003
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es, extends_extends({
|
|
51257
51004
|
visible: visible,
|
|
51258
51005
|
ref: elementRef,
|
|
51259
51006
|
leavedClassName: "".concat(prefixCls, "-hidden")
|
|
@@ -51281,7 +51028,7 @@ var PopupInner = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React
|
|
|
51281
51028
|
onMouseLeave: onMouseLeave,
|
|
51282
51029
|
onMouseDownCapture: onMouseDown,
|
|
51283
51030
|
onTouchStartCapture: onTouchStart,
|
|
51284
|
-
style:
|
|
51031
|
+
style: _objectSpread2(_objectSpread2({}, motionStyle), mergedStyle)
|
|
51285
51032
|
}, childNode));
|
|
51286
51033
|
});
|
|
51287
51034
|
});
|
|
@@ -51316,7 +51063,7 @@ var MobilePopupInner = /*#__PURE__*/external_commonjs_react_commonjs2_react_root
|
|
|
51316
51063
|
};
|
|
51317
51064
|
}); // ======================== Render ========================
|
|
51318
51065
|
|
|
51319
|
-
var mergedStyle =
|
|
51066
|
+
var mergedStyle = _objectSpread2({
|
|
51320
51067
|
zIndex: zIndex
|
|
51321
51068
|
}, popupStyle);
|
|
51322
51069
|
|
|
@@ -51333,7 +51080,7 @@ var MobilePopupInner = /*#__PURE__*/external_commonjs_react_commonjs2_react_root
|
|
|
51333
51080
|
childNode = popupRender(childNode);
|
|
51334
51081
|
}
|
|
51335
51082
|
|
|
51336
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es,
|
|
51083
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es, extends_extends({
|
|
51337
51084
|
visible: visible,
|
|
51338
51085
|
ref: elementRef,
|
|
51339
51086
|
removeOnLeave: true
|
|
@@ -51344,7 +51091,7 @@ var MobilePopupInner = /*#__PURE__*/external_commonjs_react_commonjs2_react_root
|
|
|
51344
51091
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", {
|
|
51345
51092
|
ref: motionRef,
|
|
51346
51093
|
className: mergedClassName,
|
|
51347
|
-
style:
|
|
51094
|
+
style: _objectSpread2(_objectSpread2({}, motionStyle), mergedStyle)
|
|
51348
51095
|
}, childNode);
|
|
51349
51096
|
});
|
|
51350
51097
|
});
|
|
@@ -51365,7 +51112,7 @@ var Popup_excluded = ["visible", "mobile"];
|
|
|
51365
51112
|
var Popup = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.forwardRef(function (_ref, ref) {
|
|
51366
51113
|
var visible = _ref.visible,
|
|
51367
51114
|
mobile = _ref.mobile,
|
|
51368
|
-
props =
|
|
51115
|
+
props = _objectWithoutProperties(_ref, Popup_excluded);
|
|
51369
51116
|
|
|
51370
51117
|
var _useState = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState)(visible),
|
|
51371
51118
|
_useState2 = slicedToArray_slicedToArray(_useState, 2),
|
|
@@ -51377,7 +51124,7 @@ var Popup = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_name
|
|
|
51377
51124
|
inMobile = _useState4[0],
|
|
51378
51125
|
setInMobile = _useState4[1];
|
|
51379
51126
|
|
|
51380
|
-
var cloneProps =
|
|
51127
|
+
var cloneProps = _objectSpread2(_objectSpread2({}, props), {}, {
|
|
51381
51128
|
visible: innerVisible
|
|
51382
51129
|
}); // We check mobile in visible changed here.
|
|
51383
51130
|
// And this also delay set `innerVisible` to avoid popup component render flash
|
|
@@ -51390,10 +51137,10 @@ var Popup = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_name
|
|
|
51390
51137
|
setInMobile(isMobile());
|
|
51391
51138
|
}
|
|
51392
51139
|
}, [visible, mobile]);
|
|
51393
|
-
var popupNode = inMobile ? /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Popup_MobilePopupInner,
|
|
51140
|
+
var popupNode = inMobile ? /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Popup_MobilePopupInner, extends_extends({}, cloneProps, {
|
|
51394
51141
|
mobile: mobile,
|
|
51395
51142
|
ref: ref
|
|
51396
|
-
})) : /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Popup_PopupInner,
|
|
51143
|
+
})) : /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(Popup_PopupInner, extends_extends({}, cloneProps, {
|
|
51397
51144
|
ref: ref
|
|
51398
51145
|
})); // We can use fragment directly but this may failed some selector usage. Keep as origin logic
|
|
51399
51146
|
|
|
@@ -51447,14 +51194,14 @@ var ALL_HANDLERS = ['onClick', 'onMouseDown', 'onTouchStart', 'onMouseEnter', 'o
|
|
|
51447
51194
|
|
|
51448
51195
|
function generateTrigger(PortalComponent) {
|
|
51449
51196
|
var Trigger = /*#__PURE__*/function (_React$Component) {
|
|
51450
|
-
|
|
51197
|
+
_inherits(Trigger, _React$Component);
|
|
51451
51198
|
|
|
51452
|
-
var _super =
|
|
51199
|
+
var _super = _createSuper(Trigger);
|
|
51453
51200
|
|
|
51454
51201
|
function Trigger(props) {
|
|
51455
51202
|
var _this;
|
|
51456
51203
|
|
|
51457
|
-
|
|
51204
|
+
_classCallCheck(this, Trigger);
|
|
51458
51205
|
|
|
51459
51206
|
_this = _super.call(this, props);
|
|
51460
51207
|
_this.popupRef = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createRef();
|
|
@@ -51642,7 +51389,7 @@ function generateTrigger(PortalComponent) {
|
|
|
51642
51389
|
} catch (err) {// Do nothing
|
|
51643
51390
|
}
|
|
51644
51391
|
|
|
51645
|
-
return external_commonjs_react_dom_commonjs2_react_dom_root_ReactDOM_default().findDOMNode(
|
|
51392
|
+
return external_commonjs_react_dom_commonjs2_react_dom_root_ReactDOM_default().findDOMNode(_assertThisInitialized(_this));
|
|
51646
51393
|
};
|
|
51647
51394
|
|
|
51648
51395
|
_this.getPopupClassNameFromAlign = function (align) {
|
|
@@ -51703,7 +51450,7 @@ function generateTrigger(PortalComponent) {
|
|
|
51703
51450
|
|
|
51704
51451
|
mouseProps.onMouseDown = _this.onPopupMouseDown;
|
|
51705
51452
|
mouseProps.onTouchStart = _this.onPopupMouseDown;
|
|
51706
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Popup,
|
|
51453
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Popup, extends_extends({
|
|
51707
51454
|
prefixCls: prefixCls,
|
|
51708
51455
|
destroyPopupOnHide: destroyPopupOnHide,
|
|
51709
51456
|
visible: popupVisible,
|
|
@@ -51816,7 +51563,7 @@ function generateTrigger(PortalComponent) {
|
|
|
51816
51563
|
return _this;
|
|
51817
51564
|
}
|
|
51818
51565
|
|
|
51819
|
-
|
|
51566
|
+
_createClass(Trigger, [{
|
|
51820
51567
|
key: "componentDidMount",
|
|
51821
51568
|
value: function componentDidMount() {
|
|
51822
51569
|
this.componentDidUpdate();
|
|
@@ -52141,7 +51888,7 @@ function generateTrigger(PortalComponent) {
|
|
|
52141
51888
|
newChildProps.className = childrenClassName;
|
|
52142
51889
|
}
|
|
52143
51890
|
|
|
52144
|
-
var cloneProps =
|
|
51891
|
+
var cloneProps = _objectSpread2({}, newChildProps);
|
|
52145
51892
|
|
|
52146
51893
|
if (supportRef(child)) {
|
|
52147
51894
|
cloneProps.ref = composeRef(this.triggerRef, child.ref);
|
|
@@ -52282,7 +52029,7 @@ var SelectTrigger = function SelectTrigger(props, ref) {
|
|
|
52282
52029
|
empty = props.empty,
|
|
52283
52030
|
getTriggerDOMNode = props.getTriggerDOMNode,
|
|
52284
52031
|
onPopupVisibleChange = props.onPopupVisibleChange,
|
|
52285
|
-
restProps =
|
|
52032
|
+
restProps = _objectWithoutProperties(props, SelectTrigger_excluded);
|
|
52286
52033
|
|
|
52287
52034
|
var dropdownPrefixCls = "".concat(prefixCls, "-dropdown");
|
|
52288
52035
|
var popupNode = popupElement;
|
|
@@ -52306,7 +52053,7 @@ var SelectTrigger = function SelectTrigger(props, ref) {
|
|
|
52306
52053
|
};
|
|
52307
52054
|
});
|
|
52308
52055
|
|
|
52309
|
-
var popupStyle =
|
|
52056
|
+
var popupStyle = _objectSpread2({
|
|
52310
52057
|
minWidth: containerWidth
|
|
52311
52058
|
}, dropdownStyle);
|
|
52312
52059
|
|
|
@@ -52316,7 +52063,7 @@ var SelectTrigger = function SelectTrigger(props, ref) {
|
|
|
52316
52063
|
popupStyle.width = containerWidth;
|
|
52317
52064
|
}
|
|
52318
52065
|
|
|
52319
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_trigger_es,
|
|
52066
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_trigger_es, extends_extends({}, restProps, {
|
|
52320
52067
|
showAction: onPopupVisibleChange ? ['click'] : [],
|
|
52321
52068
|
hideAction: onPopupVisibleChange ? ['click'] : [],
|
|
52322
52069
|
popupPlacement: placement || (direction === 'rtl' ? 'bottomRight' : 'bottomLeft'),
|
|
@@ -52329,7 +52076,7 @@ var SelectTrigger = function SelectTrigger(props, ref) {
|
|
|
52329
52076
|
popupAlign: dropdownAlign,
|
|
52330
52077
|
popupVisible: visible,
|
|
52331
52078
|
getPopupContainer: getPopupContainer,
|
|
52332
|
-
popupClassName: classnames_default()(dropdownClassName,
|
|
52079
|
+
popupClassName: classnames_default()(dropdownClassName, _defineProperty({}, "".concat(dropdownPrefixCls, "-empty"), empty)),
|
|
52333
52080
|
popupStyle: popupStyle,
|
|
52334
52081
|
getTriggerDOMNode: getTriggerDOMNode,
|
|
52335
52082
|
onPopupVisibleChange: onPopupVisibleChange
|
|
@@ -52432,7 +52179,7 @@ function useCacheDisplayValue(values) {
|
|
|
52432
52179
|
var cacheLabel = valueLabels.get(item.value);
|
|
52433
52180
|
|
|
52434
52181
|
if (item.isCacheable && cacheLabel) {
|
|
52435
|
-
return
|
|
52182
|
+
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
52436
52183
|
label: cacheLabel
|
|
52437
52184
|
});
|
|
52438
52185
|
}
|
|
@@ -52594,7 +52341,7 @@ function generateSelector(config) {
|
|
|
52594
52341
|
onClear = props.onClear,
|
|
52595
52342
|
_props$internalProps = props.internalProps,
|
|
52596
52343
|
internalProps = _props$internalProps === void 0 ? {} : _props$internalProps,
|
|
52597
|
-
restProps =
|
|
52344
|
+
restProps = _objectWithoutProperties(props, generate_excluded);
|
|
52598
52345
|
|
|
52599
52346
|
var useInternalProps = internalProps.mark === INTERNAL_PROPS_MARK;
|
|
52600
52347
|
var domProps = omitDOMProps ? omitDOMProps(restProps) : restProps;
|
|
@@ -52732,7 +52479,7 @@ function generateSelector(config) {
|
|
|
52732
52479
|
|
|
52733
52480
|
var displayOptions = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useMemo)(function () {
|
|
52734
52481
|
if (!mergedSearchValue || !mergedShowSearch) {
|
|
52735
|
-
return
|
|
52482
|
+
return _toConsumableArray(mergedOptions);
|
|
52736
52483
|
}
|
|
52737
52484
|
|
|
52738
52485
|
var filteredOptions = filterOptions(mergedSearchValue, mergedOptions, {
|
|
@@ -52753,7 +52500,7 @@ function generateSelector(config) {
|
|
|
52753
52500
|
}
|
|
52754
52501
|
|
|
52755
52502
|
if (filterSort && Array.isArray(filteredOptions)) {
|
|
52756
|
-
return
|
|
52503
|
+
return _toConsumableArray(filteredOptions).sort(filterSort);
|
|
52757
52504
|
}
|
|
52758
52505
|
|
|
52759
52506
|
return filteredOptions;
|
|
@@ -52776,7 +52523,7 @@ function generateSelector(config) {
|
|
|
52776
52523
|
labelInValue: mergedLabelInValue,
|
|
52777
52524
|
optionLabelProp: mergedOptionLabelProp
|
|
52778
52525
|
});
|
|
52779
|
-
return
|
|
52526
|
+
return _objectSpread2(_objectSpread2({}, displayValue), {}, {
|
|
52780
52527
|
disabled: isValueDisabled(val, valueOptions)
|
|
52781
52528
|
});
|
|
52782
52529
|
});
|
|
@@ -52850,7 +52597,7 @@ function generateSelector(config) {
|
|
|
52850
52597
|
}); // We will cache option in case it removed by ajax
|
|
52851
52598
|
|
|
52852
52599
|
setPrevValueOptions(outOptions.map(function (option, index) {
|
|
52853
|
-
var clone =
|
|
52600
|
+
var clone = _objectSpread2({}, option);
|
|
52854
52601
|
|
|
52855
52602
|
Object.defineProperty(clone, '_INTERNAL_OPTION_VALUE_', {
|
|
52856
52603
|
get: function get() {
|
|
@@ -52906,13 +52653,13 @@ function generateSelector(config) {
|
|
|
52906
52653
|
};
|
|
52907
52654
|
|
|
52908
52655
|
var onInternalOptionSelect = function onInternalOptionSelect(newValue, info) {
|
|
52909
|
-
onInternalSelect(newValue,
|
|
52656
|
+
onInternalSelect(newValue, _objectSpread2(_objectSpread2({}, info), {}, {
|
|
52910
52657
|
source: 'option'
|
|
52911
52658
|
}));
|
|
52912
52659
|
};
|
|
52913
52660
|
|
|
52914
52661
|
var onInternalSelectionSelect = function onInternalSelectionSelect(newValue, info) {
|
|
52915
|
-
onInternalSelect(newValue,
|
|
52662
|
+
onInternalSelect(newValue, _objectSpread2(_objectSpread2({}, info), {}, {
|
|
52916
52663
|
source: 'selection'
|
|
52917
52664
|
}));
|
|
52918
52665
|
}; // ============================= Input ==============================
|
|
@@ -52996,7 +52743,7 @@ function generateSelector(config) {
|
|
|
52996
52743
|
});
|
|
52997
52744
|
}
|
|
52998
52745
|
|
|
52999
|
-
var newRawValues = Array.from(new Set([].concat(
|
|
52746
|
+
var newRawValues = Array.from(new Set([].concat(_toConsumableArray(mergedRawValue), _toConsumableArray(patchRawValues))));
|
|
53000
52747
|
triggerChange(newRawValues);
|
|
53001
52748
|
newRawValues.forEach(function (newRawValue) {
|
|
53002
52749
|
triggerSelect(newRawValue, true, 'input');
|
|
@@ -53025,7 +52772,7 @@ function generateSelector(config) {
|
|
|
53025
52772
|
return;
|
|
53026
52773
|
}
|
|
53027
52774
|
|
|
53028
|
-
var newRawValues = Array.from(new Set([].concat(
|
|
52775
|
+
var newRawValues = Array.from(new Set([].concat(_toConsumableArray(mergedRawValue), [searchText])));
|
|
53029
52776
|
triggerChange(newRawValues);
|
|
53030
52777
|
newRawValues.forEach(function (newRawValue) {
|
|
53031
52778
|
triggerSelect(newRawValue, true, 'input');
|
|
@@ -53158,7 +52905,7 @@ function generateSelector(config) {
|
|
|
53158
52905
|
// `tags` mode should move `searchValue` into values
|
|
53159
52906
|
if (mode === 'tags') {
|
|
53160
52907
|
triggerSearch('', false, false);
|
|
53161
|
-
triggerChange(Array.from(new Set([].concat(
|
|
52908
|
+
triggerChange(Array.from(new Set([].concat(_toConsumableArray(mergedRawValue), [mergedSearchValue]))));
|
|
53162
52909
|
} else if (mode === 'multiple') {
|
|
53163
52910
|
// `multiple` mode only clean the search value but not trigger event
|
|
53164
52911
|
setInnerSearchValue('');
|
|
@@ -53316,7 +53063,7 @@ function generateSelector(config) {
|
|
|
53316
53063
|
|
|
53317
53064
|
if (mergedShowArrow) {
|
|
53318
53065
|
arrowNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_TransBtn, {
|
|
53319
|
-
className: classnames_default()("".concat(prefixCls, "-arrow"),
|
|
53066
|
+
className: classnames_default()("".concat(prefixCls, "-arrow"), _defineProperty({}, "".concat(prefixCls, "-arrow-loading"), loading)),
|
|
53320
53067
|
customizeIcon: inputIcon,
|
|
53321
53068
|
customizeIconProps: {
|
|
53322
53069
|
loading: loading,
|
|
@@ -53332,7 +53079,7 @@ function generateSelector(config) {
|
|
|
53332
53079
|
if (false) {} // ============================= Render =============================
|
|
53333
53080
|
|
|
53334
53081
|
|
|
53335
|
-
var mergedClassName = classnames_default()(prefixCls, className, (_classNames2 = {},
|
|
53082
|
+
var mergedClassName = classnames_default()(prefixCls, className, (_classNames2 = {}, _defineProperty(_classNames2, "".concat(prefixCls, "-focused"), mockFocused), _defineProperty(_classNames2, "".concat(prefixCls, "-multiple"), isMultiple), _defineProperty(_classNames2, "".concat(prefixCls, "-single"), !isMultiple), _defineProperty(_classNames2, "".concat(prefixCls, "-allow-clear"), allowClear), _defineProperty(_classNames2, "".concat(prefixCls, "-show-arrow"), mergedShowArrow), _defineProperty(_classNames2, "".concat(prefixCls, "-disabled"), disabled), _defineProperty(_classNames2, "".concat(prefixCls, "-loading"), loading), _defineProperty(_classNames2, "".concat(prefixCls, "-open"), mergedOpen), _defineProperty(_classNames2, "".concat(prefixCls, "-customize-input"), customizeInputElement), _defineProperty(_classNames2, "".concat(prefixCls, "-show-search"), mergedShowSearch), _classNames2));
|
|
53336
53083
|
var selectorNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_SelectTrigger, {
|
|
53337
53084
|
ref: triggerRef,
|
|
53338
53085
|
disabled: disabled,
|
|
@@ -53357,7 +53104,7 @@ function generateSelector(config) {
|
|
|
53357
53104
|
onPopupVisibleChange: onTriggerVisibleChange
|
|
53358
53105
|
}, customizeRawInputElement ? /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.cloneElement(customizeRawInputElement, {
|
|
53359
53106
|
ref: composeRef(selectorDomRef, customizeRawInputElement.props.ref)
|
|
53360
|
-
}) : /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Selector,
|
|
53107
|
+
}) : /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Selector, extends_extends({}, props, {
|
|
53361
53108
|
domRef: selectorDomRef,
|
|
53362
53109
|
prefixCls: prefixCls,
|
|
53363
53110
|
inputElement: customizeInputElement,
|
|
@@ -53383,7 +53130,7 @@ function generateSelector(config) {
|
|
|
53383
53130
|
return selectorNode;
|
|
53384
53131
|
}
|
|
53385
53132
|
|
|
53386
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
53133
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", extends_extends({
|
|
53387
53134
|
className: mergedClassName
|
|
53388
53135
|
}, domProps, {
|
|
53389
53136
|
ref: containerRef,
|
|
@@ -53470,7 +53217,7 @@ function warningProps(props) {
|
|
|
53470
53217
|
if (value !== undefined && value !== null) {
|
|
53471
53218
|
var values = commonUtil_toArray(value);
|
|
53472
53219
|
es_warning(!labelInValue || values.every(function (val) {
|
|
53473
|
-
return
|
|
53220
|
+
return typeof_typeof(val) === 'object' && ('key' in val || 'value' in val);
|
|
53474
53221
|
}), '`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`');
|
|
53475
53222
|
es_warning(!multiple || Array.isArray(value), '`value` should be array when `mode` is `multiple` or `tags`');
|
|
53476
53223
|
} // Syntactic sugar should use correct children type
|
|
@@ -53584,14 +53331,14 @@ var RefSelect = generateSelector({
|
|
|
53584
53331
|
*/
|
|
53585
53332
|
|
|
53586
53333
|
var Select = /*#__PURE__*/function (_React$Component) {
|
|
53587
|
-
|
|
53334
|
+
_inherits(Select, _React$Component);
|
|
53588
53335
|
|
|
53589
|
-
var _super =
|
|
53336
|
+
var _super = _createSuper(Select);
|
|
53590
53337
|
|
|
53591
53338
|
function Select() {
|
|
53592
53339
|
var _this;
|
|
53593
53340
|
|
|
53594
|
-
|
|
53341
|
+
_classCallCheck(this, Select);
|
|
53595
53342
|
|
|
53596
53343
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
53597
53344
|
args[_key] = arguments[_key];
|
|
@@ -53611,10 +53358,10 @@ var Select = /*#__PURE__*/function (_React$Component) {
|
|
|
53611
53358
|
return _this;
|
|
53612
53359
|
}
|
|
53613
53360
|
|
|
53614
|
-
|
|
53361
|
+
_createClass(Select, [{
|
|
53615
53362
|
key: "render",
|
|
53616
53363
|
value: function render() {
|
|
53617
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(RefSelect,
|
|
53364
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(RefSelect, extends_extends({
|
|
53618
53365
|
ref: this.selectRef
|
|
53619
53366
|
}, this.props));
|
|
53620
53367
|
}
|
|
@@ -55278,6 +55025,7 @@ function detail_arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
|
55278
55025
|
|
|
55279
55026
|
|
|
55280
55027
|
|
|
55028
|
+
|
|
55281
55029
|
// import IMChatroom from '@/component/IMChatroom'
|
|
55282
55030
|
|
|
55283
55031
|
|
|
@@ -55368,7 +55116,7 @@ function PublicLiveDetail(_ref) {
|
|
|
55368
55116
|
userRole = loginInfo.userRole,
|
|
55369
55117
|
loginStatus = loginInfo.loginStatus;
|
|
55370
55118
|
var isLiveToReplay = !replay;
|
|
55371
|
-
var isStreamLive = liveInfo && liveInfo.type === PUBLIC_LIVE_MODE.LIVING;
|
|
55119
|
+
var isStreamLive = liveInfo && liveInfo.type === PUBLIC_LIVE_MODE.LIVING && (liveInfo.sub_type === publicLive_SUB_TYPE.OUTSIDE || liveInfo.sub_type === publicLive_SUB_TYPE.REBROADCAST);
|
|
55372
55120
|
|
|
55373
55121
|
var handleStatusChange = /*#__PURE__*/function () {
|
|
55374
55122
|
var _ref2 = detail_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee(status) {
|
|
@@ -55393,7 +55141,7 @@ function PublicLiveDetail(_ref) {
|
|
|
55393
55141
|
subType = liveInfo.sub_type, bid = liveInfo.bid, roomId = liveInfo.room_id;
|
|
55394
55142
|
imLiveInfoResp = {}; // 如果类型为外部推流, 则去请求新的直播详情接口
|
|
55395
55143
|
|
|
55396
|
-
if (!(subType ===
|
|
55144
|
+
if (!(subType === publicLive_SUB_TYPE.OUTSIDE || subType === publicLive_SUB_TYPE.REBROADCAST)) {
|
|
55397
55145
|
_context.next = 14;
|
|
55398
55146
|
break;
|
|
55399
55147
|
}
|
|
@@ -55514,7 +55262,7 @@ function PublicLiveDetail(_ref) {
|
|
|
55514
55262
|
subType = data.sub_type, bid = data.bid, roomId = data.room_id;
|
|
55515
55263
|
imLiveInfoResp = {}; // 如果类型为外部推流, 则去请求新的直播详情接口
|
|
55516
55264
|
|
|
55517
|
-
if (!(subType ===
|
|
55265
|
+
if (!(subType === publicLive_SUB_TYPE.OUTSIDE || subType === publicLive_SUB_TYPE.REBROADCAST)) {
|
|
55518
55266
|
_context2.next = 26;
|
|
55519
55267
|
break;
|
|
55520
55268
|
}
|
|
@@ -55551,6 +55299,19 @@ function PublicLiveDetail(_ref) {
|
|
|
55551
55299
|
data.imInfo = imLiveInfoResp;
|
|
55552
55300
|
|
|
55553
55301
|
case 31:
|
|
55302
|
+
if (!(data.type === PUBLIC_LIVE_MODE.LIVING && data.sub_type === publicLive_SUB_TYPE.OUTSIDE)) {
|
|
55303
|
+
_context2.next = 34;
|
|
55304
|
+
break;
|
|
55305
|
+
}
|
|
55306
|
+
|
|
55307
|
+
_context2.next = 36;
|
|
55308
|
+
break;
|
|
55309
|
+
|
|
55310
|
+
case 34:
|
|
55311
|
+
_context2.next = 36;
|
|
55312
|
+
return push.init();
|
|
55313
|
+
|
|
55314
|
+
case 36:
|
|
55554
55315
|
// 如果是转播或者是推流 直接播放(用于调试模式)
|
|
55555
55316
|
_getUrlQuery2 = (0,url/* getUrlQuery */.pf)(), preview = _getUrlQuery2.preview; // 后台点预览会加这个参数
|
|
55556
55317
|
|
|
@@ -55559,7 +55320,7 @@ function PublicLiveDetail(_ref) {
|
|
|
55559
55320
|
}) : data;
|
|
55560
55321
|
setLiveInfo(generateInfo);
|
|
55561
55322
|
|
|
55562
|
-
case
|
|
55323
|
+
case 39:
|
|
55563
55324
|
case "end":
|
|
55564
55325
|
return _context2.stop();
|
|
55565
55326
|
}
|
|
@@ -55574,6 +55335,31 @@ function PublicLiveDetail(_ref) {
|
|
|
55574
55335
|
|
|
55575
55336
|
init();
|
|
55576
55337
|
}, []);
|
|
55338
|
+
(0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useEffect)(function () {
|
|
55339
|
+
if (!liveInfo || liveInfo.sub_type === publicLive_SUB_TYPE.OUTSIDE) {
|
|
55340
|
+
return;
|
|
55341
|
+
}
|
|
55342
|
+
|
|
55343
|
+
var handler = function handler(data) {
|
|
55344
|
+
var _data$extraFields = data.extraFields,
|
|
55345
|
+
extraFields = _data$extraFields === void 0 ? {} : _data$extraFields;
|
|
55346
|
+
console.log('public Live:', data);
|
|
55347
|
+
|
|
55348
|
+
if (extraFields.event === PUBLIC_LIVE_PUSH_EVENT.STATUS_CHANGE && extraFields.liveId === liveId) {
|
|
55349
|
+
console.log("public Live: receive push status ".concat(parseInt(extraFields.status, 10)));
|
|
55350
|
+
handleStatusChange(parseInt(extraFields.status, 10));
|
|
55351
|
+
}
|
|
55352
|
+
};
|
|
55353
|
+
|
|
55354
|
+
push.addTopicListener("".concat(PUBLIC_LIVE_PUSH_TOPIC, "_").concat(liveId), handler);
|
|
55355
|
+
return function () {
|
|
55356
|
+
if (!liveInfo || liveInfo.sub_type === publicLive_SUB_TYPE.OUTSIDE) {
|
|
55357
|
+
return;
|
|
55358
|
+
}
|
|
55359
|
+
|
|
55360
|
+
push.removeTopicListener("".concat(PUBLIC_LIVE_PUSH_TOPIC, "_").concat(liveId), handler);
|
|
55361
|
+
};
|
|
55362
|
+
}, [!!liveInfo]);
|
|
55577
55363
|
(0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useEffect)(function () {
|
|
55578
55364
|
if (userInfo) {
|
|
55579
55365
|
onReportProgress();
|
|
@@ -55700,7 +55486,6 @@ function PublicLiveDetail(_ref) {
|
|
|
55700
55486
|
},
|
|
55701
55487
|
onRequestFullScreen: handleRequestFullScreen
|
|
55702
55488
|
}) : isRecordLive ? /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(RecordVideo, {
|
|
55703
|
-
isStreamLive: isStreamLive,
|
|
55704
55489
|
userInfo: userInfo,
|
|
55705
55490
|
liveInfo: liveInfo,
|
|
55706
55491
|
visitTime: visitTime,
|
|
@@ -55714,7 +55499,6 @@ function PublicLiveDetail(_ref) {
|
|
|
55714
55499
|
},
|
|
55715
55500
|
onRequestFullScreen: handleRequestFullScreen
|
|
55716
55501
|
}) : /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(LiveVideo, {
|
|
55717
|
-
isStreamLive: isStreamLive,
|
|
55718
55502
|
handleLogin: handleLogin,
|
|
55719
55503
|
userInfo: userInfo,
|
|
55720
55504
|
liveInfo: liveInfo,
|
|
@@ -55728,7 +55512,7 @@ function PublicLiveDetail(_ref) {
|
|
|
55728
55512
|
handleVideoPlay(true);
|
|
55729
55513
|
},
|
|
55730
55514
|
onRequestFullScreen: handleRequestFullScreen
|
|
55731
|
-
})), !isReplayMode && !isRecordLive &&
|
|
55515
|
+
})), !isReplayMode && !isRecordLive && isStreamLive && liveInfo.status !== publicLive_PUBLIC_LIVE_STATUS.COMPLETEED && /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(LineSwitch, {
|
|
55732
55516
|
className: src_detail_index_module["live-line-switch"],
|
|
55733
55517
|
liveInfo: liveInfo,
|
|
55734
55518
|
onChange: handleSelectChange
|
|
@@ -55921,7 +55705,7 @@ function TabNode(_ref, ref) {
|
|
|
55921
55705
|
var node = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", {
|
|
55922
55706
|
key: key,
|
|
55923
55707
|
ref: ref,
|
|
55924
|
-
className: classnames_default()(tabPrefix, (_classNames = {},
|
|
55708
|
+
className: classnames_default()(tabPrefix, (_classNames = {}, _defineProperty(_classNames, "".concat(tabPrefix, "-with-remove"), removable), _defineProperty(_classNames, "".concat(tabPrefix, "-active"), active), _defineProperty(_classNames, "".concat(tabPrefix, "-disabled"), disabled), _classNames)),
|
|
55925
55709
|
style: style,
|
|
55926
55710
|
onClick: onInternalClick
|
|
55927
55711
|
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", {
|
|
@@ -55984,7 +55768,7 @@ function useOffsets(tabs, tabSizes, holderScrollWidth) {
|
|
|
55984
55768
|
data = tabSizes.get((_tabs = tabs[i - 1]) === null || _tabs === void 0 ? void 0 : _tabs.key) || DEFAULT_SIZE;
|
|
55985
55769
|
}
|
|
55986
55770
|
|
|
55987
|
-
var entity = map.get(key) ||
|
|
55771
|
+
var entity = map.get(key) || _objectSpread2({}, data); // Right
|
|
55988
55772
|
|
|
55989
55773
|
|
|
55990
55774
|
entity.right = rightOffset - entity.left - entity.width; // Update entity
|
|
@@ -56079,7 +55863,7 @@ var MenuContext_excluded = ["children", "locked"];
|
|
|
56079
55863
|
var MenuContext = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createContext(null);
|
|
56080
55864
|
|
|
56081
55865
|
function mergeProps(origin, target) {
|
|
56082
|
-
var clone =
|
|
55866
|
+
var clone = _objectSpread2({}, origin);
|
|
56083
55867
|
|
|
56084
55868
|
Object.keys(target).forEach(function (key) {
|
|
56085
55869
|
var value = target[key];
|
|
@@ -56094,7 +55878,7 @@ function mergeProps(origin, target) {
|
|
|
56094
55878
|
function InheritableContextProvider(_ref) {
|
|
56095
55879
|
var children = _ref.children,
|
|
56096
55880
|
locked = _ref.locked,
|
|
56097
|
-
restProps =
|
|
55881
|
+
restProps = _objectWithoutProperties(_ref, MenuContext_excluded);
|
|
56098
55882
|
|
|
56099
55883
|
var context = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useContext(MenuContext);
|
|
56100
55884
|
var inheritableContext = useMemo(function () {
|
|
@@ -56150,7 +55934,7 @@ var warnUtil_excluded = ["item"];
|
|
|
56150
55934
|
|
|
56151
55935
|
function warnItemProp(_ref) {
|
|
56152
55936
|
var item = _ref.item,
|
|
56153
|
-
restInfo =
|
|
55937
|
+
restInfo = _objectWithoutProperties(_ref, warnUtil_excluded);
|
|
56154
55938
|
|
|
56155
55939
|
Object.defineProperty(restInfo, 'item', {
|
|
56156
55940
|
get: function get() {
|
|
@@ -56170,7 +55954,7 @@ function es_Icon_Icon(_ref) {
|
|
|
56170
55954
|
var iconNode;
|
|
56171
55955
|
|
|
56172
55956
|
if (typeof icon === 'function') {
|
|
56173
|
-
iconNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(icon,
|
|
55957
|
+
iconNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(icon, _objectSpread2({}, props));
|
|
56174
55958
|
} else {
|
|
56175
55959
|
// Compatible for origin definition
|
|
56176
55960
|
iconNode = icon;
|
|
@@ -56211,7 +55995,7 @@ var PathTrackerContext = /*#__PURE__*/external_commonjs_react_commonjs2_react_ro
|
|
|
56211
55995
|
function useFullPath(eventKey) {
|
|
56212
55996
|
var parentKeyPath = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useContext(PathTrackerContext);
|
|
56213
55997
|
return external_commonjs_react_commonjs2_react_root_React_namespaceObject.useMemo(function () {
|
|
56214
|
-
return eventKey !== undefined ? [].concat(
|
|
55998
|
+
return eventKey !== undefined ? [].concat(_toConsumableArray(parentKeyPath), [eventKey]) : parentKeyPath;
|
|
56215
55999
|
}, [parentKeyPath, eventKey]);
|
|
56216
56000
|
}
|
|
56217
56001
|
var PathUserContext = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createContext(null);
|
|
@@ -56268,28 +56052,28 @@ var MenuItem_excluded = ["title", "attribute", "elementRef"],
|
|
|
56268
56052
|
// This should be removed from doc & api in future.
|
|
56269
56053
|
|
|
56270
56054
|
var LegacyMenuItem = /*#__PURE__*/function (_React$Component) {
|
|
56271
|
-
|
|
56055
|
+
_inherits(LegacyMenuItem, _React$Component);
|
|
56272
56056
|
|
|
56273
|
-
var _super =
|
|
56057
|
+
var _super = _createSuper(LegacyMenuItem);
|
|
56274
56058
|
|
|
56275
56059
|
function LegacyMenuItem() {
|
|
56276
|
-
|
|
56060
|
+
_classCallCheck(this, LegacyMenuItem);
|
|
56277
56061
|
|
|
56278
56062
|
return _super.apply(this, arguments);
|
|
56279
56063
|
}
|
|
56280
56064
|
|
|
56281
|
-
|
|
56065
|
+
_createClass(LegacyMenuItem, [{
|
|
56282
56066
|
key: "render",
|
|
56283
56067
|
value: function render() {
|
|
56284
56068
|
var _this$props = this.props,
|
|
56285
56069
|
title = _this$props.title,
|
|
56286
56070
|
attribute = _this$props.attribute,
|
|
56287
56071
|
elementRef = _this$props.elementRef,
|
|
56288
|
-
restProps =
|
|
56072
|
+
restProps = _objectWithoutProperties(_this$props, MenuItem_excluded);
|
|
56289
56073
|
|
|
56290
56074
|
var passedProps = omit(restProps, ['eventKey']);
|
|
56291
56075
|
es_warning(!attribute, '`attribute` of Menu.Item is deprecated. Please pass attribute directly.');
|
|
56292
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_overflow_es.Item,
|
|
56076
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_overflow_es.Item, extends_extends({}, attribute, {
|
|
56293
56077
|
title: typeof title === 'string' ? title : undefined
|
|
56294
56078
|
}, passedProps, {
|
|
56295
56079
|
ref: elementRef
|
|
@@ -56320,7 +56104,7 @@ var InternalMenuItem = function InternalMenuItem(props) {
|
|
|
56320
56104
|
onClick = props.onClick,
|
|
56321
56105
|
onKeyDown = props.onKeyDown,
|
|
56322
56106
|
onFocus = props.onFocus,
|
|
56323
|
-
restProps =
|
|
56107
|
+
restProps = _objectWithoutProperties(props, MenuItem_excluded2);
|
|
56324
56108
|
|
|
56325
56109
|
var domDataId = useMenuId(eventKey);
|
|
56326
56110
|
|
|
@@ -56349,7 +56133,7 @@ var InternalMenuItem = function InternalMenuItem(props) {
|
|
|
56349
56133
|
return {
|
|
56350
56134
|
key: eventKey,
|
|
56351
56135
|
// Note: For legacy code is reversed which not like other antd component
|
|
56352
|
-
keyPath:
|
|
56136
|
+
keyPath: _toConsumableArray(connectedKeys).reverse(),
|
|
56353
56137
|
item: legacyMenuItemRef.current,
|
|
56354
56138
|
domEvent: e
|
|
56355
56139
|
};
|
|
@@ -56360,7 +56144,7 @@ var InternalMenuItem = function InternalMenuItem(props) {
|
|
|
56360
56144
|
|
|
56361
56145
|
var _useActive = useActive(eventKey, mergedDisabled, onMouseEnter, onMouseLeave),
|
|
56362
56146
|
active = _useActive.active,
|
|
56363
|
-
activeProps =
|
|
56147
|
+
activeProps = _objectWithoutProperties(_useActive, _excluded3); // ============================ Select ============================
|
|
56364
56148
|
|
|
56365
56149
|
|
|
56366
56150
|
var selected = selectedKeys.includes(eventKey); // ======================== DirectionStyle ========================
|
|
@@ -56405,7 +56189,7 @@ var InternalMenuItem = function InternalMenuItem(props) {
|
|
|
56405
56189
|
optionRoleProps['aria-selected'] = selected;
|
|
56406
56190
|
}
|
|
56407
56191
|
|
|
56408
|
-
var renderNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(LegacyMenuItem,
|
|
56192
|
+
var renderNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(LegacyMenuItem, extends_extends({
|
|
56409
56193
|
ref: legacyMenuItemRef,
|
|
56410
56194
|
elementRef: elementRef,
|
|
56411
56195
|
role: role === null ? 'none' : role || 'menuitem',
|
|
@@ -56414,13 +56198,13 @@ var InternalMenuItem = function InternalMenuItem(props) {
|
|
|
56414
56198
|
}, restProps, activeProps, optionRoleProps, {
|
|
56415
56199
|
component: "li",
|
|
56416
56200
|
"aria-disabled": disabled,
|
|
56417
|
-
style:
|
|
56418
|
-
className: classnames_default()(itemCls, (_classNames = {},
|
|
56201
|
+
style: _objectSpread2(_objectSpread2({}, directionStyle), style),
|
|
56202
|
+
className: classnames_default()(itemCls, (_classNames = {}, _defineProperty(_classNames, "".concat(itemCls, "-active"), active), _defineProperty(_classNames, "".concat(itemCls, "-selected"), selected), _defineProperty(_classNames, "".concat(itemCls, "-disabled"), mergedDisabled), _classNames), className),
|
|
56419
56203
|
onClick: onInternalClick,
|
|
56420
56204
|
onKeyDown: onInternalKeyDown,
|
|
56421
56205
|
onFocus: onInternalFocus
|
|
56422
56206
|
}), children, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Icon_Icon, {
|
|
56423
|
-
props:
|
|
56207
|
+
props: _objectSpread2(_objectSpread2({}, props), {}, {
|
|
56424
56208
|
isSelected: selected
|
|
56425
56209
|
}),
|
|
56426
56210
|
icon: mergedItemIcon
|
|
@@ -56473,7 +56257,7 @@ function parseChildren(children, keyPath) {
|
|
|
56473
56257
|
var emptyKey = eventKey === null || eventKey === undefined;
|
|
56474
56258
|
|
|
56475
56259
|
if (emptyKey) {
|
|
56476
|
-
eventKey = "tmp_key-".concat([].concat(
|
|
56260
|
+
eventKey = "tmp_key-".concat([].concat(_toConsumableArray(keyPath), [index]).join('-'));
|
|
56477
56261
|
}
|
|
56478
56262
|
|
|
56479
56263
|
var cloneProps = {
|
|
@@ -56521,14 +56305,14 @@ var SubMenuList_excluded = ["className", "children"];
|
|
|
56521
56305
|
var InternalSubMenuList = function InternalSubMenuList(_ref, ref) {
|
|
56522
56306
|
var className = _ref.className,
|
|
56523
56307
|
children = _ref.children,
|
|
56524
|
-
restProps =
|
|
56308
|
+
restProps = _objectWithoutProperties(_ref, SubMenuList_excluded);
|
|
56525
56309
|
|
|
56526
56310
|
var _React$useContext = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useContext(MenuContext),
|
|
56527
56311
|
prefixCls = _React$useContext.prefixCls,
|
|
56528
56312
|
mode = _React$useContext.mode,
|
|
56529
56313
|
rtl = _React$useContext.rtl;
|
|
56530
56314
|
|
|
56531
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("ul",
|
|
56315
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("ul", extends_extends({
|
|
56532
56316
|
className: classnames_default()(prefixCls, rtl && "".concat(prefixCls, "-rtl"), "".concat(prefixCls, "-sub"), "".concat(prefixCls, "-").concat(mode === 'inline' ? 'inline' : 'vertical'), className)
|
|
56533
56317
|
}, restProps, {
|
|
56534
56318
|
"data-menu-list": true,
|
|
@@ -56645,11 +56429,11 @@ function PopupTrigger(_ref) {
|
|
|
56645
56429
|
innerVisible = _React$useState2[0],
|
|
56646
56430
|
setInnerVisible = _React$useState2[1];
|
|
56647
56431
|
|
|
56648
|
-
var placement = rtl ?
|
|
56432
|
+
var placement = rtl ? _objectSpread2(_objectSpread2({}, placementsRtl), builtinPlacements) : _objectSpread2(_objectSpread2({}, placements), builtinPlacements);
|
|
56649
56433
|
var popupPlacement = popupPlacementMap[mode];
|
|
56650
56434
|
var targetMotion = motionUtil_getMotion(mode, motion, defaultMotions);
|
|
56651
56435
|
|
|
56652
|
-
var mergedMotion =
|
|
56436
|
+
var mergedMotion = _objectSpread2(_objectSpread2({}, targetMotion), {}, {
|
|
56653
56437
|
leavedClassName: "".concat(prefixCls, "-hidden"),
|
|
56654
56438
|
removeOnLeave: false,
|
|
56655
56439
|
motionAppear: true
|
|
@@ -56667,7 +56451,7 @@ function PopupTrigger(_ref) {
|
|
|
56667
56451
|
}, [visible]);
|
|
56668
56452
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_trigger_es, {
|
|
56669
56453
|
prefixCls: prefixCls,
|
|
56670
|
-
popupClassName: classnames_default()("".concat(prefixCls, "-popup"),
|
|
56454
|
+
popupClassName: classnames_default()("".concat(prefixCls, "-popup"), _defineProperty({}, "".concat(prefixCls, "-rtl"), rtl), popupClassName),
|
|
56671
56455
|
stretch: mode === 'horizontal' ? 'minWidth' : null,
|
|
56672
56456
|
getPopupContainer: getPopupContainer,
|
|
56673
56457
|
builtinPlacements: placement,
|
|
@@ -56727,7 +56511,7 @@ function InlineSubMenuList(_ref) {
|
|
|
56727
56511
|
}
|
|
56728
56512
|
}, [mode]); // ================================= Render =================================
|
|
56729
56513
|
|
|
56730
|
-
var mergedMotion =
|
|
56514
|
+
var mergedMotion = _objectSpread2({}, motionUtil_getMotion(fixedMode, motion, defaultMotions)); // No need appear since nest inlineCollapse changed
|
|
56731
56515
|
|
|
56732
56516
|
|
|
56733
56517
|
if (keyPath.length > 1) {
|
|
@@ -56752,7 +56536,7 @@ function InlineSubMenuList(_ref) {
|
|
|
56752
56536
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(InheritableContextProvider, {
|
|
56753
56537
|
mode: fixedMode,
|
|
56754
56538
|
locked: !sameModeRef.current
|
|
56755
|
-
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es,
|
|
56539
|
+
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es, extends_extends({
|
|
56756
56540
|
visible: mergedOpen
|
|
56757
56541
|
}, mergedMotion, {
|
|
56758
56542
|
forceRender: forceSubMenuRender,
|
|
@@ -56815,7 +56599,7 @@ var InternalSubMenu = function InternalSubMenu(props) {
|
|
|
56815
56599
|
onTitleClick = props.onTitleClick,
|
|
56816
56600
|
onTitleMouseEnter = props.onTitleMouseEnter,
|
|
56817
56601
|
onTitleMouseLeave = props.onTitleMouseLeave,
|
|
56818
|
-
restProps =
|
|
56602
|
+
restProps = _objectWithoutProperties(props, SubMenu_excluded);
|
|
56819
56603
|
|
|
56820
56604
|
var domDataId = useMenuId(eventKey);
|
|
56821
56605
|
|
|
@@ -56858,7 +56642,7 @@ var InternalSubMenu = function InternalSubMenu(props) {
|
|
|
56858
56642
|
|
|
56859
56643
|
var _useActive = useActive(eventKey, mergedDisabled, onTitleMouseEnter, onTitleMouseLeave),
|
|
56860
56644
|
active = _useActive.active,
|
|
56861
|
-
activeProps =
|
|
56645
|
+
activeProps = _objectWithoutProperties(_useActive, SubMenu_excluded2); // Fallback of active check to avoid hover on menu title or disabled item
|
|
56862
56646
|
|
|
56863
56647
|
|
|
56864
56648
|
var _React$useState = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState(false),
|
|
@@ -56943,7 +56727,7 @@ var InternalSubMenu = function InternalSubMenu(props) {
|
|
|
56943
56727
|
|
|
56944
56728
|
var popupId = domDataId && "".concat(domDataId, "-popup"); // >>>>> Title
|
|
56945
56729
|
|
|
56946
|
-
var titleNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
56730
|
+
var titleNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", extends_extends({
|
|
56947
56731
|
role: "menuitem",
|
|
56948
56732
|
style: directionStyle,
|
|
56949
56733
|
className: "".concat(subMenuPrefixCls, "-title"),
|
|
@@ -56959,7 +56743,7 @@ var InternalSubMenu = function InternalSubMenu(props) {
|
|
|
56959
56743
|
onFocus: onInternalFocus
|
|
56960
56744
|
}, activeProps), title, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Icon_Icon, {
|
|
56961
56745
|
icon: mode !== 'horizontal' ? mergedExpandIcon : null,
|
|
56962
|
-
props:
|
|
56746
|
+
props: _objectSpread2(_objectSpread2({}, props), {}, {
|
|
56963
56747
|
isOpen: open,
|
|
56964
56748
|
// [Legacy] Not sure why need this mark
|
|
56965
56749
|
isSubMenu: true
|
|
@@ -56997,12 +56781,12 @@ var InternalSubMenu = function InternalSubMenu(props) {
|
|
|
56997
56781
|
} // >>>>> List node
|
|
56998
56782
|
|
|
56999
56783
|
|
|
57000
|
-
var listNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_overflow_es.Item,
|
|
56784
|
+
var listNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_overflow_es.Item, extends_extends({
|
|
57001
56785
|
role: "none"
|
|
57002
56786
|
}, restProps, {
|
|
57003
56787
|
component: "li",
|
|
57004
56788
|
style: style,
|
|
57005
|
-
className: classnames_default()(subMenuPrefixCls, "".concat(subMenuPrefixCls, "-").concat(mode), className, (_classNames = {},
|
|
56789
|
+
className: classnames_default()(subMenuPrefixCls, "".concat(subMenuPrefixCls, "-").concat(mode), className, (_classNames = {}, _defineProperty(_classNames, "".concat(subMenuPrefixCls, "-open"), open), _defineProperty(_classNames, "".concat(subMenuPrefixCls, "-active"), mergedActive), _defineProperty(_classNames, "".concat(subMenuPrefixCls, "-selected"), childrenSelected), _defineProperty(_classNames, "".concat(subMenuPrefixCls, "-disabled"), mergedDisabled), _classNames)),
|
|
57006
56790
|
onMouseEnter: onInternalMouseEnter,
|
|
57007
56791
|
onMouseLeave: onInternalMouseLeave
|
|
57008
56792
|
}), titleNode, !overflowDisabled && /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(InlineSubMenuList, {
|
|
@@ -57095,7 +56879,7 @@ function focusable(node) {
|
|
|
57095
56879
|
function getFocusNodeList(node) {
|
|
57096
56880
|
var includePositive = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
57097
56881
|
|
|
57098
|
-
var res =
|
|
56882
|
+
var res = _toConsumableArray(node.querySelectorAll('*')).filter(function (child) {
|
|
57099
56883
|
return focusable(child, includePositive);
|
|
57100
56884
|
});
|
|
57101
56885
|
|
|
@@ -57175,9 +56959,9 @@ function useAccessibility_getOffset(mode, isRootLevel, isRtl, which) {
|
|
|
57175
56959
|
};
|
|
57176
56960
|
}
|
|
57177
56961
|
|
|
57178
|
-
var inline = (_inline = {},
|
|
57179
|
-
var horizontal = (_horizontal = {},
|
|
57180
|
-
var vertical = (_vertical = {},
|
|
56962
|
+
var inline = (_inline = {}, _defineProperty(_inline, UP, prev), _defineProperty(_inline, DOWN, next), _inline);
|
|
56963
|
+
var horizontal = (_horizontal = {}, _defineProperty(_horizontal, useAccessibility_LEFT, isRtl ? next : prev), _defineProperty(_horizontal, RIGHT, isRtl ? prev : next), _defineProperty(_horizontal, DOWN, children), _defineProperty(_horizontal, ENTER, children), _horizontal);
|
|
56964
|
+
var vertical = (_vertical = {}, _defineProperty(_vertical, UP, prev), _defineProperty(_vertical, DOWN, next), _defineProperty(_vertical, ENTER, children), _defineProperty(_vertical, ESC, parent), _defineProperty(_vertical, useAccessibility_LEFT, isRtl ? children : parent), _defineProperty(_vertical, RIGHT, isRtl ? parent : children), _vertical);
|
|
57181
56965
|
var offsets = {
|
|
57182
56966
|
inline: inline,
|
|
57183
56967
|
horizontal: horizontal,
|
|
@@ -57541,7 +57325,7 @@ function useKeyRecords() {
|
|
|
57541
57325
|
}, [getKeyPath]);
|
|
57542
57326
|
|
|
57543
57327
|
var getKeys = function getKeys() {
|
|
57544
|
-
var keys =
|
|
57328
|
+
var keys = _toConsumableArray(key2pathRef.current.keys());
|
|
57545
57329
|
|
|
57546
57330
|
if (overflowKeys.length) {
|
|
57547
57331
|
keys.push(OVERFLOW_KEY);
|
|
@@ -57558,7 +57342,7 @@ function useKeyRecords() {
|
|
|
57558
57342
|
var connectedPath = "".concat(key2pathRef.current.get(key)).concat(PATH_SPLIT);
|
|
57559
57343
|
var pathKeys = new Set();
|
|
57560
57344
|
|
|
57561
|
-
|
|
57345
|
+
_toConsumableArray(path2keyRef.current.keys()).forEach(function (pathKey) {
|
|
57562
57346
|
if (pathKey.startsWith(connectedPath)) {
|
|
57563
57347
|
pathKeys.add(path2keyRef.current.get(pathKey));
|
|
57564
57348
|
}
|
|
@@ -57679,7 +57463,7 @@ var Menu = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_names
|
|
|
57679
57463
|
openTransitionName = props.openTransitionName,
|
|
57680
57464
|
_internalRenderMenuItem = props._internalRenderMenuItem,
|
|
57681
57465
|
_internalRenderSubMenuItem = props._internalRenderSubMenuItem,
|
|
57682
|
-
restProps =
|
|
57466
|
+
restProps = _objectWithoutProperties(props, Menu_excluded);
|
|
57683
57467
|
|
|
57684
57468
|
var childList = parseChildren(children, EMPTY_LIST);
|
|
57685
57469
|
|
|
@@ -57833,7 +57617,7 @@ var Menu = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_names
|
|
|
57833
57617
|
return key !== targetKey;
|
|
57834
57618
|
});
|
|
57835
57619
|
} else {
|
|
57836
|
-
newSelectKeys = [].concat(
|
|
57620
|
+
newSelectKeys = [].concat(_toConsumableArray(mergedSelectKeys), [targetKey]);
|
|
57837
57621
|
}
|
|
57838
57622
|
} else {
|
|
57839
57623
|
newSelectKeys = [targetKey];
|
|
@@ -57841,7 +57625,7 @@ var Menu = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_names
|
|
|
57841
57625
|
|
|
57842
57626
|
setMergedSelectKeys(newSelectKeys); // Trigger event
|
|
57843
57627
|
|
|
57844
|
-
var selectInfo =
|
|
57628
|
+
var selectInfo = _objectSpread2(_objectSpread2({}, info), {}, {
|
|
57845
57629
|
selectedKeys: newSelectKeys
|
|
57846
57630
|
});
|
|
57847
57631
|
|
|
@@ -57919,13 +57703,13 @@ var Menu = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_names
|
|
|
57919
57703
|
);
|
|
57920
57704
|
}); // >>>>> Container
|
|
57921
57705
|
|
|
57922
|
-
var container = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_overflow_es,
|
|
57706
|
+
var container = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_overflow_es, extends_extends({
|
|
57923
57707
|
id: id,
|
|
57924
57708
|
ref: mergedRef,
|
|
57925
57709
|
prefixCls: "".concat(prefixCls, "-overflow"),
|
|
57926
57710
|
component: "ul",
|
|
57927
57711
|
itemComponent: es_MenuItem,
|
|
57928
|
-
className: classnames_default()(prefixCls, "".concat(prefixCls, "-root"), "".concat(prefixCls, "-").concat(mergedMode), className, (_classNames = {},
|
|
57712
|
+
className: classnames_default()(prefixCls, "".concat(prefixCls, "-root"), "".concat(prefixCls, "-").concat(mergedMode), className, (_classNames = {}, _defineProperty(_classNames, "".concat(prefixCls, "-inline-collapsed"), mergedInlineCollapsed), _defineProperty(_classNames, "".concat(prefixCls, "-rtl"), isRtl), _classNames)),
|
|
57929
57713
|
dir: direction,
|
|
57930
57714
|
style: style,
|
|
57931
57715
|
role: "menu",
|
|
@@ -58019,13 +57803,13 @@ var InternalMenuItemGroup = function InternalMenuItemGroup(_ref) {
|
|
|
58019
57803
|
title = _ref.title,
|
|
58020
57804
|
eventKey = _ref.eventKey,
|
|
58021
57805
|
children = _ref.children,
|
|
58022
|
-
restProps =
|
|
57806
|
+
restProps = _objectWithoutProperties(_ref, MenuItemGroup_excluded);
|
|
58023
57807
|
|
|
58024
57808
|
var _React$useContext = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useContext(MenuContext),
|
|
58025
57809
|
prefixCls = _React$useContext.prefixCls;
|
|
58026
57810
|
|
|
58027
57811
|
var groupPrefixCls = "".concat(prefixCls, "-item-group");
|
|
58028
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("li",
|
|
57812
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("li", extends_extends({}, restProps, {
|
|
58029
57813
|
onClick: function onClick(e) {
|
|
58030
57814
|
return e.stopPropagation();
|
|
58031
57815
|
},
|
|
@@ -58040,7 +57824,7 @@ var InternalMenuItemGroup = function InternalMenuItemGroup(_ref) {
|
|
|
58040
57824
|
|
|
58041
57825
|
function MenuItemGroup(_ref2) {
|
|
58042
57826
|
var children = _ref2.children,
|
|
58043
|
-
props =
|
|
57827
|
+
props = _objectWithoutProperties(_ref2, MenuItemGroup_excluded2);
|
|
58044
57828
|
|
|
58045
57829
|
var connectedKeyPath = useFullPath(props.eventKey);
|
|
58046
57830
|
var childList = parseChildren(children, connectedKeyPath);
|
|
@@ -58168,7 +57952,7 @@ function Dropdown(props, ref) {
|
|
|
58168
57952
|
visible = props.visible,
|
|
58169
57953
|
_props$trigger = props.trigger,
|
|
58170
57954
|
trigger = _props$trigger === void 0 ? ['hover'] : _props$trigger,
|
|
58171
|
-
otherProps =
|
|
57955
|
+
otherProps = _objectWithoutProperties(props, Dropdown_excluded);
|
|
58172
57956
|
|
|
58173
57957
|
var _React$useState = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState(),
|
|
58174
57958
|
_React$useState2 = slicedToArray_slicedToArray(_React$useState, 2),
|
|
@@ -58279,12 +58063,12 @@ function Dropdown(props, ref) {
|
|
|
58279
58063
|
triggerHideAction = ['click'];
|
|
58280
58064
|
}
|
|
58281
58065
|
|
|
58282
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_trigger_es,
|
|
58066
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_trigger_es, _objectSpread2(_objectSpread2({
|
|
58283
58067
|
builtinPlacements: placements
|
|
58284
58068
|
}, otherProps), {}, {
|
|
58285
58069
|
prefixCls: prefixCls,
|
|
58286
58070
|
ref: triggerRef,
|
|
58287
|
-
popupClassName: classnames_default()(overlayClassName,
|
|
58071
|
+
popupClassName: classnames_default()(overlayClassName, _defineProperty({}, "".concat(prefixCls, "-show-arrow"), arrow)),
|
|
58288
58072
|
popupStyle: overlayStyle,
|
|
58289
58073
|
action: trigger,
|
|
58290
58074
|
showAction: showAction,
|
|
@@ -58488,14 +58272,14 @@ function OperationNode(_ref, ref) {
|
|
|
58488
58272
|
}
|
|
58489
58273
|
}, [open]); // ========================= Render =========================
|
|
58490
58274
|
|
|
58491
|
-
var moreStyle =
|
|
58275
|
+
var moreStyle = _defineProperty({}, rtl ? 'marginRight' : 'marginLeft', tabBarGutter);
|
|
58492
58276
|
|
|
58493
58277
|
if (!tabs.length) {
|
|
58494
58278
|
moreStyle.visibility = 'hidden';
|
|
58495
58279
|
moreStyle.order = 1;
|
|
58496
58280
|
}
|
|
58497
58281
|
|
|
58498
|
-
var overlayClassName = classnames_default()(
|
|
58282
|
+
var overlayClassName = classnames_default()(_defineProperty({}, "".concat(dropdownPrefix, "-rtl"), rtl));
|
|
58499
58283
|
var moreNode = mobile ? null : /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_dropdown_es, {
|
|
58500
58284
|
prefixCls: dropdownPrefix,
|
|
58501
58285
|
overlay: menu,
|
|
@@ -58774,7 +58558,7 @@ var ExtraContent = function ExtraContent(_ref) {
|
|
|
58774
58558
|
|
|
58775
58559
|
var assertExtra = {};
|
|
58776
58560
|
|
|
58777
|
-
if (extra &&
|
|
58561
|
+
if (extra && typeof_typeof(extra) === 'object' && ! /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.isValidElement(extra)) {
|
|
58778
58562
|
assertExtra = extra;
|
|
58779
58563
|
} else {
|
|
58780
58564
|
assertExtra.right = extra;
|
|
@@ -59024,7 +58808,7 @@ function TabNavList(props, ref) {
|
|
|
59024
58808
|
}, {
|
|
59025
58809
|
width: addWidth,
|
|
59026
58810
|
height: addHeight
|
|
59027
|
-
},
|
|
58811
|
+
}, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
59028
58812
|
tabs: tabs
|
|
59029
58813
|
})),
|
|
59030
58814
|
_useVisibleRange2 = slicedToArray_slicedToArray(_useVisibleRange, 2),
|
|
@@ -59116,7 +58900,7 @@ function TabNavList(props, ref) {
|
|
|
59116
58900
|
|
|
59117
58901
|
var startHiddenTabs = tabs.slice(0, visibleStart);
|
|
59118
58902
|
var endHiddenTabs = tabs.slice(visibleEnd + 1);
|
|
59119
|
-
var hiddenTabs = [].concat(
|
|
58903
|
+
var hiddenTabs = [].concat(_toConsumableArray(startHiddenTabs), _toConsumableArray(endHiddenTabs)); // =================== Link & Operations ===================
|
|
59120
58904
|
|
|
59121
58905
|
var _useState15 = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState)(),
|
|
59122
58906
|
_useState16 = slicedToArray_slicedToArray(_useState15, 2),
|
|
@@ -59202,7 +58986,7 @@ function TabNavList(props, ref) {
|
|
|
59202
58986
|
}), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_resize_observer_es, {
|
|
59203
58987
|
onResize: onListHolderResize
|
|
59204
58988
|
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", {
|
|
59205
|
-
className: classnames_default()(wrapPrefix, (_classNames = {},
|
|
58989
|
+
className: classnames_default()(wrapPrefix, (_classNames = {}, _defineProperty(_classNames, "".concat(wrapPrefix, "-ping-left"), pingLeft), _defineProperty(_classNames, "".concat(wrapPrefix, "-ping-right"), pingRight), _defineProperty(_classNames, "".concat(wrapPrefix, "-ping-top"), pingTop), _defineProperty(_classNames, "".concat(wrapPrefix, "-ping-bottom"), pingBottom), _classNames)),
|
|
59206
58990
|
ref: tabsWrapperRef
|
|
59207
58991
|
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_resize_observer_es, {
|
|
59208
58992
|
onResize: onListHolderResize
|
|
@@ -59218,13 +59002,13 @@ function TabNavList(props, ref) {
|
|
|
59218
59002
|
prefixCls: prefixCls,
|
|
59219
59003
|
locale: locale,
|
|
59220
59004
|
editable: editable,
|
|
59221
|
-
style:
|
|
59005
|
+
style: _objectSpread2(_objectSpread2({}, tabNodes.length === 0 ? undefined : tabNodeStyle), {}, {
|
|
59222
59006
|
visibility: hasDropdown ? 'hidden' : null
|
|
59223
59007
|
})
|
|
59224
59008
|
}), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", {
|
|
59225
|
-
className: classnames_default()("".concat(prefixCls, "-ink-bar"),
|
|
59009
|
+
className: classnames_default()("".concat(prefixCls, "-ink-bar"), _defineProperty({}, "".concat(prefixCls, "-ink-bar-animated"), animated.inkBar)),
|
|
59226
59010
|
style: inkStyle
|
|
59227
|
-
}))))), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(TabNavList_OperationNode,
|
|
59011
|
+
}))))), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(TabNavList_OperationNode, extends_extends({}, props, {
|
|
59228
59012
|
removeAriaLabel: locale === null || locale === void 0 ? void 0 : locale.removeAriaLabel,
|
|
59229
59013
|
ref: operationsRef,
|
|
59230
59014
|
prefixCls: prefixCls,
|
|
@@ -59264,8 +59048,8 @@ function TabPanelList(_ref) {
|
|
|
59264
59048
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", {
|
|
59265
59049
|
className: classnames_default()("".concat(prefixCls, "-content-holder"))
|
|
59266
59050
|
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", {
|
|
59267
|
-
className: classnames_default()("".concat(prefixCls, "-content"), "".concat(prefixCls, "-content-").concat(tabPosition),
|
|
59268
|
-
style: activeIndex && tabPaneAnimated ?
|
|
59051
|
+
className: classnames_default()("".concat(prefixCls, "-content"), "".concat(prefixCls, "-content-").concat(tabPosition), _defineProperty({}, "".concat(prefixCls, "-content-animated"), tabPaneAnimated)),
|
|
59052
|
+
style: activeIndex && tabPaneAnimated ? _defineProperty({}, rtl ? 'marginRight' : 'marginLeft', "-".concat(activeIndex, "00%")) : null
|
|
59269
59053
|
}, tabs.map(function (tab) {
|
|
59270
59054
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.cloneElement(tab.node, {
|
|
59271
59055
|
key: tab.key,
|
|
@@ -59325,7 +59109,7 @@ function TabPane(_ref) {
|
|
|
59325
59109
|
tabIndex: active ? 0 : -1,
|
|
59326
59110
|
"aria-labelledby": id && "".concat(id, "-tab-").concat(tabKey),
|
|
59327
59111
|
"aria-hidden": !active,
|
|
59328
|
-
style:
|
|
59112
|
+
style: _objectSpread2(_objectSpread2({}, mergedStyle), style),
|
|
59329
59113
|
className: classnames_default()("".concat(prefixCls, "-tabpane"), active && "".concat(prefixCls, "-tabpane-active"), className)
|
|
59330
59114
|
}, (active || visited || forceRender) && children);
|
|
59331
59115
|
}
|
|
@@ -59365,7 +59149,7 @@ function parseTabList(children) {
|
|
|
59365
59149
|
return toArray(children).map(function (node) {
|
|
59366
59150
|
if ( /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.isValidElement(node)) {
|
|
59367
59151
|
var key = node.key !== undefined ? String(node.key) : undefined;
|
|
59368
|
-
return
|
|
59152
|
+
return _objectSpread2(_objectSpread2({
|
|
59369
59153
|
key: key
|
|
59370
59154
|
}, node.props), {}, {
|
|
59371
59155
|
node: node
|
|
@@ -59408,7 +59192,7 @@ function Tabs(_ref, ref) {
|
|
|
59408
59192
|
onChange = _ref.onChange,
|
|
59409
59193
|
onTabClick = _ref.onTabClick,
|
|
59410
59194
|
onTabScroll = _ref.onTabScroll,
|
|
59411
|
-
restProps =
|
|
59195
|
+
restProps = _objectWithoutProperties(_ref, Tabs_excluded);
|
|
59412
59196
|
|
|
59413
59197
|
var tabs = parseTabList(children);
|
|
59414
59198
|
var rtl = direction === 'rtl';
|
|
@@ -59425,10 +59209,10 @@ function Tabs(_ref, ref) {
|
|
|
59425
59209
|
tabPane: true
|
|
59426
59210
|
};
|
|
59427
59211
|
} else {
|
|
59428
|
-
mergedAnimated =
|
|
59212
|
+
mergedAnimated = _objectSpread2({
|
|
59429
59213
|
inkBar: true,
|
|
59430
59214
|
tabPane: false
|
|
59431
|
-
},
|
|
59215
|
+
}, typeof_typeof(animated) === 'object' ? animated : {});
|
|
59432
59216
|
} // ======================== Mobile ========================
|
|
59433
59217
|
|
|
59434
59218
|
|
|
@@ -59523,7 +59307,7 @@ function Tabs(_ref, ref) {
|
|
|
59523
59307
|
};
|
|
59524
59308
|
var tabNavBar;
|
|
59525
59309
|
|
|
59526
|
-
var tabNavBarProps =
|
|
59310
|
+
var tabNavBarProps = _objectSpread2(_objectSpread2({}, sharedProps), {}, {
|
|
59527
59311
|
editable: editable,
|
|
59528
59312
|
locale: locale,
|
|
59529
59313
|
moreIcon: moreIcon,
|
|
@@ -59547,11 +59331,11 @@ function Tabs(_ref, ref) {
|
|
|
59547
59331
|
tabs: tabs,
|
|
59548
59332
|
prefixCls: prefixCls
|
|
59549
59333
|
}
|
|
59550
|
-
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div",
|
|
59334
|
+
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("div", extends_extends({
|
|
59551
59335
|
ref: ref,
|
|
59552
59336
|
id: id,
|
|
59553
|
-
className: classnames_default()(prefixCls, "".concat(prefixCls, "-").concat(mergedTabPosition), (_classNames = {},
|
|
59554
|
-
}, restProps), tabNavBar, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(TabPanelList,
|
|
59337
|
+
className: classnames_default()(prefixCls, "".concat(prefixCls, "-").concat(mergedTabPosition), (_classNames = {}, _defineProperty(_classNames, "".concat(prefixCls, "-mobile"), mobile), _defineProperty(_classNames, "".concat(prefixCls, "-editable"), editable), _defineProperty(_classNames, "".concat(prefixCls, "-rtl"), rtl), _classNames), className)
|
|
59338
|
+
}, restProps), tabNavBar, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(TabPanelList, extends_extends({
|
|
59555
59339
|
destroyInactiveTabPane: destroyInactiveTabPane
|
|
59556
59340
|
}, sharedProps, {
|
|
59557
59341
|
animated: mergedAnimated
|
|
@@ -59749,7 +59533,7 @@ var Pager = function Pager(props) {
|
|
|
59749
59533
|
var _classNames;
|
|
59750
59534
|
|
|
59751
59535
|
var prefixCls = "".concat(props.rootPrefixCls, "-item");
|
|
59752
|
-
var cls = classnames_default()(prefixCls, "".concat(prefixCls, "-").concat(props.page), (_classNames = {},
|
|
59536
|
+
var cls = classnames_default()(prefixCls, "".concat(prefixCls, "-").concat(props.page), (_classNames = {}, _defineProperty(_classNames, "".concat(prefixCls, "-active"), props.active), _defineProperty(_classNames, "".concat(prefixCls, "-disabled"), !props.page), _defineProperty(_classNames, props.className, !!props.className), _classNames));
|
|
59753
59537
|
|
|
59754
59538
|
var handleClick = function handleClick() {
|
|
59755
59539
|
props.onClick(props.page);
|
|
@@ -59794,14 +59578,14 @@ var Pager = function Pager(props) {
|
|
|
59794
59578
|
|
|
59795
59579
|
|
|
59796
59580
|
var Options = /*#__PURE__*/function (_React$Component) {
|
|
59797
|
-
|
|
59581
|
+
_inherits(Options, _React$Component);
|
|
59798
59582
|
|
|
59799
|
-
var _super =
|
|
59583
|
+
var _super = _createSuper(Options);
|
|
59800
59584
|
|
|
59801
59585
|
function Options() {
|
|
59802
59586
|
var _this;
|
|
59803
59587
|
|
|
59804
|
-
|
|
59588
|
+
_classCallCheck(this, Options);
|
|
59805
59589
|
|
|
59806
59590
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
59807
59591
|
args[_key] = arguments[_key];
|
|
@@ -59867,7 +59651,7 @@ var Options = /*#__PURE__*/function (_React$Component) {
|
|
|
59867
59651
|
return _this;
|
|
59868
59652
|
}
|
|
59869
59653
|
|
|
59870
|
-
|
|
59654
|
+
_createClass(Options, [{
|
|
59871
59655
|
key: "getValidValue",
|
|
59872
59656
|
value: function getValidValue() {
|
|
59873
59657
|
var goInputText = this.state.goInputText; // eslint-disable-next-line no-restricted-globals
|
|
@@ -60024,14 +59808,14 @@ function calculatePage(p, state, props) {
|
|
|
60024
59808
|
}
|
|
60025
59809
|
|
|
60026
59810
|
var Pagination = /*#__PURE__*/function (_React$Component) {
|
|
60027
|
-
|
|
59811
|
+
_inherits(Pagination, _React$Component);
|
|
60028
59812
|
|
|
60029
|
-
var _super =
|
|
59813
|
+
var _super = _createSuper(Pagination);
|
|
60030
59814
|
|
|
60031
59815
|
function Pagination(props) {
|
|
60032
59816
|
var _this;
|
|
60033
59817
|
|
|
60034
|
-
|
|
59818
|
+
_classCallCheck(this, Pagination);
|
|
60035
59819
|
|
|
60036
59820
|
_this = _super.call(this, props);
|
|
60037
59821
|
|
|
@@ -60052,7 +59836,7 @@ var Pagination = /*#__PURE__*/function (_React$Component) {
|
|
|
60052
59836
|
});
|
|
60053
59837
|
|
|
60054
59838
|
if (typeof icon === 'function') {
|
|
60055
|
-
iconNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(icon,
|
|
59839
|
+
iconNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(icon, _objectSpread2({}, _this.props));
|
|
60056
59840
|
}
|
|
60057
59841
|
|
|
60058
59842
|
return iconNode;
|
|
@@ -60274,7 +60058,7 @@ var Pagination = /*#__PURE__*/function (_React$Component) {
|
|
|
60274
60058
|
return _this;
|
|
60275
60059
|
}
|
|
60276
60060
|
|
|
60277
|
-
|
|
60061
|
+
_createClass(Pagination, [{
|
|
60278
60062
|
key: "componentDidUpdate",
|
|
60279
60063
|
value: function componentDidUpdate(prevProps, prevState) {
|
|
60280
60064
|
// When current page change, fix focused style of prev item
|
|
@@ -60422,8 +60206,8 @@ var Pagination = /*#__PURE__*/function (_React$Component) {
|
|
|
60422
60206
|
}, gotoButton);
|
|
60423
60207
|
}
|
|
60424
60208
|
|
|
60425
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("ul",
|
|
60426
|
-
className: classnames_default()(prefixCls, "".concat(prefixCls, "-simple"),
|
|
60209
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("ul", extends_extends({
|
|
60210
|
+
className: classnames_default()(prefixCls, "".concat(prefixCls, "-simple"), _defineProperty({}, "".concat(prefixCls, "-disabled"), disabled), className),
|
|
60427
60211
|
style: style,
|
|
60428
60212
|
ref: this.savePaginationNode
|
|
60429
60213
|
}, dataOrAriaAttributeProps), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("li", {
|
|
@@ -60431,7 +60215,7 @@ var Pagination = /*#__PURE__*/function (_React$Component) {
|
|
|
60431
60215
|
onClick: this.prev,
|
|
60432
60216
|
tabIndex: this.hasPrev() ? 0 : null,
|
|
60433
60217
|
onKeyPress: this.runIfEnterPrev,
|
|
60434
|
-
className: classnames_default()("".concat(prefixCls, "-prev"),
|
|
60218
|
+
className: classnames_default()("".concat(prefixCls, "-prev"), _defineProperty({}, "".concat(prefixCls, "-disabled"), !this.hasPrev())),
|
|
60435
60219
|
"aria-disabled": !this.hasPrev()
|
|
60436
60220
|
}, this.renderPrev(prevPage)), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("li", {
|
|
60437
60221
|
title: showTitle ? "".concat(current, "/").concat(allPages) : null,
|
|
@@ -60452,7 +60236,7 @@ var Pagination = /*#__PURE__*/function (_React$Component) {
|
|
|
60452
60236
|
onClick: this.next,
|
|
60453
60237
|
tabIndex: this.hasPrev() ? 0 : null,
|
|
60454
60238
|
onKeyPress: this.runIfEnterNext,
|
|
60455
|
-
className: classnames_default()("".concat(prefixCls, "-next"),
|
|
60239
|
+
className: classnames_default()("".concat(prefixCls, "-next"), _defineProperty({}, "".concat(prefixCls, "-disabled"), !this.hasNext())),
|
|
60456
60240
|
"aria-disabled": !this.hasNext()
|
|
60457
60241
|
}, this.renderNext(nextPage)), gotoButton);
|
|
60458
60242
|
}
|
|
@@ -60468,7 +60252,7 @@ var Pagination = /*#__PURE__*/function (_React$Component) {
|
|
|
60468
60252
|
};
|
|
60469
60253
|
|
|
60470
60254
|
if (!allPages) {
|
|
60471
|
-
pagerList.push( /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(es_Pager,
|
|
60255
|
+
pagerList.push( /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(es_Pager, extends_extends({}, pagerProps, {
|
|
60472
60256
|
key: "noPager",
|
|
60473
60257
|
page: 1,
|
|
60474
60258
|
className: "".concat(prefixCls, "-item-disabled")
|
|
@@ -60477,7 +60261,7 @@ var Pagination = /*#__PURE__*/function (_React$Component) {
|
|
|
60477
60261
|
|
|
60478
60262
|
for (var i = 1; i <= allPages; i += 1) {
|
|
60479
60263
|
var active = current === i;
|
|
60480
|
-
pagerList.push( /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(es_Pager,
|
|
60264
|
+
pagerList.push( /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(es_Pager, extends_extends({}, pagerProps, {
|
|
60481
60265
|
key: i,
|
|
60482
60266
|
page: i,
|
|
60483
60267
|
active: active
|
|
@@ -60494,7 +60278,7 @@ var Pagination = /*#__PURE__*/function (_React$Component) {
|
|
|
60494
60278
|
onClick: this.jumpPrev,
|
|
60495
60279
|
tabIndex: "0",
|
|
60496
60280
|
onKeyPress: this.runIfEnterJumpPrev,
|
|
60497
|
-
className: classnames_default()("".concat(prefixCls, "-jump-prev"),
|
|
60281
|
+
className: classnames_default()("".concat(prefixCls, "-jump-prev"), _defineProperty({}, "".concat(prefixCls, "-jump-prev-custom-icon"), !!jumpPrevIcon))
|
|
60498
60282
|
}, itemRender(this.getJumpPrevPage(), 'jump-prev', this.getItemIcon(jumpPrevIcon, 'prev page')));
|
|
60499
60283
|
jumpNext = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("li", {
|
|
60500
60284
|
title: showTitle ? nextItemTitle : null,
|
|
@@ -60502,7 +60286,7 @@ var Pagination = /*#__PURE__*/function (_React$Component) {
|
|
|
60502
60286
|
tabIndex: "0",
|
|
60503
60287
|
onClick: this.jumpNext,
|
|
60504
60288
|
onKeyPress: this.runIfEnterJumpNext,
|
|
60505
|
-
className: classnames_default()("".concat(prefixCls, "-jump-next"),
|
|
60289
|
+
className: classnames_default()("".concat(prefixCls, "-jump-next"), _defineProperty({}, "".concat(prefixCls, "-jump-next-custom-icon"), !!jumpNextIcon))
|
|
60506
60290
|
}, itemRender(this.getJumpNextPage(), 'jump-next', this.getItemIcon(jumpNextIcon, 'next page')));
|
|
60507
60291
|
}
|
|
60508
60292
|
|
|
@@ -60589,8 +60373,8 @@ var Pagination = /*#__PURE__*/function (_React$Component) {
|
|
|
60589
60373
|
|
|
60590
60374
|
var prevDisabled = !this.hasPrev() || !allPages;
|
|
60591
60375
|
var nextDisabled = !this.hasNext() || !allPages;
|
|
60592
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("ul",
|
|
60593
|
-
className: classnames_default()(prefixCls, className,
|
|
60376
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("ul", extends_extends({
|
|
60377
|
+
className: classnames_default()(prefixCls, className, _defineProperty({}, "".concat(prefixCls, "-disabled"), disabled)),
|
|
60594
60378
|
style: style,
|
|
60595
60379
|
unselectable: "unselectable",
|
|
60596
60380
|
ref: this.savePaginationNode
|
|
@@ -60599,14 +60383,14 @@ var Pagination = /*#__PURE__*/function (_React$Component) {
|
|
|
60599
60383
|
onClick: this.prev,
|
|
60600
60384
|
tabIndex: prevDisabled ? null : 0,
|
|
60601
60385
|
onKeyPress: this.runIfEnterPrev,
|
|
60602
|
-
className: classnames_default()("".concat(prefixCls, "-prev"),
|
|
60386
|
+
className: classnames_default()("".concat(prefixCls, "-prev"), _defineProperty({}, "".concat(prefixCls, "-disabled"), prevDisabled)),
|
|
60603
60387
|
"aria-disabled": prevDisabled
|
|
60604
60388
|
}, this.renderPrev(prevPage)), pagerList, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("li", {
|
|
60605
60389
|
title: showTitle ? locale.next_page : null,
|
|
60606
60390
|
onClick: this.next,
|
|
60607
60391
|
tabIndex: nextDisabled ? null : 0,
|
|
60608
60392
|
onKeyPress: this.runIfEnterNext,
|
|
60609
|
-
className: classnames_default()("".concat(prefixCls, "-next"),
|
|
60393
|
+
className: classnames_default()("".concat(prefixCls, "-next"), _defineProperty({}, "".concat(prefixCls, "-disabled"), nextDisabled)),
|
|
60610
60394
|
"aria-disabled": nextDisabled
|
|
60611
60395
|
}, this.renderNext(nextPage)), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(es_Options, {
|
|
60612
60396
|
disabled: disabled,
|
|
@@ -60684,7 +60468,7 @@ Pagination.defaultProps = {
|
|
|
60684
60468
|
|
|
60685
60469
|
|
|
60686
60470
|
var MiniSelect = function MiniSelect(props) {
|
|
60687
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_select,
|
|
60471
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_select, extends_extends({
|
|
60688
60472
|
size: "small"
|
|
60689
60473
|
}, props));
|
|
60690
60474
|
};
|
|
@@ -60745,7 +60529,7 @@ var responsiveObserve = {
|
|
|
60745
60529
|
var listener = function listener(_ref) {
|
|
60746
60530
|
var matches = _ref.matches;
|
|
60747
60531
|
|
|
60748
|
-
_this2.dispatch(
|
|
60532
|
+
_this2.dispatch(extends_extends(extends_extends({}, screens), _defineProperty({}, screen, matches)));
|
|
60749
60533
|
};
|
|
60750
60534
|
|
|
60751
60535
|
var mql = window.matchMedia(matchMediaQuery);
|
|
@@ -60886,13 +60670,13 @@ var Pagination_Pagination = function Pagination(_a) {
|
|
|
60886
60670
|
var renderPagination = function renderPagination(contextLocale) {
|
|
60887
60671
|
var _classNames;
|
|
60888
60672
|
|
|
60889
|
-
var locale =
|
|
60673
|
+
var locale = extends_extends(extends_extends({}, contextLocale), customLocale);
|
|
60890
60674
|
|
|
60891
60675
|
var isSmall = size === 'small' || !!(xs && !size && restProps.responsive);
|
|
60892
60676
|
var selectPrefixCls = getPrefixCls('select', customizeSelectPrefixCls);
|
|
60893
60677
|
var extendedClassName = classnames_default()((_classNames = {
|
|
60894
60678
|
mini: isSmall
|
|
60895
|
-
},
|
|
60679
|
+
}, _defineProperty(_classNames, "".concat(prefixCls, "-rtl"), direction === 'rtl'), _defineProperty(_classNames, "minimalistic", minimalistic), _classNames), className); // 文本式分页
|
|
60896
60680
|
|
|
60897
60681
|
if (minimalistic) {
|
|
60898
60682
|
paginationProps.itemRender = function (_current, type, originalElement) {
|
|
@@ -60929,7 +60713,7 @@ var Pagination_Pagination = function Pagination(_a) {
|
|
|
60929
60713
|
paginationProps.showQuickJumper = showQuickJumper;
|
|
60930
60714
|
}
|
|
60931
60715
|
|
|
60932
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Pagination,
|
|
60716
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Pagination, extends_extends({}, paginationProps, getIconsProps(), restProps, {
|
|
60933
60717
|
prefixCls: prefixCls,
|
|
60934
60718
|
selectPrefixCls: selectPrefixCls,
|
|
60935
60719
|
className: extendedClassName,
|
|
@@ -61257,7 +61041,7 @@ function Action(_ref) {
|
|
|
61257
61041
|
var _useState = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState)(function () {
|
|
61258
61042
|
var actionNum;
|
|
61259
61043
|
|
|
61260
|
-
if (status === 1) {
|
|
61044
|
+
if (status === 1 || status === 3) {
|
|
61261
61045
|
actionNum = 1;
|
|
61262
61046
|
} else if (status === 2) {
|
|
61263
61047
|
actionNum = 2;
|
|
@@ -61301,10 +61085,10 @@ function Action(_ref) {
|
|
|
61301
61085
|
setCurAction = _useState2[1];
|
|
61302
61086
|
|
|
61303
61087
|
var handleBtnClick = /*#__PURE__*/function () {
|
|
61304
|
-
var _ref2 = Action_asyncToGenerator( /*#__PURE__*/
|
|
61088
|
+
var _ref2 = Action_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee(e) {
|
|
61305
61089
|
var now, begin, _error$response, _error$response$data, _error$response2, _error$response2$data;
|
|
61306
61090
|
|
|
61307
|
-
return
|
|
61091
|
+
return regenerator_default().wrap(function _callee$(_context) {
|
|
61308
61092
|
while (1) {
|
|
61309
61093
|
switch (_context.prev = _context.next) {
|
|
61310
61094
|
case 0:
|
|
@@ -61484,7 +61268,9 @@ function ListItem_asyncToGenerator(fn) { return function () { var self = this, a
|
|
|
61484
61268
|
var TagName = {
|
|
61485
61269
|
0: '预告',
|
|
61486
61270
|
1: '直播中',
|
|
61487
|
-
2: '回放'
|
|
61271
|
+
2: '回放',
|
|
61272
|
+
3: '直播中' // 实际是暂停
|
|
61273
|
+
|
|
61488
61274
|
};
|
|
61489
61275
|
function ListItem(_ref) {
|
|
61490
61276
|
var data = _ref.data,
|
|
@@ -61546,7 +61332,7 @@ function ListItem(_ref) {
|
|
|
61546
61332
|
className: list_ListItem_index_module.avatar
|
|
61547
61333
|
}), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("div", {
|
|
61548
61334
|
className: classnames_default()(list_ListItem_index_module.tag, list_ListItem_index_module["tag".concat(status)])
|
|
61549
|
-
}, status === 1 ? /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("img", {
|
|
61335
|
+
}, status === 1 || status === 3 ? /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("img", {
|
|
61550
61336
|
src: play,
|
|
61551
61337
|
alt: ""
|
|
61552
61338
|
}) : null, TagName[status])), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("div", {
|
|
@@ -61639,7 +61425,7 @@ var StatusEnum = [{
|
|
|
61639
61425
|
value: 'all'
|
|
61640
61426
|
}, {
|
|
61641
61427
|
label: '直播中',
|
|
61642
|
-
value: 1
|
|
61428
|
+
value: '1,3'
|
|
61643
61429
|
}, {
|
|
61644
61430
|
label: '预告',
|
|
61645
61431
|
value: 0
|