System.register(["./chunk-legacy-D4EHk8Xy.js","./chunk-legacy-DSWgnP8V.js","./souav-legacy-ptBXoxNy.js","./chunk-legacy-B09Jcn0a.js","./chunk-legacy-Du_4_SVd.js","./chunk-legacy-CnQJKDCO.js","./chunk-legacy-Du0cmR-o.js","./chunk-legacy-CEUc4S30.js","./chunk-legacy-Dq4znTTY.js","./chunk-legacy-DhDQalG_.js","./chunk-legacy-B3dYxnqe.js","./chunk-legacy-DcCKlgmr.js","./chunk-legacy-CqjPx9Fo.js","./chunk-legacy-DpNjDkVD.js","./chunk-legacy-CFPzruGi.js","./chunk-legacy-B8g3VqiH.js","./chunk-legacy-CPNkfuO8.js"],function(e){"use strict";var l,t,n,s,c,a,i,u,o,x,r,d,p,f,v,y,h,w,m,k,g,j,_,b;return{setters:[e=>{l=e._},e=>{t=e.d},e=>{n=e.r,s=e.A,c=e.i,a=e.c,i=e.N,u=e.f},e=>{o=e.r,x=e.C,r=e.P,d=e.S,p=e.H,f=e.U,v=e.u,y=e.V,h=e.R,w=e.Q,m=e.N,k=e.B,g=e.c,j=e.M},e=>{_=e.T},e=>{b=e._},null,null,null,null,null,null,null,null,null,null,null],execute:function(C,I){const T=t("Rank",()=>{const e=o([]),l=o(!1),t=o("0"),a=o(0),i=o(0),u=["vod_hits","vod_hits_month","vod_hits_week"];async function x(){l.value=!0,e.value=[];let a=await n(s.vod,{typeId:t.value,pageNo:0,pageSize:10,by:u[i.value],level:0});c(a.code)&&(e.value=a.data.videoList),l.value=!1}return{isLoading:l,vodList:e,typeId:t,typeIndex:a,setTypeIndex:function(e){a.value=e},byIndex:i,changeTypeId:function(e){t.value=e,x().then(()=>{})},changeRankTab:function(e){i.value=e,x().then(()=>{})},requestRankVideos:x}}),R={class:"mt-[15px] flex w-full flex-col"},F={class:"flex w-full"},V=["onClick"],L={class:"relative mt-[15px] flex h-[3px] w-full flex-row items-center"},S={class:"absolute flex h-full w-full"},N={key:0,class:"h-[3px] w-[20px] rounded-[1.5px] bg-[#FF5C24]"},q={class:"w-full px-2"},P={class:"no-scrollbar mt-[3px] flex h-[44px] w-full flex-row gap-2 overflow-scroll bg-[#252525] rounded-[3px]",ref:"scrollContainer"},z=["onClick"],A=x({__name:"RankTabView",setup(e){const l=T(),t=[{id:1,name:"总榜"},{id:2,name:"月榜"},{id:3,name:"周榜"}];function n(e,t){l.typeIndex=e,l.changeTypeId(t.toString())}return(e,s)=>(m(),r("div",R,[d("div",F,[(m(),r(p,null,f(t,(e,t)=>d("div",{key:t,class:y(["flex flex-1 items-center justify-center text-[16px] font-medium",t===v(l).byIndex?"text-[#FF5C24]":"text-white"]),onClick:e=>v(l).changeRankTab(t)},h(e.name),11,V)),64))]),d("div",L,[s[1]||(s[1]=d("div",{class:"w-full px-2"},[d("div",{class:"h-[1.5px] w-full bg-white"})],-1)),d("div",S,[(m(),r(p,null,f(t,(e,t)=>d("div",{key:t,class:y(["flex h-full flex-1 items-center justify-center"])},[t===v(l).byIndex?(m(),r("div",N)):w("",!0)])),64))])]),d("div",q,[d("div",P,[d("div",{onClick:s[0]||(s[0]=e=>n(0,0)),class:y(["nowrap inline-flex cursor-pointer items-center rounded-[15px] px-2 py-0 text-center text-[14px] whitespace-nowrap transition-all duration-300",0===v(l).typeIndex?"font-medium text-[#FF5C24]":"text-white/80"])}," 全部 ",2),(m(!0),r(p,null,f(v(a)().mainTypes,(e,t)=>(m(),r("div",{key:t,onClick:l=>n(t+1,e.type_id),class:y(["nowrap inline-flex cursor-pointer items-center rounded-[15px] px-2 py-0 text-center text-[14px] whitespace-nowrap transition-all duration-300",v(l).typeIndex===t+1?"font-medium text-[#FF5C24]":"text-white/80"])},h(e.type_name.replace(/\s*/g,"")),11,z))),128))],512)])]))}}),B={class:"relative flex w-full items-center justify-center"},H=["src"],M=x({__name:"RankTitleView",setup:e=>(e,l)=>(m(),r("div",B,[d("img",{src:v(_),alt:"",class:"aspect-[1280/315] w-full"},null,8,H),l[0]||(l[0]=d("div",{class:"absolute flex h-full w-full flex-col items-center justify-center bg-transparent"},[d("p",{class:"text-[32px] font-bold text-white"},"人气排行榜"),d("p",{class:"text-[13px] text-white"},"Top10人气排行榜")],-1))]))}),Q={class:"mt-3 flex w-full flex-col space-y-3 pr-1"},U=["onClick"],X={class:"aspect-video w-[45%]"},D={class:"ml-3 flex max-w-[45%] flex-col items-center"},E={class:"text-overflow-ellipsis line-clamp-2 w-full overflow-hidden text-[14px] text-white"},G={class:"mt-2 flex w-full flex-row items-center"},J=x({__name:"RankVideoView",setup(e){const l=T(),t=e=>0===e?"text-red-600":1===e?"text-orange-600":2===e?"text-yellow-600":"text-white";return(e,n)=>(m(),r("div",Q,[(m(!0),r(p,null,f(v(l).vodList,(e,l)=>(m(),r("div",{class:"flex flex-row items-center",key:l,onClick:l=>{return t=e,void u.openVod(t);var t}},[d("div",{class:y([["flex w-[40px] items-center justify-center text-[16px] font-bold",t(l)],""])},h(l+1),3),d("div",X,[k(i,{src:e.vod_pic,class:"h-full w-full rounded-[3px] object-cover"},null,8,["src"])]),d("div",D,[d("p",E,h(e.vod_name),1),d("div",G,[n[0]||(n[0]=d("p",{class:"text-[12px] text-white"},"人气指数:",-1)),d("p",{class:y(["text-[16px] font-bold",t(l)])},h(e.vod_hits),3)])])],8,U))),128))]))}}),K={class:"w-full"};e("default",x({__name:"index",setup(e){const t=T();return g(()=>{t.requestRankVideos()}),(e,n)=>(m(),r("div",K,[k(M),k(A),v(t).isLoading?(m(),j(b,{key:0})):w("",!0),v(t).isLoading?w("",!0):(m(),j(J,{key:1})),k(l,{class:"mt-5"})]))}}))}}});
