@x-edu/live-player 0.0.38 → 0.0.40
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/XEduLivePlayer.common.js +135 -79
- package/package.json +1 -1
|
@@ -2764,13 +2764,14 @@ ___CSS_LOADER_EXPORT___.locals = {
|
|
|
2764
2764
|
|
|
2765
2765
|
var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default()(function(i){return i[1]});
|
|
2766
2766
|
// Module
|
|
2767
|
-
___CSS_LOADER_EXPORT___.push([module.id, ".index-module_container_y\\+him{max-width:1300px;margin:0 auto;padding:24px 24px 0 24px;width:956px}.index-module_container_y\\+him .fish-tabs-nav{margin-bottom:24px}.index-module_container_y\\+him .fish-tabs-nav:before{display:none}.index-module_container_y\\+him .fish-tabs-ink-bar{display:none}.index-module_container_y\\+him .fish-tabs-tab+.fish-tabs-tab{margin-left:0}.index-module_container_y\\+him .fish-tabs-tab{padding:9px 20px}.index-module_container_y\\+him .fish-tabs-tab-btn{font-size:14px;line-height:14px;color:#666}.index-module_container_y\\+him .fish-tabs-tab-active{border-radius:16px;background:var(--f-3-f-7-ff,#f3f7ff)}.index-module_container_y\\+him .fish-tabs-tab-active .fish-tabs-tab-btn{color:#1e62ec}.index-module_container_y\\+him.index-module_mobile_fjd59{width:100%;padding:12px 12px 0 12px}.index-module_list_KQnlU{min-height:500px}.index-module_mobileLoadMore_43-yu{text-align:center;color:#999;font-size:12px;line-height:18px;padding:12px 0 24px 0}", ""]);
|
|
2767
|
+
___CSS_LOADER_EXPORT___.push([module.id, ".index-module_container_y\\+him{max-width:1300px;margin:0 auto;padding:24px 24px 0 24px;width:956px}.index-module_container_y\\+him .fish-tabs-nav{margin-bottom:24px}.index-module_container_y\\+him .fish-tabs-nav:before{display:none}.index-module_container_y\\+him .fish-tabs-ink-bar{display:none}.index-module_container_y\\+him .fish-tabs-tab+.fish-tabs-tab{margin-left:0}.index-module_container_y\\+him .fish-tabs-tab{padding:9px 20px}.index-module_container_y\\+him .fish-tabs-tab-btn{font-size:14px;line-height:14px;color:#666}.index-module_container_y\\+him .fish-tabs-tab-active{border-radius:16px;background:var(--f-3-f-7-ff,#f3f7ff)}.index-module_container_y\\+him .fish-tabs-tab-active .fish-tabs-tab-btn{color:#1e62ec}.index-module_container_y\\+him.index-module_mobile_fjd59{width:100%;padding:12px 12px 0 12px}.index-module_list_KQnlU{min-height:500px}.index-module_mobileLoadMore_43-yu{flex:0 0 100%!important;text-align:center;color:#999;font-size:12px;line-height:18px;padding:12px 0 24px 0}.index-module_padList_YQpXl{display:flex;flex-wrap:wrap;gap:24px}.index-module_padList_YQpXl>*{flex:0 0 calc(33.33333% - 16px);box-sizing:border-box}", ""]);
|
|
2768
2768
|
// Exports
|
|
2769
2769
|
___CSS_LOADER_EXPORT___.locals = {
|
|
2770
2770
|
"container": "index-module_container_y+him",
|
|
2771
2771
|
"mobile": "index-module_mobile_fjd59",
|
|
2772
2772
|
"list": "index-module_list_KQnlU",
|
|
2773
|
-
"mobileLoadMore": "index-module_mobileLoadMore_43-yu"
|
|
2773
|
+
"mobileLoadMore": "index-module_mobileLoadMore_43-yu",
|
|
2774
|
+
"padList": "index-module_padList_YQpXl"
|
|
2774
2775
|
};
|
|
2775
2776
|
/* harmony default export */ __webpack_exports__["Z"] = (___CSS_LOADER_EXPORT___);
|
|
2776
2777
|
|
|
@@ -26779,18 +26780,20 @@ var config = {
|
|
|
26779
26780
|
/* harmony export */ "GF": function() { return /* binding */ isInWX; },
|
|
26780
26781
|
/* harmony export */ "uJ": function() { return /* binding */ xElectron; },
|
|
26781
26782
|
/* harmony export */ "IC": function() { return /* binding */ isInElectron; },
|
|
26782
|
-
/* harmony export */ "Df": function() { return /* binding */ isInMobile; }
|
|
26783
|
+
/* harmony export */ "Df": function() { return /* binding */ isInMobile; },
|
|
26784
|
+
/* harmony export */ "Td": function() { return /* binding */ isPadMode; }
|
|
26783
26785
|
/* harmony export */ });
|
|
26784
|
-
/* unused harmony
|
|
26786
|
+
/* unused harmony exports inIpad, isHarmonyOS, isHarmonyOSTablet, isHdDevice, detectDeviceType, detectDeviceTypes, isDeviceTablet */
|
|
26785
26787
|
var ua = window.navigator.userAgent.toLowerCase();
|
|
26786
26788
|
function isInWX() {
|
|
26787
26789
|
return ua.indexOf('micromessenger') > -1;
|
|
26788
26790
|
} // 判断是否在electron环境中
|
|
26789
26791
|
|
|
26790
|
-
var
|
|
26791
|
-
|
|
26792
|
+
var global = window.rawWindow || window;
|
|
26793
|
+
var xElectron = global.xElectron;
|
|
26794
|
+
|
|
26795
|
+
var isInElectron = !!xElectron; // export const isInElectron = true
|
|
26792
26796
|
|
|
26793
|
-
var isInElectron = !!xElectron;
|
|
26794
26797
|
function inIpad() {
|
|
26795
26798
|
var _window$navigator;
|
|
26796
26799
|
|
|
@@ -26805,6 +26808,68 @@ function inIpad() {
|
|
|
26805
26808
|
function isInMobile() {
|
|
26806
26809
|
return inIpad() || window.navigator.userAgent.match(/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i);
|
|
26807
26810
|
}
|
|
26811
|
+
function isHarmonyOS() {
|
|
26812
|
+
return /arkweb/i.test(ua) || /framecubeapp/i.test(ua) || /HarmonyOS/i.test(ua);
|
|
26813
|
+
} // 是否是鸿蒙平板
|
|
26814
|
+
|
|
26815
|
+
function isHarmonyOSTablet() {
|
|
26816
|
+
var screenWidth = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : window.screen.width;
|
|
26817
|
+
return isHarmonyOS() && screenWidth >= 768;
|
|
26818
|
+
} // 是否是平板
|
|
26819
|
+
|
|
26820
|
+
var isHdDevice = function isHdDevice() {
|
|
26821
|
+
var userAgent = navigator.userAgent.toLowerCase();
|
|
26822
|
+
return /.hd./.test(userAgent);
|
|
26823
|
+
}; // 为了提高准确性,可以结合多种方法来检测设备类型。
|
|
26824
|
+
|
|
26825
|
+
function detectDeviceType() {
|
|
26826
|
+
var userAgent = navigator.userAgent.toLowerCase();
|
|
26827
|
+
console.log('userAgent_________', userAgent);
|
|
26828
|
+
var isHd = isHdDevice();
|
|
26829
|
+
var isTabletUA = /ipad|tablet|playbook|silk/.test(userAgent) && !/mobile/.test(userAgent);
|
|
26830
|
+
var isMobileUA = /iphone|android|windows phone|ipod|blackberry|iemobile|opera mini/.test(userAgent);
|
|
26831
|
+
var screenWidth = window.screen.width;
|
|
26832
|
+
var screenHeight = window.screen.height;
|
|
26833
|
+
console.log('screenWidth_____', screenWidth);
|
|
26834
|
+
console.log('screenHeight________', screenHeight);
|
|
26835
|
+
var isTabletSize = screenWidth >= 768 && screenWidth <= 1024 && screenHeight >= 768 && screenHeight <= 1024;
|
|
26836
|
+
var isMobileSize = window.innerWidth <= 800 && window.innerHeight <= 600;
|
|
26837
|
+
var touchPoints = navigator.maxTouchPoints || 0;
|
|
26838
|
+
|
|
26839
|
+
if (isHd || isTabletUA || isTabletSize && touchPoints > 2) {
|
|
26840
|
+
return 'tablet';
|
|
26841
|
+
} else if (isMobileUA || isMobileSize && touchPoints <= 2) {
|
|
26842
|
+
return 'mobile';
|
|
26843
|
+
} else if (inIpad()) {
|
|
26844
|
+
return 'tablet';
|
|
26845
|
+
} else {
|
|
26846
|
+
return 'other';
|
|
26847
|
+
}
|
|
26848
|
+
} // 设备类型
|
|
26849
|
+
|
|
26850
|
+
var detectDeviceTypes = {
|
|
26851
|
+
tablet: 'tablet',
|
|
26852
|
+
// 平板
|
|
26853
|
+
mobile: 'mobile',
|
|
26854
|
+
// 手机
|
|
26855
|
+
other: 'other' // 其他
|
|
26856
|
+
|
|
26857
|
+
}; // 是否是平板
|
|
26858
|
+
|
|
26859
|
+
function isDeviceTablet() {
|
|
26860
|
+
var device = detectDeviceType();
|
|
26861
|
+
console.log('device____________', device);
|
|
26862
|
+
return device === detectDeviceTypes.tablet;
|
|
26863
|
+
}
|
|
26864
|
+
function isPadMode() {
|
|
26865
|
+
var width = window.innerWidth;
|
|
26866
|
+
var padMode = isHarmonyOSTablet(width) || isDeviceTablet(); // 如果不在 app 中,宽度>=768时,也显示平板样式
|
|
26867
|
+
// if (!SMARTCAN && width >= 768) {
|
|
26868
|
+
// padMode = true
|
|
26869
|
+
// }
|
|
26870
|
+
|
|
26871
|
+
return padMode;
|
|
26872
|
+
}
|
|
26808
26873
|
|
|
26809
26874
|
/***/ }),
|
|
26810
26875
|
|
|
@@ -46093,14 +46158,14 @@ var index = (function () {
|
|
|
46093
46158
|
var INTERNAL_PREFIX_KEY = 'rc-observer-key'; // Still need to be compatible with React 15, we use class component here
|
|
46094
46159
|
|
|
46095
46160
|
var ReactResizeObserver = /*#__PURE__*/function (_React$Component) {
|
|
46096
|
-
|
|
46161
|
+
_inherits(ReactResizeObserver, _React$Component);
|
|
46097
46162
|
|
|
46098
|
-
var _super =
|
|
46163
|
+
var _super = _createSuper(ReactResizeObserver);
|
|
46099
46164
|
|
|
46100
46165
|
function ReactResizeObserver() {
|
|
46101
46166
|
var _this;
|
|
46102
46167
|
|
|
46103
|
-
|
|
46168
|
+
_classCallCheck(this, ReactResizeObserver);
|
|
46104
46169
|
|
|
46105
46170
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
46106
46171
|
args[_key] = arguments[_key];
|
|
@@ -46151,7 +46216,7 @@ var ReactResizeObserver = /*#__PURE__*/function (_React$Component) {
|
|
|
46151
46216
|
var mergedOffsetHeight = offsetHeight === Math.round(height) ? height : offsetHeight; // defer the callback but not defer to next frame
|
|
46152
46217
|
|
|
46153
46218
|
Promise.resolve().then(function () {
|
|
46154
|
-
onResize(
|
|
46219
|
+
onResize(_objectSpread2(_objectSpread2({}, size), {}, {
|
|
46155
46220
|
offsetWidth: mergedOffsetWidth,
|
|
46156
46221
|
offsetHeight: mergedOffsetHeight
|
|
46157
46222
|
}), target);
|
|
@@ -46167,7 +46232,7 @@ var ReactResizeObserver = /*#__PURE__*/function (_React$Component) {
|
|
|
46167
46232
|
return _this;
|
|
46168
46233
|
}
|
|
46169
46234
|
|
|
46170
|
-
|
|
46235
|
+
_createClass(ReactResizeObserver, [{
|
|
46171
46236
|
key: "componentDidMount",
|
|
46172
46237
|
value: function componentDidMount() {
|
|
46173
46238
|
this.onComponentUpdated();
|
|
@@ -49001,7 +49066,7 @@ var Input = function Input(_ref, ref) {
|
|
|
49001
49066
|
onOriginCompositionStart = _inputNode$props.onCompositionStart,
|
|
49002
49067
|
onOriginCompositionEnd = _inputNode$props.onCompositionEnd,
|
|
49003
49068
|
style = _inputNode$props.style;
|
|
49004
|
-
inputNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.cloneElement(inputNode,
|
|
49069
|
+
inputNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.cloneElement(inputNode, objectSpread2_objectSpread2(objectSpread2_objectSpread2({
|
|
49005
49070
|
id: id,
|
|
49006
49071
|
ref: composeRef(ref, originRef),
|
|
49007
49072
|
disabled: disabled,
|
|
@@ -49010,7 +49075,7 @@ var Input = function Input(_ref, ref) {
|
|
|
49010
49075
|
type: 'search',
|
|
49011
49076
|
autoFocus: autoFocus,
|
|
49012
49077
|
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),
|
|
49013
|
-
style:
|
|
49078
|
+
style: objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, style), {}, {
|
|
49014
49079
|
opacity: editable ? null : 0
|
|
49015
49080
|
}),
|
|
49016
49081
|
role: 'combobox',
|
|
@@ -51880,14 +51945,14 @@ var ALL_HANDLERS = ['onClick', 'onMouseDown', 'onTouchStart', 'onMouseEnter', 'o
|
|
|
51880
51945
|
|
|
51881
51946
|
function generateTrigger(PortalComponent) {
|
|
51882
51947
|
var Trigger = /*#__PURE__*/function (_React$Component) {
|
|
51883
|
-
|
|
51948
|
+
inherits_inherits(Trigger, _React$Component);
|
|
51884
51949
|
|
|
51885
|
-
var _super =
|
|
51950
|
+
var _super = createSuper_createSuper(Trigger);
|
|
51886
51951
|
|
|
51887
51952
|
function Trigger(props) {
|
|
51888
51953
|
var _this;
|
|
51889
51954
|
|
|
51890
|
-
|
|
51955
|
+
classCallCheck_classCallCheck(this, Trigger);
|
|
51891
51956
|
|
|
51892
51957
|
_this = _super.call(this, props);
|
|
51893
51958
|
_this.popupRef = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createRef();
|
|
@@ -52075,7 +52140,7 @@ function generateTrigger(PortalComponent) {
|
|
|
52075
52140
|
} catch (err) {// Do nothing
|
|
52076
52141
|
}
|
|
52077
52142
|
|
|
52078
|
-
return external_commonjs_react_dom_commonjs2_react_dom_root_ReactDOM_default().findDOMNode(
|
|
52143
|
+
return external_commonjs_react_dom_commonjs2_react_dom_root_ReactDOM_default().findDOMNode(assertThisInitialized_assertThisInitialized(_this));
|
|
52079
52144
|
};
|
|
52080
52145
|
|
|
52081
52146
|
_this.getPopupClassNameFromAlign = function (align) {
|
|
@@ -52136,7 +52201,7 @@ function generateTrigger(PortalComponent) {
|
|
|
52136
52201
|
|
|
52137
52202
|
mouseProps.onMouseDown = _this.onPopupMouseDown;
|
|
52138
52203
|
mouseProps.onTouchStart = _this.onPopupMouseDown;
|
|
52139
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Popup,
|
|
52204
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Popup, esm_extends_extends({
|
|
52140
52205
|
prefixCls: prefixCls,
|
|
52141
52206
|
destroyPopupOnHide: destroyPopupOnHide,
|
|
52142
52207
|
visible: popupVisible,
|
|
@@ -52249,7 +52314,7 @@ function generateTrigger(PortalComponent) {
|
|
|
52249
52314
|
return _this;
|
|
52250
52315
|
}
|
|
52251
52316
|
|
|
52252
|
-
|
|
52317
|
+
createClass_createClass(Trigger, [{
|
|
52253
52318
|
key: "componentDidMount",
|
|
52254
52319
|
value: function componentDidMount() {
|
|
52255
52320
|
this.componentDidUpdate();
|
|
@@ -52574,7 +52639,7 @@ function generateTrigger(PortalComponent) {
|
|
|
52574
52639
|
newChildProps.className = childrenClassName;
|
|
52575
52640
|
}
|
|
52576
52641
|
|
|
52577
|
-
var cloneProps =
|
|
52642
|
+
var cloneProps = objectSpread2_objectSpread2({}, newChildProps);
|
|
52578
52643
|
|
|
52579
52644
|
if (supportRef(child)) {
|
|
52580
52645
|
cloneProps.ref = composeRef(this.triggerRef, child.ref);
|
|
@@ -56515,7 +56580,7 @@ var MenuContext_excluded = ["children", "locked"];
|
|
|
56515
56580
|
var MenuContext = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createContext(null);
|
|
56516
56581
|
|
|
56517
56582
|
function mergeProps(origin, target) {
|
|
56518
|
-
var clone =
|
|
56583
|
+
var clone = _objectSpread2({}, origin);
|
|
56519
56584
|
|
|
56520
56585
|
Object.keys(target).forEach(function (key) {
|
|
56521
56586
|
var value = target[key];
|
|
@@ -56530,7 +56595,7 @@ function mergeProps(origin, target) {
|
|
|
56530
56595
|
function InheritableContextProvider(_ref) {
|
|
56531
56596
|
var children = _ref.children,
|
|
56532
56597
|
locked = _ref.locked,
|
|
56533
|
-
restProps =
|
|
56598
|
+
restProps = _objectWithoutProperties(_ref, MenuContext_excluded);
|
|
56534
56599
|
|
|
56535
56600
|
var context = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useContext(MenuContext);
|
|
56536
56601
|
var inheritableContext = useMemo(function () {
|
|
@@ -56586,7 +56651,7 @@ var warnUtil_excluded = ["item"];
|
|
|
56586
56651
|
|
|
56587
56652
|
function warnItemProp(_ref) {
|
|
56588
56653
|
var item = _ref.item,
|
|
56589
|
-
restInfo =
|
|
56654
|
+
restInfo = _objectWithoutProperties(_ref, warnUtil_excluded);
|
|
56590
56655
|
|
|
56591
56656
|
Object.defineProperty(restInfo, 'item', {
|
|
56592
56657
|
get: function get() {
|
|
@@ -56606,7 +56671,7 @@ function es_Icon_Icon(_ref) {
|
|
|
56606
56671
|
var iconNode;
|
|
56607
56672
|
|
|
56608
56673
|
if (typeof icon === 'function') {
|
|
56609
|
-
iconNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(icon,
|
|
56674
|
+
iconNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(icon, _objectSpread2({}, props));
|
|
56610
56675
|
} else {
|
|
56611
56676
|
// Compatible for origin definition
|
|
56612
56677
|
iconNode = icon;
|
|
@@ -56647,7 +56712,7 @@ var PathTrackerContext = /*#__PURE__*/external_commonjs_react_commonjs2_react_ro
|
|
|
56647
56712
|
function useFullPath(eventKey) {
|
|
56648
56713
|
var parentKeyPath = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useContext(PathTrackerContext);
|
|
56649
56714
|
return external_commonjs_react_commonjs2_react_root_React_namespaceObject.useMemo(function () {
|
|
56650
|
-
return eventKey !== undefined ? [].concat(
|
|
56715
|
+
return eventKey !== undefined ? [].concat(_toConsumableArray(parentKeyPath), [eventKey]) : parentKeyPath;
|
|
56651
56716
|
}, [parentKeyPath, eventKey]);
|
|
56652
56717
|
}
|
|
56653
56718
|
var PathUserContext = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createContext(null);
|
|
@@ -56704,28 +56769,28 @@ var MenuItem_excluded = ["title", "attribute", "elementRef"],
|
|
|
56704
56769
|
// This should be removed from doc & api in future.
|
|
56705
56770
|
|
|
56706
56771
|
var LegacyMenuItem = /*#__PURE__*/function (_React$Component) {
|
|
56707
|
-
|
|
56772
|
+
_inherits(LegacyMenuItem, _React$Component);
|
|
56708
56773
|
|
|
56709
|
-
var _super =
|
|
56774
|
+
var _super = _createSuper(LegacyMenuItem);
|
|
56710
56775
|
|
|
56711
56776
|
function LegacyMenuItem() {
|
|
56712
|
-
|
|
56777
|
+
_classCallCheck(this, LegacyMenuItem);
|
|
56713
56778
|
|
|
56714
56779
|
return _super.apply(this, arguments);
|
|
56715
56780
|
}
|
|
56716
56781
|
|
|
56717
|
-
|
|
56782
|
+
_createClass(LegacyMenuItem, [{
|
|
56718
56783
|
key: "render",
|
|
56719
56784
|
value: function render() {
|
|
56720
56785
|
var _this$props = this.props,
|
|
56721
56786
|
title = _this$props.title,
|
|
56722
56787
|
attribute = _this$props.attribute,
|
|
56723
56788
|
elementRef = _this$props.elementRef,
|
|
56724
|
-
restProps =
|
|
56789
|
+
restProps = _objectWithoutProperties(_this$props, MenuItem_excluded);
|
|
56725
56790
|
|
|
56726
56791
|
var passedProps = omit(restProps, ['eventKey']);
|
|
56727
56792
|
es_warning(!attribute, '`attribute` of Menu.Item is deprecated. Please pass attribute directly.');
|
|
56728
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_overflow_es.Item,
|
|
56793
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_overflow_es.Item, extends_extends({}, attribute, {
|
|
56729
56794
|
title: typeof title === 'string' ? title : undefined
|
|
56730
56795
|
}, passedProps, {
|
|
56731
56796
|
ref: elementRef
|
|
@@ -56756,7 +56821,7 @@ var InternalMenuItem = function InternalMenuItem(props) {
|
|
|
56756
56821
|
onClick = props.onClick,
|
|
56757
56822
|
onKeyDown = props.onKeyDown,
|
|
56758
56823
|
onFocus = props.onFocus,
|
|
56759
|
-
restProps =
|
|
56824
|
+
restProps = _objectWithoutProperties(props, MenuItem_excluded2);
|
|
56760
56825
|
|
|
56761
56826
|
var domDataId = useMenuId(eventKey);
|
|
56762
56827
|
|
|
@@ -56785,7 +56850,7 @@ var InternalMenuItem = function InternalMenuItem(props) {
|
|
|
56785
56850
|
return {
|
|
56786
56851
|
key: eventKey,
|
|
56787
56852
|
// Note: For legacy code is reversed which not like other antd component
|
|
56788
|
-
keyPath:
|
|
56853
|
+
keyPath: _toConsumableArray(connectedKeys).reverse(),
|
|
56789
56854
|
item: legacyMenuItemRef.current,
|
|
56790
56855
|
domEvent: e
|
|
56791
56856
|
};
|
|
@@ -56796,7 +56861,7 @@ var InternalMenuItem = function InternalMenuItem(props) {
|
|
|
56796
56861
|
|
|
56797
56862
|
var _useActive = useActive(eventKey, mergedDisabled, onMouseEnter, onMouseLeave),
|
|
56798
56863
|
active = _useActive.active,
|
|
56799
|
-
activeProps =
|
|
56864
|
+
activeProps = _objectWithoutProperties(_useActive, _excluded3); // ============================ Select ============================
|
|
56800
56865
|
|
|
56801
56866
|
|
|
56802
56867
|
var selected = selectedKeys.includes(eventKey); // ======================== DirectionStyle ========================
|
|
@@ -56841,7 +56906,7 @@ var InternalMenuItem = function InternalMenuItem(props) {
|
|
|
56841
56906
|
optionRoleProps['aria-selected'] = selected;
|
|
56842
56907
|
}
|
|
56843
56908
|
|
|
56844
|
-
var renderNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(LegacyMenuItem,
|
|
56909
|
+
var renderNode = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(LegacyMenuItem, extends_extends({
|
|
56845
56910
|
ref: legacyMenuItemRef,
|
|
56846
56911
|
elementRef: elementRef,
|
|
56847
56912
|
role: role === null ? 'none' : role || 'menuitem',
|
|
@@ -56850,13 +56915,13 @@ var InternalMenuItem = function InternalMenuItem(props) {
|
|
|
56850
56915
|
}, restProps, activeProps, optionRoleProps, {
|
|
56851
56916
|
component: "li",
|
|
56852
56917
|
"aria-disabled": disabled,
|
|
56853
|
-
style:
|
|
56854
|
-
className: classnames_default()(itemCls, (_classNames = {},
|
|
56918
|
+
style: _objectSpread2(_objectSpread2({}, directionStyle), style),
|
|
56919
|
+
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),
|
|
56855
56920
|
onClick: onInternalClick,
|
|
56856
56921
|
onKeyDown: onInternalKeyDown,
|
|
56857
56922
|
onFocus: onInternalFocus
|
|
56858
56923
|
}), children, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(es_Icon_Icon, {
|
|
56859
|
-
props:
|
|
56924
|
+
props: _objectSpread2(_objectSpread2({}, props), {}, {
|
|
56860
56925
|
isSelected: selected
|
|
56861
56926
|
}),
|
|
56862
56927
|
icon: mergedItemIcon
|
|
@@ -56909,7 +56974,7 @@ function parseChildren(children, keyPath) {
|
|
|
56909
56974
|
var emptyKey = eventKey === null || eventKey === undefined;
|
|
56910
56975
|
|
|
56911
56976
|
if (emptyKey) {
|
|
56912
|
-
eventKey = "tmp_key-".concat([].concat(
|
|
56977
|
+
eventKey = "tmp_key-".concat([].concat(_toConsumableArray(keyPath), [index]).join('-'));
|
|
56913
56978
|
}
|
|
56914
56979
|
|
|
56915
56980
|
var cloneProps = {
|
|
@@ -57611,9 +57676,9 @@ function useAccessibility_getOffset(mode, isRootLevel, isRtl, which) {
|
|
|
57611
57676
|
};
|
|
57612
57677
|
}
|
|
57613
57678
|
|
|
57614
|
-
var inline = (_inline = {},
|
|
57615
|
-
var horizontal = (_horizontal = {},
|
|
57616
|
-
var vertical = (_vertical = {},
|
|
57679
|
+
var inline = (_inline = {}, _defineProperty(_inline, UP, prev), _defineProperty(_inline, DOWN, next), _inline);
|
|
57680
|
+
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);
|
|
57681
|
+
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);
|
|
57617
57682
|
var offsets = {
|
|
57618
57683
|
inline: inline,
|
|
57619
57684
|
horizontal: horizontal,
|
|
@@ -57879,7 +57944,7 @@ function useUUID(id) {
|
|
|
57879
57944
|
var _useMergedState = useControlledState(id, {
|
|
57880
57945
|
value: id
|
|
57881
57946
|
}),
|
|
57882
|
-
_useMergedState2 =
|
|
57947
|
+
_useMergedState2 = slicedToArray_slicedToArray(_useMergedState, 2),
|
|
57883
57948
|
uuid = _useMergedState2[0],
|
|
57884
57949
|
setUUID = _useMergedState2[1];
|
|
57885
57950
|
|
|
@@ -57915,14 +57980,14 @@ var getPathKeys = function getPathKeys(keyPathStr) {
|
|
|
57915
57980
|
var OVERFLOW_KEY = 'rc-menu-more';
|
|
57916
57981
|
function useKeyRecords() {
|
|
57917
57982
|
var _React$useState = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState({}),
|
|
57918
|
-
_React$useState2 =
|
|
57983
|
+
_React$useState2 = slicedToArray_slicedToArray(_React$useState, 2),
|
|
57919
57984
|
internalForceUpdate = _React$useState2[1];
|
|
57920
57985
|
|
|
57921
57986
|
var key2pathRef = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useRef)(new Map());
|
|
57922
57987
|
var path2keyRef = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useRef)(new Map());
|
|
57923
57988
|
|
|
57924
57989
|
var _React$useState3 = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState([]),
|
|
57925
|
-
_React$useState4 =
|
|
57990
|
+
_React$useState4 = slicedToArray_slicedToArray(_React$useState3, 2),
|
|
57926
57991
|
overflowKeys = _React$useState4[0],
|
|
57927
57992
|
setOverflowKeys = _React$useState4[1];
|
|
57928
57993
|
|
|
@@ -57977,7 +58042,7 @@ function useKeyRecords() {
|
|
|
57977
58042
|
}, [getKeyPath]);
|
|
57978
58043
|
|
|
57979
58044
|
var getKeys = function getKeys() {
|
|
57980
|
-
var keys =
|
|
58045
|
+
var keys = _toConsumableArray(key2pathRef.current.keys());
|
|
57981
58046
|
|
|
57982
58047
|
if (overflowKeys.length) {
|
|
57983
58048
|
keys.push(OVERFLOW_KEY);
|
|
@@ -57994,7 +58059,7 @@ function useKeyRecords() {
|
|
|
57994
58059
|
var connectedPath = "".concat(key2pathRef.current.get(key)).concat(PATH_SPLIT);
|
|
57995
58060
|
var pathKeys = new Set();
|
|
57996
58061
|
|
|
57997
|
-
|
|
58062
|
+
_toConsumableArray(path2keyRef.current.keys()).forEach(function (pathKey) {
|
|
57998
58063
|
if (pathKey.startsWith(connectedPath)) {
|
|
57999
58064
|
pathKeys.add(path2keyRef.current.get(pathKey));
|
|
58000
58065
|
}
|
|
@@ -58115,12 +58180,12 @@ var Menu = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_names
|
|
|
58115
58180
|
openTransitionName = props.openTransitionName,
|
|
58116
58181
|
_internalRenderMenuItem = props._internalRenderMenuItem,
|
|
58117
58182
|
_internalRenderSubMenuItem = props._internalRenderSubMenuItem,
|
|
58118
|
-
restProps =
|
|
58183
|
+
restProps = _objectWithoutProperties(props, Menu_excluded);
|
|
58119
58184
|
|
|
58120
58185
|
var childList = parseChildren(children, EMPTY_LIST);
|
|
58121
58186
|
|
|
58122
58187
|
var _React$useState = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState(false),
|
|
58123
|
-
_React$useState2 =
|
|
58188
|
+
_React$useState2 = slicedToArray_slicedToArray(_React$useState, 2),
|
|
58124
58189
|
mounted = _React$useState2[0],
|
|
58125
58190
|
setMounted = _React$useState2[1];
|
|
58126
58191
|
|
|
@@ -58139,13 +58204,13 @@ var Menu = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_names
|
|
|
58139
58204
|
|
|
58140
58205
|
return [mode, false];
|
|
58141
58206
|
}, [mode, inlineCollapsed]),
|
|
58142
|
-
_React$useMemo2 =
|
|
58207
|
+
_React$useMemo2 = slicedToArray_slicedToArray(_React$useMemo, 2),
|
|
58143
58208
|
mergedMode = _React$useMemo2[0],
|
|
58144
58209
|
mergedInlineCollapsed = _React$useMemo2[1]; // ====================== Responsive ======================
|
|
58145
58210
|
|
|
58146
58211
|
|
|
58147
58212
|
var _React$useState3 = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState(0),
|
|
58148
|
-
_React$useState4 =
|
|
58213
|
+
_React$useState4 = slicedToArray_slicedToArray(_React$useState3, 2),
|
|
58149
58214
|
lastVisibleIndex = _React$useState4[0],
|
|
58150
58215
|
setLastVisibleIndex = _React$useState4[1];
|
|
58151
58216
|
|
|
@@ -58157,7 +58222,7 @@ var Menu = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_names
|
|
|
58157
58222
|
return keys || EMPTY_LIST;
|
|
58158
58223
|
}
|
|
58159
58224
|
}),
|
|
58160
|
-
_useMergedState2 =
|
|
58225
|
+
_useMergedState2 = slicedToArray_slicedToArray(_useMergedState, 2),
|
|
58161
58226
|
mergedOpenKeys = _useMergedState2[0],
|
|
58162
58227
|
setMergedOpenKeys = _useMergedState2[1];
|
|
58163
58228
|
|
|
@@ -58168,7 +58233,7 @@ var Menu = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_names
|
|
|
58168
58233
|
|
|
58169
58234
|
|
|
58170
58235
|
var _React$useState5 = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState(mergedOpenKeys),
|
|
58171
|
-
_React$useState6 =
|
|
58236
|
+
_React$useState6 = slicedToArray_slicedToArray(_React$useState5, 2),
|
|
58172
58237
|
inlineCacheOpenKeys = _React$useState6[0],
|
|
58173
58238
|
setInlineCacheOpenKeys = _React$useState6[1];
|
|
58174
58239
|
|
|
@@ -58224,7 +58289,7 @@ var Menu = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_names
|
|
|
58224
58289
|
var _useMergedState3 = useControlledState(activeKey || defaultActiveFirst && ((_childList$ = childList[0]) === null || _childList$ === void 0 ? void 0 : _childList$.key), {
|
|
58225
58290
|
value: activeKey
|
|
58226
58291
|
}),
|
|
58227
|
-
_useMergedState4 =
|
|
58292
|
+
_useMergedState4 = slicedToArray_slicedToArray(_useMergedState3, 2),
|
|
58228
58293
|
mergedActiveKey = _useMergedState4[0],
|
|
58229
58294
|
setMergedActiveKey = _useMergedState4[1];
|
|
58230
58295
|
|
|
@@ -58251,7 +58316,7 @@ var Menu = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_names
|
|
|
58251
58316
|
return [keys];
|
|
58252
58317
|
}
|
|
58253
58318
|
}),
|
|
58254
|
-
_useMergedState6 =
|
|
58319
|
+
_useMergedState6 = slicedToArray_slicedToArray(_useMergedState5, 2),
|
|
58255
58320
|
mergedSelectKeys = _useMergedState6[0],
|
|
58256
58321
|
setMergedSelectKeys = _useMergedState6[1]; // >>>>> Trigger select
|
|
58257
58322
|
|
|
@@ -58269,7 +58334,7 @@ var Menu = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_names
|
|
|
58269
58334
|
return key !== targetKey;
|
|
58270
58335
|
});
|
|
58271
58336
|
} else {
|
|
58272
|
-
newSelectKeys = [].concat(
|
|
58337
|
+
newSelectKeys = [].concat(_toConsumableArray(mergedSelectKeys), [targetKey]);
|
|
58273
58338
|
}
|
|
58274
58339
|
} else {
|
|
58275
58340
|
newSelectKeys = [targetKey];
|
|
@@ -58277,7 +58342,7 @@ var Menu = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_names
|
|
|
58277
58342
|
|
|
58278
58343
|
setMergedSelectKeys(newSelectKeys); // Trigger event
|
|
58279
58344
|
|
|
58280
|
-
var selectInfo =
|
|
58345
|
+
var selectInfo = _objectSpread2(_objectSpread2({}, info), {}, {
|
|
58281
58346
|
selectedKeys: newSelectKeys
|
|
58282
58347
|
});
|
|
58283
58348
|
|
|
@@ -58355,13 +58420,13 @@ var Menu = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_names
|
|
|
58355
58420
|
);
|
|
58356
58421
|
}); // >>>>> Container
|
|
58357
58422
|
|
|
58358
|
-
var container = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_overflow_es,
|
|
58423
|
+
var container = /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_overflow_es, extends_extends({
|
|
58359
58424
|
id: id,
|
|
58360
58425
|
ref: mergedRef,
|
|
58361
58426
|
prefixCls: "".concat(prefixCls, "-overflow"),
|
|
58362
58427
|
component: "ul",
|
|
58363
58428
|
itemComponent: es_MenuItem,
|
|
58364
|
-
className: classnames_default()(prefixCls, "".concat(prefixCls, "-root"), "".concat(prefixCls, "-").concat(mergedMode), className, (_classNames = {},
|
|
58429
|
+
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)),
|
|
58365
58430
|
dir: direction,
|
|
58366
58431
|
style: style,
|
|
58367
58432
|
role: "menu",
|
|
@@ -58455,13 +58520,13 @@ var InternalMenuItemGroup = function InternalMenuItemGroup(_ref) {
|
|
|
58455
58520
|
title = _ref.title,
|
|
58456
58521
|
eventKey = _ref.eventKey,
|
|
58457
58522
|
children = _ref.children,
|
|
58458
|
-
restProps =
|
|
58523
|
+
restProps = _objectWithoutProperties(_ref, MenuItemGroup_excluded);
|
|
58459
58524
|
|
|
58460
58525
|
var _React$useContext = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useContext(MenuContext),
|
|
58461
58526
|
prefixCls = _React$useContext.prefixCls;
|
|
58462
58527
|
|
|
58463
58528
|
var groupPrefixCls = "".concat(prefixCls, "-item-group");
|
|
58464
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("li",
|
|
58529
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement("li", extends_extends({}, restProps, {
|
|
58465
58530
|
onClick: function onClick(e) {
|
|
58466
58531
|
return e.stopPropagation();
|
|
58467
58532
|
},
|
|
@@ -58476,7 +58541,7 @@ var InternalMenuItemGroup = function InternalMenuItemGroup(_ref) {
|
|
|
58476
58541
|
|
|
58477
58542
|
function MenuItemGroup(_ref2) {
|
|
58478
58543
|
var children = _ref2.children,
|
|
58479
|
-
props =
|
|
58544
|
+
props = _objectWithoutProperties(_ref2, MenuItemGroup_excluded2);
|
|
58480
58545
|
|
|
58481
58546
|
var connectedKeyPath = useFullPath(props.eventKey);
|
|
58482
58547
|
var childList = parseChildren(children, connectedKeyPath);
|
|
@@ -58604,10 +58669,10 @@ function Dropdown(props, ref) {
|
|
|
58604
58669
|
visible = props.visible,
|
|
58605
58670
|
_props$trigger = props.trigger,
|
|
58606
58671
|
trigger = _props$trigger === void 0 ? ['hover'] : _props$trigger,
|
|
58607
|
-
otherProps =
|
|
58672
|
+
otherProps = _objectWithoutProperties(props, Dropdown_excluded);
|
|
58608
58673
|
|
|
58609
58674
|
var _React$useState = external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState(),
|
|
58610
|
-
_React$useState2 =
|
|
58675
|
+
_React$useState2 = slicedToArray_slicedToArray(_React$useState, 2),
|
|
58611
58676
|
triggerVisible = _React$useState2[0],
|
|
58612
58677
|
setTriggerVisible = _React$useState2[1];
|
|
58613
58678
|
|
|
@@ -58715,12 +58780,12 @@ function Dropdown(props, ref) {
|
|
|
58715
58780
|
triggerHideAction = ['click'];
|
|
58716
58781
|
}
|
|
58717
58782
|
|
|
58718
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_trigger_es,
|
|
58783
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_namespaceObject.createElement(rc_trigger_es, _objectSpread2(_objectSpread2({
|
|
58719
58784
|
builtinPlacements: placements
|
|
58720
58785
|
}, otherProps), {}, {
|
|
58721
58786
|
prefixCls: prefixCls,
|
|
58722
58787
|
ref: triggerRef,
|
|
58723
|
-
popupClassName: classnames_default()(overlayClassName,
|
|
58788
|
+
popupClassName: classnames_default()(overlayClassName, _defineProperty({}, "".concat(prefixCls, "-show-arrow"), arrow)),
|
|
58724
58789
|
popupStyle: overlayStyle,
|
|
58725
58790
|
action: trigger,
|
|
58726
58791
|
showAction: showAction,
|
|
@@ -62206,17 +62271,7 @@ function ListItem(_ref) {
|
|
|
62206
62271
|
alt: ""
|
|
62207
62272
|
}), formatLikesCount(liveExt.like_count || 0))), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("div", {
|
|
62208
62273
|
className: list_ListItem_index_module.mobileAction
|
|
62209
|
-
}
|
|
62210
|
-
data: data,
|
|
62211
|
-
subscription: subscription,
|
|
62212
|
-
onActionDetailClick: handleDetailClick,
|
|
62213
|
-
handleLogin: handleLogin,
|
|
62214
|
-
isLogin: isLogin,
|
|
62215
|
-
onSubscribe: onSubscribe,
|
|
62216
|
-
setIsSubscribe: setIsSubscribe,
|
|
62217
|
-
status: status,
|
|
62218
|
-
isMobile: true
|
|
62219
|
-
}))));
|
|
62274
|
+
})));
|
|
62220
62275
|
}
|
|
62221
62276
|
|
|
62222
62277
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("div", {
|
|
@@ -62383,6 +62438,7 @@ function PublicLiveList(_ref) {
|
|
|
62383
62438
|
}
|
|
62384
62439
|
|
|
62385
62440
|
var isMobile = (0,util_env/* isInMobile */.Df)();
|
|
62441
|
+
var isPad = (0,util_env/* isPadMode */.Td)();
|
|
62386
62442
|
|
|
62387
62443
|
var _useState = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState)([]),
|
|
62388
62444
|
_useState2 = list_slicedToArray(_useState, 2),
|
|
@@ -62633,7 +62689,7 @@ function PublicLiveList(_ref) {
|
|
|
62633
62689
|
loading: loading,
|
|
62634
62690
|
delay: 500
|
|
62635
62691
|
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("div", {
|
|
62636
|
-
className: src_list_index_module.list
|
|
62692
|
+
className: classnames_default()(src_list_index_module.list, list_defineProperty({}, src_list_index_module.padList, isPad))
|
|
62637
62693
|
}, loading ? null : /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement((external_commonjs_react_commonjs2_react_root_React_default()).Fragment, null, !loading && list.length ? /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement((external_commonjs_react_commonjs2_react_root_React_default()).Fragment, null, list.map(function (listItem) {
|
|
62638
62694
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(ListItem, {
|
|
62639
62695
|
themeName: themeName,
|