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