@x-edu/live-player 0.0.45 → 0.0.47
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 +820 -602
- package/package.json +1 -1
|
@@ -2378,26 +2378,6 @@ var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
|
|
|
2378
2378
|
}());
|
|
2379
2379
|
|
|
2380
2380
|
|
|
2381
|
-
/***/ }),
|
|
2382
|
-
|
|
2383
|
-
/***/ 517:
|
|
2384
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
2385
|
-
|
|
2386
|
-
"use strict";
|
|
2387
|
-
/* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(3645);
|
|
2388
|
-
/* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__);
|
|
2389
|
-
// Imports
|
|
2390
|
-
|
|
2391
|
-
var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default()(function(i){return i[1]});
|
|
2392
|
-
// Module
|
|
2393
|
-
___CSS_LOADER_EXPORT___.push([module.id, ".index-module_icon_jLqzp{fill:currentColor}", ""]);
|
|
2394
|
-
// Exports
|
|
2395
|
-
___CSS_LOADER_EXPORT___.locals = {
|
|
2396
|
-
"icon": "index-module_icon_jLqzp"
|
|
2397
|
-
};
|
|
2398
|
-
/* harmony default export */ __webpack_exports__["Z"] = (___CSS_LOADER_EXPORT___);
|
|
2399
|
-
|
|
2400
|
-
|
|
2401
2381
|
/***/ }),
|
|
2402
2382
|
|
|
2403
2383
|
/***/ 2423:
|
|
@@ -2688,7 +2668,7 @@ ___CSS_LOADER_EXPORT___.locals = {
|
|
|
2688
2668
|
|
|
2689
2669
|
var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default()(function(i){return i[1]});
|
|
2690
2670
|
// Module
|
|
2691
|
-
___CSS_LOADER_EXPORT___.push([module.id, ".index-module_action_DHsbc{font-size:12px;line-height:22px;display:inline-flex;color:#1e62ec;border-radius:144.889px;border:1px solid #1e62ec;height:24px;padding:2px 16px;display:flex;align-items:center;justify-content:center;margin-top:8px}.index-module_action_DHsbc:hover{color:#4079ef;border:1px solid #4079ef}.index-module_action_DHsbc:active{color:#0d4fd3;border:1px solid #0d4fd3}.index-module_action_DHsbc.index-module_action-live_Xh1HS{color:#fff;background:var(--Function-brand-hover,#1e62ec)}.index-module_action_DHsbc.index-module_action-live_Xh1HS:hover{background:var(--Function-brand-hover,#4079ef)}.index-module_action_DHsbc.index-module_action-live_Xh1HS:active{background:var(--Function-brand-active,#0d4fd3)}.index-module_action_DHsbc.index-module_action-has-subscribe_LYNor,.index-module_action_DHsbc.index-module_action-has-subscribe_LYNor:active,.index-module_action_DHsbc.index-module_action-has-subscribe_LYNor:hover{background:var(--Background-gray-secondary-F9F9F9,#f9f9f9);border:none;color:var(--Text-placeholder-999,#999)}.index-module_action-mobile_vR7Cq{
|
|
2671
|
+
___CSS_LOADER_EXPORT___.push([module.id, ".index-module_action_DHsbc{font-size:12px;line-height:22px;display:inline-flex;color:#1e62ec;border-radius:144.889px;border:1px solid #1e62ec;height:24px;padding:2px 16px;display:flex;align-items:center;justify-content:center;margin-top:8px}.index-module_action_DHsbc:hover{color:#4079ef;border:1px solid #4079ef}.index-module_action_DHsbc:active{color:#0d4fd3;border:1px solid #0d4fd3}.index-module_action_DHsbc.index-module_action-live_Xh1HS{color:#fff;background:var(--Function-brand-hover,#1e62ec)}.index-module_action_DHsbc.index-module_action-live_Xh1HS:hover{background:var(--Function-brand-hover,#4079ef)}.index-module_action_DHsbc.index-module_action-live_Xh1HS:active{background:var(--Function-brand-active,#0d4fd3)}.index-module_action_DHsbc.index-module_action-has-subscribe_LYNor,.index-module_action_DHsbc.index-module_action-has-subscribe_LYNor:active,.index-module_action_DHsbc.index-module_action-has-subscribe_LYNor:hover{background:var(--Background-gray-secondary-F9F9F9,#f9f9f9);border:none;color:var(--Text-placeholder-999,#999)}.index-module_action-mobile_vR7Cq{height:28px;font-size:12px;line-height:18px;border-radius:999px;margin-top:0}.index-module_action-has-subscribe_LYNor{background:#f9f9f9!important;color:#999!important;border:none!important}", ""]);
|
|
2692
2672
|
// Exports
|
|
2693
2673
|
___CSS_LOADER_EXPORT___.locals = {
|
|
2694
2674
|
"action": "index-module_action_DHsbc",
|
|
@@ -2720,6 +2700,41 @@ ___CSS_LOADER_EXPORT___.locals = {
|
|
|
2720
2700
|
/* harmony default export */ __webpack_exports__["Z"] = (___CSS_LOADER_EXPORT___);
|
|
2721
2701
|
|
|
2722
2702
|
|
|
2703
|
+
/***/ }),
|
|
2704
|
+
|
|
2705
|
+
/***/ 2429:
|
|
2706
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
2707
|
+
|
|
2708
|
+
"use strict";
|
|
2709
|
+
/* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(3645);
|
|
2710
|
+
/* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__);
|
|
2711
|
+
// Imports
|
|
2712
|
+
|
|
2713
|
+
var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default()(function(i){return i[1]});
|
|
2714
|
+
// Module
|
|
2715
|
+
___CSS_LOADER_EXPORT___.push([module.id, ".MobileListItem-module_mobileContainer_pKQh1{display:flex;flex-direction:column;background:#fff;border-radius:8px;overflow:hidden;height:100%}.MobileListItem-module_mobileCoverWrap_wkE2E{position:relative;width:100%;padding-top:56.25%;overflow:hidden;background:#f0f0f0}.MobileListItem-module_mobileCover_LFdCM{position:absolute;top:0;left:0;width:100%;height:100%;object-fit:cover;display:block}.MobileListItem-module_mobileContent_gMOFL{padding:12px;display:flex;flex-direction:column;flex:1}.MobileListItem-module_mobileTitleRow_GOyCv{margin-bottom:4px;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;line-height:24px;font-size:16px;min-height:49px}.MobileListItem-module_mobileStatusTag_gy7Sz{margin-right:4px!important;flex-shrink:0;margin-top:2px;font-size:10px!important;height:16px!important;line-height:20px!important}.MobileListItem-module_mobileStatusTag_gy7Sz img{width:12px!important;height:12px!important}.MobileListItem-module_mobileTitle_uRghs{display:inline;color:#333;font-size:12px;font-style:normal;font-weight:500;line-height:18px}.MobileListItem-module_mobileMetaRow_e-nuZ{margin-bottom:12px}.MobileListItem-module_mobileMetaText_zGT4Y{display:flex;align-items:center;font-size:10px;color:#999;line-height:18px}.MobileListItem-module_mobileMetaIcon_dAPzw{width:16px;height:16px;opacity:.6}.MobileListItem-module_countDownLabel_tj8Bg,.MobileListItem-module_mobileMetaIcon_dAPzw{margin-right:4px}.MobileListItem-module_countDown_CsZ2j{display:inline-flex}.MobileListItem-module_mobileFooterRow_xOlHB{justify-content:flex-end;flex:1 1 auto}.MobileListItem-module_mobileFooterRow_xOlHB,.MobileListItem-module_mobileHeat_6t7My{display:flex;align-items:center}.MobileListItem-module_mobileHeat_6t7My{font-size:10px;color:#666;flex-shrink:0}.MobileListItem-module_mobileHeatIcon_ME2tA{width:14px;height:14px;margin-right:4px;padding-bottom:2px}.MobileListItem-module_mobileAction_5o8i4{margin-left:auto}", ""]);
|
|
2716
|
+
// Exports
|
|
2717
|
+
___CSS_LOADER_EXPORT___.locals = {
|
|
2718
|
+
"mobileContainer": "MobileListItem-module_mobileContainer_pKQh1",
|
|
2719
|
+
"mobileCoverWrap": "MobileListItem-module_mobileCoverWrap_wkE2E",
|
|
2720
|
+
"mobileCover": "MobileListItem-module_mobileCover_LFdCM",
|
|
2721
|
+
"mobileContent": "MobileListItem-module_mobileContent_gMOFL",
|
|
2722
|
+
"mobileTitleRow": "MobileListItem-module_mobileTitleRow_GOyCv",
|
|
2723
|
+
"mobileStatusTag": "MobileListItem-module_mobileStatusTag_gy7Sz",
|
|
2724
|
+
"mobileTitle": "MobileListItem-module_mobileTitle_uRghs",
|
|
2725
|
+
"mobileMetaRow": "MobileListItem-module_mobileMetaRow_e-nuZ",
|
|
2726
|
+
"mobileMetaText": "MobileListItem-module_mobileMetaText_zGT4Y",
|
|
2727
|
+
"mobileMetaIcon": "MobileListItem-module_mobileMetaIcon_dAPzw",
|
|
2728
|
+
"countDownLabel": "MobileListItem-module_countDownLabel_tj8Bg",
|
|
2729
|
+
"countDown": "MobileListItem-module_countDown_CsZ2j",
|
|
2730
|
+
"mobileFooterRow": "MobileListItem-module_mobileFooterRow_xOlHB",
|
|
2731
|
+
"mobileHeat": "MobileListItem-module_mobileHeat_6t7My",
|
|
2732
|
+
"mobileHeatIcon": "MobileListItem-module_mobileHeatIcon_ME2tA",
|
|
2733
|
+
"mobileAction": "MobileListItem-module_mobileAction_5o8i4"
|
|
2734
|
+
};
|
|
2735
|
+
/* harmony default export */ __webpack_exports__["Z"] = (___CSS_LOADER_EXPORT___);
|
|
2736
|
+
|
|
2737
|
+
|
|
2723
2738
|
/***/ }),
|
|
2724
2739
|
|
|
2725
2740
|
/***/ 1631:
|
|
@@ -2732,7 +2747,7 @@ ___CSS_LOADER_EXPORT___.locals = {
|
|
|
2732
2747
|
|
|
2733
2748
|
var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default()(function(i){return i[1]});
|
|
2734
2749
|
// Module
|
|
2735
|
-
___CSS_LOADER_EXPORT___.push([module.id, ".index-module_container_2HydZ{padding:24px 0;margin:0 24px;display:flex;justify-content:flex-start;cursor:pointer}.index-module_container_2HydZ:first-child{border-top:none}.index-module_container_2HydZ .index-module_left_qKfes{border-radius:8px;position:relative}.index-module_container_2HydZ .index-module_left_qKfes .index-module_avatar_kO\\+gr{width:205px;height:120px;border-radius:8px;object-fit:cover;overflow:hidden}.index-module_container_2HydZ .index-module_left_qKfes .index-module_tag_6g0Vd{position:absolute;top:0;border-radius:8px 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{height:120px;display:flex;flex-direction:column;justify-content:space-between;width:calc(100% - 228px)}.index-module_container_2HydZ .index-module_right-top_4Ry90{display:flex;flex-direction:column;gap:8px}.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:24px;-webkit-line-clamp:2;font-size:16px;font-weight:600;color:#333}.index-module_container_2HydZ .index-module_right-top_4Ry90 .index-module_time_sEG7-{font-size:12px;color:#999;display:flex;align-items:center}.index-module_container_2HydZ .index-module_right-top_4Ry90 .index-module_time-icon_Rg1x0{width:16px;height:16px;color:#ccc;margin-right:4px}.index-module_container_2HydZ .index-module_right-top_4Ry90 .index-module_like_sty_Z780C{color:#999;display:flex;align-items:center;margin-left:20px}.index-module_container_2HydZ .index-module_right-top_4Ry90 .index-module_like_sty_Z780C .index-module_icon_bottom_jcWZ1{margin-right:30px;font-family:PingFang SC;font-size:12px;font-weight:400;line-height:22px;letter-spacing:0;text-align:left;display:flex;align-items:center}.index-module_container_2HydZ .index-module_right-top_4Ry90 .index-module_like_sty_Z780C .index-module_icon_bottom_jcWZ1 img{width:16px;height:16px;margin-right:5px;color:#ccc}.index-module_container_2HydZ .index-module_right-bottom_ZCIxf{display:flex;justify-content:flex-end}.index-module_container_2HydZ.dark .index-module_title_\\+g0nw{color:#fff}.index-module_container_2HydZ:hover .index-module_title_\\+g0nw{color:#1e62ec}.index-module_webListCard_9lxob{display:flex;padding:16px;border-radius:8px;align-items:center;margin:0 0 24px 0;gap:16px;align-self:stretch;border:2px solid var(--Background-gray-default-FFFFFF,#fff);background:linear-gradient(180deg,rgba(0,195,255,0) 75%,rgba(0,246,255,.08) 100%),var(--background-alpha-tertiary-80,hsla(0,0%,100%,.8))}.index-module_webListCard_9lxob:hover{background:linear-gradient(180deg,rgba(0,195,255,0) 75%,rgba(0,246,255,.08) 100%),var(--Background-gray-default-FFFFFF,#fff);box-shadow:0 0 36px 0 rgba(0,47,143,.18)}.index-module_webListCard_9lxob:hover .index-module_title_\\+g0nw{color:#1e62ec}.index-module_cardContainer_J7\\+LG{width:308px;height:345px;box-sizing:border-box;padding:16px;border-radius:8px;border:2px solid var(--Background-gray-default-FFFFFF,#fff);background:linear-gradient(180deg,rgba(0,195,255,0) 75%,rgba(0,246,255,.08) 100%),var(--background-alpha-tertiary-80,hsla(0,0%,100%,.8));display:flex;flex-direction:column;cursor:pointer}.index-module_cardContainer_J7\\+LG .index-module_cardStatusTag_yqJ2G{margin-right:4px}.index-module_cardContainer_J7\\+LG:hover{background:linear-gradient(180deg,rgba(0,195,255,0) 75%,rgba(0,246,255,.08) 100%),var(--Background-gray-default-FFFFFF,#fff);box-shadow:0 0 36px 0 rgba(0,47,143,.18)}.index-module_cardContainer_J7\\+LG:hover .index-module_cardTitle_GLbl\\+{color:#1e62ec}.index-module_cardCoverWrap_8WRP-{position:relative;width:100%;aspect-ratio:2;margin-bottom:12px;border-radius:8px;overflow:hidden}.index-module_cardCover_57pGO{width:100%;height:100%;object-fit:cover}.index-module_cardTitle_GLbl\\+{font-size:16px;font-weight:600;color:#333;line-height:24px;margin-bottom:8px;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;word-wrap:break-word}.index-module_cardActionRow_KfwBa{margin-top:auto;display:flex;justify-content:flex-end;border-top:1px solid #f0f0f0;padding:16px 0 0}.index-module_action_MHhqt{font-size:14px;line-height:22px;color:#1e62ec;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}
|
|
2750
|
+
___CSS_LOADER_EXPORT___.push([module.id, ".index-module_container_2HydZ{padding:24px 0;margin:0 24px;display:flex;justify-content:flex-start;cursor:pointer}.index-module_container_2HydZ:first-child{border-top:none}.index-module_container_2HydZ .index-module_left_qKfes{border-radius:8px;position:relative}.index-module_container_2HydZ .index-module_left_qKfes .index-module_avatar_kO\\+gr{width:205px;height:120px;border-radius:8px;object-fit:cover;overflow:hidden}.index-module_container_2HydZ .index-module_left_qKfes .index-module_tag_6g0Vd{position:absolute;top:0;border-radius:8px 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{height:120px;display:flex;flex-direction:column;justify-content:space-between;width:calc(100% - 228px)}.index-module_container_2HydZ .index-module_right-top_4Ry90{display:flex;flex-direction:column;gap:8px}.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:24px;-webkit-line-clamp:2;font-size:16px;font-weight:600;color:#333}.index-module_container_2HydZ .index-module_right-top_4Ry90 .index-module_time_sEG7-{font-size:12px;color:#999;display:flex;align-items:center}.index-module_container_2HydZ .index-module_right-top_4Ry90 .index-module_time-icon_Rg1x0{width:16px;height:16px;color:#ccc;margin-right:4px}.index-module_container_2HydZ .index-module_right-top_4Ry90 .index-module_like_sty_Z780C{color:#999;display:flex;align-items:center;margin-left:20px}.index-module_container_2HydZ .index-module_right-top_4Ry90 .index-module_like_sty_Z780C .index-module_icon_bottom_jcWZ1{margin-right:30px;font-family:PingFang SC;font-size:12px;font-weight:400;line-height:22px;letter-spacing:0;text-align:left;display:flex;align-items:center}.index-module_container_2HydZ .index-module_right-top_4Ry90 .index-module_like_sty_Z780C .index-module_icon_bottom_jcWZ1 img{width:16px;height:16px;margin-right:5px;color:#ccc}.index-module_container_2HydZ .index-module_right-bottom_ZCIxf{display:flex;justify-content:flex-end}.index-module_container_2HydZ.dark .index-module_title_\\+g0nw{color:#fff}.index-module_container_2HydZ:hover .index-module_title_\\+g0nw{color:#1e62ec}.index-module_webListCard_9lxob{display:flex;padding:16px;border-radius:8px;align-items:center;margin:0 0 24px 0;gap:16px;align-self:stretch;border:2px solid var(--Background-gray-default-FFFFFF,#fff);background:linear-gradient(180deg,rgba(0,195,255,0) 75%,rgba(0,246,255,.08) 100%),var(--background-alpha-tertiary-80,hsla(0,0%,100%,.8))}.index-module_webListCard_9lxob:hover{background:linear-gradient(180deg,rgba(0,195,255,0) 75%,rgba(0,246,255,.08) 100%),var(--Background-gray-default-FFFFFF,#fff);box-shadow:0 0 36px 0 rgba(0,47,143,.18)}.index-module_webListCard_9lxob:hover .index-module_title_\\+g0nw{color:#1e62ec}.index-module_cardContainer_J7\\+LG{width:308px;height:345px;box-sizing:border-box;padding:16px;border-radius:8px;border:2px solid var(--Background-gray-default-FFFFFF,#fff);background:linear-gradient(180deg,rgba(0,195,255,0) 75%,rgba(0,246,255,.08) 100%),var(--background-alpha-tertiary-80,hsla(0,0%,100%,.8));display:flex;flex-direction:column;cursor:pointer}.index-module_cardContainer_J7\\+LG .index-module_cardStatusTag_yqJ2G{margin-right:4px}.index-module_cardContainer_J7\\+LG:hover{background:linear-gradient(180deg,rgba(0,195,255,0) 75%,rgba(0,246,255,.08) 100%),var(--Background-gray-default-FFFFFF,#fff);box-shadow:0 0 36px 0 rgba(0,47,143,.18)}.index-module_cardContainer_J7\\+LG:hover .index-module_cardTitle_GLbl\\+{color:#1e62ec}.index-module_cardCoverWrap_8WRP-{position:relative;width:100%;aspect-ratio:2;margin-bottom:12px;border-radius:8px;overflow:hidden}.index-module_cardCover_57pGO{width:100%;height:100%;object-fit:cover}.index-module_cardTitle_GLbl\\+{font-size:16px;font-weight:600;color:#333;line-height:24px;margin-bottom:8px;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;word-wrap:break-word}.index-module_cardActionRow_KfwBa{margin-top:auto;display:flex;justify-content:flex-end;border-top:1px solid #f0f0f0;padding:16px 0 0}.index-module_action_MHhqt{font-size:14px;line-height:22px;color:#1e62ec;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}", ""]);
|
|
2736
2751
|
// Exports
|
|
2737
2752
|
___CSS_LOADER_EXPORT___.locals = {
|
|
2738
2753
|
"container": "index-module_container_2HydZ",
|
|
@@ -2759,24 +2774,7 @@ ___CSS_LOADER_EXPORT___.locals = {
|
|
|
2759
2774
|
"cardCover": "index-module_cardCover_57pGO",
|
|
2760
2775
|
"cardActionRow": "index-module_cardActionRow_KfwBa",
|
|
2761
2776
|
"action": "index-module_action_MHhqt",
|
|
2762
|
-
"action-subscribe": "index-module_action-subscribe_CvlKL"
|
|
2763
|
-
"mobileContainer": "index-module_mobileContainer_LgPFb",
|
|
2764
|
-
"mobileTitle": "index-module_mobileTitle_uEAj9",
|
|
2765
|
-
"mobileCoverWrap": "index-module_mobileCoverWrap_z0EDe",
|
|
2766
|
-
"mobileCover": "index-module_mobileCover_eKVfP",
|
|
2767
|
-
"mobileTag": "index-module_mobileTag_7sgSF",
|
|
2768
|
-
"mobileTag0": "index-module_mobileTag0_j-+La",
|
|
2769
|
-
"mobileTag1": "index-module_mobileTag1_t66+f",
|
|
2770
|
-
"mobileTag3": "index-module_mobileTag3_Py0ta",
|
|
2771
|
-
"mobileTag2": "index-module_mobileTag2_+57UZ",
|
|
2772
|
-
"mobileDescRow": "index-module_mobileDescRow_TvOLE",
|
|
2773
|
-
"mobileMeta": "index-module_mobileMeta_zXJJe",
|
|
2774
|
-
"mobileTime": "index-module_mobileTime_ZiYD2",
|
|
2775
|
-
"mobileTimeIcon": "index-module_mobileTimeIcon_Z-jOL",
|
|
2776
|
-
"mobileTimeText": "index-module_mobileTimeText_aBdDK",
|
|
2777
|
-
"mobileStat": "index-module_mobileStat_kHrcC",
|
|
2778
|
-
"mobileStatIcon": "index-module_mobileStatIcon_yC+Ui",
|
|
2779
|
-
"mobileAction": "index-module_mobileAction_sUU3p"
|
|
2777
|
+
"action-subscribe": "index-module_action-subscribe_CvlKL"
|
|
2780
2778
|
};
|
|
2781
2779
|
/* harmony default export */ __webpack_exports__["Z"] = (___CSS_LOADER_EXPORT___);
|
|
2782
2780
|
|
|
@@ -2843,7 +2841,7 @@ ___CSS_LOADER_EXPORT___.locals = {
|
|
|
2843
2841
|
|
|
2844
2842
|
var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default()(function(i){return i[1]});
|
|
2845
2843
|
// Module
|
|
2846
|
-
___CSS_LOADER_EXPORT___.push([module.id, ".index-module_container_y\\+him{max-width:1300px;margin:0 auto;width:
|
|
2844
|
+
___CSS_LOADER_EXPORT___.push([module.id, ".index-module_container_y\\+him{max-width:1300px;background:var(--Background-brand-secondary-F3F7FF,#f3f7ff);margin:0 auto;width:1368px}.index-module_container_y\\+him .fish-tabs-nav{margin-bottom:8px;padding:24px 32px 0 12px}.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(--background-alpha-secondary-60,hsla(0,0%,100%,.6))}.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_toolbar_dg2Il{display:flex;justify-content:flex-end;margin:0 32px 24px 0}.index-module_toolbar_dg2Il .index-module_viewSwitchIcon_3Swxw{display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;cursor:pointer;-webkit-user-select:none;-ms-user-select:none;user-select:none}.index-module_toolbar_dg2Il .index-module_viewSwitchIcon_3Swxw svg{width:18px;height:18px}.index-module_listWrapper_uB4v-{width:100%;padding:0 32px}.index-module_paginationWrapper_ieLJ1{width:100%;display:flex;justify-content:center;padding:24px 0}.index-module_cardList_nVBoV{display:flex;flex-wrap:wrap;gap:24px;align-items:stretch}", ""]);
|
|
2847
2845
|
// Exports
|
|
2848
2846
|
___CSS_LOADER_EXPORT___.locals = {
|
|
2849
2847
|
"container": "index-module_container_y+him",
|
|
@@ -2853,13 +2851,35 @@ ___CSS_LOADER_EXPORT___.locals = {
|
|
|
2853
2851
|
"viewSwitchIcon": "index-module_viewSwitchIcon_3Swxw",
|
|
2854
2852
|
"listWrapper": "index-module_listWrapper_uB4v-",
|
|
2855
2853
|
"paginationWrapper": "index-module_paginationWrapper_ieLJ1",
|
|
2856
|
-
"mobileLoadMore": "index-module_mobileLoadMore_43-yu",
|
|
2857
|
-
"padList": "index-module_padList_YQpXl",
|
|
2858
2854
|
"cardList": "index-module_cardList_nVBoV"
|
|
2859
2855
|
};
|
|
2860
2856
|
/* harmony default export */ __webpack_exports__["Z"] = (___CSS_LOADER_EXPORT___);
|
|
2861
2857
|
|
|
2862
2858
|
|
|
2859
|
+
/***/ }),
|
|
2860
|
+
|
|
2861
|
+
/***/ 4979:
|
|
2862
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
2863
|
+
|
|
2864
|
+
"use strict";
|
|
2865
|
+
/* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(3645);
|
|
2866
|
+
/* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__);
|
|
2867
|
+
// Imports
|
|
2868
|
+
|
|
2869
|
+
var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default()(function(i){return i[1]});
|
|
2870
|
+
// Module
|
|
2871
|
+
___CSS_LOADER_EXPORT___.push([module.id, ".MobileLiveList-module_listWrapper_uqU\\+k{width:100%}.MobileLiveList-module_list_Vpqts{min-height:500px;display:grid;grid-template-columns:repeat(var(--columns,2),1fr);gap:12px}.MobileLiveList-module_cardWrapper_Glrgg{min-width:0;height:100%}.MobileLiveList-module_mobileLoadMore_i6Kdc{flex:0 0 100%!important;text-align:center;color:#999;font-size:12px;line-height:18px;padding:12px 0 24px 0}@media screen and (min-width:440px){.MobileLiveList-module_listWrapper_uqU\\+k .MobileLiveList-module_list_Vpqts{grid-template-columns:repeat(auto-fill,minmax(180px,1fr))}.MobileLiveList-module_listWrapper_uqU\\+k .MobileLiveList-module_empty-wrap_nw-oX img{height:200px}}@media screen and (min-width:1200px){.MobileLiveList-module_listWrapper_uqU\\+k .MobileLiveList-module_list_Vpqts{grid-template-columns:repeat(auto-fill,minmax(210px,1fr))}}", ""]);
|
|
2872
|
+
// Exports
|
|
2873
|
+
___CSS_LOADER_EXPORT___.locals = {
|
|
2874
|
+
"listWrapper": "MobileLiveList-module_listWrapper_uqU+k",
|
|
2875
|
+
"list": "MobileLiveList-module_list_Vpqts",
|
|
2876
|
+
"cardWrapper": "MobileLiveList-module_cardWrapper_Glrgg",
|
|
2877
|
+
"mobileLoadMore": "MobileLiveList-module_mobileLoadMore_i6Kdc",
|
|
2878
|
+
"empty-wrap": "MobileLiveList-module_empty-wrap_nw-oX"
|
|
2879
|
+
};
|
|
2880
|
+
/* harmony default export */ __webpack_exports__["Z"] = (___CSS_LOADER_EXPORT___);
|
|
2881
|
+
|
|
2882
|
+
|
|
2863
2883
|
/***/ }),
|
|
2864
2884
|
|
|
2865
2885
|
/***/ 3043:
|
|
@@ -61205,8 +61225,6 @@ function Empty_Empty(_ref) {
|
|
|
61205
61225
|
className: list_Empty_index_module.tip
|
|
61206
61226
|
}, tip)));
|
|
61207
61227
|
}
|
|
61208
|
-
// EXTERNAL MODULE: ./node_modules/lodash/lodash.js
|
|
61209
|
-
var lodash = __webpack_require__(6486);
|
|
61210
61228
|
// EXTERNAL MODULE: ./src/asset/img/def-avatar.jpg
|
|
61211
61229
|
var def_avatar = __webpack_require__(8675);
|
|
61212
61230
|
;// CONCATENATED MODULE: ./src/component/Avatar/index.jsx
|
|
@@ -61284,50 +61302,6 @@ function Avatar(_ref) {
|
|
|
61284
61302
|
}
|
|
61285
61303
|
|
|
61286
61304
|
/* harmony default export */ var component_Avatar = (Avatar);
|
|
61287
|
-
// EXTERNAL MODULE: ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[10].oneOf[0].use[1]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[10].oneOf[0].use[2]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[10].oneOf[0].use[3]!./node_modules/less-loader/dist/cjs.js??ruleSet[1].rules[10].oneOf[0].use[4]!./src/component/Icon/index.module.less
|
|
61288
|
-
var Icon_index_module = __webpack_require__(517);
|
|
61289
|
-
;// CONCATENATED MODULE: ./src/component/Icon/index.module.less
|
|
61290
|
-
|
|
61291
|
-
|
|
61292
|
-
|
|
61293
|
-
|
|
61294
|
-
|
|
61295
|
-
|
|
61296
|
-
|
|
61297
|
-
|
|
61298
|
-
|
|
61299
|
-
|
|
61300
|
-
|
|
61301
|
-
var Icon_index_module_options = {};
|
|
61302
|
-
|
|
61303
|
-
Icon_index_module_options.styleTagTransform = (styleTagTransform_default());
|
|
61304
|
-
Icon_index_module_options.setAttributes = (setAttributesWithoutAttributes_default());
|
|
61305
|
-
|
|
61306
|
-
Icon_index_module_options.insert = insertBySelector_default().bind(null, "head");
|
|
61307
|
-
|
|
61308
|
-
Icon_index_module_options.domAPI = (styleDomAPI_default());
|
|
61309
|
-
Icon_index_module_options.insertStyleElement = (insertStyleElement_default());
|
|
61310
|
-
|
|
61311
|
-
var Icon_index_module_update = injectStylesIntoStyleTag_default()(Icon_index_module/* default */.Z, Icon_index_module_options);
|
|
61312
|
-
|
|
61313
|
-
|
|
61314
|
-
|
|
61315
|
-
|
|
61316
|
-
/* harmony default export */ var component_Icon_index_module = (Icon_index_module/* default */.Z && Icon_index_module/* default.locals */.Z.locals ? Icon_index_module/* default.locals */.Z.locals : undefined);
|
|
61317
|
-
|
|
61318
|
-
;// CONCATENATED MODULE: ./src/component/Icon/index.jsx
|
|
61319
|
-
|
|
61320
|
-
|
|
61321
|
-
|
|
61322
|
-
function component_Icon_Icon(_ref) {
|
|
61323
|
-
var className = _ref.className,
|
|
61324
|
-
type = _ref.type;
|
|
61325
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("svg", {
|
|
61326
|
-
className: classnames_default()(component_Icon_index_module.icon, className)
|
|
61327
|
-
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("use", {
|
|
61328
|
-
xlinkHref: "#".concat(type)
|
|
61329
|
-
}));
|
|
61330
|
-
}
|
|
61331
61305
|
;// CONCATENATED MODULE: ./src/util/liveCountUtil.js
|
|
61332
61306
|
/**
|
|
61333
61307
|
* 格式化数值8
|
|
@@ -61372,6 +61346,244 @@ function formatLikesCount(count) {
|
|
|
61372
61346
|
function formatUVCount(count) {
|
|
61373
61347
|
return liveCountUtil_formatCount(count, 8);
|
|
61374
61348
|
}
|
|
61349
|
+
// EXTERNAL MODULE: ./src/list/ListItem/img/live.png
|
|
61350
|
+
var live = __webpack_require__(7699);
|
|
61351
|
+
;// CONCATENATED MODULE: ./src/list/ListItem/img/fire-fill.svg
|
|
61352
|
+
var fire_fill_path;
|
|
61353
|
+
function fire_fill_extends() { fire_fill_extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return fire_fill_extends.apply(this, arguments); }
|
|
61354
|
+
|
|
61355
|
+
var SvgFireFill = function SvgFireFill(props) {
|
|
61356
|
+
return /*#__PURE__*/React.createElement("svg", fire_fill_extends({
|
|
61357
|
+
width: 16,
|
|
61358
|
+
height: 16,
|
|
61359
|
+
fill: "none",
|
|
61360
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
61361
|
+
}, props), fire_fill_path || (fire_fill_path = /*#__PURE__*/React.createElement("path", {
|
|
61362
|
+
d: "M5.464 14.623c.616.205.821-.36.564-.564-.82-.565-1.231-1.59-.923-2.514.308-1.027 1.129-1.437 1.129-2.976 0 0 1.026.77.82 1.95 1.027-1.18.565-2.72.36-3.438 2.617 1.385 4.874 4.412 2.257 6.978-.307.256 0 .718.462.564 7.132-4.053 1.745-10.108.821-10.826.308.718.36 1.847-.256 2.411C9.62 2.155 7.003 1.334 7.003 1.334c.308 2.104-1.18 4.361-2.565 6.106-.051-.872-.103-1.437-.513-2.207-.103 1.488-1.283 2.72-1.59 4.26-.411 2.051.307 3.54 3.13 5.13Z",
|
|
61363
|
+
fill: "#F53F3F"
|
|
61364
|
+
})));
|
|
61365
|
+
};
|
|
61366
|
+
|
|
61367
|
+
/* harmony default export */ var fire_fill = ("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTUuNDY0MDYgMTQuNjIzMUM2LjA3OTc4IDE0LjgyODMgNi4yODUwMSAxNC4yNjM5IDYuMDI4NDYgMTQuMDU4N0M1LjIwNzUxIDEzLjQ5NDMgNC43OTcwMyAxMi40NjgxIDUuMTA0OSAxMS41NDQ1QzUuNDEyNzYgMTAuNTE4NCA2LjIzMzcxIDEwLjEwNzkgNi4yMzM3MSA4LjU2ODZDNi4yMzM3MSA4LjU2ODYgNy4yNTk4OSA5LjMzODI1IDcuMDU0NjYgMTAuNTE4NEM4LjA4MDg0IDkuMzM4MjYgNy42MTkwNiA3Ljc5ODk4IDcuNDEzODMgNy4wODA2M0MxMC4wMzA2IDguNDY1OTkgMTIuMjg4MiAxMS40OTMyIDkuNjcxNDQgMTQuMDU4N0M5LjM2MzU5IDE0LjMxNTIgOS42NzE0NCAxNC43NzcgMTAuMTMzMiAxNC42MjMxQzE3LjI2NTIgMTAuNTY5NyAxMS44Nzc4IDQuNTE1MTUgMTAuOTU0MiAzLjc5NjgyQzExLjI2MiA0LjUxNTE1IDExLjMxMzQgNS42NDM5NiAxMC42OTc3IDYuMjA4MzhDOS42MjAxNCAyLjE1NDk0IDcuMDAzMzcgMS4zMzM5OCA3LjAwMzM3IDEuMzMzOThDNy4zMTEyMyAzLjQzNzY3IDUuODIzMjcgNS42OTUzIDQuNDM3ODkgNy40Mzk4MUM0LjM4NjU5IDYuNTY3NTUgNC4zMzUyOSA2LjAwMzE1IDMuOTI0NzkgNS4yMzM1QzMuODIyMTkgNi43MjE0OCAyLjY0MjA2IDcuOTUyODkgMi4zMzQyMyA5LjQ5MjE3QzEuOTIzNzUgMTEuNTQ0NSAyLjY0MjA4IDEzLjAzMjUgNS40NjQxMSAxNC42MjMxTDUuNDY0MDYgMTQuNjIzMVoiIGZpbGw9IiNGNTNGM0YiLz4KPC9zdmc+Cg==");
|
|
61368
|
+
;// CONCATENATED MODULE: ./src/list/ListItem/img/video-mobile.svg
|
|
61369
|
+
var video_mobile_path;
|
|
61370
|
+
function video_mobile_extends() { video_mobile_extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return video_mobile_extends.apply(this, arguments); }
|
|
61371
|
+
|
|
61372
|
+
var SvgVideoMobile = function SvgVideoMobile(props) {
|
|
61373
|
+
return /*#__PURE__*/React.createElement("svg", video_mobile_extends({
|
|
61374
|
+
width: 14,
|
|
61375
|
+
height: 14,
|
|
61376
|
+
fill: "none",
|
|
61377
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
61378
|
+
}, props), video_mobile_path || (video_mobile_path = /*#__PURE__*/React.createElement("path", {
|
|
61379
|
+
d: "M9.334 2.334c.322 0 .583.261.583.583v2.45l3.041-2.128a.292.292 0 0 1 .46.239v7.046a.292.292 0 0 1-.46.239l-3.04-2.129v2.45a.583.583 0 0 1-.584.583H1.167a.583.583 0 0 1-.583-.583V2.917c0-.322.261-.583.583-.583h8.167Zm-.583 1.167h-7v7h7v-7ZM4.317 5.15c.045 0 .088.012.126.036l2.54 1.617a.233.233 0 0 1 0 .394l-2.54 1.616a.233.233 0 0 1-.359-.197V5.384c0-.129.104-.233.233-.233Zm7.934.007L9.917 6.791v.42l2.334 1.632V5.158Z",
|
|
61380
|
+
fill: "#999"
|
|
61381
|
+
})));
|
|
61382
|
+
};
|
|
61383
|
+
|
|
61384
|
+
/* harmony default export */ var video_mobile = ("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHZpZXdCb3g9IjAgMCAxNCAxNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTkuMzMzOTggMi4zMzM5OEM5LjY1NjE2IDIuMzMzOTggOS45MTczMiAyLjU5NTE1IDkuOTE3MzIgMi45MTczMlY1LjM2NzMyTDEyLjk1ODQgMy4yMzg1N0MxMy4wOTA0IDMuMTQ2MTkgMTMuMjcyMiAzLjE3ODI4IDEzLjM2NDYgMy4zMTAyNUMxMy4zOTg5IDMuMzU5MjcgMTMuNDE3MyAzLjQxNzY3IDEzLjQxNzMgMy40Nzc1MVYxMC41MjM4QzEzLjQxNzMgMTAuNjg0OSAxMy4yODY3IDEwLjgxNTUgMTMuMTI1NyAxMC44MTU1QzEzLjA2NTggMTAuODE1NSAxMy4wMDc0IDEwLjc5NyAxMi45NTg0IDEwLjc2MjdMOS45MTczMiA4LjYzMzk4VjExLjA4NEM5LjkxNzMyIDExLjQwNjIgOS42NTYxNiAxMS42NjczIDkuMzMzOTggMTEuNjY3M0gxLjE2NzMyQzAuODQ1MTU0IDExLjY2NzMgMC41ODM5ODQgMTEuNDA2MiAwLjU4Mzk4NCAxMS4wODRWMi45MTczMkMwLjU4Mzk4NCAyLjU5NTE1IDAuODQ1MTU0IDIuMzMzOTggMS4xNjczMiAyLjMzMzk4SDkuMzMzOThaTTguNzUwNjUgMy41MDA2NUgxLjc1MDY1VjEwLjUwMDdIOC43NTA2NVYzLjUwMDY1Wk00LjMxNzMyIDUuMTUwNzFDNC4zNjE2OSA1LjE1MDcxIDQuNDA1MTUgNS4xNjMzNiA0LjQ0MjU5IDUuMTg3MThMNi45ODI5OCA2LjgwMzc4QzcuMDkxNzEgNi44NzI5NiA3LjEyMzczIDcuMDE3MjIgNy4wNTQ1NSA3LjEyNTk1QzcuMDM2MjMgNy4xNTQ3MSA3LjAxMTc5IDcuMTc5MTUgNi45ODI5OCA3LjE5NzUzTDQuNDQyNTkgOC44MTQxMkM0LjMzMzg3IDguODgzMyA0LjE4OTY1IDguODUxMjggNC4xMjA0NyA4Ljc0MjU0QzQuMDk2NjQgOC43MDUwOSA0LjA4Mzk4IDguNjYxNjMgNC4wODM5OCA4LjYxNzI0VjUuMzg0MDRDNC4wODM5OCA1LjI1NTE4IDQuMTg4NDUgNS4xNTA3MSA0LjMxNzMyIDUuMTUwNzFaTTEyLjI1MDcgNS4xNTgwOEw5LjkxNzMyIDYuNzkxMjNWNy4yMTAwN0wxMi4yNTA3IDguODQzMjNWNS4xNTgwOFoiIGZpbGw9IiM5OTk5OTkiLz4KPC9zdmc+Cg==");
|
|
61385
|
+
// EXTERNAL MODULE: ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[10].oneOf[0].use[1]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[10].oneOf[0].use[2]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[10].oneOf[0].use[3]!./node_modules/less-loader/dist/cjs.js??ruleSet[1].rules[10].oneOf[0].use[4]!./src/list/ListItem/MobileListItem.module.less
|
|
61386
|
+
var MobileListItem_module = __webpack_require__(2429);
|
|
61387
|
+
;// CONCATENATED MODULE: ./src/list/ListItem/MobileListItem.module.less
|
|
61388
|
+
|
|
61389
|
+
|
|
61390
|
+
|
|
61391
|
+
|
|
61392
|
+
|
|
61393
|
+
|
|
61394
|
+
|
|
61395
|
+
|
|
61396
|
+
|
|
61397
|
+
|
|
61398
|
+
|
|
61399
|
+
var MobileListItem_module_options = {};
|
|
61400
|
+
|
|
61401
|
+
MobileListItem_module_options.styleTagTransform = (styleTagTransform_default());
|
|
61402
|
+
MobileListItem_module_options.setAttributes = (setAttributesWithoutAttributes_default());
|
|
61403
|
+
|
|
61404
|
+
MobileListItem_module_options.insert = insertBySelector_default().bind(null, "head");
|
|
61405
|
+
|
|
61406
|
+
MobileListItem_module_options.domAPI = (styleDomAPI_default());
|
|
61407
|
+
MobileListItem_module_options.insertStyleElement = (insertStyleElement_default());
|
|
61408
|
+
|
|
61409
|
+
var MobileListItem_module_update = injectStylesIntoStyleTag_default()(MobileListItem_module/* default */.Z, MobileListItem_module_options);
|
|
61410
|
+
|
|
61411
|
+
|
|
61412
|
+
|
|
61413
|
+
|
|
61414
|
+
/* harmony default export */ var ListItem_MobileListItem_module = (MobileListItem_module/* default */.Z && MobileListItem_module/* default.locals */.Z.locals ? MobileListItem_module/* default.locals */.Z.locals : undefined);
|
|
61415
|
+
|
|
61416
|
+
;// CONCATENATED MODULE: ./src/list/ListItem/liveStatus/img/progress.svg
|
|
61417
|
+
var progress_path, progress_path2, progress_path3;
|
|
61418
|
+
function progress_extends() { progress_extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return progress_extends.apply(this, arguments); }
|
|
61419
|
+
|
|
61420
|
+
var SvgProgress = function SvgProgress(props) {
|
|
61421
|
+
return /*#__PURE__*/React.createElement("svg", progress_extends({
|
|
61422
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
61423
|
+
width: 16,
|
|
61424
|
+
height: 16,
|
|
61425
|
+
style: {
|
|
61426
|
+
enableBackground: "new 0 0 50 50"
|
|
61427
|
+
},
|
|
61428
|
+
xmlSpace: "preserve"
|
|
61429
|
+
}, props), progress_path || (progress_path = /*#__PURE__*/React.createElement("path", {
|
|
61430
|
+
fill: "#fff",
|
|
61431
|
+
d: "M0 0h3v6H0z"
|
|
61432
|
+
}, /*#__PURE__*/React.createElement("animateTransform", {
|
|
61433
|
+
attributeType: "xml",
|
|
61434
|
+
attributeName: "transform",
|
|
61435
|
+
type: "scale",
|
|
61436
|
+
values: "1,1; 1,3; 1,1",
|
|
61437
|
+
begin: "0s",
|
|
61438
|
+
dur: "0.6s",
|
|
61439
|
+
repeatCount: "indefinite"
|
|
61440
|
+
}))), progress_path2 || (progress_path2 = /*#__PURE__*/React.createElement("path", {
|
|
61441
|
+
fill: "#fff",
|
|
61442
|
+
d: "M6 0h3v6H6z"
|
|
61443
|
+
}, /*#__PURE__*/React.createElement("animateTransform", {
|
|
61444
|
+
attributeType: "xml",
|
|
61445
|
+
attributeName: "transform",
|
|
61446
|
+
type: "scale",
|
|
61447
|
+
values: "1,1; 1,3; 1,1",
|
|
61448
|
+
begin: "0.2s",
|
|
61449
|
+
dur: "0.6s",
|
|
61450
|
+
repeatCount: "indefinite"
|
|
61451
|
+
}))), progress_path3 || (progress_path3 = /*#__PURE__*/React.createElement("path", {
|
|
61452
|
+
fill: "#fff",
|
|
61453
|
+
d: "M12 0h3v6h-3z"
|
|
61454
|
+
}, /*#__PURE__*/React.createElement("animateTransform", {
|
|
61455
|
+
attributeType: "xml",
|
|
61456
|
+
attributeName: "transform",
|
|
61457
|
+
type: "scale",
|
|
61458
|
+
values: "1,1; 1,3; 1,1",
|
|
61459
|
+
begin: "0.4s",
|
|
61460
|
+
dur: "0.6s",
|
|
61461
|
+
repeatCount: "indefinite"
|
|
61462
|
+
}))));
|
|
61463
|
+
};
|
|
61464
|
+
|
|
61465
|
+
/* harmony default export */ var progress = ("data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIGlkPSJMYXllcl8xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB4PSIwcHgiCiAgeT0iMHB4IiB3aWR0aD0iMTZweCIgaGVpZ2h0PSIxNnB4IiB2aWV3Qm94PSIwIDAgMTYgMTYiIHN0eWxlPSJlbmFibGUtYmFja2dyb3VuZDpuZXcgMCAwIDUwIDUwOyIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI+CiAgPHJlY3QgeD0iMCIgeT0iMCIgd2lkdGg9IjMiIGhlaWdodD0iNiIgZmlsbD0iI2ZmZiI+CiAgICA8YW5pbWF0ZVRyYW5zZm9ybSBhdHRyaWJ1dGVUeXBlPSJ4bWwiIGF0dHJpYnV0ZU5hbWU9InRyYW5zZm9ybSIgdHlwZT0ic2NhbGUiIHZhbHVlcz0iMSwxOyAxLDM7IDEsMSIgYmVnaW49IjBzIgogICAgICBkdXI9IjAuNnMiIHJlcGVhdENvdW50PSJpbmRlZmluaXRlIiAvPgogIDwvcmVjdD4KCiAgPHJlY3QgeD0iNiIgeT0iMCIgd2lkdGg9IjMiIGhlaWdodD0iNiIgZmlsbD0iI2ZmZiI+CiAgICA8YW5pbWF0ZVRyYW5zZm9ybSBhdHRyaWJ1dGVUeXBlPSJ4bWwiIGF0dHJpYnV0ZU5hbWU9InRyYW5zZm9ybSIgdHlwZT0ic2NhbGUiIHZhbHVlcz0iMSwxOyAxLDM7IDEsMSIgYmVnaW49IjAuMnMiCiAgICAgIGR1cj0iMC42cyIgcmVwZWF0Q291bnQ9ImluZGVmaW5pdGUiIC8+CiAgPC9yZWN0PgogIDxyZWN0IHg9IjEyIiB5PSIwIiB3aWR0aD0iMyIgaGVpZ2h0PSI2IiBmaWxsPSIjZmZmIj4KICAgIDxhbmltYXRlVHJhbnNmb3JtIGF0dHJpYnV0ZVR5cGU9InhtbCIgYXR0cmlidXRlTmFtZT0idHJhbnNmb3JtIiB0eXBlPSJzY2FsZSIgdmFsdWVzPSIxLDE7IDEsMzsgMSwxIiBiZWdpbj0iMC40cyIKICAgICAgZHVyPSIwLjZzIiByZXBlYXRDb3VudD0iaW5kZWZpbml0ZSIgLz4KICA8L3JlY3Q+Cjwvc3ZnPg==");
|
|
61466
|
+
;// CONCATENATED MODULE: ./src/list/ListItem/liveStatus/img/clock.svg
|
|
61467
|
+
var clock_path;
|
|
61468
|
+
function clock_extends() { clock_extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return clock_extends.apply(this, arguments); }
|
|
61469
|
+
|
|
61470
|
+
var SvgClock = function SvgClock(props) {
|
|
61471
|
+
return /*#__PURE__*/React.createElement("svg", clock_extends({
|
|
61472
|
+
width: 14,
|
|
61473
|
+
height: 14,
|
|
61474
|
+
fill: "none",
|
|
61475
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
61476
|
+
}, props), clock_path || (clock_path = /*#__PURE__*/React.createElement("path", {
|
|
61477
|
+
d: "M11.666 9.916h1.167v1.167H1.166V9.916h1.167V5.833a4.667 4.667 0 0 1 9.333 0v4.083Zm-1.167 0V5.833a3.5 3.5 0 1 0-7 0v4.083h7Zm-5.25 2.333h3.5v1.167h-3.5v-1.167Z",
|
|
61478
|
+
fill: "#fff"
|
|
61479
|
+
})));
|
|
61480
|
+
};
|
|
61481
|
+
|
|
61482
|
+
/* harmony default export */ var clock = ("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHZpZXdCb3g9IjAgMCAxNCAxNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTExLjY2NiA5LjkxNjAySDEyLjgzMjdWMTEuMDgyN0gxLjE2NjAyVjkuOTE2MDJIMi4zMzI2OFY1LjgzMjY4QzIuMzMyNjggMy4yNTUzNSA0LjQyMjAyIDEuMTY2MDIgNi45OTkzNSAxLjE2NjAyQzkuNTc2NjkgMS4xNjYwMiAxMS42NjYgMy4yNTUzNSAxMS42NjYgNS44MzI2OFY5LjkxNjAyWk0xMC40OTkzIDkuOTE2MDJWNS44MzI2OEMxMC40OTkzIDMuODk5NjggOC45MzIzNCAyLjMzMjY4IDYuOTk5MzUgMi4zMzI2OEM1LjA2NjM1IDIuMzMyNjggMy40OTkzNSAzLjg5OTY4IDMuNDk5MzUgNS44MzI2OFY5LjkxNjAySDEwLjQ5OTNaTTUuMjQ5MzUgMTIuMjQ5M0g4Ljc0OTM1VjEzLjQxNkg1LjI0OTM1VjEyLjI0OTNaIiBmaWxsPSJ3aGl0ZSIvPgo8L3N2Zz4K");
|
|
61483
|
+
;// CONCATENATED MODULE: ./src/list/ListItem/liveStatus/img/replay.svg
|
|
61484
|
+
var replay_path, replay_path2;
|
|
61485
|
+
function replay_extends() { replay_extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return replay_extends.apply(this, arguments); }
|
|
61486
|
+
|
|
61487
|
+
var SvgReplay = function SvgReplay(props) {
|
|
61488
|
+
return /*#__PURE__*/React.createElement("svg", replay_extends({
|
|
61489
|
+
width: 14,
|
|
61490
|
+
height: 14,
|
|
61491
|
+
fill: "none",
|
|
61492
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
61493
|
+
}, props), replay_path || (replay_path = /*#__PURE__*/React.createElement("path", {
|
|
61494
|
+
d: "M7 1.166a5.833 5.833 0 1 0 5.833 5.833h-1.167a4.667 4.667 0 1 1-.808-2.625H9.333v1.167h3.5v-3.5h-1.167v1.458A5.825 5.825 0 0 0 7 1.166Z",
|
|
61495
|
+
fill: "#6FD037"
|
|
61496
|
+
})), replay_path2 || (replay_path2 = /*#__PURE__*/React.createElement("path", {
|
|
61497
|
+
d: "m5.862 5.384 2.74 1.618a.133.133 0 0 1 0 .228l-2.74 1.618a.13.13 0 0 1-.178-.047.133.133 0 0 1-.018-.067V5.498c0-.073.058-.132.13-.132a.13.13 0 0 1 .066.018Z",
|
|
61498
|
+
fill: "#6FD037"
|
|
61499
|
+
})));
|
|
61500
|
+
};
|
|
61501
|
+
|
|
61502
|
+
/* harmony default export */ var replay = ("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHZpZXdCb3g9IjAgMCAxNCAxNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTYuOTk5MzUgMS4xNjYwMkMzLjc3NzY5IDEuMTY2MDIgMS4xNjYwMiAzLjc3NzY5IDEuMTY2MDIgNi45OTkzNUMxLjE2NjAyIDEwLjIyMSAzLjc3NzY5IDEyLjgzMjcgNi45OTkzNSAxMi44MzI3QzEwLjIyMSAxMi44MzI3IDEyLjgzMjcgMTAuMjIxIDEyLjgzMjcgNi45OTkzNUgxMS42NjZDMTEuNjY2IDkuNTc2NjkgOS41NzY2OSAxMS42NjYgNi45OTkzNSAxMS42NjZDNC40MjIwMiAxMS42NjYgMi4zMzI2OCA5LjU3NjY5IDIuMzMyNjggNi45OTkzNUMyLjMzMjY4IDQuNDIyMDIgNC40MjIwMiAyLjMzMjY4IDYuOTk5MzUgMi4zMzI2OEM4LjYwMzQgMi4zMzI2OCAxMC4wMTg0IDMuMTQxOTYgMTAuODU4NCA0LjM3NDQ5TDkuMzMyNjggNC4zNzQzNVY1LjU0MTAySDEyLjgzMjdWMi4wNDEwMkgxMS42NjZMMTEuNjY2MSAzLjQ5ODg3QzEwLjYwMTggMi4wODIyOSA4LjkwNzYxIDEuMTY2MDIgNi45OTkzNSAxLjE2NjAyWiIgZmlsbD0iIzZGRDAzNyIvPgo8cGF0aCBkPSJNNS44NjIgNS4zODM5OUw4LjYwMTI4IDcuMDAyQzguNjYzNDYgNy4wMzg3MSA4LjY4NDQ3IDcuMTE5NTQgOC42NDgyMSA3LjE4MjVDOC42MzY4NyA3LjIwMjE2IDguNjIwNyA3LjIxODUzIDguNjAxMjggNy4yMzAwMUw1Ljg2MiA4Ljg0ODAyQzUuNzk5ODIgOC44ODQ3NCA1LjcyIDguODYzNDYgNS42ODM3MyA4LjgwMDUxQzUuNjcyMSA4Ljc4MDMxIDUuNjY1OTggOC43NTczOCA1LjY2NTk4IDguNzM0MDFWNS40OThDNS42NjU5OCA1LjQyNTEgNS43MjQzMyA1LjM2NjAxIDUuNzk2MzIgNS4zNjYwMUM1LjgxOTQgNS4zNjYwMSA1Ljg0MjA3IDUuMzcyMjIgNS44NjIgNS4zODM5OVoiIGZpbGw9IiM2RkQwMzciLz4KPC9zdmc+Cg==");
|
|
61503
|
+
// EXTERNAL MODULE: ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[10].oneOf[0].use[1]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[10].oneOf[0].use[2]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[10].oneOf[0].use[3]!./node_modules/less-loader/dist/cjs.js??ruleSet[1].rules[10].oneOf[0].use[4]!./src/list/ListItem/liveStatus/index.module.less
|
|
61504
|
+
var liveStatus_index_module = __webpack_require__(8123);
|
|
61505
|
+
;// CONCATENATED MODULE: ./src/list/ListItem/liveStatus/index.module.less
|
|
61506
|
+
|
|
61507
|
+
|
|
61508
|
+
|
|
61509
|
+
|
|
61510
|
+
|
|
61511
|
+
|
|
61512
|
+
|
|
61513
|
+
|
|
61514
|
+
|
|
61515
|
+
|
|
61516
|
+
|
|
61517
|
+
var liveStatus_index_module_options = {};
|
|
61518
|
+
|
|
61519
|
+
liveStatus_index_module_options.styleTagTransform = (styleTagTransform_default());
|
|
61520
|
+
liveStatus_index_module_options.setAttributes = (setAttributesWithoutAttributes_default());
|
|
61521
|
+
|
|
61522
|
+
liveStatus_index_module_options.insert = insertBySelector_default().bind(null, "head");
|
|
61523
|
+
|
|
61524
|
+
liveStatus_index_module_options.domAPI = (styleDomAPI_default());
|
|
61525
|
+
liveStatus_index_module_options.insertStyleElement = (insertStyleElement_default());
|
|
61526
|
+
|
|
61527
|
+
var liveStatus_index_module_update = injectStylesIntoStyleTag_default()(liveStatus_index_module/* default */.Z, liveStatus_index_module_options);
|
|
61528
|
+
|
|
61529
|
+
|
|
61530
|
+
|
|
61531
|
+
|
|
61532
|
+
/* harmony default export */ var ListItem_liveStatus_index_module = (liveStatus_index_module/* default */.Z && liveStatus_index_module/* default.locals */.Z.locals ? liveStatus_index_module/* default.locals */.Z.locals : undefined);
|
|
61533
|
+
|
|
61534
|
+
;// CONCATENATED MODULE: ./src/list/ListItem/liveStatus/index.jsx
|
|
61535
|
+
/**
|
|
61536
|
+
* 直播状态标签组件
|
|
61537
|
+
*/
|
|
61538
|
+
|
|
61539
|
+
|
|
61540
|
+
|
|
61541
|
+
|
|
61542
|
+
|
|
61543
|
+
|
|
61544
|
+
var TagName = {
|
|
61545
|
+
0: '预告',
|
|
61546
|
+
1: '直播中',
|
|
61547
|
+
2: '回放',
|
|
61548
|
+
3: '直播中' // 实际是暂停
|
|
61549
|
+
|
|
61550
|
+
};
|
|
61551
|
+
function liveStatus_LiveStatus(_ref) {
|
|
61552
|
+
var status = _ref.status,
|
|
61553
|
+
className = _ref.className;
|
|
61554
|
+
|
|
61555
|
+
var renderStatusIcon = function renderStatusIcon() {
|
|
61556
|
+
if (status === 0) {
|
|
61557
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("img", {
|
|
61558
|
+
src: clock,
|
|
61559
|
+
alt: "",
|
|
61560
|
+
className: ListItem_liveStatus_index_module.statusIcon
|
|
61561
|
+
});
|
|
61562
|
+
}
|
|
61563
|
+
|
|
61564
|
+
if (status === 1 || status === 3) {
|
|
61565
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("img", {
|
|
61566
|
+
src: progress,
|
|
61567
|
+
alt: "",
|
|
61568
|
+
className: classnames_default()(ListItem_liveStatus_index_module.statusIcon, ListItem_liveStatus_index_module["play-icon"])
|
|
61569
|
+
});
|
|
61570
|
+
}
|
|
61571
|
+
|
|
61572
|
+
if (status === 2) {
|
|
61573
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("img", {
|
|
61574
|
+
src: replay,
|
|
61575
|
+
alt: "",
|
|
61576
|
+
className: ListItem_liveStatus_index_module.statusIcon
|
|
61577
|
+
});
|
|
61578
|
+
}
|
|
61579
|
+
|
|
61580
|
+
return null;
|
|
61581
|
+
};
|
|
61582
|
+
|
|
61583
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("span", {
|
|
61584
|
+
className: classnames_default()(ListItem_liveStatus_index_module.statusBadge, ListItem_liveStatus_index_module["statusBadge".concat(status)], className || '')
|
|
61585
|
+
}, renderStatusIcon(), TagName[status]);
|
|
61586
|
+
}
|
|
61375
61587
|
// EXTERNAL MODULE: ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[10].oneOf[0].use[1]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[10].oneOf[0].use[2]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[10].oneOf[0].use[3]!./node_modules/less-loader/dist/cjs.js??ruleSet[1].rules[10].oneOf[0].use[4]!./src/list/ListItem/LiveCountDown/index.module.less
|
|
61376
61588
|
var ListItem_LiveCountDown_index_module = __webpack_require__(5854);
|
|
61377
61589
|
;// CONCATENATED MODULE: ./src/list/ListItem/LiveCountDown/index.module.less
|
|
@@ -61472,179 +61684,6 @@ var Countdown = function Countdown(_ref) {
|
|
|
61472
61684
|
};
|
|
61473
61685
|
|
|
61474
61686
|
/* harmony default export */ var ListItem_LiveCountDown = (Countdown);
|
|
61475
|
-
;// CONCATENATED MODULE: ./src/list/ListItem/img/fire-fill.svg
|
|
61476
|
-
var fire_fill_path;
|
|
61477
|
-
function fire_fill_extends() { fire_fill_extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return fire_fill_extends.apply(this, arguments); }
|
|
61478
|
-
|
|
61479
|
-
var SvgFireFill = function SvgFireFill(props) {
|
|
61480
|
-
return /*#__PURE__*/React.createElement("svg", fire_fill_extends({
|
|
61481
|
-
width: 16,
|
|
61482
|
-
height: 16,
|
|
61483
|
-
fill: "none",
|
|
61484
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
61485
|
-
}, props), fire_fill_path || (fire_fill_path = /*#__PURE__*/React.createElement("path", {
|
|
61486
|
-
d: "M5.464 14.623c.616.205.821-.36.564-.564-.82-.565-1.231-1.59-.923-2.514.308-1.027 1.129-1.437 1.129-2.976 0 0 1.026.77.82 1.95 1.027-1.18.565-2.72.36-3.438 2.617 1.385 4.874 4.412 2.257 6.978-.307.256 0 .718.462.564 7.132-4.053 1.745-10.108.821-10.826.308.718.36 1.847-.256 2.411C9.62 2.155 7.003 1.334 7.003 1.334c.308 2.104-1.18 4.361-2.565 6.106-.051-.872-.103-1.437-.513-2.207-.103 1.488-1.283 2.72-1.59 4.26-.411 2.051.307 3.54 3.13 5.13Z",
|
|
61487
|
-
fill: "#F53F3F"
|
|
61488
|
-
})));
|
|
61489
|
-
};
|
|
61490
|
-
|
|
61491
|
-
/* harmony default export */ var fire_fill = ("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTUuNDY0MDYgMTQuNjIzMUM2LjA3OTc4IDE0LjgyODMgNi4yODUwMSAxNC4yNjM5IDYuMDI4NDYgMTQuMDU4N0M1LjIwNzUxIDEzLjQ5NDMgNC43OTcwMyAxMi40NjgxIDUuMTA0OSAxMS41NDQ1QzUuNDEyNzYgMTAuNTE4NCA2LjIzMzcxIDEwLjEwNzkgNi4yMzM3MSA4LjU2ODZDNi4yMzM3MSA4LjU2ODYgNy4yNTk4OSA5LjMzODI1IDcuMDU0NjYgMTAuNTE4NEM4LjA4MDg0IDkuMzM4MjYgNy42MTkwNiA3Ljc5ODk4IDcuNDEzODMgNy4wODA2M0MxMC4wMzA2IDguNDY1OTkgMTIuMjg4MiAxMS40OTMyIDkuNjcxNDQgMTQuMDU4N0M5LjM2MzU5IDE0LjMxNTIgOS42NzE0NCAxNC43NzcgMTAuMTMzMiAxNC42MjMxQzE3LjI2NTIgMTAuNTY5NyAxMS44Nzc4IDQuNTE1MTUgMTAuOTU0MiAzLjc5NjgyQzExLjI2MiA0LjUxNTE1IDExLjMxMzQgNS42NDM5NiAxMC42OTc3IDYuMjA4MzhDOS42MjAxNCAyLjE1NDk0IDcuMDAzMzcgMS4zMzM5OCA3LjAwMzM3IDEuMzMzOThDNy4zMTEyMyAzLjQzNzY3IDUuODIzMjcgNS42OTUzIDQuNDM3ODkgNy40Mzk4MUM0LjM4NjU5IDYuNTY3NTUgNC4zMzUyOSA2LjAwMzE1IDMuOTI0NzkgNS4yMzM1QzMuODIyMTkgNi43MjE0OCAyLjY0MjA2IDcuOTUyODkgMi4zMzQyMyA5LjQ5MjE3QzEuOTIzNzUgMTEuNTQ0NSAyLjY0MjA4IDEzLjAzMjUgNS40NjQxMSAxNC42MjMxTDUuNDY0MDYgMTQuNjIzMVoiIGZpbGw9IiNGNTNGM0YiLz4KPC9zdmc+Cg==");
|
|
61492
|
-
;// CONCATENATED MODULE: ./src/list/ListItem/img/video.svg
|
|
61493
|
-
var video_path;
|
|
61494
|
-
function video_extends() { video_extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return video_extends.apply(this, arguments); }
|
|
61495
|
-
|
|
61496
|
-
var SvgVideo = function SvgVideo(props) {
|
|
61497
|
-
return /*#__PURE__*/React.createElement("svg", video_extends({
|
|
61498
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
61499
|
-
width: 16,
|
|
61500
|
-
height: 16,
|
|
61501
|
-
fill: "none"
|
|
61502
|
-
}, props), video_path || (video_path = /*#__PURE__*/React.createElement("path", {
|
|
61503
|
-
fillRule: "evenodd",
|
|
61504
|
-
clipRule: "evenodd",
|
|
61505
|
-
d: "M11.333 3.333a.667.667 0 0 0-.666-.667H1.333a.667.667 0 0 0-.666.667v9.334c0 .368.298.666.666.666h9.334a.667.667 0 0 0 .666-.667v-2.8L14.81 12.3a.333.333 0 0 0 .524-.274V3.973a.333.333 0 0 0-.524-.273l-3.476 2.433v-2.8ZM4.672 6.1a.267.267 0 0 1 .405-.173L7.98 7.774l.042.034a.267.267 0 0 1-.042.416l-2.903 1.848-.049.024a.267.267 0 0 1-.361-.25V6.153l.005-.053Z",
|
|
61506
|
-
fill: "#CCC"
|
|
61507
|
-
})));
|
|
61508
|
-
};
|
|
61509
|
-
|
|
61510
|
-
/* harmony default export */ var video = ("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMCAwIDE2IDE2IiBmaWxsPSJub25lIj4NCjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNMTEuMzMzNCAzLjMzMzE3QzExLjMzMzQgMi45NjQ5OCAxMS4wMzQ5IDIuNjY2NSAxMC42NjY3IDIuNjY2NUgxLjMzMzM1QzAuOTY1MTY0IDIuNjY2NSAwLjY2NjY4NyAyLjk2NDk4IDAuNjY2Njg3IDMuMzMzMTdWMTIuNjY2NUMwLjY2NjY4NyAxMy4wMzQ3IDAuOTY1MTY0IDEzLjMzMzIgMS4zMzMzNSAxMy4zMzMySDEwLjY2NjdDMTEuMDM0OSAxMy4zMzMyIDExLjMzMzQgMTMuMDM0NyAxMS4zMzM0IDEyLjY2NjVWOS44NjY1TDE0LjgwODcgMTIuMjk5OEMxNC45MTA2IDEyLjM3MTIgMTUuMDQzNyAxMi4zOCAxNS4xNTQgMTIuMzIyNUMxNS4yNjQ0IDEyLjI2NSAxNS4zMzM1IDEyLjE1MDkgMTUuMzMzNCAxMi4wMjY1VjMuOTczMTdDMTUuMzMzNSAzLjg0ODc3IDE1LjI2NDQgMy43MzQ2NCAxNS4xNTQgMy42NzcxN0MxNS4wNDM3IDMuNjE5NjkgMTQuOTEwNiAzLjYyODQzIDE0LjgwODcgMy42OTk4NEwxMS4zMzM0IDYuMTMzMTdWMy4zMzMxN1pNNC42NzIwMiA2LjA5OTE3QzQuNjk3MzcgNS45NzQ5OSA0LjgwNjYyIDUuODg1ODEgNC45MzMzNSA1Ljg4NTg0QzQuOTgzOTYgNS44ODUzIDUuMDMzNjcgNS44OTk4NCA1LjA3NjY5IDUuOTI2NUw3Ljk4MDAyIDcuNzc0NUw4LjAyMjAyIDcuODA3ODRDOC4xNDU0NCA3LjkyNzYgOC4xMjQ4OSA4LjEzMTE1IDcuOTgwMDIgOC4yMjM4NEw1LjA3NjY5IDEwLjA3MThMNS4wMjgwMiAxMC4wOTU4QzQuODUzNTEgMTAuMTYyMSA0LjY2NjY2IDEwLjAzMzIgNC42NjY2OSA5Ljg0NjVWNi4xNTE4NEw0LjY3MjAyIDYuMDk5MTdaIiBmaWxsPSIjQ0NDQ0NDIi8+DQo8L3N2Zz4=");
|
|
61511
|
-
// EXTERNAL MODULE: ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[10].oneOf[0].use[1]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[10].oneOf[0].use[2]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[10].oneOf[0].use[3]!./node_modules/less-loader/dist/cjs.js??ruleSet[1].rules[10].oneOf[0].use[4]!./src/list/ListItem/liveTime/index.module.less
|
|
61512
|
-
var liveTime_index_module = __webpack_require__(1854);
|
|
61513
|
-
;// CONCATENATED MODULE: ./src/list/ListItem/liveTime/index.module.less
|
|
61514
|
-
|
|
61515
|
-
|
|
61516
|
-
|
|
61517
|
-
|
|
61518
|
-
|
|
61519
|
-
|
|
61520
|
-
|
|
61521
|
-
|
|
61522
|
-
|
|
61523
|
-
|
|
61524
|
-
|
|
61525
|
-
var liveTime_index_module_options = {};
|
|
61526
|
-
|
|
61527
|
-
liveTime_index_module_options.styleTagTransform = (styleTagTransform_default());
|
|
61528
|
-
liveTime_index_module_options.setAttributes = (setAttributesWithoutAttributes_default());
|
|
61529
|
-
|
|
61530
|
-
liveTime_index_module_options.insert = insertBySelector_default().bind(null, "head");
|
|
61531
|
-
|
|
61532
|
-
liveTime_index_module_options.domAPI = (styleDomAPI_default());
|
|
61533
|
-
liveTime_index_module_options.insertStyleElement = (insertStyleElement_default());
|
|
61534
|
-
|
|
61535
|
-
var liveTime_index_module_update = injectStylesIntoStyleTag_default()(liveTime_index_module/* default */.Z, liveTime_index_module_options);
|
|
61536
|
-
|
|
61537
|
-
|
|
61538
|
-
|
|
61539
|
-
|
|
61540
|
-
/* harmony default export */ var ListItem_liveTime_index_module = (liveTime_index_module/* default */.Z && liveTime_index_module/* default.locals */.Z.locals ? liveTime_index_module/* default.locals */.Z.locals : undefined);
|
|
61541
|
-
|
|
61542
|
-
;// CONCATENATED MODULE: ./src/list/ListItem/liveTime/index.jsx
|
|
61543
|
-
|
|
61544
|
-
|
|
61545
|
-
function liveTime_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
|
|
61546
|
-
|
|
61547
|
-
function liveTime_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { liveTime_ownKeys(Object(source), true).forEach(function (key) { liveTime_defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { liveTime_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
61548
|
-
|
|
61549
|
-
function liveTime_defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
61550
|
-
|
|
61551
|
-
function liveTime_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); } }
|
|
61552
|
-
|
|
61553
|
-
function liveTime_asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { liveTime_asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { liveTime_asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
|
|
61554
|
-
|
|
61555
|
-
function liveTime_slicedToArray(arr, i) { return liveTime_arrayWithHoles(arr) || liveTime_iterableToArrayLimit(arr, i) || liveTime_unsupportedIterableToArray(arr, i) || liveTime_nonIterableRest(); }
|
|
61556
|
-
|
|
61557
|
-
function liveTime_nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
61558
|
-
|
|
61559
|
-
function liveTime_unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return liveTime_arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return liveTime_arrayLikeToArray(o, minLen); }
|
|
61560
|
-
|
|
61561
|
-
function liveTime_arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
61562
|
-
|
|
61563
|
-
function liveTime_iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
61564
|
-
|
|
61565
|
-
function liveTime_arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
61566
|
-
|
|
61567
|
-
|
|
61568
|
-
|
|
61569
|
-
|
|
61570
|
-
|
|
61571
|
-
|
|
61572
|
-
|
|
61573
|
-
|
|
61574
|
-
function liveTime_index(_ref) {
|
|
61575
|
-
var data = _ref.data,
|
|
61576
|
-
setData = _ref.setData,
|
|
61577
|
-
liveExt = _ref.liveExt,
|
|
61578
|
-
liveStatus = _ref.liveStatus,
|
|
61579
|
-
type = _ref.type;
|
|
61580
|
-
var beginTime = data.begin_time;
|
|
61581
|
-
var beginAt = dayjs_min_default()(beginTime);
|
|
61582
|
-
|
|
61583
|
-
var _useState = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState)(false),
|
|
61584
|
-
_useState2 = liveTime_slicedToArray(_useState, 2),
|
|
61585
|
-
countDownFinish = _useState2[0],
|
|
61586
|
-
setCountDownFinish = _useState2[1]; // 倒计时是否结束
|
|
61587
|
-
|
|
61588
|
-
|
|
61589
|
-
var handleCountDownFinish = /*#__PURE__*/function () {
|
|
61590
|
-
var _ref2 = liveTime_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee() {
|
|
61591
|
-
return regenerator_default().wrap(function _callee$(_context) {
|
|
61592
|
-
while (1) {
|
|
61593
|
-
switch (_context.prev = _context.next) {
|
|
61594
|
-
case 0:
|
|
61595
|
-
setCountDownFinish(true);
|
|
61596
|
-
setData(liveTime_objectSpread(liveTime_objectSpread({}, data), {}, {
|
|
61597
|
-
status: 1
|
|
61598
|
-
}));
|
|
61599
|
-
|
|
61600
|
-
case 2:
|
|
61601
|
-
case "end":
|
|
61602
|
-
return _context.stop();
|
|
61603
|
-
}
|
|
61604
|
-
}
|
|
61605
|
-
}, _callee);
|
|
61606
|
-
}));
|
|
61607
|
-
|
|
61608
|
-
return function handleCountDownFinish() {
|
|
61609
|
-
return _ref2.apply(this, arguments);
|
|
61610
|
-
};
|
|
61611
|
-
}();
|
|
61612
|
-
|
|
61613
|
-
var renderStatusText = function renderStatusText() {
|
|
61614
|
-
if (liveStatus === 2 || liveStatus === 3 || liveStatus === 1 || countDownFinish) {
|
|
61615
|
-
var timeLabel = "".concat(beginAt.format('YYYY/MM/DD HH:mm'), " \u5F00\u64AD");
|
|
61616
|
-
var viewCount = liveExt.total_uv || 0; // 直播中才显示
|
|
61617
|
-
|
|
61618
|
-
var viewCountLabel = viewCount ? "".concat(formatUVCount(liveExt.total_uv || 0), "\u4EBA\u89C2\u770B") : '';
|
|
61619
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("div", {
|
|
61620
|
-
className: "".concat(ListItem_liveTime_index_module.timeBar, " ").concat(type === 'card' ? ListItem_liveTime_index_module.cardTimeBar : '')
|
|
61621
|
-
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("div", {
|
|
61622
|
-
className: ListItem_liveTime_index_module.statusText
|
|
61623
|
-
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("img", {
|
|
61624
|
-
src: video
|
|
61625
|
-
}), timeLabel), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("div", {
|
|
61626
|
-
className: ListItem_liveTime_index_module.viewer
|
|
61627
|
-
}, viewCountLabel ? /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("img", {
|
|
61628
|
-
src: fire_fill,
|
|
61629
|
-
alt: ""
|
|
61630
|
-
}) : /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement((external_commonjs_react_commonjs2_react_root_React_default()).Fragment, null), viewCountLabel));
|
|
61631
|
-
}
|
|
61632
|
-
|
|
61633
|
-
if (liveStatus === 0) {
|
|
61634
|
-
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("div", {
|
|
61635
|
-
className: ListItem_liveTime_index_module.countdownBox
|
|
61636
|
-
}, "\u8DDD\u5F00\u59CB", /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(ListItem_LiveCountDown, {
|
|
61637
|
-
key: data.live_id,
|
|
61638
|
-
endTime: dayjs_min_default()(data.begin_time).valueOf(),
|
|
61639
|
-
onFinish: handleCountDownFinish
|
|
61640
|
-
})), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("div", null));
|
|
61641
|
-
}
|
|
61642
|
-
};
|
|
61643
|
-
|
|
61644
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("div", {
|
|
61645
|
-
className: "".concat(ListItem_liveTime_index_module.time, " ").concat(liveStatus === 0 ? ListItem_liveTime_index_module["foreshow-time"] : '', " time-box")
|
|
61646
|
-
}, renderStatusText());
|
|
61647
|
-
}
|
|
61648
61687
|
// EXTERNAL MODULE: ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[10].oneOf[1].use[1]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[10].oneOf[1].use[2]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[10].oneOf[1].use[3]!./node_modules/less-loader/dist/cjs.js??ruleSet[1].rules[10].oneOf[1].use[4]!./node_modules/@sdp.nd/fish/es/message/style/index.less
|
|
61649
61688
|
var es_message_style = __webpack_require__(428);
|
|
61650
61689
|
;// CONCATENATED MODULE: ./node_modules/@sdp.nd/fish/es/message/style/index.less
|
|
@@ -61679,6 +61718,8 @@ var message_style_update = injectStylesIntoStyleTag_default()(es_message_style/*
|
|
|
61679
61718
|
;// CONCATENATED MODULE: ./node_modules/@sdp.nd/fish/es/message/style/index.js
|
|
61680
61719
|
|
|
61681
61720
|
|
|
61721
|
+
// EXTERNAL MODULE: ./node_modules/lodash/lodash.js
|
|
61722
|
+
var lodash = __webpack_require__(6486);
|
|
61682
61723
|
// EXTERNAL MODULE: ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[10].oneOf[0].use[1]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[10].oneOf[0].use[2]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[10].oneOf[0].use[3]!./node_modules/less-loader/dist/cjs.js??ruleSet[1].rules[10].oneOf[0].use[4]!./src/list/ListItem/Action/index.module.less
|
|
61683
61724
|
var Action_index_module = __webpack_require__(6199);
|
|
61684
61725
|
;// CONCATENATED MODULE: ./src/list/ListItem/Action/index.module.less
|
|
@@ -61745,7 +61786,7 @@ function Action_arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
|
61745
61786
|
var Actions = {
|
|
61746
61787
|
1: '进入直播',
|
|
61747
61788
|
// 直播中 或者开播前15min
|
|
61748
|
-
2: '
|
|
61789
|
+
2: '立即查看',
|
|
61749
61790
|
// 回放
|
|
61750
61791
|
3: '预约',
|
|
61751
61792
|
// 预告 且开播时间大于 15min
|
|
@@ -61849,7 +61890,10 @@ function Action(_ref) {
|
|
|
61849
61890
|
|
|
61850
61891
|
now = new Date().getTime();
|
|
61851
61892
|
begin = new Date(beginTime).getTime();
|
|
61852
|
-
|
|
61893
|
+
|
|
61894
|
+
if (setIsSubscribe) {
|
|
61895
|
+
setIsSubscribe(true);
|
|
61896
|
+
}
|
|
61853
61897
|
|
|
61854
61898
|
if (begin > now && begin - now < 15 * 60 * 1000) {
|
|
61855
61899
|
setCurAction(1);
|
|
@@ -61901,188 +61945,403 @@ function Action(_ref) {
|
|
|
61901
61945
|
onClick: handleBtnClick
|
|
61902
61946
|
}, Actions[curAction]);
|
|
61903
61947
|
}
|
|
61904
|
-
|
|
61905
|
-
var live = __webpack_require__(7699);
|
|
61906
|
-
;// CONCATENATED MODULE: ./src/list/ListItem/img/play.svg
|
|
61907
|
-
var play_path, play_path2, play_path3;
|
|
61908
|
-
function play_extends() { play_extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return play_extends.apply(this, arguments); }
|
|
61948
|
+
;// CONCATENATED MODULE: ./src/list/ListItem/MobileListItem.jsx
|
|
61909
61949
|
|
|
61910
|
-
var SvgPlay = function SvgPlay(props) {
|
|
61911
|
-
return /*#__PURE__*/React.createElement("svg", play_extends({
|
|
61912
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
61913
|
-
width: 24,
|
|
61914
|
-
height: 24,
|
|
61915
|
-
style: {
|
|
61916
|
-
enableBackground: "new 0 0 50 50"
|
|
61917
|
-
},
|
|
61918
|
-
xmlSpace: "preserve"
|
|
61919
|
-
}, props), play_path || (play_path = /*#__PURE__*/React.createElement("path", {
|
|
61920
|
-
fill: "#fff",
|
|
61921
|
-
d: "M0 0h4v7H0z"
|
|
61922
|
-
}, /*#__PURE__*/React.createElement("animateTransform", {
|
|
61923
|
-
attributeType: "xml",
|
|
61924
|
-
attributeName: "transform",
|
|
61925
|
-
type: "scale",
|
|
61926
|
-
values: "1,1; 1,3; 1,1",
|
|
61927
|
-
begin: "0s",
|
|
61928
|
-
dur: "0.6s",
|
|
61929
|
-
repeatCount: "indefinite"
|
|
61930
|
-
}))), play_path2 || (play_path2 = /*#__PURE__*/React.createElement("path", {
|
|
61931
|
-
fill: "#fff",
|
|
61932
|
-
d: "M10 0h4v7h-4z"
|
|
61933
|
-
}, /*#__PURE__*/React.createElement("animateTransform", {
|
|
61934
|
-
attributeType: "xml",
|
|
61935
|
-
attributeName: "transform",
|
|
61936
|
-
type: "scale",
|
|
61937
|
-
values: "1,1; 1,3; 1,1",
|
|
61938
|
-
begin: "0.2s",
|
|
61939
|
-
dur: "0.6s",
|
|
61940
|
-
repeatCount: "indefinite"
|
|
61941
|
-
}))), play_path3 || (play_path3 = /*#__PURE__*/React.createElement("path", {
|
|
61942
|
-
fill: "#fff",
|
|
61943
|
-
d: "M20 0h4v7h-4z"
|
|
61944
|
-
}, /*#__PURE__*/React.createElement("animateTransform", {
|
|
61945
|
-
attributeType: "xml",
|
|
61946
|
-
attributeName: "transform",
|
|
61947
|
-
type: "scale",
|
|
61948
|
-
values: "1,1; 1,3; 1,1",
|
|
61949
|
-
begin: "0.4s",
|
|
61950
|
-
dur: "0.6s",
|
|
61951
|
-
repeatCount: "indefinite"
|
|
61952
|
-
}))));
|
|
61953
|
-
};
|
|
61954
61950
|
|
|
61955
|
-
|
|
61956
|
-
;// CONCATENATED MODULE: ./src/list/ListItem/img/like-fill.svg
|
|
61957
|
-
var like_fill_g;
|
|
61958
|
-
function like_fill_extends() { like_fill_extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return like_fill_extends.apply(this, arguments); }
|
|
61951
|
+
function MobileListItem_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
|
|
61959
61952
|
|
|
61960
|
-
var
|
|
61961
|
-
return /*#__PURE__*/React.createElement("svg", like_fill_extends({
|
|
61962
|
-
width: 16,
|
|
61963
|
-
height: 16,
|
|
61964
|
-
fill: "none",
|
|
61965
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
61966
|
-
}, props), like_fill_g || (like_fill_g = /*#__PURE__*/React.createElement("g", {
|
|
61967
|
-
fill: "#CCC"
|
|
61968
|
-
}, /*#__PURE__*/React.createElement("path", {
|
|
61969
|
-
d: "M9.026 2.09 5.147 5.967a.606.606 0 0 0-.177.428v7.022c0 .335.271.606.606.606h6.564a.606.606 0 0 0 .56-.375l1.876-4.554c.06-.147.091-.304.09-.462V7.358c0-.67-.542-1.213-1.211-1.213h-3.88l.7-2.745a.909.909 0 0 0-.335-.952l-.517-.387a.303.303 0 0 0-.397.028ZM3.758 6.751H1.94a.606.606 0 0 0-.607.607v6.06c0 .335.272.606.607.606h1.818V6.751Z"
|
|
61970
|
-
}))));
|
|
61971
|
-
};
|
|
61953
|
+
function MobileListItem_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { MobileListItem_ownKeys(Object(source), true).forEach(function (key) { MobileListItem_defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { MobileListItem_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
61972
61954
|
|
|
61973
|
-
|
|
61974
|
-
;// CONCATENATED MODULE: ./src/list/ListItem/img/view-fill.svg
|
|
61975
|
-
var view_fill_g;
|
|
61976
|
-
function view_fill_extends() { view_fill_extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return view_fill_extends.apply(this, arguments); }
|
|
61955
|
+
function MobileListItem_defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
61977
61956
|
|
|
61978
|
-
var
|
|
61979
|
-
return /*#__PURE__*/React.createElement("svg", view_fill_extends({
|
|
61980
|
-
width: 16,
|
|
61981
|
-
height: 16,
|
|
61982
|
-
fill: "none",
|
|
61983
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
61984
|
-
}, props), view_fill_g || (view_fill_g = /*#__PURE__*/React.createElement("g", {
|
|
61985
|
-
fill: "#CCC"
|
|
61986
|
-
}, /*#__PURE__*/React.createElement("path", {
|
|
61987
|
-
fillRule: "evenodd",
|
|
61988
|
-
clipRule: "evenodd",
|
|
61989
|
-
d: "M8 13c-2.444 0-4.625-1.543-6.537-4.556a.827.827 0 0 1 0-.888C3.375 4.543 5.556 3 8 3c2.445 0 4.626 1.543 6.538 4.556a.827.827 0 0 1 0 .888C12.626 11.457 10.445 13 8 13ZM5.334 8a2.667 2.667 0 1 0 5.333 0 2.667 2.667 0 0 0-5.333 0Z"
|
|
61990
|
-
}), /*#__PURE__*/React.createElement("path", {
|
|
61991
|
-
d: "M9.346 8A1.34 1.34 0 0 1 8 9.333 1.34 1.34 0 0 1 6.655 8 1.34 1.34 0 0 1 8 6.667 1.34 1.34 0 0 1 9.346 8Z"
|
|
61992
|
-
}))));
|
|
61993
|
-
};
|
|
61957
|
+
function MobileListItem_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); } }
|
|
61994
61958
|
|
|
61995
|
-
|
|
61996
|
-
;// CONCATENATED MODULE: ./src/list/ListItem/liveStatus/img/progress.svg
|
|
61997
|
-
var progress_path, progress_path2, progress_path3;
|
|
61998
|
-
function progress_extends() { progress_extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return progress_extends.apply(this, arguments); }
|
|
61959
|
+
function MobileListItem_asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { MobileListItem_asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { MobileListItem_asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
|
|
61999
61960
|
|
|
62000
|
-
|
|
62001
|
-
return /*#__PURE__*/React.createElement("svg", progress_extends({
|
|
62002
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
62003
|
-
width: 16,
|
|
62004
|
-
height: 16,
|
|
62005
|
-
style: {
|
|
62006
|
-
enableBackground: "new 0 0 50 50"
|
|
62007
|
-
},
|
|
62008
|
-
xmlSpace: "preserve"
|
|
62009
|
-
}, props), progress_path || (progress_path = /*#__PURE__*/React.createElement("path", {
|
|
62010
|
-
fill: "#fff",
|
|
62011
|
-
d: "M0 0h3v6H0z"
|
|
62012
|
-
}, /*#__PURE__*/React.createElement("animateTransform", {
|
|
62013
|
-
attributeType: "xml",
|
|
62014
|
-
attributeName: "transform",
|
|
62015
|
-
type: "scale",
|
|
62016
|
-
values: "1,1; 1,3; 1,1",
|
|
62017
|
-
begin: "0s",
|
|
62018
|
-
dur: "0.6s",
|
|
62019
|
-
repeatCount: "indefinite"
|
|
62020
|
-
}))), progress_path2 || (progress_path2 = /*#__PURE__*/React.createElement("path", {
|
|
62021
|
-
fill: "#fff",
|
|
62022
|
-
d: "M6 0h3v6H6z"
|
|
62023
|
-
}, /*#__PURE__*/React.createElement("animateTransform", {
|
|
62024
|
-
attributeType: "xml",
|
|
62025
|
-
attributeName: "transform",
|
|
62026
|
-
type: "scale",
|
|
62027
|
-
values: "1,1; 1,3; 1,1",
|
|
62028
|
-
begin: "0.2s",
|
|
62029
|
-
dur: "0.6s",
|
|
62030
|
-
repeatCount: "indefinite"
|
|
62031
|
-
}))), progress_path3 || (progress_path3 = /*#__PURE__*/React.createElement("path", {
|
|
62032
|
-
fill: "#fff",
|
|
62033
|
-
d: "M12 0h3v6h-3z"
|
|
62034
|
-
}, /*#__PURE__*/React.createElement("animateTransform", {
|
|
62035
|
-
attributeType: "xml",
|
|
62036
|
-
attributeName: "transform",
|
|
62037
|
-
type: "scale",
|
|
62038
|
-
values: "1,1; 1,3; 1,1",
|
|
62039
|
-
begin: "0.4s",
|
|
62040
|
-
dur: "0.6s",
|
|
62041
|
-
repeatCount: "indefinite"
|
|
62042
|
-
}))));
|
|
62043
|
-
};
|
|
61961
|
+
function MobileListItem_slicedToArray(arr, i) { return MobileListItem_arrayWithHoles(arr) || MobileListItem_iterableToArrayLimit(arr, i) || MobileListItem_unsupportedIterableToArray(arr, i) || MobileListItem_nonIterableRest(); }
|
|
62044
61962
|
|
|
62045
|
-
|
|
62046
|
-
;// CONCATENATED MODULE: ./src/list/ListItem/liveStatus/img/clock.svg
|
|
62047
|
-
var clock_path;
|
|
62048
|
-
function clock_extends() { clock_extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return clock_extends.apply(this, arguments); }
|
|
61963
|
+
function MobileListItem_nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
62049
61964
|
|
|
62050
|
-
var
|
|
62051
|
-
|
|
62052
|
-
|
|
62053
|
-
|
|
62054
|
-
|
|
62055
|
-
|
|
62056
|
-
|
|
62057
|
-
|
|
62058
|
-
|
|
62059
|
-
|
|
61965
|
+
function MobileListItem_unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return MobileListItem_arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return MobileListItem_arrayLikeToArray(o, minLen); }
|
|
61966
|
+
|
|
61967
|
+
function MobileListItem_arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
61968
|
+
|
|
61969
|
+
function MobileListItem_iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
61970
|
+
|
|
61971
|
+
function MobileListItem_arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
61972
|
+
|
|
61973
|
+
|
|
61974
|
+
|
|
61975
|
+
|
|
61976
|
+
|
|
61977
|
+
|
|
61978
|
+
|
|
61979
|
+
|
|
61980
|
+
|
|
61981
|
+
|
|
61982
|
+
|
|
61983
|
+
|
|
61984
|
+
|
|
61985
|
+
|
|
61986
|
+
|
|
61987
|
+
var getLiveStatus = function getLiveStatus(item) {
|
|
61988
|
+
var _ref = item || {},
|
|
61989
|
+
startTime = _ref.begin_time,
|
|
61990
|
+
endTime = _ref.end_time;
|
|
61991
|
+
|
|
61992
|
+
if (startTime && dayjs_min_default()().isBefore(startTime)) {
|
|
61993
|
+
return 0; // 预告
|
|
61994
|
+
}
|
|
61995
|
+
|
|
61996
|
+
if (endTime && dayjs_min_default()().isAfter(endTime)) {
|
|
61997
|
+
return 2; // 回放
|
|
61998
|
+
}
|
|
61999
|
+
|
|
62000
|
+
return 1;
|
|
62060
62001
|
};
|
|
62061
62002
|
|
|
62062
|
-
|
|
62063
|
-
|
|
62064
|
-
|
|
62065
|
-
|
|
62003
|
+
function MobileListItem(_ref2) {
|
|
62004
|
+
var propData = _ref2.data,
|
|
62005
|
+
themeName = _ref2.themeName,
|
|
62006
|
+
subscription = _ref2.subscription,
|
|
62007
|
+
onDetailClick = _ref2.onDetailClick,
|
|
62008
|
+
handleLogin = _ref2.handleLogin,
|
|
62009
|
+
isLogin = _ref2.isLogin,
|
|
62010
|
+
onSubscribe = _ref2.onSubscribe;
|
|
62066
62011
|
|
|
62067
|
-
var
|
|
62068
|
-
|
|
62069
|
-
|
|
62070
|
-
|
|
62071
|
-
|
|
62072
|
-
|
|
62073
|
-
|
|
62074
|
-
|
|
62075
|
-
|
|
62076
|
-
|
|
62077
|
-
|
|
62078
|
-
|
|
62012
|
+
var _useState = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState)(propData || {}),
|
|
62013
|
+
_useState2 = MobileListItem_slicedToArray(_useState, 2),
|
|
62014
|
+
data = _useState2[0],
|
|
62015
|
+
setData = _useState2[1];
|
|
62016
|
+
|
|
62017
|
+
var liveId = data.live_id,
|
|
62018
|
+
liveName = data.live_name,
|
|
62019
|
+
beginTime = data.begin_time;
|
|
62020
|
+
var coverUrl = (data === null || data === void 0 ? void 0 : data.cover_pic_mobile_url) || (data === null || data === void 0 ? void 0 : data.cover_pic_web_url) || live;
|
|
62021
|
+
var liveStatus = getLiveStatus(data);
|
|
62022
|
+
var beginAt = dayjs_min_default()(beginTime);
|
|
62023
|
+
|
|
62024
|
+
var _useState3 = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState)(false),
|
|
62025
|
+
_useState4 = MobileListItem_slicedToArray(_useState3, 2),
|
|
62026
|
+
countDownFinish = _useState4[0],
|
|
62027
|
+
setCountDownFinish = _useState4[1];
|
|
62028
|
+
|
|
62029
|
+
var handleCountDownFinish = /*#__PURE__*/function () {
|
|
62030
|
+
var _ref3 = MobileListItem_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee() {
|
|
62031
|
+
return regenerator_default().wrap(function _callee$(_context) {
|
|
62032
|
+
while (1) {
|
|
62033
|
+
switch (_context.prev = _context.next) {
|
|
62034
|
+
case 0:
|
|
62035
|
+
setCountDownFinish(true);
|
|
62036
|
+
setData(MobileListItem_objectSpread(MobileListItem_objectSpread({}, data), {}, {
|
|
62037
|
+
status: 1
|
|
62038
|
+
}));
|
|
62039
|
+
|
|
62040
|
+
case 2:
|
|
62041
|
+
case "end":
|
|
62042
|
+
return _context.stop();
|
|
62043
|
+
}
|
|
62044
|
+
}
|
|
62045
|
+
}, _callee);
|
|
62046
|
+
}));
|
|
62047
|
+
|
|
62048
|
+
return function handleCountDownFinish() {
|
|
62049
|
+
return _ref3.apply(this, arguments);
|
|
62050
|
+
};
|
|
62051
|
+
}();
|
|
62052
|
+
|
|
62053
|
+
var _useState5 = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState)({}),
|
|
62054
|
+
_useState6 = MobileListItem_slicedToArray(_useState5, 2),
|
|
62055
|
+
liveExt = _useState6[0],
|
|
62056
|
+
setLiveExt = _useState6[1];
|
|
62057
|
+
|
|
62058
|
+
(0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useEffect)(function () {
|
|
62059
|
+
MobileListItem_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee2() {
|
|
62060
|
+
var res;
|
|
62061
|
+
return regenerator_default().wrap(function _callee2$(_context2) {
|
|
62062
|
+
while (1) {
|
|
62063
|
+
switch (_context2.prev = _context2.next) {
|
|
62064
|
+
case 0:
|
|
62065
|
+
_context2.next = 2;
|
|
62066
|
+
return getResourceLikes(liveId);
|
|
62067
|
+
|
|
62068
|
+
case 2:
|
|
62069
|
+
res = _context2.sent;
|
|
62070
|
+
setLiveExt(res || {});
|
|
62071
|
+
|
|
62072
|
+
case 4:
|
|
62073
|
+
case "end":
|
|
62074
|
+
return _context2.stop();
|
|
62075
|
+
}
|
|
62076
|
+
}
|
|
62077
|
+
}, _callee2);
|
|
62078
|
+
}))();
|
|
62079
|
+
}, []);
|
|
62080
|
+
|
|
62081
|
+
var handleDetailClick = /*#__PURE__*/function () {
|
|
62082
|
+
var _ref5 = MobileListItem_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee3() {
|
|
62083
|
+
return regenerator_default().wrap(function _callee3$(_context3) {
|
|
62084
|
+
while (1) {
|
|
62085
|
+
switch (_context3.prev = _context3.next) {
|
|
62086
|
+
case 0:
|
|
62087
|
+
if (!(data.login && !isLogin)) {
|
|
62088
|
+
_context3.next = 3;
|
|
62089
|
+
break;
|
|
62090
|
+
}
|
|
62091
|
+
|
|
62092
|
+
handleLogin(data);
|
|
62093
|
+
return _context3.abrupt("return");
|
|
62094
|
+
|
|
62095
|
+
case 3:
|
|
62096
|
+
if (onDetailClick) {
|
|
62097
|
+
onDetailClick(data);
|
|
62098
|
+
} else {
|
|
62099
|
+
window.open("https://basic.smartedu.cn/publicLive/".concat(liveId));
|
|
62100
|
+
}
|
|
62101
|
+
|
|
62102
|
+
case 4:
|
|
62103
|
+
case "end":
|
|
62104
|
+
return _context3.stop();
|
|
62105
|
+
}
|
|
62106
|
+
}
|
|
62107
|
+
}, _callee3);
|
|
62108
|
+
}));
|
|
62109
|
+
|
|
62110
|
+
return function handleDetailClick() {
|
|
62111
|
+
return _ref5.apply(this, arguments);
|
|
62112
|
+
};
|
|
62113
|
+
}();
|
|
62114
|
+
|
|
62115
|
+
var renderStatusText = function renderStatusText() {
|
|
62116
|
+
if (liveStatus === 2 || liveStatus === 3 || liveStatus === 1 || countDownFinish) {
|
|
62117
|
+
var timeLabel = "".concat(beginAt.format('YYYY/MM/DD HH:mm'), " \u5F00\u64AD");
|
|
62118
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("div", {
|
|
62119
|
+
className: ListItem_MobileListItem_module.mobileMetaText
|
|
62120
|
+
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("img", {
|
|
62121
|
+
src: video_mobile,
|
|
62122
|
+
className: ListItem_MobileListItem_module.mobileMetaIcon,
|
|
62123
|
+
alt: ""
|
|
62124
|
+
}), timeLabel);
|
|
62125
|
+
}
|
|
62126
|
+
|
|
62127
|
+
if (liveStatus === 0) {
|
|
62128
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("div", {
|
|
62129
|
+
className: ListItem_MobileListItem_module.mobileMetaText
|
|
62130
|
+
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("span", {
|
|
62131
|
+
className: ListItem_MobileListItem_module.countDownLabel
|
|
62132
|
+
}, "\u8DDD\u5F00\u59CB:"), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(ListItem_LiveCountDown, {
|
|
62133
|
+
key: data.live_id,
|
|
62134
|
+
endTime: dayjs_min_default()(data.begin_time).valueOf(),
|
|
62135
|
+
onFinish: handleCountDownFinish,
|
|
62136
|
+
className: ListItem_MobileListItem_module.countDown
|
|
62137
|
+
}));
|
|
62138
|
+
}
|
|
62139
|
+
};
|
|
62140
|
+
|
|
62141
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("div", {
|
|
62142
|
+
className: classnames_default()(ListItem_MobileListItem_module.mobileContainer, themeName),
|
|
62143
|
+
onClick: handleDetailClick
|
|
62144
|
+
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("div", {
|
|
62145
|
+
className: ListItem_MobileListItem_module.mobileCoverWrap
|
|
62146
|
+
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(component_Avatar, {
|
|
62147
|
+
src: coverUrl || live,
|
|
62148
|
+
errorImg: live,
|
|
62149
|
+
className: ListItem_MobileListItem_module.mobileCover
|
|
62150
|
+
})), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("div", {
|
|
62151
|
+
className: ListItem_MobileListItem_module.mobileContent
|
|
62152
|
+
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("div", {
|
|
62153
|
+
className: ListItem_MobileListItem_module.mobileTitleRow
|
|
62154
|
+
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(liveStatus_LiveStatus, {
|
|
62155
|
+
status: liveStatus,
|
|
62156
|
+
className: ListItem_MobileListItem_module.mobileStatusTag
|
|
62157
|
+
}), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("span", {
|
|
62158
|
+
className: ListItem_MobileListItem_module.mobileTitle
|
|
62159
|
+
}, liveName)), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("div", {
|
|
62160
|
+
className: ListItem_MobileListItem_module.mobileMetaRow
|
|
62161
|
+
}, renderStatusText()), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("div", {
|
|
62162
|
+
className: ListItem_MobileListItem_module.mobileFooterRow
|
|
62163
|
+
}, liveExt.total_uv ? /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("div", {
|
|
62164
|
+
className: ListItem_MobileListItem_module.mobileHeat
|
|
62165
|
+
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("img", {
|
|
62166
|
+
src: fire_fill,
|
|
62167
|
+
className: ListItem_MobileListItem_module.mobileHeatIcon,
|
|
62168
|
+
alt: ""
|
|
62169
|
+
}), formatUVCount(liveExt.total_uv || 0)) : null, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("div", {
|
|
62170
|
+
className: ListItem_MobileListItem_module.mobileAction
|
|
62171
|
+
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(Action, {
|
|
62172
|
+
data: data,
|
|
62173
|
+
subscription: subscription,
|
|
62174
|
+
onActionDetailClick: handleDetailClick,
|
|
62175
|
+
handleLogin: handleLogin,
|
|
62176
|
+
isLogin: isLogin,
|
|
62177
|
+
onSubscribe: onSubscribe,
|
|
62178
|
+
status: liveStatus,
|
|
62179
|
+
isMobile: true
|
|
62180
|
+
})))));
|
|
62181
|
+
}
|
|
62182
|
+
// EXTERNAL MODULE: ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[10].oneOf[0].use[1]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[10].oneOf[0].use[2]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[10].oneOf[0].use[3]!./node_modules/less-loader/dist/cjs.js??ruleSet[1].rules[10].oneOf[0].use[4]!./src/list/mobile/MobileLiveList.module.less
|
|
62183
|
+
var MobileLiveList_module = __webpack_require__(4979);
|
|
62184
|
+
;// CONCATENATED MODULE: ./src/list/mobile/MobileLiveList.module.less
|
|
62185
|
+
|
|
62186
|
+
|
|
62187
|
+
|
|
62188
|
+
|
|
62189
|
+
|
|
62190
|
+
|
|
62191
|
+
|
|
62192
|
+
|
|
62193
|
+
|
|
62194
|
+
|
|
62195
|
+
|
|
62196
|
+
var MobileLiveList_module_options = {};
|
|
62197
|
+
|
|
62198
|
+
MobileLiveList_module_options.styleTagTransform = (styleTagTransform_default());
|
|
62199
|
+
MobileLiveList_module_options.setAttributes = (setAttributesWithoutAttributes_default());
|
|
62200
|
+
|
|
62201
|
+
MobileLiveList_module_options.insert = insertBySelector_default().bind(null, "head");
|
|
62202
|
+
|
|
62203
|
+
MobileLiveList_module_options.domAPI = (styleDomAPI_default());
|
|
62204
|
+
MobileLiveList_module_options.insertStyleElement = (insertStyleElement_default());
|
|
62205
|
+
|
|
62206
|
+
var MobileLiveList_module_update = injectStylesIntoStyleTag_default()(MobileLiveList_module/* default */.Z, MobileLiveList_module_options);
|
|
62207
|
+
|
|
62208
|
+
|
|
62209
|
+
|
|
62210
|
+
|
|
62211
|
+
/* harmony default export */ var mobile_MobileLiveList_module = (MobileLiveList_module/* default */.Z && MobileLiveList_module/* default.locals */.Z.locals ? MobileLiveList_module/* default.locals */.Z.locals : undefined);
|
|
62212
|
+
|
|
62213
|
+
;// CONCATENATED MODULE: ./src/list/mobile/MobileLiveList.jsx
|
|
62214
|
+
function MobileLiveList_slicedToArray(arr, i) { return MobileLiveList_arrayWithHoles(arr) || MobileLiveList_iterableToArrayLimit(arr, i) || MobileLiveList_unsupportedIterableToArray(arr, i) || MobileLiveList_nonIterableRest(); }
|
|
62215
|
+
|
|
62216
|
+
function MobileLiveList_nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
62217
|
+
|
|
62218
|
+
function MobileLiveList_unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return MobileLiveList_arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return MobileLiveList_arrayLikeToArray(o, minLen); }
|
|
62219
|
+
|
|
62220
|
+
function MobileLiveList_arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
62221
|
+
|
|
62222
|
+
function MobileLiveList_iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
62223
|
+
|
|
62224
|
+
function MobileLiveList_arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
62225
|
+
|
|
62226
|
+
/* eslint-disable no-nested-ternary */
|
|
62227
|
+
|
|
62228
|
+
|
|
62229
|
+
|
|
62230
|
+
|
|
62231
|
+
// 期望的卡片宽度
|
|
62232
|
+
|
|
62233
|
+
var EXPECTED_CARD_WIDTH = 164; // 最小列数
|
|
62234
|
+
|
|
62235
|
+
var MIN_COLUMNS = 2;
|
|
62236
|
+
function MobileLiveList(_ref) {
|
|
62237
|
+
var loading = _ref.loading,
|
|
62238
|
+
loadingMore = _ref.loadingMore,
|
|
62239
|
+
list = _ref.list,
|
|
62240
|
+
hasMore = _ref.hasMore,
|
|
62241
|
+
onNextPage = _ref.onNextPage,
|
|
62242
|
+
isPad = _ref.isPad,
|
|
62243
|
+
themeName = _ref.themeName,
|
|
62244
|
+
subscription = _ref.subscription,
|
|
62245
|
+
onDetailClick = _ref.onDetailClick,
|
|
62246
|
+
handleLogin = _ref.handleLogin,
|
|
62247
|
+
isLogin = _ref.isLogin,
|
|
62248
|
+
onSubscribe = _ref.onSubscribe,
|
|
62249
|
+
emptyClassName = _ref.emptyClassName;
|
|
62250
|
+
var containerRef = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useRef)(null);
|
|
62251
|
+
|
|
62252
|
+
var _useState = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState)(2),
|
|
62253
|
+
_useState2 = MobileLiveList_slicedToArray(_useState, 2),
|
|
62254
|
+
columns = _useState2[0],
|
|
62255
|
+
setColumns = _useState2[1];
|
|
62256
|
+
|
|
62257
|
+
(0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useEffect)(function () {
|
|
62258
|
+
var updateColumns = function updateColumns() {
|
|
62259
|
+
if (!containerRef.current) return; // padding 32 * 2 = 64
|
|
62260
|
+
|
|
62261
|
+
var containerWidth = containerRef.current.offsetWidth - 64;
|
|
62262
|
+
var calculatedColumns = Math.round(containerWidth / EXPECTED_CARD_WIDTH);
|
|
62263
|
+
var columnCount = Math.max(MIN_COLUMNS, calculatedColumns);
|
|
62264
|
+
setColumns(columnCount);
|
|
62265
|
+
};
|
|
62266
|
+
|
|
62267
|
+
updateColumns();
|
|
62268
|
+
window.addEventListener('resize', updateColumns);
|
|
62269
|
+
return function () {
|
|
62270
|
+
return window.removeEventListener('resize', updateColumns);
|
|
62271
|
+
};
|
|
62272
|
+
}, []);
|
|
62273
|
+
(0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useEffect)(function () {
|
|
62274
|
+
var handleScroll = function handleScroll() {
|
|
62275
|
+
var scrollTop = window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop || 0;
|
|
62276
|
+
var viewportHeight = window.innerHeight || document.documentElement.clientHeight;
|
|
62277
|
+
var docHeight = document.documentElement.scrollHeight;
|
|
62278
|
+
var isBottom = docHeight - (scrollTop + viewportHeight) < 120;
|
|
62279
|
+
|
|
62280
|
+
if (isBottom && !loading && !loadingMore && hasMore) {
|
|
62281
|
+
onNextPage();
|
|
62282
|
+
}
|
|
62283
|
+
};
|
|
62284
|
+
|
|
62285
|
+
window.addEventListener('scroll', handleScroll);
|
|
62286
|
+
return function () {
|
|
62287
|
+
window.removeEventListener('scroll', handleScroll);
|
|
62288
|
+
};
|
|
62289
|
+
}, [loading, loadingMore, hasMore, onNextPage]);
|
|
62290
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(Loading_Loading, {
|
|
62291
|
+
loading: loading,
|
|
62292
|
+
delay: 500
|
|
62293
|
+
}, loading ? null : /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement((external_commonjs_react_commonjs2_react_root_React_default()).Fragment, null, list.length ? /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("div", {
|
|
62294
|
+
className: mobile_MobileLiveList_module.listWrapper,
|
|
62295
|
+
ref: containerRef
|
|
62296
|
+
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("div", {
|
|
62297
|
+
className: mobile_MobileLiveList_module.list,
|
|
62298
|
+
style: {
|
|
62299
|
+
'--columns': columns
|
|
62300
|
+
}
|
|
62301
|
+
}, list.map(function (listItem) {
|
|
62302
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("div", {
|
|
62303
|
+
key: listItem.live_id,
|
|
62304
|
+
className: mobile_MobileLiveList_module.cardWrapper
|
|
62305
|
+
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(MobileListItem, {
|
|
62306
|
+
themeName: themeName,
|
|
62307
|
+
data: listItem,
|
|
62308
|
+
subscription: subscription,
|
|
62309
|
+
onDetailClick: onDetailClick,
|
|
62310
|
+
handleLogin: handleLogin,
|
|
62311
|
+
isLogin: isLogin,
|
|
62312
|
+
onSubscribe: onSubscribe,
|
|
62313
|
+
viewMode: "list",
|
|
62314
|
+
cardStyle: {}
|
|
62315
|
+
}));
|
|
62316
|
+
})), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("div", {
|
|
62317
|
+
className: mobile_MobileLiveList_module.mobileLoadMore
|
|
62318
|
+
}, loadingMore ? '加载中...' : hasMore ? '下拉加载更多' : '没有更多了')) : /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(Empty_Empty, {
|
|
62319
|
+
tip: "\u6682\u65E0\u5185\u5BB9",
|
|
62320
|
+
className: emptyClassName
|
|
62321
|
+
})));
|
|
62322
|
+
}
|
|
62323
|
+
;// CONCATENATED MODULE: ./src/list/ListItem/img/video.svg
|
|
62324
|
+
var video_path;
|
|
62325
|
+
function video_extends() { video_extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return video_extends.apply(this, arguments); }
|
|
62326
|
+
|
|
62327
|
+
var SvgVideo = function SvgVideo(props) {
|
|
62328
|
+
return /*#__PURE__*/React.createElement("svg", video_extends({
|
|
62329
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
62330
|
+
width: 16,
|
|
62331
|
+
height: 16,
|
|
62332
|
+
fill: "none"
|
|
62333
|
+
}, props), video_path || (video_path = /*#__PURE__*/React.createElement("path", {
|
|
62334
|
+
fillRule: "evenodd",
|
|
62335
|
+
clipRule: "evenodd",
|
|
62336
|
+
d: "M11.333 3.333a.667.667 0 0 0-.666-.667H1.333a.667.667 0 0 0-.666.667v9.334c0 .368.298.666.666.666h9.334a.667.667 0 0 0 .666-.667v-2.8L14.81 12.3a.333.333 0 0 0 .524-.274V3.973a.333.333 0 0 0-.524-.273l-3.476 2.433v-2.8ZM4.672 6.1a.267.267 0 0 1 .405-.173L7.98 7.774l.042.034a.267.267 0 0 1-.042.416l-2.903 1.848-.049.024a.267.267 0 0 1-.361-.25V6.153l.005-.053Z",
|
|
62337
|
+
fill: "#CCC"
|
|
62079
62338
|
})));
|
|
62080
62339
|
};
|
|
62081
62340
|
|
|
62082
|
-
/* harmony default export */ var
|
|
62083
|
-
// EXTERNAL MODULE: ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[10].oneOf[0].use[1]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[10].oneOf[0].use[2]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[10].oneOf[0].use[3]!./node_modules/less-loader/dist/cjs.js??ruleSet[1].rules[10].oneOf[0].use[4]!./src/list/ListItem/
|
|
62084
|
-
var
|
|
62085
|
-
;// CONCATENATED MODULE: ./src/list/ListItem/
|
|
62341
|
+
/* harmony default export */ var video = ("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMCAwIDE2IDE2IiBmaWxsPSJub25lIj4NCjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNMTEuMzMzNCAzLjMzMzE3QzExLjMzMzQgMi45NjQ5OCAxMS4wMzQ5IDIuNjY2NSAxMC42NjY3IDIuNjY2NUgxLjMzMzM1QzAuOTY1MTY0IDIuNjY2NSAwLjY2NjY4NyAyLjk2NDk4IDAuNjY2Njg3IDMuMzMzMTdWMTIuNjY2NUMwLjY2NjY4NyAxMy4wMzQ3IDAuOTY1MTY0IDEzLjMzMzIgMS4zMzMzNSAxMy4zMzMySDEwLjY2NjdDMTEuMDM0OSAxMy4zMzMyIDExLjMzMzQgMTMuMDM0NyAxMS4zMzM0IDEyLjY2NjVWOS44NjY1TDE0LjgwODcgMTIuMjk5OEMxNC45MTA2IDEyLjM3MTIgMTUuMDQzNyAxMi4zOCAxNS4xNTQgMTIuMzIyNUMxNS4yNjQ0IDEyLjI2NSAxNS4zMzM1IDEyLjE1MDkgMTUuMzMzNCAxMi4wMjY1VjMuOTczMTdDMTUuMzMzNSAzLjg0ODc3IDE1LjI2NDQgMy43MzQ2NCAxNS4xNTQgMy42NzcxN0MxNS4wNDM3IDMuNjE5NjkgMTQuOTEwNiAzLjYyODQzIDE0LjgwODcgMy42OTk4NEwxMS4zMzM0IDYuMTMzMTdWMy4zMzMxN1pNNC42NzIwMiA2LjA5OTE3QzQuNjk3MzcgNS45NzQ5OSA0LjgwNjYyIDUuODg1ODEgNC45MzMzNSA1Ljg4NTg0QzQuOTgzOTYgNS44ODUzIDUuMDMzNjcgNS44OTk4NCA1LjA3NjY5IDUuOTI2NUw3Ljk4MDAyIDcuNzc0NUw4LjAyMjAyIDcuODA3ODRDOC4xNDU0NCA3LjkyNzYgOC4xMjQ4OSA4LjEzMTE1IDcuOTgwMDIgOC4yMjM4NEw1LjA3NjY5IDEwLjA3MThMNS4wMjgwMiAxMC4wOTU4QzQuODUzNTEgMTAuMTYyMSA0LjY2NjY2IDEwLjAzMzIgNC42NjY2OSA5Ljg0NjVWNi4xNTE4NEw0LjY3MjAyIDYuMDk5MTdaIiBmaWxsPSIjQ0NDQ0NDIi8+DQo8L3N2Zz4=");
|
|
62342
|
+
// EXTERNAL MODULE: ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[10].oneOf[0].use[1]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[10].oneOf[0].use[2]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[10].oneOf[0].use[3]!./node_modules/less-loader/dist/cjs.js??ruleSet[1].rules[10].oneOf[0].use[4]!./src/list/ListItem/liveTime/index.module.less
|
|
62343
|
+
var liveTime_index_module = __webpack_require__(1854);
|
|
62344
|
+
;// CONCATENATED MODULE: ./src/list/ListItem/liveTime/index.module.less
|
|
62086
62345
|
|
|
62087
62346
|
|
|
62088
62347
|
|
|
@@ -62094,75 +62353,128 @@ var liveStatus_index_module = __webpack_require__(8123);
|
|
|
62094
62353
|
|
|
62095
62354
|
|
|
62096
62355
|
|
|
62097
|
-
var
|
|
62356
|
+
var liveTime_index_module_options = {};
|
|
62098
62357
|
|
|
62099
|
-
|
|
62100
|
-
|
|
62358
|
+
liveTime_index_module_options.styleTagTransform = (styleTagTransform_default());
|
|
62359
|
+
liveTime_index_module_options.setAttributes = (setAttributesWithoutAttributes_default());
|
|
62101
62360
|
|
|
62102
|
-
|
|
62361
|
+
liveTime_index_module_options.insert = insertBySelector_default().bind(null, "head");
|
|
62103
62362
|
|
|
62104
|
-
|
|
62105
|
-
|
|
62363
|
+
liveTime_index_module_options.domAPI = (styleDomAPI_default());
|
|
62364
|
+
liveTime_index_module_options.insertStyleElement = (insertStyleElement_default());
|
|
62106
62365
|
|
|
62107
|
-
var
|
|
62366
|
+
var liveTime_index_module_update = injectStylesIntoStyleTag_default()(liveTime_index_module/* default */.Z, liveTime_index_module_options);
|
|
62108
62367
|
|
|
62109
62368
|
|
|
62110
62369
|
|
|
62111
62370
|
|
|
62112
|
-
/* harmony default export */ var
|
|
62371
|
+
/* harmony default export */ var ListItem_liveTime_index_module = (liveTime_index_module/* default */.Z && liveTime_index_module/* default.locals */.Z.locals ? liveTime_index_module/* default.locals */.Z.locals : undefined);
|
|
62113
62372
|
|
|
62114
|
-
;// CONCATENATED MODULE: ./src/list/ListItem/
|
|
62115
|
-
/**
|
|
62116
|
-
* 直播状态标签组件
|
|
62117
|
-
*/
|
|
62373
|
+
;// CONCATENATED MODULE: ./src/list/ListItem/liveTime/index.jsx
|
|
62118
62374
|
|
|
62119
62375
|
|
|
62376
|
+
function liveTime_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
|
|
62120
62377
|
|
|
62378
|
+
function liveTime_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { liveTime_ownKeys(Object(source), true).forEach(function (key) { liveTime_defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { liveTime_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
62121
62379
|
|
|
62380
|
+
function liveTime_defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
62122
62381
|
|
|
62382
|
+
function liveTime_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); } }
|
|
62123
62383
|
|
|
62124
|
-
var
|
|
62125
|
-
0: '预告',
|
|
62126
|
-
1: '直播中',
|
|
62127
|
-
2: '回放',
|
|
62128
|
-
3: '直播中' // 实际是暂停
|
|
62384
|
+
function liveTime_asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { liveTime_asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { liveTime_asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
|
|
62129
62385
|
|
|
62130
|
-
}
|
|
62131
|
-
function liveStatus_LiveStatus(_ref) {
|
|
62132
|
-
var status = _ref.status,
|
|
62133
|
-
className = _ref.className;
|
|
62386
|
+
function liveTime_slicedToArray(arr, i) { return liveTime_arrayWithHoles(arr) || liveTime_iterableToArrayLimit(arr, i) || liveTime_unsupportedIterableToArray(arr, i) || liveTime_nonIterableRest(); }
|
|
62134
62387
|
|
|
62135
|
-
|
|
62136
|
-
if (status === 0) {
|
|
62137
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("img", {
|
|
62138
|
-
src: clock,
|
|
62139
|
-
alt: "",
|
|
62140
|
-
className: ListItem_liveStatus_index_module.statusIcon
|
|
62141
|
-
});
|
|
62142
|
-
}
|
|
62388
|
+
function liveTime_nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
62143
62389
|
|
|
62144
|
-
|
|
62145
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("img", {
|
|
62146
|
-
src: progress,
|
|
62147
|
-
alt: "",
|
|
62148
|
-
className: classnames_default()(ListItem_liveStatus_index_module.statusIcon, ListItem_liveStatus_index_module["play-icon"])
|
|
62149
|
-
});
|
|
62150
|
-
}
|
|
62390
|
+
function liveTime_unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return liveTime_arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return liveTime_arrayLikeToArray(o, minLen); }
|
|
62151
62391
|
|
|
62152
|
-
|
|
62153
|
-
|
|
62154
|
-
|
|
62155
|
-
|
|
62156
|
-
|
|
62157
|
-
|
|
62392
|
+
function liveTime_arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
62393
|
+
|
|
62394
|
+
function liveTime_iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
62395
|
+
|
|
62396
|
+
function liveTime_arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
62397
|
+
|
|
62398
|
+
|
|
62399
|
+
|
|
62400
|
+
|
|
62401
|
+
|
|
62402
|
+
|
|
62403
|
+
|
|
62404
|
+
|
|
62405
|
+
function liveTime_index(_ref) {
|
|
62406
|
+
var data = _ref.data,
|
|
62407
|
+
setData = _ref.setData,
|
|
62408
|
+
liveExt = _ref.liveExt,
|
|
62409
|
+
liveStatus = _ref.liveStatus,
|
|
62410
|
+
type = _ref.type;
|
|
62411
|
+
var beginTime = data.begin_time;
|
|
62412
|
+
var beginAt = dayjs_min_default()(beginTime);
|
|
62413
|
+
|
|
62414
|
+
var _useState = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState)(false),
|
|
62415
|
+
_useState2 = liveTime_slicedToArray(_useState, 2),
|
|
62416
|
+
countDownFinish = _useState2[0],
|
|
62417
|
+
setCountDownFinish = _useState2[1]; // 倒计时是否结束
|
|
62418
|
+
|
|
62419
|
+
|
|
62420
|
+
var handleCountDownFinish = /*#__PURE__*/function () {
|
|
62421
|
+
var _ref2 = liveTime_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee() {
|
|
62422
|
+
return regenerator_default().wrap(function _callee$(_context) {
|
|
62423
|
+
while (1) {
|
|
62424
|
+
switch (_context.prev = _context.next) {
|
|
62425
|
+
case 0:
|
|
62426
|
+
setCountDownFinish(true);
|
|
62427
|
+
setData(liveTime_objectSpread(liveTime_objectSpread({}, data), {}, {
|
|
62428
|
+
status: 1
|
|
62429
|
+
}));
|
|
62430
|
+
|
|
62431
|
+
case 2:
|
|
62432
|
+
case "end":
|
|
62433
|
+
return _context.stop();
|
|
62434
|
+
}
|
|
62435
|
+
}
|
|
62436
|
+
}, _callee);
|
|
62437
|
+
}));
|
|
62438
|
+
|
|
62439
|
+
return function handleCountDownFinish() {
|
|
62440
|
+
return _ref2.apply(this, arguments);
|
|
62441
|
+
};
|
|
62442
|
+
}();
|
|
62443
|
+
|
|
62444
|
+
var renderStatusText = function renderStatusText() {
|
|
62445
|
+
if (liveStatus === 2 || liveStatus === 3 || liveStatus === 1 || countDownFinish) {
|
|
62446
|
+
var timeLabel = "".concat(beginAt.format('YYYY/MM/DD HH:mm'), " \u5F00\u64AD");
|
|
62447
|
+
var viewCount = liveExt.total_uv || 0; // 直播中才显示
|
|
62448
|
+
|
|
62449
|
+
var viewCountLabel = viewCount ? "".concat(formatUVCount(liveExt.total_uv || 0), "\u4EBA\u89C2\u770B") : '';
|
|
62450
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("div", {
|
|
62451
|
+
className: "".concat(ListItem_liveTime_index_module.timeBar, " ").concat(type === 'card' ? ListItem_liveTime_index_module.cardTimeBar : '')
|
|
62452
|
+
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("div", {
|
|
62453
|
+
className: ListItem_liveTime_index_module.statusText
|
|
62454
|
+
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("img", {
|
|
62455
|
+
src: video
|
|
62456
|
+
}), timeLabel), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("div", {
|
|
62457
|
+
className: ListItem_liveTime_index_module.viewer
|
|
62458
|
+
}, viewCountLabel ? /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("img", {
|
|
62459
|
+
src: fire_fill,
|
|
62460
|
+
alt: ""
|
|
62461
|
+
}) : /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement((external_commonjs_react_commonjs2_react_root_React_default()).Fragment, null), viewCountLabel));
|
|
62158
62462
|
}
|
|
62159
62463
|
|
|
62160
|
-
|
|
62464
|
+
if (liveStatus === 0) {
|
|
62465
|
+
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("div", {
|
|
62466
|
+
className: ListItem_liveTime_index_module.countdownBox
|
|
62467
|
+
}, "\u8DDD\u5F00\u59CB", /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(ListItem_LiveCountDown, {
|
|
62468
|
+
key: data.live_id,
|
|
62469
|
+
endTime: dayjs_min_default()(data.begin_time).valueOf(),
|
|
62470
|
+
onFinish: handleCountDownFinish
|
|
62471
|
+
})), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("div", null));
|
|
62472
|
+
}
|
|
62161
62473
|
};
|
|
62162
62474
|
|
|
62163
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("
|
|
62164
|
-
className:
|
|
62165
|
-
},
|
|
62475
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("div", {
|
|
62476
|
+
className: "".concat(ListItem_liveTime_index_module.time, " ").concat(liveStatus === 0 ? ListItem_liveTime_index_module["foreshow-time"] : '', " time-box")
|
|
62477
|
+
}, renderStatusText());
|
|
62166
62478
|
}
|
|
62167
62479
|
// EXTERNAL MODULE: ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[10].oneOf[0].use[1]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[10].oneOf[0].use[2]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[10].oneOf[0].use[3]!./node_modules/less-loader/dist/cjs.js??ruleSet[1].rules[10].oneOf[0].use[4]!./src/list/ListItem/index.module.less
|
|
62168
62480
|
var ListItem_index_module = __webpack_require__(1631);
|
|
@@ -62196,8 +62508,6 @@ var ListItem_index_module_update = injectStylesIntoStyleTag_default()(ListItem_i
|
|
|
62196
62508
|
/* harmony default export */ var list_ListItem_index_module = (ListItem_index_module/* default */.Z && ListItem_index_module/* default.locals */.Z.locals ? ListItem_index_module/* default.locals */.Z.locals : undefined);
|
|
62197
62509
|
|
|
62198
62510
|
;// CONCATENATED MODULE: ./src/list/ListItem/index.jsx
|
|
62199
|
-
function ListItem_defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
62200
|
-
|
|
62201
62511
|
|
|
62202
62512
|
|
|
62203
62513
|
function ListItem_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); } }
|
|
@@ -62226,13 +62536,6 @@ function ListItem_arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
|
62226
62536
|
|
|
62227
62537
|
|
|
62228
62538
|
|
|
62229
|
-
|
|
62230
|
-
|
|
62231
|
-
|
|
62232
|
-
|
|
62233
|
-
|
|
62234
|
-
|
|
62235
|
-
|
|
62236
62539
|
var ListItem_TagName = {
|
|
62237
62540
|
0: '直播预告',
|
|
62238
62541
|
1: '直播中',
|
|
@@ -62240,7 +62543,7 @@ var ListItem_TagName = {
|
|
|
62240
62543
|
3: '直播中' // 实际是暂停
|
|
62241
62544
|
|
|
62242
62545
|
};
|
|
62243
|
-
var
|
|
62546
|
+
var ListItem_getLiveStatus = function getLiveStatus(item) {
|
|
62244
62547
|
// 直播开始之前:预告;直播开始之后:直播中;直播结束之后:回放
|
|
62245
62548
|
var _ref = item || {},
|
|
62246
62549
|
startTime = _ref.begin_time,
|
|
@@ -62258,8 +62561,6 @@ var getLiveStatus = function getLiveStatus(item) {
|
|
|
62258
62561
|
};
|
|
62259
62562
|
function ListItem(_ref2) {
|
|
62260
62563
|
var propData = _ref2.data,
|
|
62261
|
-
isMobile = _ref2.isMobile,
|
|
62262
|
-
isPad = _ref2.isPad,
|
|
62263
62564
|
themeName = _ref2.themeName,
|
|
62264
62565
|
subscription = _ref2.subscription,
|
|
62265
62566
|
onDetailClick = _ref2.onDetailClick,
|
|
@@ -62276,39 +62577,15 @@ function ListItem(_ref2) {
|
|
|
62276
62577
|
setData = _useState2[1];
|
|
62277
62578
|
|
|
62278
62579
|
var liveId = data.live_id,
|
|
62279
|
-
liveName = data.live_name
|
|
62280
|
-
|
|
62281
|
-
|
|
62282
|
-
var liveStatus = getLiveStatus(data);
|
|
62283
|
-
var timeLabel = liveStatus === 2 ? "".concat(dayjs_min_default()(beginTime).format('YYYY/MM/DD HH:mm')) : "".concat(dayjs_min_default()(beginTime).format('YYYY/MM/DD HH:mm'), " \u5F00\u64AD");
|
|
62580
|
+
liveName = data.live_name;
|
|
62581
|
+
var coverUrl = (data === null || data === void 0 ? void 0 : data.cover_pic_web_url) || live;
|
|
62582
|
+
var liveStatus = ListItem_getLiveStatus(data);
|
|
62284
62583
|
|
|
62285
62584
|
var _useState3 = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState)({}),
|
|
62286
62585
|
_useState4 = ListItem_slicedToArray(_useState3, 2),
|
|
62287
62586
|
liveExt = _useState4[0],
|
|
62288
62587
|
setLiveExt = _useState4[1];
|
|
62289
62588
|
|
|
62290
|
-
var _useState5 = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState)(function () {
|
|
62291
|
-
if (liveStatus === 0) {
|
|
62292
|
-
// 开播前15分钟之外
|
|
62293
|
-
var subscriptionItem = (0,lodash.find)(subscription, {
|
|
62294
|
-
live_id: liveId
|
|
62295
|
-
});
|
|
62296
|
-
|
|
62297
|
-
if (subscriptionItem !== null && subscriptionItem !== void 0 && subscriptionItem.is_subscribe) {
|
|
62298
|
-
// 已预约
|
|
62299
|
-
return true;
|
|
62300
|
-
} else {
|
|
62301
|
-
// 未预约
|
|
62302
|
-
return false;
|
|
62303
|
-
}
|
|
62304
|
-
} else {
|
|
62305
|
-
return false;
|
|
62306
|
-
}
|
|
62307
|
-
}),
|
|
62308
|
-
_useState6 = ListItem_slicedToArray(_useState5, 2),
|
|
62309
|
-
isSubscribe = _useState6[0],
|
|
62310
|
-
setIsSubscribe = _useState6[1];
|
|
62311
|
-
|
|
62312
62589
|
(0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useEffect)(function () {
|
|
62313
62590
|
ListItem_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee() {
|
|
62314
62591
|
var res;
|
|
@@ -62367,55 +62644,6 @@ function ListItem(_ref2) {
|
|
|
62367
62644
|
};
|
|
62368
62645
|
}();
|
|
62369
62646
|
|
|
62370
|
-
if (isMobile) {
|
|
62371
|
-
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("div", {
|
|
62372
|
-
className: classnames_default()(list_ListItem_index_module.mobileContainer, themeName),
|
|
62373
|
-
onClick: handleDetailClick
|
|
62374
|
-
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("div", {
|
|
62375
|
-
className: list_ListItem_index_module.mobileTitle
|
|
62376
|
-
}, liveName), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("div", {
|
|
62377
|
-
className: list_ListItem_index_module.mobileCoverWrap
|
|
62378
|
-
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(component_Avatar, {
|
|
62379
|
-
src: coverUrl || live,
|
|
62380
|
-
errorImg: live,
|
|
62381
|
-
className: list_ListItem_index_module.mobileCover
|
|
62382
|
-
}), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("div", {
|
|
62383
|
-
className: classnames_default()(list_ListItem_index_module.mobileTag, list_ListItem_index_module["mobileTag".concat(liveStatus)])
|
|
62384
|
-
}, liveStatus === 1 || liveStatus === 3 ? /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("img", {
|
|
62385
|
-
src: play,
|
|
62386
|
-
alt: ""
|
|
62387
|
-
}) : null, ListItem_TagName[liveStatus])), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("div", {
|
|
62388
|
-
className: list_ListItem_index_module.mobileDescRow
|
|
62389
|
-
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("div", {
|
|
62390
|
-
className: list_ListItem_index_module.mobileMeta
|
|
62391
|
-
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("span", {
|
|
62392
|
-
className: list_ListItem_index_module.mobileTime
|
|
62393
|
-
}, isSubscribe ? /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(component_Icon_Icon, {
|
|
62394
|
-
type: "web_icon_shijian_fill",
|
|
62395
|
-
className: "".concat(list_ListItem_index_module.mobileTimeIcon, " checked-icon")
|
|
62396
|
-
}) : /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("img", {
|
|
62397
|
-
src: video,
|
|
62398
|
-
className: list_ListItem_index_module.mobileTimeIcon,
|
|
62399
|
-
alt: ""
|
|
62400
|
-
}), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("span", {
|
|
62401
|
-
className: list_ListItem_index_module.mobileTimeText
|
|
62402
|
-
}, timeLabel)), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("span", {
|
|
62403
|
-
className: list_ListItem_index_module.mobileStat
|
|
62404
|
-
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("img", {
|
|
62405
|
-
src: view_fill,
|
|
62406
|
-
className: list_ListItem_index_module.mobileStatIcon,
|
|
62407
|
-
alt: ""
|
|
62408
|
-
}), formatUVCount(liveExt.total_uv || 0)), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("span", {
|
|
62409
|
-
className: list_ListItem_index_module.mobileStat
|
|
62410
|
-
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("img", {
|
|
62411
|
-
src: like_fill,
|
|
62412
|
-
className: list_ListItem_index_module.mobileStatIcon,
|
|
62413
|
-
alt: ""
|
|
62414
|
-
}), formatLikesCount(liveExt.like_count || 0))), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("div", {
|
|
62415
|
-
className: list_ListItem_index_module.mobileAction
|
|
62416
|
-
})));
|
|
62417
|
-
}
|
|
62418
|
-
|
|
62419
62647
|
if (viewMode === 'card') {
|
|
62420
62648
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("div", {
|
|
62421
62649
|
className: classnames_default()(list_ListItem_index_module.cardContainer, themeName),
|
|
@@ -62424,7 +62652,7 @@ function ListItem(_ref2) {
|
|
|
62424
62652
|
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("div", {
|
|
62425
62653
|
className: list_ListItem_index_module.cardCoverWrap
|
|
62426
62654
|
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(component_Avatar, {
|
|
62427
|
-
src: coverUrl
|
|
62655
|
+
src: coverUrl,
|
|
62428
62656
|
errorImg: live,
|
|
62429
62657
|
className: list_ListItem_index_module.cardCover
|
|
62430
62658
|
})), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("div", {
|
|
@@ -62451,19 +62679,18 @@ function ListItem(_ref2) {
|
|
|
62451
62679
|
handleLogin: handleLogin,
|
|
62452
62680
|
isLogin: isLogin,
|
|
62453
62681
|
onSubscribe: onSubscribe,
|
|
62454
|
-
setIsSubscribe: setIsSubscribe,
|
|
62455
62682
|
status: liveStatus
|
|
62456
62683
|
})));
|
|
62457
62684
|
} // list模式
|
|
62458
62685
|
|
|
62459
62686
|
|
|
62460
62687
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("div", {
|
|
62461
|
-
className: classnames_default()(list_ListItem_index_module.container, themeName,
|
|
62688
|
+
className: classnames_default()(list_ListItem_index_module.container, themeName, list_ListItem_index_module.webListCard),
|
|
62462
62689
|
onClick: handleDetailClick
|
|
62463
62690
|
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("div", {
|
|
62464
62691
|
className: list_ListItem_index_module.left
|
|
62465
62692
|
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(component_Avatar, {
|
|
62466
|
-
src: coverUrl
|
|
62693
|
+
src: coverUrl,
|
|
62467
62694
|
errorImg: live,
|
|
62468
62695
|
className: list_ListItem_index_module.avatar
|
|
62469
62696
|
})), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("div", {
|
|
@@ -62489,7 +62716,6 @@ function ListItem(_ref2) {
|
|
|
62489
62716
|
handleLogin: handleLogin,
|
|
62490
62717
|
isLogin: isLogin,
|
|
62491
62718
|
onSubscribe: onSubscribe,
|
|
62492
|
-
setIsSubscribe: setIsSubscribe,
|
|
62493
62719
|
status: liveStatus
|
|
62494
62720
|
}))));
|
|
62495
62721
|
}
|
|
@@ -62607,6 +62833,7 @@ function list_arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
|
62607
62833
|
|
|
62608
62834
|
|
|
62609
62835
|
|
|
62836
|
+
|
|
62610
62837
|
var PageSize = 12;
|
|
62611
62838
|
var ViewModes = {
|
|
62612
62839
|
LIST: 'list',
|
|
@@ -62646,8 +62873,7 @@ function PublicLiveList(_ref) {
|
|
|
62646
62873
|
window._propSdpAppId = propSdpAppId;
|
|
62647
62874
|
}
|
|
62648
62875
|
|
|
62649
|
-
var isMobile = (0,util_env/* isInMobile */.Df)();
|
|
62650
|
-
var isPad = (0,util_env/* isPadMode */.Td)();
|
|
62876
|
+
var isMobile = (0,util_env/* isInMobile */.Df)() || (0,util_env/* isPadMode */.Td)(); // const isMobile = true
|
|
62651
62877
|
|
|
62652
62878
|
var _useState = (0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useState)([]),
|
|
62653
62879
|
_useState2 = list_slicedToArray(_useState, 2),
|
|
@@ -62694,7 +62920,7 @@ function PublicLiveList(_ref) {
|
|
|
62694
62920
|
viewMode = _useState18[0],
|
|
62695
62921
|
setViewMode = _useState18[1];
|
|
62696
62922
|
|
|
62697
|
-
var canSwitchView = !isMobile
|
|
62923
|
+
var canSwitchView = !isMobile;
|
|
62698
62924
|
var effectiveViewMode = canSwitchView ? viewMode : ViewModes.LIST;
|
|
62699
62925
|
|
|
62700
62926
|
var handleTabChange = function handleTabChange(value) {
|
|
@@ -62883,26 +63109,6 @@ function PublicLiveList(_ref) {
|
|
|
62883
63109
|
}, [page, status, refreshPage]);
|
|
62884
63110
|
var themeName = (0,cjs/* getXEduThemeName */.gV)();
|
|
62885
63111
|
var hasMore = list.length < total;
|
|
62886
|
-
(0,external_commonjs_react_commonjs2_react_root_React_namespaceObject.useEffect)(function () {
|
|
62887
|
-
if (!isMobile) return undefined;
|
|
62888
|
-
|
|
62889
|
-
var handleScroll = function handleScroll() {
|
|
62890
|
-
var scrollTop = window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop || 0;
|
|
62891
|
-
var viewportHeight = window.innerHeight || document.documentElement.clientHeight;
|
|
62892
|
-
var docHeight = document.documentElement.scrollHeight;
|
|
62893
|
-
|
|
62894
|
-
if (docHeight - (scrollTop + viewportHeight) < 120 && !loading && !loadingMore && hasMore) {
|
|
62895
|
-
setPage(function (prev) {
|
|
62896
|
-
return prev + 1;
|
|
62897
|
-
});
|
|
62898
|
-
}
|
|
62899
|
-
};
|
|
62900
|
-
|
|
62901
|
-
window.addEventListener('scroll', handleScroll);
|
|
62902
|
-
return function () {
|
|
62903
|
-
window.removeEventListener('scroll', handleScroll);
|
|
62904
|
-
};
|
|
62905
|
-
}, [isMobile, loading, loadingMore, hasMore]);
|
|
62906
63112
|
|
|
62907
63113
|
var calcCardStyle = function calcCardStyle() {
|
|
62908
63114
|
var cardStyle = {};
|
|
@@ -62917,12 +63123,27 @@ function PublicLiveList(_ref) {
|
|
|
62917
63123
|
accessKey: status,
|
|
62918
63124
|
onChange: handleTabChange
|
|
62919
63125
|
}, StatusEnum.map(function (item) {
|
|
62920
|
-
var _classNames2;
|
|
62921
|
-
|
|
62922
63126
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(tabs.TabPane, {
|
|
62923
63127
|
key: item.value,
|
|
62924
63128
|
tab: item.label
|
|
62925
|
-
},
|
|
63129
|
+
}, isMobile ? /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(MobileLiveList, {
|
|
63130
|
+
loading: loading,
|
|
63131
|
+
loadingMore: loadingMore,
|
|
63132
|
+
list: list,
|
|
63133
|
+
hasMore: hasMore,
|
|
63134
|
+
onNextPage: function onNextPage() {
|
|
63135
|
+
return setPage(function (prev) {
|
|
63136
|
+
return prev + 1;
|
|
63137
|
+
});
|
|
63138
|
+
},
|
|
63139
|
+
themeName: themeName,
|
|
63140
|
+
subscription: subscription,
|
|
63141
|
+
onDetailClick: onDetailClick,
|
|
63142
|
+
handleLogin: handleLogin,
|
|
63143
|
+
isLogin: isLogin,
|
|
63144
|
+
onSubscribe: onSubscribe,
|
|
63145
|
+
emptyClassName: emptyClassName
|
|
63146
|
+
}) : /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement((external_commonjs_react_commonjs2_react_root_React_default()).Fragment, null, canSwitchView && /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("div", {
|
|
62926
63147
|
className: src_list_index_module.toolbar
|
|
62927
63148
|
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("div", {
|
|
62928
63149
|
className: src_list_index_module.viewSwitchIcon,
|
|
@@ -62942,12 +63163,11 @@ function PublicLiveList(_ref) {
|
|
|
62942
63163
|
}, loading ? null : /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement((external_commonjs_react_commonjs2_react_root_React_default()).Fragment, null, list.length ? /*#__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("div", {
|
|
62943
63164
|
className: src_list_index_module.listWrapper
|
|
62944
63165
|
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("div", {
|
|
62945
|
-
className: classnames_default()(src_list_index_module.list, (
|
|
63166
|
+
className: classnames_default()(src_list_index_module.list, list_defineProperty({}, src_list_index_module.cardList, canSwitchView && effectiveViewMode === ViewModes.CARD))
|
|
62946
63167
|
}, list.map(function (listItem) {
|
|
62947
63168
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(ListItem, {
|
|
62948
63169
|
themeName: themeName,
|
|
62949
63170
|
isMobile: isMobile,
|
|
62950
|
-
isPad: isPad,
|
|
62951
63171
|
data: listItem,
|
|
62952
63172
|
key: listItem.live_id,
|
|
62953
63173
|
subscription: subscription,
|
|
@@ -62958,9 +63178,7 @@ function PublicLiveList(_ref) {
|
|
|
62958
63178
|
viewMode: effectiveViewMode,
|
|
62959
63179
|
cardStyle: effectiveViewMode === ViewModes.CARD ? calcCardStyle() : {}
|
|
62960
63180
|
});
|
|
62961
|
-
})),
|
|
62962
|
-
className: src_list_index_module.mobileLoadMore
|
|
62963
|
-
}, loadingMore ? '加载中...' : hasMore ? '下拉加载更多' : '没有更多了')), !isMobile && /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("div", {
|
|
63181
|
+
}))), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("div", {
|
|
62964
63182
|
className: src_list_index_module.paginationWrapper
|
|
62965
63183
|
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(component_Pagination_Pagination, {
|
|
62966
63184
|
total: total,
|
|
@@ -62970,7 +63188,7 @@ function PublicLiveList(_ref) {
|
|
|
62970
63188
|
}))) : /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(Empty_Empty, {
|
|
62971
63189
|
tip: "\u6682\u65E0\u5185\u5BB9",
|
|
62972
63190
|
className: emptyClassName
|
|
62973
|
-
}))));
|
|
63191
|
+
})))));
|
|
62974
63192
|
})));
|
|
62975
63193
|
}
|
|
62976
63194
|
;// CONCATENATED MODULE: ./src/App.jsx
|