import{_ as e}from"./chunk-M9zU1roC.js";import{a as t,c as s,f as o,d as i}from"./souav-I_ihqEhP.js";import{C as l,r as n,b as a,P as p,S as c,M as r,Q as d,X as u,V as x,u as m,R as f,H as y,U as v,N as k}from"./chunk-BRI0aX6c.js";import"./chunk-Cc8vDyyC.js";import"./chunk-D1JGNTfG.js";import"./chunk-9PZSJnHb.js";import"./chunk-Bf-nSo-6.js";import"./chunk-DwkOxDMO.js";import"./chunk-CMQyd8eO.js";import"./chunk-a7obrEbD.js";import"./chunk-DQhVL27x.js";import"./chunk-cn7T4ICr.js";import"./chunk-Bh3yC0yB.js";import"./chunk-DjdYu-xF.js";import"./chunk-BHPWSuhB.js";/* empty css              */const h={class:"flex w-full flex-col"},g={class:"mt-3 flex w-full flex-row items-center justify-between px-2"},w={class:"text-[20px] font-bold text-white flex items-center gap-0.5 leading-none"},j={class:"mt-2 grid grow grid-cols-5 gap-x-[3px] gap-y-[5px] px-1"},_=["onClick"],b={class:x(["block w-full max-w-full justify-center truncate overflow-hidden rounded-[3px] border-[1px] border-[#5B5B5B] px-[1px] py-[2px] text-center text-[12px] font-medium text-ellipsis whitespace-nowrap text-[#74EF79]"])},L={key:1,class:"mt-2 grid grid-cols-2 gap-x-2 gap-y-2 px-1"},C={class:"text-[12px]"},I=l({__name:"SectionView3",props:{name:{},vodList:{},isMore:{type:Boolean},typeId:{},icon:{}},setup(l){const I=t(),S=l,M=S.icon||"icon-play",T=n(),B=s();function N(){var e,t,s;0===(null==(e=T.value)?void 0:e.type_pid)?i("/filter/".concat(T.value.type_id),{pageNo:1}):i("/filter/".concat(null==(t=T.value)?void 0:t.type_pid,"/").concat(null==(s=T.value)?void 0:s.type_id),{pageNo:1})}return a(()=>{for(const e of B.mainTypes)if(e.type_id.toString()===S.typeId){T.value=e;break}if(!T.value)for(const e of B.secondTypes)if(e.type_id.toString()===S.typeId){T.value=e;break}}),(t,s)=>(k(),p("div",h,[c("div",g,[c("span",w,[c("i",{class:x([m(M),"iconfont text-orange-500 h-[26px]"]),style:{"font-size":"26px"}},null,2),u(f(t.name),1)]),t.isMore?(k(),p("div",{key:0,class:"flex flex-row items-center text-[12px] text-white",onClick:N},s[0]||(s[0]=[c("span",{class:"text-[14px]"},"更多",-1),c("i",{class:"iconfont icon-arrow"},null,-1)]))):d("",!0)]),c("div",j,[(k(!0),p(y,null,v(m(I).gridTextAd,(e,t)=>(k(),p("div",{class:"col-span-1 min-w-0 overflow-hidden",key:t,onClick:t=>{return s=e,void o.clickAd(s);var s}},[c("a",b,f(e.title),1)],8,_))),128))]),t.vodList.length>0?(k(),r(e,{key:0,model:S.vodList[0],class:"mt-2 px-1"},null,8,["model"])):d("",!0),t.vodList.length>2?(k(),p("div",L,[(k(!0),p(y,null,v(S.vodList.slice(1),(t,s)=>(k(),r(e,{model:t,key:s,rounded:"5px"},null,8,["model"]))),128))])):d("",!0),t.isMore?(k(),p("div",{key:2,class:"mt-5 flex flex-row items-center justify-center leading-none text-white",onClick:N},[c("p",C,"更多"+f(t.name),1),s[1]||(s[1]=c("i",{class:"iconfont icon-arrow ml-1",style:{"font-size":"11px"}},null,-1))])):d("",!0)]))}}),S={class:"flex w-full flex-col gap-2"},M=l({__name:"ClassifySectionView",props:{list:{}},setup:e=>(a(()=>{}),(e,t)=>(k(),p("div",S,[(k(!0),p(y,null,v(e.list,(e,t)=>(k(),r(I,{vodList:e.videoList,name:e.extendTypeName,typeId:e.extendTypeId.toString(),isMore:!0,key:t},null,8,["vodList","name","typeId"]))),128))])))});export{M as default};
