import{a0 as m,a1 as z,f8 as G,$ as g,d as M,Z as A,O as V,a2 as ee,a3 as E,bu as te,a4 as N,f9 as ae,b0 as se,fa as ne,ad as oe,aS as re,r as v,dW as le,aw as ie,h as O,o as p,j as e,i as t,w as a,k as ce,N as ue,l as h,f1 as de,W as pe,c as C,H as _e,f2 as ve,F as S,E as fe,a9 as T,ae as me,p as x,A as k,f3 as ge,f4 as he,c8 as xe,c9 as ye,M as be,cS as Ce,fb as ke,U as we,B as Oe,v as $e}from"./index-9PRMimni.js";import{c as je}from"./category-CL0JJ3Je.js";const ze=m("avatar-group",`
 flex-wrap: nowrap;
 display: inline-flex;
 position: relative;
`,[z("expand-on-hover",[m("avatar",[g("&:not(:first-child)",`
 transition: margin .3s var(--n-bezier);
 `)]),g("&:hover",[G("vertical",[m("avatar",[g("&:not(:first-child)",`
 margin-left: 0 !important;
 `)])]),z("vertical",[m("avatar",[g("&:not(:first-child)",`
 margin-top: 0 !important;
 `)])])])]),G("vertical",`
 flex-direction: row;
 `,[m("avatar",[g("&:not(:first-child)",`
 margin-left: var(--n-gap);
 `)])]),z("vertical",`
 flex-direction: column;
 `,[m("avatar",[g("&:not(:first-child)",`
 margin-top: var(--n-gap);
 `)])])]),Ae=Object.assign(Object.assign({},E.props),{max:Number,maxStyle:[Object,String],options:{type:Array,default:()=>[]},vertical:Boolean,expandOnHover:Boolean,size:[String,Number]}),Ne=M({name:"AvatarGroup",props:Ae,slots:Object,setup(n){const{mergedClsPrefixRef:_,mergedRtlRef:c}=ee(n),r=E("AvatarGroup","-avatar-group",ze,ae,n,_);se(ne,n);const d=te("AvatarGroup",c,_),f=N(()=>{const{max:o}=n;if(o===void 0)return;const{options:l}=n;return l.length>o?l.slice(o-1,l.length):[]}),y=N(()=>{const{options:o,max:l}=n;return l===void 0?o:o.length>l?o.slice(0,l-1):o.length===l?o.slice(0,l):o});return{mergedTheme:r,rtlEnabled:d,mergedClsPrefix:_,restOptions:f,displayedOptions:y,cssVars:N(()=>({"--n-gap":r.value.self.gap}))}},render(){const{mergedClsPrefix:n,displayedOptions:_,restOptions:c,mergedTheme:r,$slots:d}=this;return A("div",{class:[`${n}-avatar-group`,this.rtlEnabled&&`${n}-avatar-group--rtl`,this.vertical&&`${n}-avatar-group--vertical`,this.expandOnHover&&`${n}-avatar-group--expand-on-hover`],style:this.cssVars,role:"group"},_.map(f=>d.avatar?d.avatar({option:f}):A(V,{src:f.src,theme:r.peers.Avatar,themeOverrides:r.peerOverrides.Avatar})),c!==void 0&&c.length>0&&(d.rest?d.rest({options:c,rest:c.length}):A(V,{style:this.maxStyle,theme:r.peers.Avatar,themeOverrides:r.peerOverrides.Avatar},{default:()=>`+${c.length}`})))}});function Se(n){return oe.Get("/video/list",{params:n})}const Ve={class:"mt-4 text-center"},Be={class:"mt-3 tab2"},Le={class:"flex items-start justify-between pb-2 classification"},Re={class:"flex-grow"},Ge={class:"flex items-start justify-between pt-5 border-none classification"},Te={class:"flex-grow mt-1"},Me={class:"p-2"},Ee={class:"text-base font-bold truncate"},He={class:"py-1 text-gray-500 roy-line-2"},Ie={class:"flex items-center justify-between text-gray-400"},Pe={class:"text-xs"},De=M({__name:"search-video",setup(n){re(i=>({a57799a4:h(B).borderColor,"7fb088ca":h(B).primaryColor}));const _=v(!0),c=v(-1),r=v(!1),d=v(),f=v(),y=v(12),o=v(!0),l=v("1"),B=le();async function H(){const i=await je();d.value=i&&i.list?i.list:[],_.value=!1}function I(i){c.value=i}function P(){r.value=!r.value}async function L(){const i=await Se({pageSize:y.value});f.value=i&&i.list?i.list:[],o.value=!1}function D(){o.value=!0,y.value=y.value+12,L()}return ie(()=>{H(),L()}),(i,s)=>{const $=ue,U=ce,w=pe,F=ve,R=_e,W=me,j=ye,K=xe,Z=Ce,q=V,J=Ne,Q=be,X=we,Y=Oe;return p(),O("div",null,[e(w,{bordered:!1,class:"search-box radius-10"},{default:a(()=>[s[1]||(s[1]=t("h2",{class:"text-lg"},"搜索列表（视频）",-1)),t("div",Ve,[e(U,{round:"",placeholder:"请输入关键字",style:{width:"400px"}},{prefix:a(()=>[e($,{component:h(de)},null,8,["component"])]),_:1})])]),_:1}),t("div",Be,[e(w,{bordered:!1,class:"radius-10"},{default:a(()=>[t("div",null,[t("div",Le,[_.value?(p(),C(R,{key:0,vertical:"",inline:!1,style:{width:"100%"}},{default:a(()=>[e(F,{text:"",repeat:3,size:"small",height:"10px"})]),_:1})):(p(),O(S,{key:1},[s[2]||(s[2]=t("div",{class:"flex-none label"},"分类: ",-1)),t("div",Re,[e(R,{size:"small",class:fe(r.value?"":"height-limited")},{default:a(()=>[(p(!0),O(S,null,T(d.value,(u,b)=>(p(),C(W,{key:b,onClick:Ue=>I(b),bordered:!1,checked:c.value==b,checkable:"",class:"mb-3"},{default:a(()=>[x(k(u.name),1)]),_:2},1032,["onClick","checked"]))),128))]),_:1},8,["class"])]),t("div",{class:"flex items-center justify-end flex-none cursor-pointer collapse-btn",onClick:P},[x(k(r.value?"收起":"展开")+" ",1),e($,{size:"20"},{default:a(()=>[r.value?(p(),C(h(ge),{key:0,class:"ml-1"})):(p(),C(h(he),{key:1,class:"ml-1"}))]),_:1})])],64))]),t("div",Ge,[s[6]||(s[6]=t("div",{class:"flex-none label"},"排序:",-1)),t("div",Te,[e(K,{value:l.value,"onUpdate:value":s[0]||(s[0]=u=>l.value=u)},{default:a(()=>[e(j,{value:"1"},{default:a(()=>s[3]||(s[3]=[x("最新")])),_:1}),e(j,{value:"2",class:"ml-3"},{default:a(()=>s[4]||(s[4]=[x("最热")])),_:1}),e(j,{value:"3",class:"ml-3"},{default:a(()=>s[5]||(s[5]=[x("评分最高")])),_:1})]),_:1},8,["value"])])])])]),_:1}),e(X,{cols:"2 s:3 m:3 l:4 xl:4 2xl:6",responsive:"screen","x-gap":12,"y-gap":12,class:"mt-3 list"},{default:a(()=>[(p(!0),O(S,null,T(f.value,u=>(p(),C(Q,{key:u.id},{default:a(()=>[e(w,{bordered:!1,class:"card radius-10"},{default:a(()=>[e(Z,{width:"100%",src:u.cover,class:"cover"},null,8,["src"]),t("div",Me,[t("div",null,[t("h3",Ee,k(u.title),1),t("p",He,"简介："+k(u.summary),1)]),t("div",Ie,[t("div",null,[e($,{size:"16",class:"mr-1"},{default:a(()=>[e(h(ke))]),_:1}),t("span",Pe,k(u.viewingtimes)+"万",1)]),e(J,{options:u.avatargroup,size:30,max:3},{avatar:a(({option:{src:b}})=>[e(q,{src:b},null,8,["src"])]),_:2},1032,["options"])])])]),_:2},1024)]),_:2},1024))),128))]),_:1}),e(w,{bordered:!1,class:"mt-3 text-center radius-10"},{default:a(()=>[e(Y,{loading:o.value,onClick:D},{default:a(()=>s[7]||(s[7]=[x("加载更多")])),_:1},8,["loading"])]),_:1})])])}}}),Ke=$e(De,[["__scopeId","data-v-56db3be1"]]);export{Ke as default};
