import{_ as e}from"./chunk-M9zU1roC.js";import{a as t,c as l,f as s,d as o}from"./souav-I_ihqEhP.js";import{C as i,r as n,b as a,P as c,S as p,M as r,Q as d,X as x,V as f,u,R as m,H as v,U as y,N as g}from"./chunk-BRI0aX6c.js";const w={class:"flex w-full flex-col"},k={class:"mt-3 flex w-full flex-row items-center justify-between px-2"},h={class:"text-[20px] font-bold text-white flex items-center gap-0.5 leading-none"},_={class:"mt-2 grid grow grid-cols-5 gap-x-[3px] gap-y-[5px] px-1"},b=["onClick"],L={class:f(["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]"])},j={key:2,class:"mt-2 grid grid-cols-2 gap-x-2 gap-y-2 px-1"},C={class:"text-[12px]"},B=i({__name:"SectionView1",props:{name:{},vodList:{},isMore:{type:Boolean},typeId:{},icon:{}},setup(i){const B=t(),M=i,S=M.icon||"icon-play",I=n(),N=l();function T(){var e,t,l;0===(null==(e=I.value)?void 0:e.type_pid)?o("/filter/".concat(I.value.type_id),{pageNo:1}):o("/filter/".concat(null==(t=I.value)?void 0:t.type_pid,"/").concat(null==(l=I.value)?void 0:l.type_id),{pageNo:1})}return a(()=>{for(const e of N.mainTypes)if(e.type_id.toString()===M.typeId){I.value=e;break}if(!I.value)for(const e of N.secondTypes)if(e.type_id.toString()===M.typeId){I.value=e;break}}),(t,l)=>(g(),c("div",w,[p("div",k,[p("span",h,[p("i",{class:f([u(S),"iconfont text-orange-500 h-[26px]"]),style:{"font-size":"26px"}},null,2),x(m(t.name),1)]),t.isMore?(g(),c("div",{key:0,class:"flex flex-row items-center text-[12px] text-white",onClick:T},l[0]||(l[0]=[p("span",{class:"text-[14px]"},"更多",-1),p("i",{class:"iconfont icon-arrow"},null,-1)]))):d("",!0)]),p("div",_,[(g(!0),c(v,null,y(u(B).gridTextAd,(e,t)=>(g(),c("div",{class:"col-span-1 min-w-0 overflow-hidden",key:t,onClick:t=>{return l=e,void s.clickAd(l);var l}},[p("a",L,m(e.title),1)],8,b))),128))]),t.vodList.length>0?(g(),r(e,{key:0,model:M.vodList[0],class:"mt-2 px-1"},null,8,["model"])):d("",!0),t.vodList.length>1?(g(),r(e,{key:1,model:M.vodList[1],class:"mt-2 px-1"},null,8,["model"])):d("",!0),t.vodList.length>2?(g(),c("div",j,[(g(!0),c(v,null,y(M.vodList.slice(2),(t,l)=>(g(),r(e,{model:t,key:l,rounded:"5px"},null,8,["model"]))),128))])):d("",!0),t.isMore?(g(),c("div",{key:3,class:"mt-5 flex flex-row items-center justify-center leading-none text-white",onClick:T},[p("p",C,"更多"+m(t.name),1),l[1]||(l[1]=p("i",{class:"iconfont icon-arrow ml-1",style:{"font-size":"11px"}},null,-1))])):d("",!0)]))}});export{B as _};
