!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["style/hide/home-carousel"]=t():e["style/hide/home-carousel"]=t()}(globalThis,(()=>(()=>{var e,t,o={727:(e,t,o)=>{var n=o(955)((function(e){return e[1]}));n.push([e.id,".hideHomeCarousel-switch-full .recommended-swipe {\n  display: none !important;\n}\n.hideHomeCarousel-switch-transparent .recommended-swipe {\n  opacity: 0;\n  pointer-events: none;\n}\n.hideHomeCarousel-switch-picture .vui_carousel__slide {\n  display: none !important;\n}\n.hideHomeCarousel-switch-footerText .carousel-footer-text {\n  display: none !important;\n}\n\n.vui_carousel__slide {\n  filter: blur(var(--blur-amount, 0px));\n}",""]),e.exports=n},955:e=>{"use strict";
// eslint-disable-next-line func-names
e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var o=e(t);return t[2]?"@media ".concat(t[2]," {").concat(o,"}"):o})).join("")},
// eslint-disable-next-line func-names
t.i=function(e,o,n){"string"==typeof e&&(
// eslint-disable-next-line no-param-reassign
e=[[null,e,""]]);var r={};if(n)for(var s=0;s<this.length;s++){
// eslint-disable-next-line prefer-destructuring
var i=this[s][0];null!=i&&(r[i]=!0)}for(var a=0;a<e.length;a++){var l=[].concat(e[a]);n&&r[l[0]]||(o&&(l[2]?l[2]="".concat(o," and ").concat(l[2]):l[2]=o),t.push(l))}},t}},781:(e,t,o)=>{var n=o(727);n&&n.__esModule&&(n=n.default),e.exports="string"==typeof n?n:n.toString()},353:e=>{function t(e){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}t.keys=()=>[],t.resolve=t,t.id=353,e.exports=t},950:e=>{"use strict";e.exports="隐藏首页的轮播图区域\n\n选项说明：\n\n- `禁用轮播`：禁用图片轮播，可以手动切换\n- `图片模糊`：模糊轮播图片，为0时不模糊\n- `样式开关`：\n  - `隐藏轮播区域占位`：完全隐藏整个轮播区域\n  - `透明化轮播区域`：完全透明化整个轮播区域，同时禁止点击打开链接\n  - `隐藏轮播图片`：隐藏轮播图片，同时禁止点击图片打开链接\n  - `隐藏图片标题`：隐藏图片标题，同时禁止点击标题打开链接\n\n  > 注：样式开关可以同时启用，但是最终显示效果以作用范围大的为准  \n  > 例如启用 `隐藏轮播区域占位`，由于整个区域都被隐藏，不管 `隐藏轮播图片`、`隐藏图片标题` 等选项是否启用都已经看不见了\n"}},n={};function r(e){var t=n[e];if(void 0!==t)return t.exports;var s=n[e]={id:e,exports:{}};return o[e](s,s.exports,r),s.exports}t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,r.t=function(o,n){if(1&n&&(o=this(o)),8&n)return o;if("object"==typeof o&&o){if(4&n&&o.__esModule)return o;if(16&n&&"function"==typeof o.then)return o}var s=Object.create(null);r.r(s);var i={};e=e||[null,t({}),t([]),t(t)];for(var a=2&n&&o;"object"==typeof a&&!~e.indexOf(a);a=t(a))Object.getOwnPropertyNames(a).forEach((e=>i[e]=()=>o[e]));return i.default=()=>o,r.d(s,i),s},r.d=(e,t)=>{for(var o in t)r.o(t,o)&&!r.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var s={};return(()=>{"use strict";r.d(s,{component:()=>a});const e=coreApis.componentApis.switchOptions,t=coreApis.settings,o=coreApis.spinQuery,n=(0,coreApis.utils.log.useScopedConsole)("hideHomeCarousel"),i=e=>{e.stopPropagation()},a=(0,e.wrapSwitchOptions)({name:"hideHomeCarouselOptions",switches:{full:{displayName:"隐藏轮播区域占位",defaultValue:!0},transparent:{displayName:"透明化轮播区域",defaultValue:!1},picture:{displayName:"隐藏轮播图片",defaultValue:!1},footerText:{displayName:"隐藏图片标题",defaultValue:!1}}})({name:"hideHomeCarousel",displayName:"隐藏首页轮播图",entry:async e=>{let{metadata:r}=e;(0,t.addComponentListener)(`${r.name}.disableCarousel`,(async e=>{const t=await(0,o.select)(".vui_carousel");if(t)if(e){t.addEventListener("mouseleave",i,!0);const e=new MouseEvent("mouseenter");t.dispatchEvent(e)}else{t.removeEventListener("mouseleave",i,!0);const e=new MouseEvent("mouseleave");t.dispatchEvent(e)}else n.error("找不到轮播容器节点")}),!0),(0,t.addComponentListener)(`${r.name}.blur`,(async e=>{const t=await(0,o.selectAll)(".vui_carousel__slide");t&&0!==t.length?t.forEach((t=>{t.style.setProperty("--blur-amount",`${e}px`)})):n.error("找不到轮播图片节点")}),!0)},tags:[componentsTags.style],urlInclude:[/^https:\/\/www\.bilibili\.com\/$/,/^https:\/\/www\.bilibili\.com\/index\.html$/],instantStyles:[{name:"hide-home-carousel",style:()=>Promise.resolve().then(r.t.bind(r,781,23))}],options:{disableCarousel:{displayName:"禁用轮播",defaultValue:!1},blur:{displayName:"图片模糊",defaultValue:0,slider:{min:0,max:100,step:1}}},commitHash:"f8d9b5665fc198fe5b2eb39c57dab6d686e5ed74",coreVersion:"2.10.4",description:(()=>{const e=r(353);return{...Object.fromEntries(e.keys().map((t=>[t.match(/index\.(.+)\.md$/)[1],e(t)]))),"zh-CN":()=>Promise.resolve().then(r.t.bind(r,950,17)).then((e=>e.default))}})()})})(),s=s.component})()));