mirror of
https://github.com/the1812/Bilibili-Evolved.git
synced 2025-11-04 21:22:45 +08:00
12 lines
36 KiB
JavaScript
12 lines
36 KiB
JavaScript
!function(e,r){"object"==typeof exports&&"object"==typeof module?module.exports=r():"function"==typeof define&&define.amd?define([],r):"object"==typeof exports?exports["style/home-redesign/fresh"]=r():e["style/home-redesign/fresh"]=r()}(self,(function(){return function(){var e,r,a={836:function(e,r,a){"use strict";a.d(r,{O:function(){return o}});const o=(0,coreApis.settings.getComponentSettings)("freshHome").options},474:function(e,r,a){var o=a(645)((function(e){return e[1]}));o.push([e.id,".home-redesign-base {\n --home-base-color: #fff;\n --home-background-color: #fff;\n --home-color: #000;\n --home-max-width: var(--home-max-width-override, 1440px);\n --home-content-height: 250px;\n --home-card-radius: 12px;\n --home-card-shadow: inset 0 0 0 1px rgba(136,136,136,0.13333), 0 4px 12px 0 rgba(0, 0, 0, 0.05);\n background-color: var(--home-base-color);\n color: var(--home-color);\n font-size: 12px;\n min-height: 100vh;\n line-height: normal;\n display: flex;\n align-items: center;\n flex-direction: column;\n grid-gap: 0;\n gap: 0;\n}\nbody.dark .home-redesign-base {\n --home-base-color: #181818;\n --home-background-color: #282828;\n --home-color: #eee;\n --home-card-shadow: inset 0 0 0 1px rgba(136,136,136,0.13333), 0 4px 12px 0 rgba(0, 0, 0, 0.2);\n}\nhtml {\n scroll-behavior: smooth;\n}",""]),e.exports=o},14:function(e,r,a){var o=a(645)((function(e){return e[1]}));o.push([e.id,".fresh-home {\n padding: 12px;\n width: 100%;\n max-width: unset;\n max-width: var(--home-max-width, unset);\n display: flex;\n align-items: stretch;\n flex-direction: column;\n grid-gap: 0;\n gap: 0;\n}\n.fresh-home-header {\n display: flex;\n align-items: center;\n grid-gap: 0;\n gap: 0;\n justify-content: space-between;\n margin-bottom: 16px;\n}\n.fresh-home-header-title {\n color: var(--home-color);\n font-weight: bold;\n font-size: 20px;\n}\n.fresh-home-header-pagination {\n display: flex;\n align-items: center;\n grid-gap: 8px;\n gap: 8px;\n}\n.fresh-home-header-pagination .be-button .be-icon {\n transition: 0.3s ease-out;\n}\n.fresh-home-header-pagination .be-button .be-iconfont-left-arrow {\n transform: translateX(-0.5px);\n}\n.fresh-home-header-pagination .be-button .be-iconfont-right-arrow {\n transform: translateX(0.5px);\n}\n.fresh-home-header-pagination .be-button .mdi-reload {\n margin: 1px;\n position: relative;\n top: 0.5px;\n left: 0.5px;\n}\n.fresh-home-header-pagination .be-button:hover .mdi-reload {\n transform: rotate(1turn);\n}\n.fresh-home-header-more {\n font-weight: 600;\n font-size: 13px;\n}\n.fresh-home-header-more .be-icon {\n transition: 0.3s ease-out;\n margin-right: 6px;\n}\n.fresh-home-header-more:hover .be-icon {\n transform: rotate(0.5turn);\n}\n.fresh-home-content-layout {\n display: flex;\n align-items: stretch;\n grid-gap: 0;\n gap: 0;\n flex-wrap: wrap;\n grid-gap: 12px 24px;\n gap: 12px 24px;\n}",""]),e.exports=o},115:function(e,r,a){var o=a(645)((function(e){return e[1]}));o.push([e.id,".fresh-home-content-layout-item {\n flex: 0 0 auto;\n padding: 12px;\n}\n.fresh-home-content-layout-item.linebreak {\n flex: 1 0 100%;\n}\n.fresh-home-content-layout-item.grow {\n flex: 1 0 0;\n}",""]),e.exports=o},375:function(e,r,a){var o=a(645)((function(e){return e[1]}));o.push([e.id,".fresh-home-video-card-wrapper {\n --padding: var(--card-padding, 12px);\n padding: var(--padding) 0;\n padding-left: var(--padding);\n scroll-snap-align: start;\n}\n.fresh-home-video-card-wrapper:last-child {\n padding-right: var(--padding);\n}\n.fresh-home-video-card-wrapper .video-card {\n border-radius: var(--home-card-radius) !important;\n}\n.fresh-home-video-card-wrapper .video-card, .fresh-home-video-card-wrapper .video-card * {\n transition: 0.2s ease-out;\n}",""]),e.exports=o},590:function(e,r,a){var o=a(645)((function(e){return e[1]}));o.push([e.id,".fresh-home-video-list {\n --card-height: var(--home-content-height);\n --card-width: 200px;\n --card-padding: 12px;\n position: relative;\n display: flex;\n flex: 1 0 0;\n width: 0;\n}\n.fresh-home-video-list-content {\n display: flex;\n align-items: center;\n grid-gap: 0;\n gap: 0;\n overflow: auto;\n scrollbar-width: none !important;\n overscroll-behavior: contain;\n flex: 1;\n}\n.fresh-home-video-list-content::-webkit-scrollbar {\n height: 0 !important;\n width: 0 !important;\n}\n.fresh-home-video-list-empty {\n margin: var(--card-padding);\n border: 2px dashed rgba(136,136,136,0.26667);\n border-radius: var(--home-card-radius);\n flex-grow: 1;\n align-self: stretch;\n display: flex;\n align-items: center;\n grid-gap: 0;\n gap: 0;\n}\n.fresh-home-video-list.not-empty .fresh-home-video-list-content {\n scroll-snap-type: x mandatory;\n}\n.fresh-home-video-list-mask {\n opacity: 0;\n}\n.fresh-home-video-list.not-empty .fresh-home-video-list-mask {\n position: absolute;\n pointer-events: none;\n transition: 0.1s ease-out;\n width: 36px;\n opacity: 1;\n height: 100%;\n flex-shrink: 0;\n top: 0;\n z-index: 1;\n}\n.fresh-home-video-list.not-empty .fresh-home-video-list-mask.left {\n background: linear-gradient(to right, var(--home-base-color) 40%, rgba(0, 0, 0, 0) 100%);\n left: -2px;\n}\n.fresh-home-video-list.not-empty .fresh-home-video-list-mask.right {\n background: linear-gradient(to left, var(--home-base-color) 40%, rgba(0, 0, 0, 0) 100%);\n right: -2px;\n}\n.fresh-home-video-list.scroll-top .fresh-home-video-list-mask.left {\n width: 0;\n}\n.fresh-home-video-list.scroll-bottom .fresh-home-video-list-mask.right {\n width: 0;\n}",""]),e.exports=o},101:function(e,r,a){var o=a(645)((function(e){return e[1]}));o.push([e.id,".fresh-home-blackboard {\n position: relative;\n}\n.fresh-home-blackboard, .fresh-home-blackboard * {\n transition: 0.2s ease-out;\n}\n.fresh-home-blackboard-cards {\n display: flex;\n --blackboard-width: 350px;\n --blackboard-height: var(--home-content-height);\n --image-height: 197px;\n width: var(--blackboard-width);\n height: var(--blackboard-height);\n box-shadow: var(--home-card-shadow);\n border-radius: var(--home-card-radius);\n background-color: var(--home-background-color);\n overflow: hidden;\n}\n.fresh-home-blackboard-card {\n flex: 0 0 auto;\n width: 100%;\n height: 100%;\n position: relative;\n display: block;\n transition: 0.8s cubic-bezier(0.44, 0.29, 0.13, 1);\n}\n.fresh-home-blackboard-card, body.dark .fresh-home-blackboard-card, .fresh-home-blackboard-card:hover {\n color: inherit !important;\n}\n.fresh-home-blackboard-card-image {\n width: 100%;\n height: var(--image-height);\n -o-object-fit: fill;\n object-fit: fill;\n display: block;\n border-radius: 12px;\n transition-duration: inherit;\n}\n.fresh-home-blackboard-card-title {\n position: absolute;\n bottom: 16px;\n left: 50%;\n transform: translateX(-50%);\n padding: 0 16px;\n font-size: 14px;\n font-weight: 600;\n line-height: calc(var(--blackboard-height) - var(--image-height) - 16px);\n border-radius: 14px;\n max-width: var(--blackboard-width);\n box-sizing: border-box;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.fresh-home-blackboard-radio {\n display: none;\n}\n.fresh-home-blackboard-radio:checked:nth-of-type(1) ~ .fresh-home-blackboard-jump-dots label:nth-child(1) .fresh-home-blackboard-jump-dot {\n background-color: var(--theme-color);\n width: 40px;\n}\n.fresh-home-blackboard-radio:checked:nth-of-type(1) ~ .fresh-home-blackboard-cards .fresh-home-blackboard-card {\n transform: translateX(calc(-1 * 0 * var(--blackboard-width))) scale(0.9);\n}\n.fresh-home-blackboard-radio:checked:nth-of-type(1) ~ .fresh-home-blackboard-cards .fresh-home-blackboard-card:nth-of-type(1) {\n transform: translateX(calc(-1 * 0 * var(--blackboard-width)));\n}\n.fresh-home-blackboard-radio:checked:nth-of-type(1) ~ .fresh-home-blackboard-cards .fresh-home-blackboard-card:nth-of-type(1) img {\n border-radius: var(--home-card-radius) var(--home-card-radius) 0 0;\n}\n.fresh-home-blackboard-radio:checked:nth-of-type(2) ~ .fresh-home-blackboard-jump-dots label:nth-child(2) .fresh-home-blackboard-jump-dot {\n background-color: var(--theme-color);\n width: 40px;\n}\n.fresh-home-blackboard-radio:checked:nth-of-type(2) ~ .fresh-home-blackboard-cards .fresh-home-blackboard-card {\n transform: translateX(calc(-1 * 1 * var(--blackboard-width))) scale(0.9);\n}\n.fresh-home-blackboard-radio:checked:nth-of-type(2) ~ .fresh-home-blackboard-cards .fresh-home-blackboard-card:nth-of-type(2) {\n transform: translateX(calc(-1 * 1 * var(--blackboard-width)));\n}\n.fresh-home-blackboard-radio:checked:nth-of-type(2) ~ .fresh-home-blackboard-cards .fresh-home-blackboard-card:nth-of-type(2) img {\n border-radius: var(--home-card-radius) var(--home-card-radius) 0 0;\n}\n.fresh-home-blackboard-radio:checked:nth-of-type(3) ~ .fresh-home-blackboard-jump-dots label:nth-child(3) .fresh-home-blackboard-jump-dot {\n background-color: var(--theme-color);\n width: 40px;\n}\n.fresh-home-blackboard-radio:checked:nth-of-type(3) ~ .fresh-home-blackboard-cards .fresh-home-blackboard-card {\n transform: translateX(calc(-1 * 2 * var(--blackboard-width))) scale(0.9);\n}\n.fresh-home-blackboard-radio:checked:nth-of-type(3) ~ .fresh-home-blackboard-cards .fresh-home-blackboard-card:nth-of-type(3) {\n transform: translateX(calc(-1 * 2 * var(--blackboard-width)));\n}\n.fresh-home-blackboard-radio:checked:nth-of-type(3) ~ .fresh-home-blackboard-cards .fresh-home-blackboard-card:nth-of-type(3) img {\n border-radius: var(--home-card-radius) var(--home-card-radius) 0 0;\n}\n.fresh-home-blackboard-radio:checked:nth-of-type(4) ~ .fresh-home-blackboard-jump-dots label:nth-child(4) .fresh-home-blackboard-jump-dot {\n background-color: var(--theme-color);\n width: 40px;\n}\n.fresh-home-blackboard-radio:checked:nth-of-type(4) ~ .fresh-home-blackboard-cards .fresh-home-blackboard-card {\n transform: translateX(calc(-1 * 3 * var(--blackboard-width))) scale(0.9);\n}\n.fresh-home-blackboard-radio:checked:nth-of-type(4) ~ .fresh-home-blackboard-cards .fresh-home-blackboard-card:nth-of-type(4) {\n transform: translateX(calc(-1 * 3 * var(--blackboard-width)));\n}\n.fresh-home-blackboard-radio:checked:nth-of-type(4) ~ .fresh-home-blackboard-cards .fresh-home-blackboard-card:nth-of-type(4) img {\n border-radius: var(--home-card-radius) var(--home-card-radius) 0 0;\n}\n.fresh-home-blackboard-radio:checked:nth-of-type(5) ~ .fresh-home-blackboard-jump-dots label:nth-child(5) .fresh-home-blackboard-jump-dot {\n background-color: var(--theme-color);\n width: 40px;\n}\n.fresh-home-blackboard-radio:checked:nth-of-type(5) ~ .fresh-home-blackboard-cards .fresh-home-blackboard-card {\n transform: translateX(calc(-1 * 4 * var(--blackboard-width))) scale(0.9);\n}\n.fresh-home-blackboard-radio:checked:nth-of-type(5) ~ .fresh-home-blackboard-cards .fresh-home-blackboard-card:nth-of-type(5) {\n transform: translateX(calc(-1 * 4 * var(--blackboard-width)));\n}\n.fresh-home-blackboard-radio:checked:nth-of-type(5) ~ .fresh-home-blackboard-cards .fresh-home-blackboard-card:nth-of-type(5) img {\n border-radius: var(--home-card-radius) var(--home-card-radius) 0 0;\n}\n.fresh-home-blackboard-radio:checked:nth-of-type(6) ~ .fresh-home-blackboard-jump-dots label:nth-child(6) .fresh-home-blackboard-jump-dot {\n background-color: var(--theme-color);\n width: 40px;\n}\n.fresh-home-blackboard-radio:checked:nth-of-type(6) ~ .fresh-home-blackboard-cards .fresh-home-blackboard-card {\n transform: translateX(calc(-1 * 5 * var(--blackboard-width))) scale(0.9);\n}\n.fresh-home-blackboard-radio:checked:nth-of-type(6) ~ .fresh-home-blackboard-cards .fresh-home-blackboard-card:nth-of-type(6) {\n transform: translateX(calc(-1 * 5 * var(--blackboard-width)));\n}\n.fresh-home-blackboard-radio:checked:nth-of-type(6) ~ .fresh-home-blackboard-cards .fresh-home-blackboard-card:nth-of-type(6) img {\n border-radius: var(--home-card-radius) var(--home-card-radius) 0 0;\n}\n.fresh-home-blackboard-radio:checked:nth-of-type(7) ~ .fresh-home-blackboard-jump-dots label:nth-child(7) .fresh-home-blackboard-jump-dot {\n background-color: var(--theme-color);\n width: 40px;\n}\n.fresh-home-blackboard-radio:checked:nth-of-type(7) ~ .fresh-home-blackboard-cards .fresh-home-blackboard-card {\n transform: translateX(calc(-1 * 6 * var(--blackboard-width))) scale(0.9);\n}\n.fresh-home-blackboard-radio:checked:nth-of-type(7) ~ .fresh-home-blackboard-cards .fresh-home-blackboard-card:nth-of-type(7) {\n transform: translateX(calc(-1 * 6 * var(--blackboard-width)));\n}\n.fresh-home-blackboard-radio:checked:nth-of-type(7) ~ .fresh-home-blackboard-cards .fresh-home-blackboard-card:nth-of-type(7) img {\n border-radius: var(--home-card-radius) var(--home-card-radius) 0 0;\n}\n.fresh-home-blackboard-radio:checked:nth-of-type(8) ~ .fresh-home-blackboard-jump-dots label:nth-child(8) .fresh-home-blackboard-jump-dot {\n background-color: var(--theme-color);\n width: 40px;\n}\n.fresh-home-blackboard-radio:checked:nth-of-type(8) ~ .fresh-home-blackboard-cards .fresh-home-blackboard-card {\n transform: translateX(calc(-1 * 7 * var(--blackboard-width))) scale(0.9);\n}\n.fresh-home-blackboard-radio:checked:nth-of-type(8) ~ .fresh-home-blackboard-cards .fresh-home-blackboard-card:nth-of-type(8) {\n transform: translateX(calc(-1 * 7 * var(--blackboard-width)));\n}\n.fresh-home-blackboard-radio:checked:nth-of-type(8) ~ .fresh-home-blackboard-cards .fresh-home-blackboard-card:nth-of-type(8) img {\n border-radius: var(--home-card-radius) var(--home-card-radius) 0 0;\n}\n.fresh-home-blackboard-radio:checked:nth-of-type(9) ~ .fresh-home-blackboard-jump-dots label:nth-child(9) .fresh-home-blackboard-jump-dot {\n background-color: var(--theme-color);\n width: 40px;\n}\n.fresh-home-blackboard-radio:checked:nth-of-type(9) ~ .fresh-home-blackboard-cards .fresh-home-blackboard-card {\n transform: translateX(calc(-1 * 8 * var(--blackboard-width))) scale(0.9);\n}\n.fresh-home-blackboard-radio:checked:nth-of-type(9) ~ .fresh-home-blackboard-cards .fresh-home-blackboard-card:nth-of-type(9) {\n transform: translateX(calc(-1 * 8 * var(--blackboard-width)));\n}\n.fresh-home-blackboard-radio:checked:nth-of-type(9) ~ .fresh-home-blackboard-cards .fresh-home-blackboard-card:nth-of-type(9) img {\n border-radius: var(--home-card-radius) var(--home-card-radius) 0 0;\n}\n.fresh-home-blackboard-radio:checked:nth-of-type(10) ~ .fresh-home-blackboard-jump-dots label:nth-child(10) .fresh-home-blackboard-jump-dot {\n background-color: var(--theme-color);\n width: 40px;\n}\n.fresh-home-blackboard-radio:checked:nth-of-type(10) ~ .fresh-home-blackboard-cards .fresh-home-blackboard-card {\n transform: translateX(calc(-1 * 9 * var(--blackboard-width))) scale(0.9);\n}\n.fresh-home-blackboard-radio:checked:nth-of-type(10) ~ .fresh-home-blackboard-cards .fresh-home-blackboard-card:nth-of-type(10) {\n transform: translateX(calc(-1 * 9 * var(--blackboard-width)));\n}\n.fresh-home-blackboard-radio:checked:nth-of-type(10) ~ .fresh-home-blackboard-cards .fresh-home-blackboard-card:nth-of-type(10) img {\n border-radius: var(--home-card-radius) var(--home-card-radius) 0 0;\n}\n.fresh-home-blackboard-radio:checked:nth-of-type(11) ~ .fresh-home-blackboard-jump-dots label:nth-child(11) .fresh-home-blackboard-jump-dot {\n background-color: var(--theme-color);\n width: 40px;\n}\n.fresh-home-blackboard-radio:checked:nth-of-type(11) ~ .fresh-home-blackboard-cards .fresh-home-blackboard-card {\n transform: translateX(calc(-1 * 10 * var(--blackboard-width))) scale(0.9);\n}\n.fresh-home-blackboard-radio:checked:nth-of-type(11) ~ .fresh-home-blackboard-cards .fresh-home-blackboard-card:nth-of-type(11) {\n transform: translateX(calc(-1 * 10 * var(--blackboard-width)));\n}\n.fresh-home-blackboard-radio:checked:nth-of-type(11) ~ .fresh-home-blackboard-cards .fresh-home-blackboard-card:nth-of-type(11) img {\n border-radius: var(--home-card-radius) var(--home-card-radius) 0 0;\n}\n.fresh-home-blackboard-radio:checked:nth-of-type(12) ~ .fresh-home-blackboard-jump-dots label:nth-child(12) .fresh-home-blackboard-jump-dot {\n background-color: var(--theme-color);\n width: 40px;\n}\n.fresh-home-blackboard-radio:checked:nth-of-type(12) ~ .fresh-home-blackboard-cards .fresh-home-blackboard-card {\n transform: translateX(calc(-1 * 11 * var(--blackboard-width))) scale(0.9);\n}\n.fresh-home-blackboard-radio:checked:nth-of-type(12) ~ .fresh-home-blackboard-cards .fresh-home-blackboard-card:nth-of-type(12) {\n transform: translateX(calc(-1 * 11 * var(--blackboard-width)));\n}\n.fresh-home-blackboard-radio:checked:nth-of-type(12) ~ .fresh-home-blackboard-cards .fresh-home-blackboard-card:nth-of-type(12) img {\n border-radius: var(--home-card-radius) var(--home-card-radius) 0 0;\n}\n.fresh-home-blackboard-radio:checked:nth-of-type(13) ~ .fresh-home-blackboard-jump-dots label:nth-child(13) .fresh-home-blackboard-jump-dot {\n background-color: var(--theme-color);\n width: 40px;\n}\n.fresh-home-blackboard-radio:checked:nth-of-type(13) ~ .fresh-home-blackboard-cards .fresh-home-blackboard-card {\n transform: translateX(calc(-1 * 12 * var(--blackboard-width))) scale(0.9);\n}\n.fresh-home-blackboard-radio:checked:nth-of-type(13) ~ .fresh-home-blackboard-cards .fresh-home-blackboard-card:nth-of-type(13) {\n transform: translateX(calc(-1 * 12 * var(--blackboard-width)));\n}\n.fresh-home-blackboard-radio:checked:nth-of-type(13) ~ .fresh-home-blackboard-cards .fresh-home-blackboard-card:nth-of-type(13) img {\n border-radius: var(--home-card-radius) var(--home-card-radius) 0 0;\n}\n.fresh-home-blackboard-radio:checked:nth-of-type(14) ~ .fresh-home-blackboard-jump-dots label:nth-child(14) .fresh-home-blackboard-jump-dot {\n background-color: var(--theme-color);\n width: 40px;\n}\n.fresh-home-blackboard-radio:checked:nth-of-type(14) ~ .fresh-home-blackboard-cards .fresh-home-blackboard-card {\n transform: translateX(calc(-1 * 13 * var(--blackboard-width))) scale(0.9);\n}\n.fresh-home-blackboard-radio:checked:nth-of-type(14) ~ .fresh-home-blackboard-cards .fresh-home-blackboard-card:nth-of-type(14) {\n transform: translateX(calc(-1 * 13 * var(--blackboard-width)));\n}\n.fresh-home-blackboard-radio:checked:nth-of-type(14) ~ .fresh-home-blackboard-cards .fresh-home-blackboard-card:nth-of-type(14) img {\n border-radius: var(--home-card-radius) var(--home-card-radius) 0 0;\n}\n.fresh-home-blackboard-radio:checked:nth-of-type(15) ~ .fresh-home-blackboard-jump-dots label:nth-child(15) .fresh-home-blackboard-jump-dot {\n background-color: var(--theme-color);\n width: 40px;\n}\n.fresh-home-blackboard-radio:checked:nth-of-type(15) ~ .fresh-home-blackboard-cards .fresh-home-blackboard-card {\n transform: translateX(calc(-1 * 14 * var(--blackboard-width))) scale(0.9);\n}\n.fresh-home-blackboard-radio:checked:nth-of-type(15) ~ .fresh-home-blackboard-cards .fresh-home-blackboard-card:nth-of-type(15) {\n transform: translateX(calc(-1 * 14 * var(--blackboard-width)));\n}\n.fresh-home-blackboard-radio:checked:nth-of-type(15) ~ .fresh-home-blackboard-cards .fresh-home-blackboard-card:nth-of-type(15) img {\n border-radius: var(--home-card-radius) var(--home-card-radius) 0 0;\n}\n.fresh-home-blackboard-jump-dots {\n position: absolute;\n left: 50%;\n bottom: 0;\n transform: translateX(-50%);\n display: flex;\n align-items: center;\n grid-gap: 0;\n gap: 0;\n}\n.fresh-home-blackboard-jump-dots label {\n display: block;\n padding: 8px 6px;\n cursor: pointer;\n}\n.fresh-home-blackboard-jump-dot {\n background-color: rgba(136,136,136,0.26667);\n box-sizing: border-box;\n width: 20px;\n height: 8px;\n border-radius: 8px;\n}",""]),e.exports=o},828:function(e,r,a){var o=a(645)((function(e){return e[1]}));o.push([e.id,".fresh-home-trending {\n display: flex;\n align-items: stretch;\n flex-direction: column;\n grid-gap: 0;\n gap: 0;\n height: 100%;\n}\n.fresh-home-trending-content {\n flex-grow: 1;\n display: flex;\n margin: -12px;\n}",""]),e.exports=o},393:function(e,r,a){var o=a(645)((function(e){return e[1]}));o.push([e.id,".international-home > :not(.international-header),\n.international-header .b-wrap,\n.international-footer,\n#app > .bili-wrapper,\n#app > .elevator-module,\n#app > .bili-header-m.stardust-common > .bili-wrapper,\n.bili-header-m .head-banner .head-content .head-logo,\n#i_cecream .bili-header__channel,\n#i_cecream > :not(.bili-header) {\n position: fixed;\n visibility: hidden;\n top: 200vh;\n left: 0;\n height: 0 !important;\n padding: 0 !important;\n margin: 0 !important;\n overflow: hidden !important;\n}",""]),e.exports=o},645:function(e){"use strict";
|
|
// eslint-disable-next-line func-names
|
|
e.exports=function(e){var r=[];return r.toString=function(){return this.map((function(r){var a=e(r);return r[2]?"@media ".concat(r[2]," {").concat(a,"}"):a})).join("")},
|
|
// eslint-disable-next-line func-names
|
|
r.i=function(e,a,o){"string"==typeof e&&(
|
|
// eslint-disable-next-line no-param-reassign
|
|
e=[[null,e,""]]);var t={};if(o)for(var n=0;n<this.length;n++){
|
|
// eslint-disable-next-line prefer-destructuring
|
|
var d=this[n][0];null!=d&&(t[d]=!0)}for(var s=0;s<e.length;s++){var i=[].concat(e[s]);o&&t[i[0]]||(a&&(i[2]?i[2]="".concat(a," and ").concat(i[2]):i[2]=a),r.push(i))}},r}},379:function(e,r,a){"use strict";var o,t=function(){return void 0===o&&(
|
|
// @see http://browserhacks.com/#hack-e71d8692f65334173fee715c222cb805
|
|
// @see https://github.com/webpack-contrib/style-loader/issues/177
|
|
o=Boolean(window&&document&&document.all&&!window.atob)),o},n=function(){var e={};return function(r){if(void 0===e[r]){var a=document.querySelector(r);if(window.HTMLIFrameElement&&a instanceof window.HTMLIFrameElement)try{a=a.contentDocument.head}catch(e){a=null}e[r]=a}return e[r]}}(),d=[];function s(e){for(var r=-1,a=0;a<d.length;a++)if(d[a].identifier===e){r=a;break}return r}function i(e,r){for(var a={},o=[],t=0;t<e.length;t++){var n=e[t],i=r.base?n[0]+r.base:n[0],c=a[i]||0,h="".concat(i," ").concat(c);a[i]=c+1;var l=s(h),b={css:n[1],media:n[2],sourceMap:n[3]};-1!==l?(d[l].references++,d[l].updater(b)):d.push({identifier:h,updater:u(b,r),references:1}),o.push(h)}return o}function c(e){var r=document.createElement("style"),o=e.attributes||{};if(void 0===o.nonce){var t=a.nc;t&&(o.nonce=t)}if(Object.keys(o).forEach((function(e){r.setAttribute(e,o[e])})),"function"==typeof e.insert)e.insert(r);else{var d=n(e.insert||"head");if(!d)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");d.appendChild(r)}return r}var h,l=(h=[],function(e,r){return h[e]=r,h.filter(Boolean).join("\n")});function b(e,r,a,o){var t=a?"":o.media?"@media ".concat(o.media," {").concat(o.css,"}"):o.css;if(e.styleSheet)e.styleSheet.cssText=l(r,t);else{var n=document.createTextNode(t),d=e.childNodes;d[r]&&e.removeChild(d[r]),d.length?e.insertBefore(n,d[r]):e.appendChild(n)}}function f(e,r,a){var o=a.css,t=a.media,n=a.sourceMap;if(t?e.setAttribute("media",t):e.removeAttribute("media"),n&&"undefined"!=typeof btoa&&(o+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(n))))," */")),e.styleSheet)e.styleSheet.cssText=o;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(o))}}var m=null,p=0;function u(e,r){var a,o,t;if(r.singleton){var n=p++;a=m||(m=c(r)),o=b.bind(null,a,n,!1),t=b.bind(null,a,n,!0)}else a=c(r),o=f.bind(null,a,r),t=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(a)};return o(e),function(r){if(r){if(r.css===e.css&&r.media===e.media&&r.sourceMap===e.sourceMap)return;o(e=r)}else t()}}e.exports=function(e,r){(r=r||{}).singleton||"boolean"==typeof r.singleton||(r.singleton=t());var a=i(e=e||[],r);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var o=0;o<a.length;o++){var t=s(a[o]);d[t].references--}for(var n=i(e,r),c=0;c<a.length;c++){var h=s(a[c]);0===d[h].references&&(d[h].updater(),d.splice(h,1))}a=n}}}},866:function(e,r,a){var o=a(393);o&&o.__esModule&&(o=o.default),e.exports="string"==typeof o?o:o.toString()},944:function(e,r,a){"use strict";a.r(r),a.d(r,{default:function(){return I}});var o=function(){var e=this,r=e.$createElement,a=e._self._c||r;return a("HomeRedesignBase",[a("div",{staticClass:"fresh-home"},[a("div",{staticClass:"fresh-home-content-layout"},e._l(e.layouts,(function(e){return a("FreshLayoutItem",{key:e.name,attrs:{item:e}})})),1)])])};o._withStripped=!0;var t=function(){var e=this,r=e.$createElement;return(e._self._c||r)("div",{staticClass:"home-redesign-base"},[e._t("default")],2)};t._withStripped=!0;var n=Vue.extend({}),d=a(379),s=a.n(d),i=a(474),c=a.n(i),h={insert:"head",singleton:!1},l=(s()(c(),h),c().locals,a(900)),b=(0,l.Z)(n,t,[],!1,null,null,null);b.options.__file="registry/lib/components/style/home-redesign/HomeRedesignBase.vue";var f=b.exports,m=function(){var e=this,r=e.$createElement,a=e._self._c||r;return a("div",{staticClass:"fresh-home-content-layout-item",class:{grow:e.item.grow,linebreak:e.options.linebreak}},[a(e.item.component,{tag:"component"})],1)};m._withStripped=!0;var p=a(836),u=Vue.extend({props:{item:{required:!0,type:Object}},data(){return{options:p.O.layoutOptions[this.item.name]??{}}}}),k=a(115),v=a.n(k),g={insert:"head",singleton:!1},y=(s()(v(),g),v().locals,(0,l.Z)(u,m,[],!1,null,null,null));y.options.__file="registry/lib/components/style/home-redesign/fresh/FreshLayoutItem.vue";var w=y.exports,x=coreApis.pluginApis.data;const _=[{name:"blackboard",displayName:"活动",component:()=>Promise.resolve().then(a.bind(a,76)).then((e=>e.default))},{name:"trending",displayName:"热门视频",grow:!0,component:()=>Promise.resolve().then(a.bind(a,179)).then((e=>e.default))}],[C]=(0,x.registerAndGetData)("homeRedesign.fresh.layouts",[..._]);var j=Vue.extend({components:{HomeRedesignBase:f,FreshLayoutItem:w},data:()=>({layouts:C})}),V=a(14),X=a.n(V),$={insert:"head",singleton:!1},S=(s()(X(),$),X().locals,(0,l.Z)(j,o,[],!1,null,null,null));S.options.__file="registry/lib/components/style/home-redesign/fresh/FreshHome.vue";var I=S.exports},76:function(e,r,a){"use strict";a.r(r),a.d(r,{default:function(){return f}});var o=function(){var e=this,r=e.$createElement,a=e._self._c||r;return a("div",{staticClass:"fresh-home-blackboard"},[a("div",{staticClass:"fresh-home-header"},[a("div",{staticClass:"fresh-home-header-title"},[e._v("\n 活动\n ")]),e._v(" "),a("a",{staticClass:"fresh-home-header-more",attrs:{href:"https://www.bilibili.com/blackboard/x/act_list/",target:"_blank"}},[a("VButton",{attrs:{round:""}},[a("VIcon",{attrs:{icon:"mdi-dots-horizontal",size:20}}),e._v("\n 更多\n ")],1)],1)]),e._v(" "),e._l(e.blackboards,(function(e,r){return a("input",{key:r,staticClass:"fresh-home-blackboard-radio",attrs:{id:"blackboard"+r,type:"radio",name:"blackboard","data-index":r},domProps:{checked:0===r}})})),e._v(" "),a("div",{staticClass:"fresh-home-blackboard-cards"},e._l(e.blackboards,(function(r,o){return a("a",{key:o,staticClass:"fresh-home-blackboard-card",attrs:{target:"_blank",href:r.url,title:r.title}},[a("DpiImage",{staticClass:"fresh-home-blackboard-card-image",attrs:{src:r.imageUrl,alt:r.title,size:{width:500,height:250},intersection:{root:e.cardsContainer}}}),e._v(" "),a("div",{staticClass:"fresh-home-blackboard-card-title",attrs:{title:r.title}},[e._v("\n "+e._s(r.title)+"\n ")])],1)})),0),e._v(" "),a("div",{staticClass:"fresh-home-blackboard-jump-dots"},e._l(e.blackboards,(function(e,r){return a("label",{key:r,attrs:{for:"blackboard"+r}},[a("div",{staticClass:"fresh-home-blackboard-jump-dot"})])})),0)],2)};o._withStripped=!0;var t=a(643),n=a(663);var d=Vue.extend({components:{VButton:t.VButton,VIcon:t.VIcon,DpiImage:t.DpiImage},data:()=>({blackboards:[],timer:0}),computed:{cardsContainer(){return this.$el.querySelector(".fresh-home-blackboard-cards")}},async created(){const e=await(async()=>{const e=4694,{code:r,message:a,data:o}=await(0,n.getJson)("https://api.bilibili.com/x/web-show/res/locs?pf=0&ids=4694");if(0!==r)throw new Error(`获取活动卡片失败: ${a}`);return o[4694].map((r=>({url:r.url,title:r.name,isAd:r.res_id!==e,imageUrl:r.pic})))})();this.blackboards=e.filter((e=>!e.isAd))},mounted(){const e="fresh-home-blackboard-radio";this.timer=window.setInterval((()=>{if(!document.hasFocus()||this.$el.matches(":hover"))return;const r=parseInt(dq(`.${e}:checked`).getAttribute("data-index"));let a;a=r===this.blackboards.length-1?0:r+1,dq(`.${e}[data-index='${a}']`).checked=!0}),5e3)},beforeDestroy(){this.timer&&window.clearInterval(this.timer)}}),s=a(379),i=a.n(s),c=a(101),h=a.n(c),l={insert:"head",singleton:!1},b=(i()(h(),l),h().locals,(0,a(900).Z)(d,o,[],!1,null,null,null));b.options.__file="registry/lib/components/style/home-redesign/fresh/layouts/blackboard/Blackboard.vue";var f=b.exports},179:function(e,r,a){"use strict";a.r(r),a.d(r,{default:function(){return L}});var o=function(){var e=this,r=e.$createElement,a=e._self._c||r;return a("div",{staticClass:"fresh-home-trending"},[a("div",{staticClass:"fresh-home-header"},[a("div",{staticClass:"fresh-home-header-title"},[e._v("\n "+e._s(e.title)+"\n ")]),e._v(" "),a("div",{staticClass:"fresh-home-header-pagination"},[a("VButton",{attrs:{icon:""},on:{click:e.reload}},[a("VIcon",{attrs:{icon:"mdi-reload",size:18}})],1),e._v(" "),a("VButton",{attrs:{icon:""},on:{click:function(r){return e.$refs.videoList.offsetPage(-1)}}},[a("VIcon",{attrs:{icon:"left-arrow",size:20}})],1),e._v(" "),a("VButton",{attrs:{icon:""},on:{click:function(r){return e.$refs.videoList.offsetPage(1)}}},[a("VIcon",{attrs:{icon:"right-arrow",size:20}})],1)],1)]),e._v(" "),a("div",{staticClass:"fresh-home-trending-content"},[a("VideoList",{ref:"videoList",attrs:{videos:e.videos,loading:e.loading}})],1)])};o._withStripped=!0;var t=a(643),n=function(){var e=this,r=e.$createElement,a=e._self._c||r;return a("div",{staticClass:"fresh-home-video-list scroll-top scroll-bottom",class:{"not-empty":e.videos.length>0}},[a("div",{staticClass:"fresh-home-video-list-mask left"}),e._v(" "),a("div",{ref:"content",staticClass:"fresh-home-video-list-content"},[0===e.videos.length?a("div",{staticClass:"fresh-home-video-list-empty"},[e.loading?a("VLoading"):a("VEmpty")],1):e._l(e.videos,(function(e){return a("VideoCardWrapper",{key:e.id,attrs:{data:e}})}))],2),e._v(" "),a("div",{staticClass:"fresh-home-video-list-mask right"})])};n._withStripped=!0;var d=coreApis.observer,s=function(){var e=this,r=e.$createElement,a=e._self._c||r;return a("div",{staticClass:"fresh-home-video-card-wrapper"},[a("VideoCard",e._b({attrs:{orientation:"vertical"}},"VideoCard",e.$attrs,!1))],1)};s._withStripped=!0;var i=coreApis.componentApis.feeds.VideoCard,c=a.n(i),h=Vue.extend({components:{VideoCard:c()}}),l=a(379),b=a.n(l),f=a(375),m=a.n(f),p={insert:"head",singleton:!1},u=(b()(m(),p),m().locals,a(900)),k=(0,u.Z)(h,s,[],!1,null,null,null);k.options.__file="registry/lib/components/style/home-redesign/fresh/VideoCardWrapper.vue";var v=k.exports,g=Vue.extend({components:{VEmpty:t.VEmpty,VLoading:t.VLoading,VideoCardWrapper:v},props:{videos:{type:Array,default:()=>[]},loading:{type:Boolean,default:!0}},data:()=>({observer:[]}),watch:{videos(){this.setupIntersection()},loading(e){e||this.setupIntersection()}},methods:{async setupIntersection(){await this.$nextTick();const e=this.observer;e&&(e.forEach((e=>e.disconnect())),this.observers=[]);const r=this.$refs.content,a=dqa(r,".fresh-home-video-card-wrapper");if(0===a.length)return;const o={threshold:[1],root:r},[t]=a,[n]=(0,d.intersectionObserve)([t],o,(e=>e.forEach((e=>{const r=e.isIntersecting&&1===e.intersectionRatio;this.$el.classList.toggle("scroll-top",r)}))));if(this.observers.push(n),a.length>1){const e=a[a.length-1],[r]=(0,d.intersectionObserve)([e],o,(e=>e.forEach((e=>{const r=e.isIntersecting&&1===e.intersectionRatio;this.$el.classList.toggle("scroll-bottom",r)}))));this.observers.push(r)}},offsetPage(e){const r=this.$refs.content,a=getComputedStyle(r),o=r.clientWidth,t=parseFloat(a.getPropertyValue("--card-width"))+parseFloat(a.getPropertyValue("--card-padding")),n=Math.trunc(o/t)*t;r.scrollBy(e*n,0)}}}),y=a(590),w=a.n(y),x={insert:"head",singleton:!1},_=(b()(w(),x),w().locals,(0,u.Z)(g,n,[],!1,null,null,null));_.options.__file="registry/lib/components/style/home-redesign/fresh/VideoList.vue";var C=_.exports,j=a(836),V=coreApis.componentApis.feeds.api,X=a(663),$=a(109),S=coreApis.utils.formatters;var I=Vue.extend({components:{VButton:t.VButton,VIcon:t.VIcon,VideoList:C},data:()=>({videos:[],loading:!0}),computed:{title:()=>j.O.personalized?"推荐":"热门"},created(){this.reload()},methods:{async reload(){this.loading=!0,this.videos=[],this.videos=await(async()=>{const e=Boolean((0,$.getUID)())&&j.O.personalized,r=e?X.getJsonWithCredentials:X.getJson,{code:a,message:o,data:t}=await r("https://api.bilibili.com/x/web-interface/index/top/rcmd?fresh_type=0&version=1");if(0!==a)throw new Error(`获取${e?"推荐":"热门"}视频失败: ${o}`);const n=t.item.map((e=>({id:e.id,aid:e.id,bvid:e.bvid,coverUrl:e.pic.replace("http:","https:"),title:e.title,description:"",duration:e.duration,durationText:(0,S.formatDuration)(e.duration),timestamp:1e3*e.pubdate,time:new Date(1e3*e.pubdate),upName:e.owner.name,upID:e.owner.mid,upFaceUrl:e.owner.face.replace("http:","https:"),like:(0,S.formatCount)(e.stat.like),playCount:(0,S.formatCount)(e.stat.view)})));return(0,V.applyContentFilter)(n)})().finally((()=>{this.loading=!1}))}}}),O=a(828),E=a.n(O),A={insert:"head",singleton:!1},B=(b()(E(),A),E().locals,(0,u.Z)(I,o,[],!1,null,null,null));B.options.__file="registry/lib/components/style/home-redesign/fresh/layouts/trending/Trending.vue";var L=B.exports},900:function(e,r,a){"use strict";function o(e,r,a,o,t,n,d,s){var i,c="function"==typeof e?e.options:e;if(r&&(c.render=r,c.staticRenderFns=a,c._compiled=!0),o&&(c.functional=!0),n&&(c._scopeId="data-v-"+n),d?(i=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),t&&t.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(d)},c._ssrRegister=i):t&&(i=s?function(){t.call(this,(c.functional?this.parent:this).$root.$options.shadowRoot)}:t),i)if(c.functional){c._injectStyles=i;var h=c.render;c.render=function(e,r){return i.call(r),h(e,r)}}else{var l=c.beforeCreate;c.beforeCreate=l?[].concat(l,i):[i]}return{exports:e,options:c}}a.d(r,{Z:function(){return o}})},663:function(e){"use strict";e.exports=coreApis.ajax},643:function(e){"use strict";e.exports=coreApis.ui},109:function(e){"use strict";e.exports=coreApis.utils}},o={};function t(e){var r=o[e];if(void 0!==r)return r.exports;var n=o[e]={id:e,exports:{}};return a[e](n,n.exports,t),n.exports}t.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(r,{a:r}),r},r=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__},t.t=function(a,o){if(1&o&&(a=this(a)),8&o)return a;if("object"==typeof a&&a){if(4&o&&a.__esModule)return a;if(16&o&&"function"==typeof a.then)return a}var n=Object.create(null);t.r(n);var d={};e=e||[null,r({}),r([]),r(r)];for(var s=2&o&&a;"object"==typeof s&&!~e.indexOf(s);s=r(s))Object.getOwnPropertyNames(s).forEach((function(e){d[e]=function(){return a[e]}}));return d.default=function(){return a},t.d(n,d),n},t.d=function(e,r){for(var a in r)t.o(r,a)&&!t.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:r[a]})},t.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};return function(){"use strict";t.d(n,{component:function(){return a}});var e=coreApis.lifeCycle,r=t(109);const a={name:"freshHome",displayName:"清爽首页",description:"使用重新设计的清爽风格首页替换原本的首页.",urlInclude:[/^https:\/\/www\.bilibili\.com\/$/,/^https:\/\/www\.bilibili\.com\/index\.html$/],tags:[componentsTags.style],entry:()=>{(0,e.contentLoaded)((async()=>{const e=await Promise.resolve().then(t.bind(t,944)),a=(0,r.mountVueComponent)(e);document.body.appendChild(a.$el)}))},options:{layoutOptions:{displayName:"版块设置",defaultValue:{},hidden:!0},personalized:{displayName:"个性化推荐",defaultValue:!1}},instantStyles:[{name:"fresh-home-hide-original",style:()=>Promise.resolve().then(t.t.bind(t,866,23))}],commitHash:"eac68c286642048f5f5a2cacb3aa82d033f937a9"}}(),n=n.component}()})); |