/* sohutv 2025-02-12 15:14:36 */ var q=(l,t,e)=>new Promise((r,u)=>{var p=d=>{try{v(e.next(d))}catch(f){u(f)}},c=d=>{try{v(e.throw(d))}catch(f){u(f)}},v=d=>d.done?r(d.value):Promise.resolve(d.value).then(p,c);v((e=e.apply(l,t)).next())});import{d as z,m as xe,c as y,u as Fe,a as o,F as D,r as E,o as a,n as j,b as K,e as i,t as L,f as nt,p as te,g as ae,_ as R,h as C,w as Q,i as re,j as W,k as N,l as ee,q as m,s as O,v as ct,x as we,y as Y,z as ne,A as le,B as ke,C as $e,D as Ee,E as F,G as Ie,P as Ce,H as et,I as ce,S as Re,J as ue,K as ze,L as Se,M as ut,T as dt,N as vt,O as me,Q as pt,R as ht,U as _t,V as ft,W as mt,X as gt}from"./lazyload-P4h55PFM.js";const yt=l=>(te("data-v-28fdfc3c"),l=l(),ae(),l),kt={class:"switch-tab"},bt=["onClick"],wt={class:"text"},Lt=yt(()=>i("div",{class:"indicator"},null,-1)),Tt=z({__name:"SwitchTab",props:xe({tabItemList:{},changeDisabled:{type:Boolean}},{modelValue:{required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(l){const t=l,e=y(()=>t.changeDisabled),r=Fe(l,"modelValue"),{select:u}=nt({model:r,changeDisabled:e});return(p,c)=>(a(),o("div",kt,[(a(!0),o(D,null,E(p.tabItemList,(v,d)=>(a(),o("div",{class:j(["switch-tab-item",{"switch-tab-item--selected":v.key===r.value}]),key:v.key,onClick:f=>K(u)(v.key)},[i("div",wt,L(v.name),1),Lt],10,bt))),128))]))}}),xt=R(Tt,[["__scopeId","data-v-28fdfc3c"]]);function Le(l,t){({}).toString.call(l)!="[object Date]"&&(l=new Date(parseInt(l)));var e={"y+":l.getFullYear(),"M+":l.getMonth()+1,"d+":l.getDate(),"h+":l.getHours(),"m+":l.getMinutes(),"s+":l.getSeconds()};for(var r in e)new RegExp("("+r+")").test(t)&&(t=t.replace(RegExp.$1,("00"+e[r]).slice(~RegExp.$1.length+1)));return t}const $t="/s/search/assets/icon-baida-DhLeo2wT.svg";let ge="";const Je={check(l){return new Promise((t,e)=>{var r;(r=window.sohuHD)==null||r.getJSONP(`//push.my.tv.sohu.com/user/a/fo/batchJudge.do?callback=?&uids=${l}&passport=${sohuHD.passport.getPassport()}`,u=>{u.sigKey&&(ge=u.sigKey),t(u)})})},sub(l){return new Promise((t,e)=>q(this,null,function*(){var r;ge||(yield this.check(l)),(r=window.sohuHD)==null||r.getJSONP(`//push.my.tv.sohu.com/user/a/fo/batchadd.do?callback=?&uids=${l}&sigKey=${ge}&passport=${sohuHD.passport.getPassport()}`,u=>{t(u)})}))},unsub(l){return new Promise((t,e)=>q(this,null,function*(){var r;ge||(yield this.check(l)),(r=window.sohuHD)==null||r.getJSONP(`//push.my.tv.sohu.com/user/a/fo/batchcancel.do?callback=?&uids=${l}&sigKey=${ge}&passport=${sohuHD.passport.getPassport()}`,u=>{t(u)})}))}},It=["href"],Ct=z({__name:"Rss",props:{follow:[String,Number],uid:{type:[String,Number],required:!0}},emits:["onFollowChange"],setup(l,{emit:t}){const e=l,r=t,u=C(e.follow==1);Q(()=>e.follow,()=>{u.value=e.follow==1});function p(d,f){d!==f&&r("onFollowChange",d?"changeToFollow":"changeToUnfollow")}const c=()=>q(this,null,function*(){var d,f;if(v("search-usersubscribe"),v("search-userpgc"),!((d=window.sohuHD)!=null&&d.passport.getPassport()))(f=window.sohuHD)==null||f.showLoginWinbox(()=>q(this,null,function*(){const h=yield Je.sub(e.uid);p(h.status==1,u.value),u.value=h.status==1}));else{const h=yield Je.sub(e.uid);p(h.status==1,u.value),u.value=h.status==1}});function v(d){d&&window.messagebus&&window.messagebus.publish("statV2.ping.searchResult",{type:"click",txid:d})}return(d,f)=>u.value?(a(),o("a",{key:0,class:"rss-btn rssed",href:"/user/"+l.uid,target:"_blank",onClick:f[0]||(f[0]=h=>v("search-homepage"))},"鍘荤湅鐪",8,It)):(a(),o("a",{key:1,href:"javascript:;",class:"rss-btn",onClick:f[1]||(f[1]=h=>c())},"鍏虫敞"))}}),Vt=R(Ct,[["__scopeId","data-v-9f58dbfd"]]),Oe=l=>(te("data-v-b8239147"),l=l(),ae(),l),At={class:"bz-item","pb-click-a":"","pb-impress":"","data-pb-txid":"search-userpgc"},Nt={class:"pic"},St=["href"],Pt={class:"author-photo"},Dt={class:"author-photo_inner"},Mt={class:"photo-cover_wrap"},Bt=Oe(()=>i("span",{class:"photo-live"},"鐩存挱涓",-1)),Ft=["href"],Et={class:"info"},Rt={class:"title"},zt={class:"name ellipsis"},Ot=["href"],Ht={key:0,class:"tag"},Ut={key:1,class:"baida",src:$t},jt={key:0},Kt=Oe(()=>i("span",{class:"split-line"},null,-1)),qt={key:1},Xt=Oe(()=>i("span",{class:"split-line"},null,-1)),Gt={class:"ellipsis"},Wt={key:0},Jt=z({__name:"Bz",props:{info:{type:Object,default:()=>({rawData:{},isLive:!1,authorAvatar:"",authorName:"",isBaida:!1,uid:0,videoCount:0,desc:"",isFollow:0})},cardType:{type:String,default:"inBozhu"}},setup(l){const t=l,e=C("");q(this,null,function*(){const h=yield ct.getCurrInfo();e.value=String((h==null?void 0:h.id)||(h==null?void 0:h.uid))});const u=h=>{if(!h.uid)return"";let P=`/user/${h.uid}`;return h.isLive&&(h.course&&h.courseId?P=`//m.tv.sohu.com/upload/h5/xiaoke/course.html?roomId=${h.roomId||h.uid}&courseId=${h.courseId}`:P=`/sohulive/index.shtml?roomId=${h.roomId||h.uid}`),P},p=h=>{let{pgc_level:P}=h,I;if(h.hasOwnProperty("isStarAccount")?I=h.isStarAccount:h.hasOwnProperty("is_star_account")&&(I=h.is_star_account),I)return"star";switch(String(P)){case"0":return"normal";case"1":return"gold";case"2":return"normal";case"3":return"new";case"4":case"5":return"org";default:return""}};function c(h){return h<1e4?h+"":(h/1e4).toFixed(1)+"涓"}const v=C(0);function d(h){h==="changeToFollow"?v.value+=1:h==="changeToUnfollow"&&(v.value-=1)}function f(){t.info.isLive||window.messagebus&&window.messagebus.publish("statV2.ping.searchResult",{type:"click",txid:"search-homepage"})}return(h,P)=>{const I=re("lazyload");return a(),o("div",At,[i("div",Nt,[l.info.isLive?(a(),o("a",{key:0,class:"author-item author-item_live item-live",href:u(l.info.rawData),target:"_blank"},[i("div",Pt,[i("div",Dt,[i("div",Mt,[W((a(),o("img",{class:"photo-cover global-general-background",key:l.info.authorAvatar,src:"//css.tv.itc.cn/channel/v2/index-images/default_t.svg"})),[[I,l.info.authorAvatar]]),Bt])])])],8,St)):(a(),o("a",{key:1,href:u(l.info.rawData),target:"_blank",onClick:f},[i("div",{class:j(["pic-head",p(l.info.rawData)])},[W((a(),o("img",{class:"global-general-background",key:l.info.authorAvatar,src:"//css.tv.itc.cn/channel/v2/index-images/default_t.svg",alt:""})),[[I,l.info.authorAvatar]])],2)],8,Ft))]),i("div",Et,[i("div",Rt,[i("div",zt,[i("a",{target:"_blank",href:u(l.info.rawData),onClick:f},[N(ee,{text:l.info.authorName},null,8,["text"])],8,Ot)]),l.cardType==="inNeiRong"?(a(),o("div",Ht,"鎾富")):m("",!0),l.info.isBaida?(a(),o("img",Ut)):m("",!0)]),l.cardType==="inBozhu"?(a(),o("div",jt,[O("鐢ㄦ埛ID锛"+L(l.info.uid),1),Kt,O(L(l.info.videoCount)+"涓棰",1)])):l.cardType==="inNeiRong"?(a(),o("div",qt,[O("绮変笣鏁帮細"+L(c(l.info.subscribeCount+v.value)),1),Xt,O("鎾斁鏁帮細"+L(c(l.info.playCount)),1)])):m("",!0),i("div",Gt,L(l.info.desc),1)]),e.value!=l.info.uid?(a(),o("div",Wt,[N(Vt,{uid:l.info.uid,follow:l.info.isFollow,onOnFollowChange:d},null,8,["uid","follow"])])):m("",!0)])}}}),tt=R(Jt,[["__scopeId","data-v-b8239147"]]);function Yt({model:l,totalPageNum:t,maxShowNum:e}){const r=y(()=>t.value>e.value),u=y(()=>Math.floor(e.value/2)),p=y(()=>{let P,I;return r.value?l.value<=u.value?(P=e.value-3,I=2):l.value>u.value&&l.value<=t.value-u.value?(P=e.value-4,I=l.value-Math.floor((P-1)/2)):(P=e.value-3,I=t.value-P):(I=0,P=0),{start:I,len:P}}),c=y(()=>r.value&&p.value.start>2),v=y(()=>r.value&&p.value.start+p.value.len{l.value=P},goPrev:()=>{l.value>1&&--l.value},goNext:()=>{l.valuet.totalPageNum),u=y(()=>t.maxShowNum),{go:p,goPrev:c,goNext:v,needScroll:d,middlePageNumRange:f,isLeftEllipsisBtnShowed:h,isRightEllipsisBtnShowed:P}=Yt({model:e,totalPageNum:r,maxShowNum:u}),I=y(()=>new Array(f.value.len).fill(f.value.start).map((M,w)=>M+w));return(M,w)=>(a(),o("div",Zt,[i("div",{class:j(["paging__switch paging__switch--left",{"paging__switch--disabled":e.value===1}]),onClick:w[0]||(w[0]=(...n)=>K(c)&&K(c)(...n))}," 涓婁竴椤 ",2),K(d)?(a(),o(D,{key:0},[i("div",{class:j(["paging__page-btn",{"paging__page-btn--selected":e.value===1}]),onClick:w[1]||(w[1]=n=>K(p)(1))},"1 ",2),W(i("div",Qt,"...",512),[[we,K(h)]]),(a(!0),o(D,null,E(I.value,n=>(a(),o("div",{class:j(["paging__page-btn",{"paging__page-btn--selected":n===e.value}]),key:n,onClick:S=>K(p)(n)},L(n),11,ea))),128)),W(i("div",ta,"...",512),[[we,K(P)]]),i("div",{class:j(["paging__page-btn",{"paging__page-btn--selected":r.value===e.value}]),onClick:w[2]||(w[2]=n=>K(p)(r.value))},L(r.value),3)],64)):(a(!0),o(D,{key:1},E(r.value,n=>(a(),o("div",{class:j(["paging__page-btn",{"paging__page-btn--selected":n===e.value}]),key:n,onClick:S=>K(p)(n)},L(n),11,aa))),128)),i("div",{class:j(["paging__switch paging__switch--right",{"paging__switch--disabled":e.value===r.value}]),onClick:w[3]||(w[3]=(...n)=>K(v)&&K(v)(...n))}," 涓嬩竴椤 ",2)]))}}),at=R(sa,[["__scopeId","data-v-7812d1a5"]]),oa=l=>(te("data-v-cdb5cbf4"),l=l(),ae(),l),ia={key:0,class:"bz-box"},la={class:"bz-list"},ra={key:1,class:"empty"},na=oa(()=>i("span",{class:"empty-text"},"鏃犵浉鍏冲唴瀹",-1)),ca=z({__name:"BzList",setup(l){const{key:t,p:e}=Y(),r=C(Number(e)||1),u=C(10),p=C(0),c=C(),v=C(!0),d=C(!1),f=C(),h=y(()=>Math.ceil(p.value/u.value));Q(r,()=>{P()});const P=()=>q(this,null,function*(){v.value=!0;const{data:{data:M,status:w}}=yield ne.getUsers({key:t,f:(r.value-1)*u.value,s:u.value});if(v.value=!1,w!=200){d.value=!0,c.value=[],window.messagebus&&window.messagebus.publish("statV2.ping.searchResult",{type:"impress",txid:"search-noresult"});return}d.value=!!M.is_empty,d.value?window.messagebus&&window.messagebus.publish("statV2.ping.searchResult",{type:"impress",txid:"search-noresult"}):window.messagebus&&window.messagebus.publish("statV2.ping.searchResult",{type:"impress",txid:"search-result"}),M&&M.items&&!d.value&&(p.value=M.total_search_count,c.value=M.items.map(n=>({rawData:n,isLive:n.isLive,authorAvatar:n.smallPic,authorName:n.nickName,isBaida:n.title_id&&n.title_id===1,uid:n.uid,videoCount:n.videoNum,desc:n.desc,isFollow:n.isFollow})),le(()=>{window.dispatchEvent(new Event("scroll"))}).then(),window.scrollTo({top:0,left:0,behavior:"smooth"}))});Q(r,(M,w)=>{M!==w&&ke({p:r.value})});function I(){const M=Y();if(M.p){const w=Number(M.p);w!==r.value&&(r.value=w)}}return $e(()=>q(this,null,function*(){yield P(),window.addEventListener("popstate",I)})),Ee(()=>{window.removeEventListener("popstate",I)}),(M,w)=>(a(),o(D,null,[c.value&&c.value.length?(a(),o("div",ia,[i("div",la,[(a(!0),o(D,null,E(c.value,n=>(a(),F(tt,{class:"bz-item",key:n.uid,info:n,userId:f.value,cardType:"inBozhu"},null,8,["info","userId"]))),128))]),N(at,{"max-show-num":17,onChange:w[0]||(w[0]=n=>P()),"total-page-num":h.value,modelValue:r.value,"onUpdate:modelValue":w[1]||(w[1]=n=>r.value=n)},null,8,["total-page-num","modelValue"])])):m("",!0),d.value?(a(),o("div",ra,[N(Ce,null,{default:Ie(()=>[na]),_:1})])):m("",!0)],64))}}),ua=R(ca,[["__scopeId","data-v-cdb5cbf4"]]),da=l=>(te("data-v-d51f9bd8"),l=l(),ae(),l),va={key:0,"pb-click-a":"","data-pb-txid":"search-hotpugcuser"},pa=da(()=>i("div",{class:"bz-title"},"鐑棬鎾富鎺ㄨ崘",-1)),ha={class:"bz-item","pb-impress":"","data-pb-txid":"search-hotpugcuser"},_a={class:"pic","pb-click-a":"","data-pb-txid":"search-homepage"},fa=["href"],ma={class:"info","pb-click-a":"","data-pb-txid":"search-homepage"},ga={class:"title"},ya=["href"],ka={class:"desc"},ba=z({__name:"BzHot",setup(l){const t=C([]),e=u=>{let{pgcLevel:p,isStarAccount:c}=u;if(c)return"star";switch(String(p)){case"0":return"normal";case"1":return"gold";case"2":return"normal";case"3":return"new";case"4":case"5":return"org";default:return""}};return $e(()=>q(this,null,function*(){var p,c,v,d;const u=yield ne.getHotBz();(c=(p=u.data)==null?void 0:p.data)!=null&&c.recommendUserList&&(t.value=(d=(v=u.data)==null?void 0:v.data)==null?void 0:d.recommendUserList.slice(0,10))})),(u,p)=>{const c=re("lazyload");return t.value&&t.value.length?(a(),o("div",va,[pa,(a(!0),o(D,null,E(t.value,v=>(a(),o("div",ha,[i("div",_a,[i("a",{href:"/user/"+v.user.uid,target:"_blank"},[i("div",{class:j(["pic-head",e(v.user)])},[W((a(),o("img",{class:"global-general-background",key:v.user.smallPic,src:"//css.tv.itc.cn/channel/v2/index-images/default_t.svg",alt:""})),[[c,v.user.smallPic]])],2)],8,fa)]),i("div",ma,[i("div",ga,[i("a",{href:"/user/"+v.user.uid,target:"_blank"},L(v.user.nickName),9,ya)]),i("div",ka,L(v.user.desc),1)])]))),256))])):m("",!0)}}}),wa=R(ba,[["__scopeId","data-v-d51f9bd8"]]),La={class:"video-card"},Ta={class:"video-card__cover"},xa=["href"],$a=["alt"],Ia={key:0,class:"video-card__cover-footer"},Ca={key:1,class:"video-card__cover-tag-box"},Va={key:0,class:"video-card__desc ellipsis-2-line"},Aa=["href"],Na=z({__name:"VideoCard",props:{info:{}},setup(l){const t=l,e=y(()=>({playLink:t.info.playLink||"",tagText:t.info.tagText||"",tagType:t.info.tagType||"",tagArr:t.info.tagArr||[],title:t.info.title||"",coverImg:t.info.coverImg||"",coverText:t.info.coverText||""}));return(r,u)=>{const p=re("lazyload");return a(),o("div",La,[i("div",Ta,[i("a",{target:"_blank",href:e.value.playLink},[W((a(),o("img",{class:"video-card__cover-img",key:e.value.coverImg,src:"//css.tv.itc.cn/channel/v2/index-images/default_h.svg",alt:e.value.title},null,8,$a)),[[p,e.value.coverImg]]),e.value.coverText?(a(),o("div",Ia,L(e.value.coverText),1)):m("",!0),e.value.tagArr&&e.value.tagArr.length>0?(a(),o("div",Ca,[(a(!0),o(D,null,E(e.value.tagArr,c=>(a(),o("div",{class:j(["video-card__cover-tag","video-card__cover-tag--"+(c.type||"orange")])},L(c.text),3))),256))])):m("",!0)],8,xa)]),e.value.title?(a(),o("div",Va,[i("a",{target:"_blank",href:e.value.playLink},L(e.value.title),9,Aa)])):m("",!0)])}}}),Ve=R(Na,[["__scopeId","data-v-9d529335"]]),Sa={},Pa={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none"},Da=i("path",{fill:"currentColor","fill-rule":"evenodd",d:"M7.793 19.793 15.586 12 7.793 4.207a1 1 0 1 1 1.414-1.414L18.414 12l-9.207 9.207a1 1 0 0 1-1.414-1.414"},null,-1),Ma=[Da];function Ba(l,t){return a(),o("svg",Pa,Ma)}const de=R(Sa,[["render",Ba]]),Fa={class:"star-info-card"},Ea={class:"intro"},Ra={class:"avatar"},za=["href"],Oa=["alt"],Ha={class:"detail"},Ua={class:"name ellipsis"},ja=["href"],Ka={class:"short-desc ellipsis"},qa={class:"desc"},Xa={class:"more-detail-btn"},Ga=["href"],Wa={class:"tab"},Ja={class:"collection"},Ya={class:"collection-list"},Za={class:"person-card"},Qa=["src","alt"],es={class:"person-card__name"},ts=z({__name:"StarInfoCard",props:{info:{}},setup(l){const t=l,e=y(()=>({name:t.info.name||"",shortDesc:t.info.shortDesc||"",detailLink:t.info.detailLink||"",avatarImg:t.info.avatarImg||"",desc:t.info.desc||"",labelList:t.info.labelList||[],labelItemToContent:t.info.labelItemToContent||{}})),r=C(""),u=y(()=>(e.value.labelList.length&&(r.value=e.value.labelList[0]),e.value.labelList.filter(S=>["鐑棬浣滃搧","鐢佃鍓","鐢靛奖","鍙傚姞缁艰壓","鐑偣鏂伴椈","闊充箰MV"].includes(S)).map(S=>({key:S,name:S})))),p=C({});Q(u,S=>{S.forEach(g=>{let V=e.value.labelItemToContent[g.key]||[];const T=g.key==="鍚屽悕鏄庢槦"?10:6,A=Math.ceil(V.length/T);switch(g.key){case"鐑棬浣滃搧":case"鐢靛奖":case"鐢佃鍓":V=V.map(k=>({coverTag:k.corner_mark,coverImg:k.ver_big_pic,title:k.album_name,playLink:k.pc_url}));break;case"鍙傚姞缁艰壓":case"闊充箰MV":V=V.map(k=>({coverImg:k.ver_big_pic,coverText:k.pic_tip,title:k.video_name,playLink:k.h5_url}));break;case"鐑偣鏂伴椈":V=V.map(k=>({coverImg:k.hor_big_pic,coverText:k.pic_tip,title:k.video_name,playLink:k.pc_url}));break}p.value[g.key]={currPage:1,totalPage:A,numPerPage:T,list:V,txid:(k=>{switch(k){case"鐑棬浣滃搧":return"search-starworks";case"鐢靛奖":return"search-starmovie";case"鐢佃鍓":return"search-staralbum";case"鍙傚姞缁艰壓":return"search-starshow";case"闊充箰MV":return"search-starmusic";case"鐑偣鏂伴椈":return"search-starnews";default:return""}})(g.key)}})},{immediate:!0});const c=C(null);et(()=>{c.value=p.value[r.value]||null});const v=y(()=>c.value?c.value.currPage!==1:!1),d=y(()=>c.value?c.value.currPage!==c.value.totalPage:!1),f=y(()=>{if(!c.value)return[];const S=(c.value.currPage-1)*c.value.numPerPage,g=S+c.value.numPerPage;return c.value.list.slice(S,g)});function h(){c.value.currPage!==1&&--c.value.currPage}function P(){c.value.currPage!==c.value.totalPage&&++c.value.currPage}const I=y(()=>r.value==="鐢靛奖"||r.value==="鐢佃鍓"||r.value==="鐑棬浣滃搧"||r.value==="涓绘寔"),M=y(()=>r.value==="鍙傚姞缁艰壓"||r.value==="闊充箰MV"||r.value==="鐑偣鏂伴椈"),w=y(()=>r.value==="鍚屽悕鏄庢槦"),n=y(()=>{if(I.value)return"245px";if(M.value)return"100px";if(w.value)return"80px"});return(S,g)=>{const V=re("lazyload");return a(),o("div",Fa,[i("div",Ea,[i("div",Ra,[i("a",{target:"_blank",href:e.value.detailLink},[W((a(),o("img",{key:e.value.avatarImg,src:"//css.tv.itc.cn/channel/v2/index-images/default_t.svg",alt:e.value.name},null,8,Oa)),[[V,e.value.avatarImg]])],8,za)]),i("div",Ha,[i("div",Ua,[i("a",{target:"_blank",href:e.value.detailLink},[N(ee,{text:e.value.name},null,8,["text"])],8,ja)]),i("div",Ka,L(e.value.shortDesc),1),i("div",qa,[O(L(e.value.desc)+" ",1),i("div",Xa,[i("a",{href:e.value.detailLink,target:"_blank"},[O("鏇村璇︽儏 "),N(ce,{class:"arrow"})],8,Ga)])])])]),i("div",Wa,[N(Re,{"tab-item-list":u.value,modelValue:r.value,"onUpdate:modelValue":g[0]||(g[0]=T=>r.value=T),txid:"search-star"},null,8,["tab-item-list","modelValue"])]),i("div",Ja,[v.value?(a(),o("div",{key:0,class:"go-left-btn",style:ue({height:n.value})},[N(de,{class:"arrow",onClick:h})],4)):m("",!0),d.value?(a(),o("div",{key:1,class:"go-right-btn",style:ue({height:n.value})},[N(de,{class:"arrow",onClick:P})],4)):m("",!0),i("div",Ya,[I.value?(a(!0),o(D,{key:0},E(f.value,T=>(a(),F(ze,{class:"poster-card",info:T,"cover-tag-type":"album","pb-click-a":"","data-pb-txid":c.value.txid},null,8,["info","data-pb-txid"]))),256)):M.value?(a(!0),o(D,{key:1},E(f.value,T=>(a(),F(Ve,{class:"video-card",info:T,"pb-click-a":"","data-pb-txid":c.value.txid},null,8,["info","data-pb-txid"]))),256)):w.value?(a(!0),o(D,{key:2},E(f.value,T=>(a(),o("div",Za,[i("img",{class:"person-card__avatar",src:T.avatar,alt:T.name},null,8,Qa),i("div",es,L(T.name),1)]))),256)):m("",!0)])])])}}}),as=R(ts,[["__scopeId","data-v-e11c7cc5"]]),ss={class:"video-card-list"},os={class:"video-card"},is={key:0,class:"more-video-btn"},ls=["href"],rs=z({__name:"VideoCardList",props:{info:{},moreVideoBtnTxid:{}},setup(l){const t=l,e=y(()=>({moreVideoBtnThreshold:t.info.moreVideoBtnThreshold||5,videoList:t.info.videoList||[],moreVideoLink:t.info.moreVideoLink||"",alwaysShowMoreVideoBtn:t.info.alwaysShowMoreVideoBtn||!1})),r=y(()=>e.value.videoList.slice(0,e.value.moreVideoBtnThreshold)),u=y(()=>r.value.length&&(e.value.alwaysShowMoreVideoBtn||e.value.videoList.length>e.value.moreVideoBtnThreshold));function p(c){c&&window.messagebus&&window.messagebus.publish("statV2.ping.searchResult",{type:"click",txid:c})}return(c,v)=>(a(),o("div",ss,[(a(!0),o(D,null,E(r.value,d=>(a(),o("div",os,[N(Ve,{info:d},null,8,["info"])]))),256)),u.value?(a(),o("div",is,[i("a",{target:"_blank",href:e.value.moreVideoLink,onClick:v[0]||(v[0]=d=>p(c.moreVideoBtnTxid))},[O("鏇村瑙嗛 "),N(ce,{class:"arrow"})],8,ls)])):m("",!0)]))}}),st=R(rs,[["__scopeId","data-v-bf2f4e7b"]]),ns={class:"author-info-card"},cs={class:"basic-info"},us={key:0,class:"video-list","pb-click-a":"","data-pb-txid":"search-userpgc"},ds=z({__name:"AuthorInfoCard",props:{info:{}},setup(l){const t=l,e=y(()=>({rawData:t.info.rawData||{},uid:t.info.uid||0,authorName:t.info.authorName||"",authorAvatar:t.info.authorAvatar||"",authorLink:t.info.authorLink||"",desc:t.info.desc||"",moreVideoLink:t.info.moreVideoLink||"",videoCount:t.info.videoCount||0,subscribeCount:t.info.subscribeCount||0,playCount:t.info.playCount||0,videoList:t.info.videoList||[],isLive:t.info.isLive||0,isFollow:t.info.isFollow||0,isBaida:t.info.isBaida||!1}));return(r,u)=>(a(),o("div",ns,[i("div",cs,[N(tt,{"card-type":"inNeiRong",info:e.value},null,8,["info"])]),e.value.videoList&&e.value.videoList.length?(a(),o("div",us,[N(st,{info:{moreVideoLink:e.value.moreVideoLink,moreVideoBtnThreshold:5,alwaysShowMoreVideoBtn:!0,videoList:e.value.videoList},"more-video-btn-txid":"search-homepage"},null,8,["info"])])):m("",!0)]))}}),Pe=R(ds,[["__scopeId","data-v-11ebe3cb"]]),vs={class:"simple-info-card"},ps={class:"left"},hs={class:"right"},_s=["href"],fs={class:"detail"},ms=["href"],gs={class:"author-name ellipsis"},ys=["href"],ks={class:"update-time"},bs=z({__name:"SimpleInfoCard",props:{info:{}},setup(l){const t=l,e=y(()=>({updateTime:t.info.updateTime||"",title:t.info.title||"",authorName:t.info.authorName||"",authorLink:t.info.authorLink||"",authorAvatar:t.info.authorAvatar||"",videoTime:t.info.videoTime||"",playLink:t.info.playLink||"",coverImg:t.info.coverImg||"",tagArr:t.info.tagArr||[]}));return(r,u)=>{const p=re("lazyload");return a(),o("div",vs,[i("div",ps,[N(Ve,{info:{playLink:e.value.playLink,coverImg:e.value.coverImg,title:e.value.title,coverText:e.value.videoTime,tagArr:e.value.tagArr}},null,8,["info"])]),i("div",hs,[i("a",{class:"title ellipsis",target:"_blank",href:e.value.playLink},[N(ee,{text:e.value.title},null,8,["text"])],8,_s),i("div",fs,[e.value.authorLink?(a(),o(D,{key:0},[i("a",{target:"_blank",href:e.value.authorLink},[W((a(),o("img",{class:"author-avatar",key:e.value.authorAvatar,src:"//css.tv.itc.cn/channel/v2/index-images/default_t.svg"})),[[p,e.value.authorAvatar]])],8,ms),i("div",gs,[i("a",{target:"_blank",href:e.value.authorLink},L(e.value.authorName),9,ys)])],64)):m("",!0),i("div",ks,L(e.value.updateTime),1)])])])}}}),De=R(bs,[["__scopeId","data-v-90f12614"]]),ws=z({__name:"SwitchEpisodeTag",props:{standardType:{},isCustom:{type:Boolean},customConfig:{}},setup(l){const t=l,e={1:{textColor:"#562117",bg:"linear-gradient(90deg, #FFD4BC 0%, #DF9F8E 98%)",text:"浼氬憳"},2:{textColor:"#FFFFFF",bg:"linear-gradient(90deg, #35C892 0%, #1C9E69 98%)",text:"鏇存柊"},3:{textColor:"#FFFFFF",bg:"linear-gradient(90deg, #5BD6F4 0%, #3FA5CB 98%)",text:"棰勫憡"}},r=y(()=>{var f;let d="";return t.standardType&&e[t.standardType]?d=e[t.standardType].text:t.isCustom&&((f=t.customConfig)!=null&&f.text)&&(d=t.customConfig.text),d}),u=y(()=>{var f;let d="#FFFFFF";return t.standardType&&e[t.standardType]?d=e[t.standardType].textColor:t.isCustom&&((f=t.customConfig)!=null&&f.textColor)&&(d=t.customConfig.textColor),d}),p=y(()=>{var f;let d="none";return t.standardType&&e[t.standardType]?d=e[t.standardType].bg:t.isCustom&&((f=t.customConfig)!=null&&f.bg)&&(d=t.customConfig.bg),d}),c=y(()=>r.value.length<=2?.7:.66),v=y(()=>r.value.length<=2?24:r.value.length===3?31:Math.round(r.value.length*12*c.value)+7);return(d,f)=>r.value?(a(),o("div",{key:0,class:"switch-episode-tag",style:ue({background:p.value,width:`${v.value}px`})},[i("div",{class:"text",style:ue({color:u.value,transform:`scale(${c.value})`})},L(r.value),5)],4)):m("",!0)}}),Me=R(ws,[["__scopeId","data-v-91d6ff88"]]),Ls={class:"switch-episode-num-ver"},Ts={key:0,class:"switch-page"},xs={class:"num-btn-list"},$s=["href"],Is=["href"],ye=60,Cs=38,Ye=28,Vs=9,As=z({__name:"SwitchEpisodeNumVer",props:{info:{},noOpen:{type:Boolean}},setup(l){const t=l,e=y(()=>({aid:t.info.aid||null,totalVideoCount:t.info.totalVideoCount||0,initDataNeedEllipsis:t.info.initDataNeedEllipsis||!1,moreVideoLink:t.info.moreVideoLink||"",videoList:t.info.videoList||[]})),r=y(()=>e.value.totalVideoCount>ye&&!t.noOpen),u=y(()=>{if(!r.value)return[];const g=Math.ceil(e.value.totalVideoCount/ye),V=[];for(let T=0;Tq(this,null,function*(){g!==V&&(p.value[g]||(p.value[g]={isLoading:!1,list:[]}),g&&(yield v(g)))}));function v(g){return q(this,null,function*(){if(p.value[g].isLoading||p.value[g].list.length>0)return;p.value[g].isLoading=!0;const{data:V,error:T}=yield ne.getVideos({playlistid:e.value.aid,pagenum:Number(g),pagesize:ye});p.value[g].isLoading=!1,T&&console.log(T),V&&(p.value[g].list=V.videos.map(A=>{const k={num:[38,39].includes(A.tvSType)?A.episodeName:A.order,playLink:A.pageUrl};return S(A,V,k),k}))})}const d=y(()=>{var g,V;return((V=(g=p.value[c.value])==null?void 0:g.list)==null?void 0:V.length)>0?c.value==="1"&&I.value===!1?e.value.videoList:p.value[c.value].list:c.value==="1"?e.value.videoList:[]}),f=y(()=>c.value==="1"?e.value.initDataNeedEllipsis:d.value.length>Cs),h=y(()=>f.value?d.value.slice(0,Ye):d.value),P=y(()=>{if(f.value){const g=I.value?Ye:d.value.length-Vs;return d.value.slice(g)}else return[]}),I=C(!1);function M(){return q(this,null,function*(){var g;if(!((g=p.value[c.value])!=null&&g.isLoading)){if(t.noOpen){window.open(e.value.moreVideoLink,"_blank");return}c.value==="1"&&f.value&&p.value[1].list.length===0&&(yield v("1")),p.value[c.value].list.length>0&&(I.value=!0)}})}function w(){I.value=!1}function n(g){if(g&&g.publishTime){const V=g.publishTime.split("-"),T=parseInt(V[1])-1,A=Math.floor((new Date().getTime()-new Date(V[0],T,V[2]).getTime())/1e3/60/60/24);if(A>=0&&A<2)return!0}return!1}function S(g,V,T){if([1,4].indexOf(g.tvFeeType)!=-1&&g.tvFeeText)T.tag={isCustom:!0,customConfig:{text:g.tvFeeText.text,textColor:g.tvFeeText.textColor,bg:`linear-gradient(90deg, ${g.tvFeeText.textBgColorStart} 0%, ${g.tvFeeText.textBgColorEnd} 100%)`}};else{if(V&&V.tvIsIntrest)return;let A=0;g.tvIsFee===1?A=1:g.tvSType==2?A=3:n(g)&&(A=2),A&&(T.tag={standardType:A})}}return(g,V)=>(a(),o("div",Ls,[r.value?(a(),o("div",Ts,[N(Re,{"tab-item-list":u.value,modelValue:c.value,"onUpdate:modelValue":V[0]||(V[0]=T=>c.value=T)},null,8,["tab-item-list","modelValue"])])):m("",!0),i("div",xs,[(a(!0),o(D,null,E(h.value,(T,A)=>(a(),o("a",{class:"num-btn",key:T.num+T.playLink,href:T.playLink,target:"_blank"},[O(L(T.num),1),T.tag?(a(),F(Me,Se({key:0,class:"tag",ref_for:!0},T.tag),null,16)):m("",!0)],8,$s))),128)),f.value?(a(),o(D,{key:0},[I.value?m("",!0):(a(),o("a",{key:0,class:"num-btn",onClick:M},"...")),(a(!0),o(D,null,E(P.value,(T,A)=>(a(),o("a",{class:"num-btn",key:T.num+T.playLink,href:T.playLink,target:"_blank"},[O(L(T.num),1),T.tag?(a(),F(Me,Se({key:0,class:"tag",ref_for:!0},T.tag),null,16)):m("",!0)],8,Is))),128)),I.value?(a(),o("a",{key:1,class:"num-btn",onClick:w},"鏀惰捣")):m("",!0)],64)):m("",!0)])]))}}),Ns=R(As,[["__scopeId","data-v-a77c52ec"]]),Ss={class:"switch-episode-text-ver"},Ps=["href"],Ds={class:"text ellipsis"},Ms=["href"],Bs=z({__name:"SwitchEpisodeTextVer",props:{info:{}},setup(l){const t=l,e=y(()=>({moreVideoLink:t.info.moreVideoLink||"",videoList:t.info.videoList||[]})),r=y(()=>e.value.videoList.length>9?e.value.videoList.slice(0,8):e.value.videoList),u=y(()=>e.value.videoList.length>9);return(p,c)=>(a(),o("div",Ss,[(a(!0),o(D,null,E(r.value,v=>(a(),o("a",{class:"item",href:v.playLink,target:"_blank"},[i("div",Ds,L(v.date)+" "+L(v.title),1),v.tag?(a(),F(Me,Se({key:0,class:"tag",ref_for:!0},v.tag),null,16)):m("",!0)],8,Ps))),256)),u.value?(a(),o("a",{key:0,class:"item more-video-btn",href:e.value.moreVideoLink,target:"_blank"},[O(" 鏌ョ湅鏇村 "),N(ce,{class:"arrow"})],8,Ms)):m("",!0)]))}}),Fs=R(Bs,[["__scopeId","data-v-d4c95a80"]]),Es={class:"video-source-info-box"},Rs={class:"name"},zs={key:1,class:"name"},G=-28,Os=z({__name:"VideoSourceInfoBox",props:{name:{},textOnly:{type:Boolean},existNameSuffix:{},notExistNameSuffix:{}},setup(l){const t=l,e={qq:{name:"鑵捐",posX:0},m1905:{name:"1905鐢靛奖缃",posX:G},letv:{name:"涔愯",posX:G*2},ifeng:{name:"鍑ゅ嚢瑙嗛",posX:G*3},tudou:{name:"鍦熻眴瑙嗛",posX:G*4},iqiyi:{name:"鐖卞鑹",posX:G*5},funshion:{name:"椋庤瑙嗛",posX:G*6},cntv:{name:"CNTV",posX:G*7},youku:{name:"浼橀叿",posX:G*8},imgo:{name:"鑺掓灉TV",posX:G*9},baofeng:{name:"鏆撮褰遍煶",posX:G*10},kumi:{name:"閰风背",posX:G*11},pptv:{name:"PP瑙嗛",posX:G*12},kankan:{name:"杩呴浄",posX:G*13},wasu:{name:"鍗庢暟TV",posX:G*14},_56:{name:"56瑙嗛",posX:G*15}},r=y(()=>e.hasOwnProperty(t.name));return(u,p)=>(a(),o("div",Es,[r.value?(a(),o(D,{key:0},[u.textOnly?m("",!0):(a(),o("div",{key:0,class:"icon",style:ue({"background-position-x":e[u.name].posX+"px"})},null,4)),i("div",Rs,L(e[u.name].name)+L(u.existNameSuffix||""),1)],64)):(a(),o("div",zs,L(u.notExistNameSuffix||""),1))]))}}),Ze=R(Os,[["__scopeId","data-v-465a58f0"]]);function Hs({currPageNum:l,numPerPage:t,total:e}){const r=y(()=>Math.ceil(e.value/t.value)),u=y(()=>l.value>1),p=y(()=>l.value{u.value&&--l.value},goNext:()=>{p.value&&++l.value},needLeftArrow:u,needRightArrow:p}}const Us=l=>(te("data-v-54e19981"),l=l(),ae(),l),js={class:"select-item-suffix"},Ks=Us(()=>i("path",{fill:"currentColor","fill-rule":"evenodd",d:"M9.763 8.837q.127.126.292.194t.344.068q.088 0 .175-.017t.17-.051.155-.083.136-.112.112-.137.083-.155.052-.17.017-.175q0-.18-.07-.345-.068-.166-.195-.293L5.976 2.528.964 7.564q-.127.127-.195.292t-.068.343q0 .089.017.176t.052.169.083.155.112.137q.062.062.136.112.074.049.156.083t.169.05.175.018q.18 0 .346-.069t.292-.196l3.743-3.76z"},null,-1)),qs=[Ks],Xs=["onClick"],Gs=z({__name:"Select",props:xe({options:Array},{modelValue:{},modelModifiers:{}}),emits:xe(["update:modelValue","change"],["update:modelValue"]),setup(l,{emit:t}){const e=l,r=Fe(l,"modelValue"),u=y(()=>{var S;return(S=e.options)==null?void 0:S.find(g=>g.value==(r==null?void 0:r.value))}),p=t,c=C(!1),v=C(null),d=C(null),f=C(!1),h=C({}),P=()=>{c.value=!c.value,c.value&&le(()=>{var S;(S=v.value)==null||S.focus(),n()})},I=S=>{var g;p("update:modelValue",S==null?void 0:S.value),p("change",S==null?void 0:S.value),r.value=S==null?void 0:S.value,c.value=!1,(g=v.value)==null||g.blur()},M=S=>{if(f.value){f.value=!1;return}setTimeout(()=>{f.value||(c.value=!1)},0)},w=S=>{f.value=!0,S.preventDefault()},n=()=>{var S;if(c.value){const g=v.value.getBoundingClientRect(),V=(S=d.value)==null?void 0:S.getBoundingClientRect();h.value.left=g.left-Math.abs((g.width-V.width)/2)+"px",h.value.top=g.bottom+window.scrollY+"px"}};return(S,g)=>{var V;return a(),o("div",{class:"select-wrap",tabindex:"-1",ref_key:"selectRef",ref:v,onBlur:M},[i("div",{class:"select-item",onClick:P},[i("div",null,L((V=u.value)==null?void 0:V.label),1),i("div",js,[(a(),o("svg",{class:j(["arrow",{"is-reverse":c.value}]),viewBox:"0 0 12 12"},qs,2))])]),(a(),F(dt,{to:"body"},[W(i("div",{class:"select-dropdown",style:ue(h.value),ref_key:"dropdownRef",ref:d,onMousedown:ut(w,["prevent"])},[(a(!0),o(D,null,E(e.options,T=>(a(),o("div",{class:j(["select-options",{"is-select":T.value==r.value}]),key:T.value,onClick:A=>I(T)},L(T.label),11,Xs))),128))],36),[[we,c.value]])]))],544)}}}),ot=R(Gs,[["__scopeId","data-v-54e19981"]]),ve=l=>(te("data-v-d48b8498"),l=l(),ae(),l),Ws={class:"vrs-info-card"},Js={class:"info-box"},Ys={class:"info-box__left","pb-click-a":"","data-pb-txid":"album-play"},Zs=["href"],Qs=["alt"],eo={class:"info-box__right"},to={class:"title"},ao={class:"text ellipsis","pb-click-a":"","data-pb-txid":"album-play"},so=["href"],oo={class:"second-line"},io={key:0,class:"play-count"},lo={key:1,class:"score"},ro={class:"second-line-more-info"},no={key:0},co={key:0,class:"detail-line"},uo=ve(()=>i("div",{class:"label"},"涓绘紨锛",-1)),vo={class:"actor-wrap ellipsis"},po={class:"actor"},ho=["href"],_o={class:"detail-line"},fo={key:0,class:"line__part"},mo=ve(()=>i("div",{class:"label"},"瀵兼紨锛",-1)),go={class:"director-wrap ellipsis"},yo={class:"director"},ko=["href"],bo={key:1,class:"line__part"},wo=ve(()=>i("div",{class:"label"},"涓绘寔浜猴細",-1)),Lo={class:"host-wrap ellipsis"},To={class:"host"},xo=["href"],$o={key:2,class:"line__part line__part--no-shrink"},Io=ve(()=>i("div",{class:"label"},"鍦板尯锛",-1)),Co={class:"region-wrap"},Vo={class:"region"},Ao=["href"],No={key:3,class:"line__part line__part--no-shrink"},So=ve(()=>i("div",{class:"label"},"绫诲瀷锛",-1)),Po={class:"type-wrap"},Do={class:"type"},Mo=["href"],Bo={key:4,class:"line__part line__part--no-shrink",style:{overflow:"unset"}},Fo=ve(()=>i("div",{class:"label"},"鎾斁婧愶細",-1)),Eo={class:"video-source"},Ro={class:"desc"},zo={class:"more-detail-btn"},Oo=["href"],Ho=["href"],Uo=["href"],jo=["href"],Ko={key:0,class:"trailer-box"},qo={key:0,class:"go-left-btn"},Xo={key:1,class:"go-right-btn"},Go={class:"trailer-list"},Wo={class:"link-box","pb-click-a":"","data-pb-txid":"album-play"},Jo=z({__name:"VrsInfoCard",props:{info:{}},setup(l){const t=l,e=y(()=>({aid:t.info.aid||null,allSource:t.info.allSource||[],kisId:t.info.kisId,title:t.info.title||"",playLink:t.info.playLink||"",detailLink:t.info.detailLink||"",coverImg:t.info.coverImg||"",coverTag:t.info.coverTag||null,category:t.info.category||"",playCount:t.info.playCount||"",score:t.info.score||"",year:t.info.year||"",secondLineMoreInfoArr:t.info.secondLineMoreInfoArr||[],actorArr:t.info.actorArr||[],directorArr:t.info.directorArr||[],hostArr:t.info.hostArr||[],regionArr:t.info.regionArr||[],typeArr:t.info.typeArr||[],desc:t.info.desc||"",linkArr:t.info.linkArr||[""],linkArrType:t.info.linkArrType||"none",linkArrNumVerNeedEllipsis:t.info.linkArrNumVerNeedEllipsis||!1,videoSource:t.info.videoSource||"sohu",totalExistVideoCount:t.info.totalExistVideoCount||0,isTrailer:t.info.isTrailer||!1,trailerList:t.info.trailerList||[]})),r={qq:"鑵捐",m1905:"1905鐢靛奖缃",letv:"涔愯",ifeng:"鍑ゅ嚢瑙嗛",tudou:"鍦熻眴瑙嗛",iqiyi:"鐖卞鑹",funshion:"椋庤瑙嗛",cntv:"CNTV",youku:"浼橀叿",imgo:"鑺掓灉TV",baofeng:"鏆撮褰遍煶",kumi:"閰风背",pptv:"PP瑙嗛",kankan:"杩呴浄",wasu:"鍗庢暟TV",_56:"56瑙嗛"},u=y(()=>t.info.allSource.map(A=>({value:A.source,label:r[A.source]||""})).filter(A=>A.label!==""));Q(()=>t.info.videoSource,(A,k)=>q(this,null,function*(){if(A!==k){let X=t.info.allSource.find(J=>J.source===A).aid,$=yield ne.getVideosBySource(e.value.kisId,X),{videos:_,updateInfo:x}=$.data.data;if(t.info.videoSource=A,x&&(t.info.secondLineMoreInfoArr=[x]),t.info.linkArrType==="num"){let[J]=_.slice(-1);t.info.linkArrNumVerNeedEllipsis=J.video_order>38,t.info.linkArr=_.map(pe=>({num:pe.video_order,playLink:pe.url_html5}))}else t.info.linkArrType==="text"&&(t.info.linkArr=_.map(J=>({title:J.video_name,playLink:J.url_html5})))}}));const p=C(null);et(()=>{p.value&&h.value&&(p.value.setAttribute("pb-click-a",""),p.value.setAttribute("pb-impress",""),p.value.setAttribute("data-pb-txid","search-extresources"))});const c=y(()=>e.value.category==="鐢佃鍓"||e.value.category==="绾綍鐗"?"tag--red":"tag--orange"),v=y(()=>(e.value.category==="鐢靛奖"||e.value.category==="鐢佃鍓")&&e.value.actorArr&&e.value.actorArr.length>0),d=y(()=>(e.value.category==="鐢靛奖"||e.value.category==="鐢佃鍓")&&e.value.directorArr&&e.value.directorArr.length>0),f=y(()=>(e.value.category==="缁艰壓"||e.value.category==="绾綍鐗")&&e.value.hostArr&&e.value.hostArr.length>0),h=y(()=>e.value.videoSource!=="sohu");C([]),C(1);const P=C(1),I=y(()=>e.value.trailerList.length),M=C(6),{goPrev:w,goNext:n,needLeftArrow:S,needRightArrow:g}=Hs({currPageNum:P,total:I,numPerPage:M}),V=y(()=>{const A=(P.value-1)*M.value,k=A+M.value;return e.value.trailerList.slice(A,k)});function T(A){A&&window.messagebus&&window.messagebus.publish("statV2.ping.searchResult",{type:"click",txid:A})}return(A,k)=>{var $;const X=re("lazyload");return a(),o("div",Ws,[i("div",{ref_key:"extResoucesShangBaoRef",ref:p,style:{width:"100%"}},[i("div",Js,[i("div",Ys,[i("a",{target:"_blank",href:e.value.playLink},[W((a(),o("img",{class:"cover-img",key:e.value.coverImg,src:"//css.tv.itc.cn/channel/v2/index-images/default_v.svg",alt:e.value.title},null,8,Qs)),[[X,e.value.coverImg]]),e.value.coverTag?(a(),o("div",{key:0,class:j(["cover-tag",K(vt)(e.value.coverTag,"album")])},L(($=e.value.coverTag)==null?void 0:$.text),3)):m("",!0)],8,Zs)]),i("div",eo,[i("div",to,[i("div",ao,[i("a",{target:"_blank",href:e.value.playLink},[N(ee,{text:e.value.title},null,8,["text"])],8,so)]),i("div",{class:j(["tag",c.value])},L(e.value.category),3)]),i("div",oo,[e.value.playCount&&e.value.playCount!=="0"?(a(),o("div",io,L(e.value.playCount),1)):m("",!0),e.value.score?(a(),o("div",lo,L(e.value.score)+"鍒",1)):m("",!0),i("div",ro,[e.value.year?(a(),o("div",no,L(e.value.year),1)):m("",!0),(a(!0),o(D,null,E(e.value.secondLineMoreInfoArr,_=>(a(),o("div",null,[N(ee,{text:_},null,8,["text"])]))),256))])]),v.value?(a(),o("div",co,[uo,i("div",vo,[(a(!0),o(D,null,E(e.value.actorArr,_=>(a(),o("span",po,[i("a",{href:_.link,target:"_blank"},L(_.name),9,ho)]))),256))])])):m("",!0),i("div",_o,[d.value?(a(),o("div",fo,[mo,i("div",go,[(a(!0),o(D,null,E(e.value.directorArr,_=>(a(),o("span",yo,[i("a",{href:_.link,target:"_blank"},L(_.name),9,ko)]))),256))])])):m("",!0),f.value?(a(),o("div",bo,[wo,i("div",Lo,[(a(!0),o(D,null,E(e.value.hostArr,_=>(a(),o("span",To,[i("a",{href:_.link,target:"_blank"},L(_.name),9,xo)]))),256))])])):m("",!0),e.value.regionArr&&e.value.regionArr.length>0?(a(),o("div",$o,[Io,i("div",Co,[(a(!0),o(D,null,E(e.value.regionArr,_=>(a(),o("div",Vo,[i("a",{href:_.link,target:"_blank"},L(_.name),9,Ao)]))),256))])])):m("",!0),e.value.typeArr&&e.value.typeArr.length>0?(a(),o("div",No,[So,i("div",Po,[(a(!0),o(D,null,E(e.value.typeArr,_=>(a(),o("div",Do,[i("a",{href:_.link,target:"_blank"},L(_.name),9,Mo)]))),256))])])):m("",!0),h.value?(a(),o("div",Bo,[Fo,i("div",Eo,[u.value.length?(a(),F(ot,{key:0,modelValue:t.info.videoSource,"onUpdate:modelValue":k[0]||(k[0]=_=>t.info.videoSource=_),options:u.value},null,8,["modelValue","options"])):(a(),F(Ze,{key:1,name:e.value.videoSource,"text-only":"","not-exist-name-suffix":"澶栫珯"},null,8,["name"]))])])):m("",!0)]),i("div",Ro,[O(" 绠浠嬶細"+L(e.value.desc)+" ",1),i("div",zo,[i("a",{href:e.value.detailLink,target:"_blank",onClick:k[1]||(k[1]=_=>T("album-detail"))},[O("鏇村璇︽儏 "),N(ce,{class:"arrow"})],8,Oo)])]),e.value.isTrailer||!e.value.aid?(a(),o("a",{key:1,class:"play-btn",href:e.value.playLink,target:"_blank",onClick:k[2]||(k[2]=_=>T("album-play"))},"鏌ョ湅璇︽儏",8,Ho)):(a(),o(D,{key:2},[h.value?(a(),o("a",{key:0,class:"play-btn play-btn--other-site",href:e.value.playLink,target:"_blank",onClick:k[3]||(k[3]=_=>T("album-play"))},[N(Ze,{name:e.value.videoSource,"exist-name-suffix":"澶栫珯聽","not-exist-name-suffix":"澶栫珯"},null,8,["name"]),O(" 浠樿垂瑙傜湅 ")],8,Uo)):(a(),o("a",{key:1,class:"play-btn play-btn--normal-icon",href:e.value.playLink,target:"_blank",onClick:k[4]||(k[4]=_=>T("album-play"))},"绔嬪嵆瑙傜湅",8,jo))],64))])]),e.value.isTrailer&&V.value.length>0?(a(),o("div",Ko,[K(S)?(a(),o("div",qo,[N(de,{class:"arrow",onClick:K(w)},null,8,["onClick"])])):m("",!0),K(g)?(a(),o("div",Xo,[N(de,{class:"arrow",onClick:K(n)},null,8,["onClick"])])):m("",!0),i("div",Go,[(a(!0),o(D,null,E(V.value,_=>(a(),F(Ve,{class:"video-card",info:_},null,8,["info"]))),256))])])):m("",!0),i("div",Wo,[e.value.linkArrType==="num"?(a(),F(Ns,{key:0,info:{aid:e.value.aid,videoList:e.value.linkArr,moreVideoLink:e.value.detailLink,totalVideoCount:e.value.totalExistVideoCount,initDataNeedEllipsis:e.value.linkArrNumVerNeedEllipsis},"no-open":e.value.videoSource!=="sohu"},null,8,["info","no-open"])):e.value.linkArrType==="text"?(a(),F(Fs,{key:1,info:{videoList:e.value.linkArr,moreVideoLink:e.value.detailLink}},null,8,["info"])):m("",!0)])],512)])}}}),Yo=R(Jo,[["__scopeId","data-v-d48b8498"]]),Zo={key:0,class:"left"},Qo=["href"],ei=["src","alt"],ti={key:0,class:"live-cover-tag-box"},ai={class:"live-cover-tag live-cover-tag--live"},si={key:1,class:"live-cover-tag-box"},oi={class:"live-cover-tag live-cover-tag--cyan"},ii={class:"right"},li={class:"title ellipsis"},ri={key:0,class:"live-cover-tag-box"},ni={class:"live-cover-tag live-cover-tag--cyan"},ci=["href"],ui={key:0,class:"detail detail-yu"},di={class:"detail"},vi={class:"author"},pi=["href"],hi={class:"author-name ellipsis"},_i=["href"],fi={key:0,class:"date-and-time"},mi=["href"],gi={key:0,class:"play-time"},yi=z({__name:"LiveInfoCard",props:{info:{},vertical:{type:Boolean}},setup(l){const t=l,e=y(()=>({rawData:t.info.rawData||{},title:t.info.title||"",roomName:t.info.roomName||"",playLink:t.info.playLink||"",coverImg:t.info.coverImg||"",dateAndTime:t.info.dateAndTime||"",coverTag:t.info.coverTag||"",authorName:t.info.authorName||"",authorAvatar:t.info.authorAvatar||"",authorLink:t.info.authorLink||"",planTime:t.info.planTime||"",playTimeInfo:p(t.info.planTime||""),showType:t.info.showType||"",intro:t.info.intro||""})),r=y(()=>{if(e.value.showType==65){if(e.value.rawData.type==2)return{class:"live-cover-tag--cyan",text:"涓撲韩"};if(e.value.rawData.type===1)return{class:"live-cover-tag--cyan",text:"灏忚"}}else{if(e.value.rawData.avMedia===1)return{class:"live-cover-tag--blue-purple",text:"闊抽"};if(e.value.rawData.premiumId)return{class:"live-cover-tag--cyan",text:"涓撲韩"};if(e.value.rawData.course===1)return{class:"live-cover-tag--cyan",text:"灏忚"}}return null}),u=y(()=>t.info.showType==65&&!t.info.coverImg),p=c=>{const v=new Date().getTime();if(!c||c{var f;const d=re("lazyload");return a(),o("div",{class:j(["live-info-card",c.vertical?"live-info-card--vertical":"live-info-card--horizontal"])},[e.value.coverImg?(a(),o("div",Zo,[i("a",{target:"_blank",href:e.value.playLink},[W((a(),o("img",{class:"cover-img",key:e.value.coverImg,src:c.vertical?"//css.tv.itc.cn/channel/v2/index-images/default_v.svg":"//css.tv.itc.cn/channel/v2/index-images/default_h.svg",alt:e.value.title},null,8,ei)),[[d,e.value.coverImg]]),e.value.showType!=65?(a(),o("div",ti,[r.value?(a(),o("div",{key:0,class:j(["live-cover-tag",r.value.class])},L(r.value.text),3)):m("",!0),i("div",ai,L(e.value.coverTag),1)])):e.value.showType==65?(a(),o("div",si,[r.value?(a(),o("div",{key:0,class:j(["live-cover-tag",r.value.class])},L(r.value.text),3)):m("",!0),i("div",oi,L(e.value.coverTag),1)])):m("",!0)],8,Qo)])):m("",!0),i("div",ii,[i("div",li,[u.value?(a(),o("div",ri,[r.value?(a(),o("div",{key:0,class:j(["live-cover-tag",r.value.class])},L(r.value.text),3)):m("",!0),i("div",ni,L(e.value.coverTag),1)])):m("",!0),i("a",{target:"_blank",href:e.value.playLink},[N(ee,{text:e.value.roomName},null,8,["text"])],8,ci)]),e.value.showType==65&&e.value.intro?(a(),o("div",ui," 棰勫憡鎻忚堪锛"+L(e.value.intro),1)):m("",!0),i("div",di,[i("div",vi,[i("a",{target:"_blank",href:e.value.authorLink},[W((a(),o("img",{class:"author-avatar",key:e.value.authorAvatar,src:"//css.tv.itc.cn/channel/v2/index-images/default_t.svg"})),[[d,e.value.authorAvatar]])],8,pi),i("div",hi,[i("a",{target:"_blank",href:e.value.authorLink},[N(ee,{text:e.value.authorName},null,8,["text"])],8,_i)])]),e.value.dateAndTime?(a(),o("div",fi,L(e.value.dateAndTime),1)):m("",!0)]),i("div",{class:j(["play-info",{"play-info-noimage":u.value}])},[i("a",{class:j(["play-btn",{"play-btn-hot":e.value.showType==65}]),href:e.value.playLink,target:"_blank"},L(e.value.showType==65?"绔嬪嵆棰勭害":"瑙傜湅鐩存挱"),11,mi),e.value.showType==65&&e.value.planTime?(a(),o("div",gi,[O(L(K(Le)(e.value.planTime,"MM鏈坉d鏃 hh:mm"))+"寮鎾",1),(f=e.value.playTimeInfo)!=null&&f.hours&&parseInt(e.value.playTimeInfo.hours)<24?(a(),o(D,{key:0},[O("锛岃窛寮鎾"),i("span",null,L(e.value.playTimeInfo.hours),1),O("鏃"),i("span",null,L(e.value.playTimeInfo.minutes),1),O("鍒 ")],64)):m("",!0)])):m("",!0)],2)])],2)}}}),Be=R(yi,[["__scopeId","data-v-98e21484"]]),ki={class:"poster-card-list"},bi=z({__name:"PosterCardList",props:{list:{},coverTagType:{},txid:{}},setup(l){const t=l,e=y(()=>t.coverTagType||"poster");return(r,u)=>(a(),o("div",ki,[(a(!0),o(D,null,E(r.list,p=>(a(),F(ze,{key:p.key||p.playLink,info:p,"cover-tag-type":e.value,"pb-click-a":"","pb-impress":"","data-pb-txid":r.txid},null,8,["info","cover-tag-type","data-pb-txid"]))),128))]))}}),be=R(bi,[["__scopeId","data-v-b123e81a"]]),wi={class:"more-series"},Li={class:"title"},Ti={class:"collection"},xi={key:0,class:"go-left-btn"},$i={key:1,class:"go-right-btn"},Ii={class:"collection-list"},Ci=z({__name:"MoreSeries",props:{info:Object},setup(l){const t=l,e=C(1),r=y(()=>e.value>1),u=y(()=>e.valuet.info.series.slice((e.value-1)*6,e.value*6)),c=()=>{e.value=e.value-1,le(()=>{window.dispatchEvent(new Event("scroll"))}).then()},v=()=>{e.value=e.value+1,le(()=>{window.dispatchEvent(new Event("scroll"))}).then()};return(d,f)=>(a(),o("div",wi,[i("div",Li,[N(ee,{text:l.info.title},null,8,["text"])]),i("div",Ti,[r.value?(a(),o("div",xi,[N(de,{class:"arrow",onClick:c})])):m("",!0),u.value?(a(),o("div",$i,[N(de,{class:"arrow",onClick:v})])):m("",!0),i("div",Ii,[(a(!0),o(D,null,E(p.value,h=>(a(),F(ze,{class:"poster-card",info:h,key:h,"cover-tag-type":"album","pb-click":"","pb-impress":"","data-pb-txid":"album-fold"},null,8,["info"]))),128))])])]))}}),Vi=R(Ci,[["__scopeId","data-v-9a81b63f"]]),Ai=["data-pb-txid"],Ni={class:"left"},Si=["href"],Pi=["src","alt"],Di={class:"cover-footer"},Mi={class:"cover-tag"},Bi={class:"right"},Fi={class:"title ellipsis"},Ei=["href"],Ri={class:"detail"},zi=["href"],Oi=["src"],Hi={class:"author-name ellipsis"},Ui=["href"],ji={key:0,class:"update-time"},Ki={key:0,class:"video-list-wrap"},qi=z({__name:"BroadListInfoCard",props:{info:{},txid:{}},setup(l){const t=l,e=y(()=>({title:t.info.title||"",playLink:t.info.playLink||"",coverImg:t.info.coverImg||"",updateTime:t.info.updateTime||"",coverTag:t.info.coverTag||"",numberOfVideo:t.info.numberOfVideo||0,authorName:t.info.authorName||"",authorAvatar:t.info.authorAvatar||"",authorLink:t.info.authorLink||"",moreVideoLink:t.info.moreVideoLink||"",videoList:t.info.videoList||[],mediaType:t.info.mediaType||""}));return(r,u)=>(a(),o("div",{class:"broad-list-info-card","pb-click-a":"","pb-impress":"","data-pb-txid":r.txid},[i("div",Ni,[i("a",{target:"_blank",href:e.value.playLink},[i("img",{class:"cover-img",src:e.value.coverImg,alt:e.value.title},null,8,Pi),i("div",Di,"鍏"+L(e.value.numberOfVideo)+"涓"+L(e.value.mediaType==1?"闊抽":"瑙嗛"),1),i("div",Mi,L(e.value.coverTag),1)],8,Si)]),i("div",Bi,[i("div",Fi,[i("a",{target:"_blank",href:e.value.playLink},[N(ee,{text:e.value.title},null,8,["text"])],8,Ei)]),i("div",Ri,[i("a",{target:"_blank",href:e.value.authorLink},[i("img",{class:"author-avatar",src:e.value.authorAvatar},null,8,Oi)],8,zi),i("div",Hi,[i("a",{target:"_blank",href:e.value.authorLink},L(e.value.authorName),9,Ui)]),e.value.updateTime?(a(),o("div",ji,L(e.value.updateTime),1)):m("",!0)]),e.value.videoList.length?(a(),o("div",Ki,[N(st,{info:{moreVideoLink:e.value.moreVideoLink,moreVideoBtnThreshold:4,videoList:e.value.videoList}},null,8,["info"])])):m("",!0)])],8,Ai))}}),Xi=R(qi,[["__scopeId","data-v-02e46e95"]]),Gi=l=>(te("data-v-38ce9dca"),l=l(),ae(),l),Wi={class:"filter"},Ji={class:"nr-list-body"},Yi={key:5,class:"nr-list-item"},Zi={class:"title"},Qi=["href"],el={class:"title"},tl=["href"],al={key:0,class:"poster-tags"},sl={key:0},ol=Gi(()=>i("div",{class:"title",style:{"margin-top":"56px"}},"澶у閮藉湪鐪",-1)),Qe=15,il=z({__name:"NrList",setup(l){const t=C(!1),e=C([]),r=C(0),u=C(!1),p=y(()=>Math.ceil(r.value/Qe)),c=y(()=>p.value>1),v=Y(),d=C(Number(v.p)||1);Q(d,($,_)=>{$!==_&&(ke({p:d.value}),X().then())});const f=$=>{let _=location.pathname.replace("/mts","/actor")+"?key="+encodeURIComponent(v.key);return $.showType==83&&(_+=`§ab=${encodeURIComponent($.currTabKey)}&tagsOff=${$.rawData.tagsOff}`),_},h=$=>{ke({sectab:$.currTabKey}),le(()=>{window.dispatchEvent(new Event("scroll"))})},P=C(v.type||"1"),I=[{value:"1",label:"鐩稿叧"},{value:"2",label:"鏈鏂"},{value:"3",label:"鏈鐑"}];Q(P,($,_)=>{$!==_&&(ke({type:P.value}),d.value=1,X())});function M(){const $=Y();if($.p){const _=Number($.p);_!==d.value&&(d.value=_)}}$e(()=>{window.addEventListener("popstate",M)}),Ee(()=>{window.removeEventListener("popstate",M)});const w=C([]);function n($){const _=(Math.floor($/60)+"").padStart(2,"0"),x=($%60+"").padStart(2,"0");return _+":"+x}function S($){if($<1e4)return $+"";if($<1e8){let _=Math.floor($/1e4);const x=[];for(;_>0;)x.unshift((_%1e3+"").padStart(3,"0")),_=Math.floor(_/1e3);return x.join(",").replace(/^0*/,"")+"涓"}else return($/1e8).toFixed(1)+"浜"}function g($){return $?$.map(_=>({name:_.title,link:_.url})):[]}function V($){return $?$.map(_=>({playLink:_.url_html5,title:_.video_name,coverImg:_.vidPic17011,coverText:_.pic_tip})):[]}function T($){return{1:"鐢靛奖",2:"鐢佃鍓",7:"缁艰壓",8:"绾綍鐗",16:"鍔ㄦ极"}[""+$]}function A($){const _=[];return Number($.pugc_video_type)===20&&_.push({type:"blue-purple",text:"闊抽"}),[10004,10007].includes($.upload_from)&&(Number($.plevel)===5?_.push({type:"cyan",text:"涓撲韩"}):Number($.upload_from)===10007&&_.push({type:"cyan",text:"灏忚"}),_.push({type:"orange",text:"鍥炴斁"})),_}function k($){var x,J,pe,He,Ue,je,Ke,qe;if(!$){t.value=!0;return}if(t.value=!!$.is_empty,t.value){e.value=($.items||[]).map(se=>{var oe,s;return{coverTag:se.corner_mark,coverImg:se.ver_big_pic,title:se.album_name,desc:(s=(oe=se.meta)==null?void 0:oe[0])==null?void 0:s.txt,playLink:se.pc_url}}),window.messagebus&&window.messagebus.publish("statV2.ping.searchResult",{type:"impress",txid:"search-noresult"});return}window.messagebus&&window.messagebus.publish("statV2.ping.searchResult",{type:"impress",txid:"search-result"}),r.value=((x=$.itemsTotal)==null?void 0:x.showTypeTotal)||0;let _=[];if($.items&&$.items.length>0){let se=$.items.length;for(let oe=0;oe{var _e,fe;B.hasmore&&(Ge=!0);const ie={num:B.isOutSideVideo==1?B.episodeName:B.video_order,playLink:B.url_html5};return(_e=B.corner_mark)!=null&&_e.type&&(B.corner_mark.type===4?ie.tag={isCustom:!0,customConfig:{text:B.corner_mark.text,textColor:B.corner_mark.textColor,bg:`linear-gradient(90deg, ${B.corner_mark.backgroundColorStart} 0%, ${B.corner_mark.backgroundColorEnd} 100%)`}}:ie.tag={standardType:(fe=B.corner_mark)==null?void 0:fe.type}),ie}):he==="text"&&(Z=(s.videos||[]).map(B=>{var _e,fe;const ie={title:B.video_name,playLink:B.url_html5,date:B.show_date};return(_e=B.corner_mark)!=null&&_e.type&&(B.corner_mark.type===4?ie.tag={isCustom:!0,customConfig:{text:B.corner_mark.text,textColor:B.corner_mark.textColor,bg:`linear-gradient(90deg, ${B.corner_mark.backgroundColorStart} 0%, ${B.corner_mark.backgroundColorEnd} 100%)`}}:ie.tag={standardType:(fe=B.corner_mark)==null?void 0:fe.type}),ie})));let Te=[];b==="鐢靛奖"?Te=s.meta.filter(B=>/澶栨枃鍚/.test(B.txt)).map(B=>B.txt):(b==="缁艰壓"||b==="绾綍鐗"||b==="鐢佃鍓"||b==="鍔ㄦ极")&&(s.updateNotification?Te=[s.updateNotification]:Te=s.meta.filter(B=>/(鏇存柊鑷)|(闆嗗叏)/.test(B.txt)).slice(0,1).map(B=>B.txt)),_.push({rawData:s,showType:s.show_type,allSource:s.all_source||[],kisId:s.kisId,category:b,aid:s.aid,title:s.album_name,playLink:s.pc_url,detailLink:s.pc_detail_url,desc:s.desc,actorArr:g(s.actor_links),directorArr:g(s.director_links),hostArr:g(s.host_links),regionArr:g(s.area_links),typeArr:g(s.type_links),score:s.score,playCount:S(s.play_count),year:s.year,coverImg:s.ver_big_pic,coverTag:s.corner_mark,videoSource:s.whole_source,secondLineMoreInfoArr:Te,isTrailer:H,trailerList:U,linkArrType:he,linkArr:Z,linkArrNumVerNeedEllipsis:Ge,totalExistVideoCount:We})}break;case 4:_.push({rawData:s,showType:s.show_type,updateTime:(pe=(J=s.meta)==null?void 0:J[1])==null?void 0:pe.txt,title:s.video_name,authorName:s.pgc_user_name,authorLink:s.pc_pgc_user_home,authorAvatar:s.pgc_user_photo,videoTime:s.pic_tip,playLink:s.pc_url||s.h5_url,coverImg:s.hor_big_pic,tagArr:(b=>{var U;const H=A(b);if(H.length===0&&((U=b.corner_mark)!=null&&U.type)){let Z="";b.corner_mark.type===1||b.corner_mark.type===3?Z="cyan":b.corner_mark.type===2&&(Z="blue-purple"),H.push({type:Z,text:b.corner_mark.text})}return H})(s)});break;case 5:const Ae=[],Xe=[];(s.videos||[]).forEach(b=>{if(b.is_live_video===1){let H="";b.course&&b.courseId?H=`//m.tv.sohu.com/upload/h5/xiaoke/course.html?roomId=${b.roomId}&courseId=${b.courseId}`:H="/sohulive/index.shtml?roomId="+b.roomId,Ae.push({rawData:b,showType:62,title:b.video_name,authorName:s.nickname,authorAvatar:s.small_pic,authorLink:"/user/"+s.uid,coverTag:"鐩存挱涓",isLive:s.isLive,coverImg:b.hor_w8_pic,dateAndTime:Le(Number(String(b.streamTime).slice(0,10))*1e3,"yyyy-MM-dd hh:mm:ss"),playLink:H,roomName:b.video_name,isVertical:b.vHeight>b.vWidth})}else Xe.push({playLink:b.url_html5,coverText:n(b.total_duration),coverImg:b.hor_w8_pic,title:b.video_name,tagArr:A(b)})}),s.livingForecast&&Ae.push({rawData:s.livingForecast,showType:65,title:s.livingForecast.title,authorName:s.nickname,authorAvatar:s.small_pic,authorLink:"/user/"+s.uid,coverTag:"棰勫憡",isLive:s.isLive,coverImg:s.livingForecast.cover,planTime:s.livingForecast.planTimestamp,roomName:s.livingForecast.title,isVertical:s.livingForecast.coverType==1,playLink:`/sohulive/index.shtml?roomId=${s.uid}&planTime=${s.livingForecast.planTimestamp}`,intro:s.livingForecast.intro}),_.push({rawData:s,showType:s.show_type,authorName:s.nickname,authorLink:s.url_html5,authorAvatar:s.pgc_user_photo||s.small_pic,playLink:s.pc_url,subscribeCount:s.total_fans_count,playCount:s.total_play_count,moreVideoLink:s.pc_url,videoList:Xe,desc:s.desc,isLive:s.isLive,isBaida:s.title_id&&s.title_id===1,uid:s.uid,isFollow:s.subscribed}),_.push(...Ae);break;case 6:case 21:_.push({rawData:s,showType:s.show_type,name:s.name,avatarImg:s.icon,desc:s.description,shortDesc:(Ue=(He=s.meta)==null?void 0:He[0])==null?void 0:Ue.txt,detailLink:s.pc_url,labelList:s.labels,labelItemToContent:s.items});break;case 8:_.push({rawData:s,showType:s.show_type,posterListTitle:s.posterTip,hasMore:s.hasMore,posterList:s.triple.map(b=>{var H,U;return{coverTag:b.corner_mark,coverImg:b.ver_big_pic,title:b.album_name,desc:(U=(H=b.meta)==null?void 0:H[0])==null?void 0:U.txt,playLink:b.pc_url}})});break;case 16:_.push({rawData:s,showType:s.show_type,series:s.series.map(b=>{var H,U;return{coverTag:b.corner_mark,coverImg:b.ver_big_pic,title:b.album_name,desc:(U=(H=b.meta)==null?void 0:H[0])==null?void 0:U.txt,playLink:b.pc_url}}),title:`鏇村${(s.series_name||"").replace(/^.*(<<<.*>>>).*$/,"$1")}鐩稿叧鍐呭`});break;case 83:_.push({rawData:s,showType:s.show_type,posterListTitle:s.posterTip,hasMore:s.hasMore,tabItemList:s.tags.map((b,H)=>({key:H,name:b.text})),currTabKey:v.sectab&&parseInt(v.sectab)>s.tags.length?parseInt(v.sectab):s.tags.findIndex(b=>b.hit),posterList:s.items.map((b,H)=>b.map((U,Z)=>({key:`${H}_${Z}`,coverTag:U.cornerMark,coverImg:U.verPic,title:U.title,desc:U.tip,playLink:U.itemType==0?`/us/0/${U.vid}.shtml?bid=${U.bid}`:`//m.tv.sohu.com/v${U.vid}.shtml`})))});break;case 61:_.push({rawData:s,showType:s.show_type,title:s.broadListName,authorName:s.nickName,authorAvatar:s.pgc_user_photo,authorLink:"/user/"+s.user_id,coverTag:((je=s.cornerMark)==null?void 0:je.text)||"鎾崟",coverImg:s.coverurlNew||s.coverurlNewVer,mediaType:s.media_type,updateTime:(qe=(Ke=s.meta)==null?void 0:Ke[0])==null?void 0:qe.txt,numberOfVideo:s.videoNumber,playLink:`//my.tv.sohu.com/us${s.media_type==1?"/a":""}/0/${s.vid}.shtml?bid=${s.bid}`});break;case 62:let Ne="";s.course&&s.courseId?Ne=`//m.tv.sohu.com/upload/h5/xiaoke/course.html?roomId=${s.roomId}&courseId=${s.courseId}`:Ne=s.pc_url,_.push({rawData:s,showType:s.show_type,title:s.room_name,authorName:s.nickname,authorAvatar:s.small_pic,authorLink:"/user/"+s.uid,coverTag:"鐩存挱涓",isLive:s.isLive,coverImg:s.live_cover,dateAndTime:Le(Number(String(s.streamTime).slice(0,10))*1e3,"yyyy-MM-dd hh:mm:ss"),roomName:s.room_name,isVertical:s.vHeight>s.vWidth,playLink:Ne});break;case 65:_.push({rawData:s,showType:s.show_type,title:s.title,authorName:s.nickname,authorAvatar:s.small_pic,authorLink:"/user/"+s.uid,coverTag:"棰勫憡",isLive:!1,coverImg:s.cover,planTime:s.plan_timestamp,roomName:s.title,isVertical:s.coverType==1,intro:s.intro,playLink:`/sohulive/index.shtml?roomId=${s.uid}&planTime=${s.plan_timestamp}`});break;case 81:_.push({rawData:s,showType:s.show_type,title:s.broadListName,authorName:s.pgc_user_name,authorAvatar:s.pgc_user_photo,authorLink:"/user/"+s.user_id,coverTag:"鐭墽",coverImg:s.coverurlNew,updateTime:s.issueTime,playLink:`/us/0/${s.vid}.shtml?bid=${s.bid}`,videoList:(s.pcTopVideos||[]).map(b=>({title:b.title,playLink:b.broadlistId?`/us/0/${b.videoId}.shtml?bid=${b.broadlistId}`:`//m.tv.sohu.com/v${b.videoId}.shtml`,coverText:b.videoLength,coverImg:b.horVideoCover})),moreVideoLink:`/us/0/${s.vid}.shtml?bid=${s.bid}`,numberOfVideo:s.videoNumber});break}}}w.value=_}const X=()=>q(this,null,function*(){const{key:$}=Y(),{data:_,error:x}=yield ne.search({key:$,type:P.value,page:d.value,page_size:Qe});x||_&&(u.value=!0,k(_.data),le(()=>{window.dispatchEvent(new Event("scroll")),window.scrollTo({top:0,left:0,behavior:"smooth"})}))});return X().then(),($,_)=>(a(),o(D,null,[i("div",Wi,[N(ot,{modelValue:P.value,"onUpdate:modelValue":_[0]||(_[0]=x=>P.value=x),options:I},null,8,["modelValue"])]),i("div",Ji,[t.value?m("",!0):(a(!0),o(D,{key:0},E(w.value,x=>(a(),o(D,{key:x.rawData._id_key},[x.showType===1||x.showType===2?(a(),F(Yo,{key:0,info:x,class:"nr-list-item","pb-click-a":"","pb-impress":"","data-pb-txid":"album-region"},null,8,["info"])):x.showType===4?(a(),F(De,{key:1,info:x,class:"nr-list-item next-same-type-mt-16","pb-click-a":"","pb-impress":"","data-pb-txid":"search-videos"},null,8,["info"])):x.showType===5?(a(),F(Pe,{key:2,info:x,class:"nr-list-item"},null,8,["info"])):x.showType===6||x.showType===21?(a(),F(as,{key:3,info:x,class:"nr-list-item","pb-click-a":"","pb-impress":"","data-pb-txid":"search-star"},null,8,["info"])):x.showType===62?(a(),F(Be,{key:4,info:x,vertical:x.isVertical,class:"nr-list-item","pb-click-a":"","pb-impress":"","data-pb-txid":x.showType===65?"search-forelive":"search-live"},null,8,["info","vertical","data-pb-txid"])):x.showType===8||x.showType===83?(a(),o("div",Yi,[x.showType===8?(a(),o(D,{key:0},[i("div",Zi,[O(L(x.posterListTitle)+" ",1),i("a",{class:"more-poster-btn",href:f(x)},[O(" 鏌ョ湅鏇村 "),N(ce,{class:"arrow"})],8,Qi)]),N(be,{list:x.posterList,"cover-tag-type":"poster",txid:"search-dramawall"},null,8,["list"])],64)):x.showType===83?(a(),o(D,{key:1},[i("div",el,[O(L(x.posterListTitle)+" ",1),x.posterList[x.currTabKey].length==12?(a(),o("a",{key:0,class:"more-poster-btn",href:f(x)},[O(" 鏌ョ湅鏇村 "),N(ce,{class:"arrow"})],8,tl)):m("",!0)]),x.tabItemList.length>1?(a(),o("div",al,[N(Re,{"tab-item-list":x.tabItemList,modelValue:x.currTabKey,"onUpdate:modelValue":J=>x.currTabKey=J,onClick:J=>h(x)},null,8,["tab-item-list","modelValue","onUpdate:modelValue","onClick"])])):m("",!0),N(be,{list:x.posterList[x.currTabKey],"cover-tag-type":"poster",txid:"search-broadcastwall"},null,8,["list"])],64)):m("",!0)])):x.showType===16?(a(),F(Vi,{key:6,info:x,class:"nr-list-item"},null,8,["info"])):x.showType===61||x.showType===81?(a(),F(Xi,{key:7,info:x,class:"nr-list-item",txid:"search-broadcast"},null,8,["info"])):m("",!0)],64))),128)),u.value&&t.value?(a(),o(D,{key:1},[N(Ce,{class:"empty-placeholder"},{default:Ie(()=>[O("鏃犵浉鍏冲唴瀹"+L(e.value&&e.value.length?"锛屼负鎮ㄦ帹鑽愪互涓嬪唴瀹":""),1)]),_:1}),e.value&&e.value.length?(a(),o("div",sl,[ol,N(be,{list:e.value,"cover-tag-type":"album",txid:"search-albumrecommend"},null,8,["list"])])):m("",!0)],64)):m("",!0)]),c.value?(a(),F(at,{key:0,class:"paging","max-show-num":17,"total-page-num":p.value,modelValue:d.value,"onUpdate:modelValue":_[1]||(_[1]=x=>d.value=x)},null,8,["total-page-num","modelValue"])):m("",!0)],64))}}),ll=R(il,[["__scopeId","data-v-38ce9dca"]]),it=l=>(te("data-v-991ea489"),l=l(),ae(),l),rl={class:"short-box"},nl={key:0,class:"short-list"},cl={key:1,class:"empty"},ul=it(()=>i("span",{class:"empty-text"},"鏃犵浉鍏冲唴瀹癸紝涓烘偍鎺ㄨ崘浠ヤ笅鍐呭",-1)),dl={key:2},vl=it(()=>i("div",{class:"title"},"鏇村鐑棬鐭墽",-1)),pl=z({__name:"DjList",setup(l){const{key:t,p:e}=Y(),r=C([]),u=C([]),p=C(!1),c=C(!1);return q(this,null,function*(){if(p.value)return;p.value=!0;let{data:{data:d,status:f}}=yield ne.getShorts({key:t});p.value=!1,f==200&&(c.value=d.is_empty,r.value=d.items.filter(h=>h.show_type=="107").slice(0,12).map(h=>({coverTag:h.cornerMark,coverImg:h.coverurlNew,title:h.broadListName,desc:`鍏${h.videoNumber}涓棰慲,playLink:h.bid?`/us/0/${h.vid}.shtml?bid=${h.bid}`:`//m.tv.sohu.com/v${h.vid}.shtml`})),u.value=d.items.slice(r.value.length,r.value.length+18).map(h=>({coverTag:h.cornerMark,coverImg:h.coverurlNew,title:h.broadListName,desc:`鍏${h.videoNumber}涓棰慲,playLink:h.bid?`/us/0/${h.vid}.shtml?bid=${h.bid}`:`//m.tv.sohu.com/v${h.vid}.shtml`})),c.value?window.messagebus&&window.messagebus.publish("statV2.ping.searchResult",{type:"impress",txid:"search-noresult"}):window.messagebus&&window.messagebus.publish("statV2.ping.searchResult",{type:"impress",txid:"search-result"}))}),(d,f)=>(a(),o("div",rl,[r.value&&r.value.length?(a(),o("div",nl,[N(be,{list:r.value,"cover-tag-type":"poster"},null,8,["list"])])):m("",!0),c.value?(a(),o("div",cl,[N(Ce,null,{default:Ie(()=>[ul]),_:1})])):m("",!0),u.value&&u.value.length?(a(),o("div",dl,[vl,N(be,{list:u.value,"cover-tag-type":"poster"},null,8,["list"])])):m("",!0)]))}}),hl=R(pl,[["__scopeId","data-v-991ea489"]]),lt=l=>(te("data-v-8cd4df2d"),l=l(),ae(),l),_l={key:0,class:"live-box"},fl={class:"live-list"},ml={key:0,class:"no-more"},gl={key:1,class:"empty"},yl=lt(()=>i("span",{class:"empty-text"},"鏃犵浉鍏冲唴瀹癸紝涓烘偍鎺ㄨ崘浠ヤ笅鍐呭",-1)),kl={key:0,class:"live-box"},bl=lt(()=>i("div",{class:"title"},"鏇村鐑棬鐩存挱",-1)),wl={class:"live-list"},Ll=z({__name:"ZbList",setup(l){const{key:t,p:e}=Y(),r=C([]),u=C(!1),p=C(!1),c=C(e||1),v=C(!0);function d(I){const M=[];return Number(I.pugc_video_type)===20&&M.push({type:"blue-purple",text:"闊抽"}),[10004,10007].includes(I.upload_from)&&(Number(I.plevel)===5?M.push({type:"cyan",text:"涓撲韩"}):Number(I.upload_from)===10007&&M.push({type:"cyan",text:"灏忚"}),M.push({type:"orange",text:"鍥炴斁"})),M}function f(I){const M=(Math.floor(I/60)+"").padStart(2,"0"),w=(I%60+"").padStart(2,"0");return M+":"+w}const h=()=>q(this,null,function*(){if(u.value)return;u.value=!0;let{data:{data:I,status:M}}=yield ne.getLives({key:t});if(u.value=!1,M==200){if(p.value=!!I.is_empty,v.value=!!I.hasMore,I.items&&I.items.length>0){let w=[];I.items.forEach(n=>{var S,g;switch(n.show_type){case 4:w.push({rawData:n,showType:n.show_type,updateTime:(g=(S=n.meta)==null?void 0:S[1])==null?void 0:g.txt,title:n.video_name,authorName:n.pgc_user_name,authorLink:n.pc_pgc_user_home,authorAvatar:n.pgc_user_photo,videoTime:n.pic_tip,playLink:n.h5_url,coverImg:n.hor_big_pic,tagArr:(k=>{var $;const X=d(k);if(X.length===0&&(($=k.corner_mark)!=null&&$.type)){let _="";k.corner_mark.type===1||k.corner_mark.type===3?_="cyan":k.corner_mark.type===2&&(_="blue-purple"),X.push({type:_,text:k.corner_mark.text})}return X})(n)});break;case 5:const V=[],T=[];(n.videos||[]).forEach(k=>{if(k.is_live_video===1){let X="";k.course&&k.courseId?X=`//m.tv.sohu.com/upload/h5/xiaoke/course.html?roomId=${k.roomId}&courseId=${k.courseId}`:X="/sohulive/index.shtml?roomId="+k.roomId,V.push({rawData:k,showType:62,title:k.video_name,authorName:n.nickname,authorAvatar:n.small_pic,authorLink:"/user/"+n.uid,coverTag:"鐩存挱涓",isLive:n.isLive,coverImg:k.hor_w8_pic,dateAndTime:Le(Number(String(k.streamTime).slice(0,10))*1e3,"yyyy-MM-dd hh:mm:ss"),playLink:X,roomName:k.video_name,isVertical:k.vHeight>k.vWidth})}else T.push({playLink:k.url_html5,coverText:f(k.total_duration),coverImg:k.hor_w8_pic,title:k.video_name,tagArr:d(k)})}),n.livingForecast&&V.push({rawData:n.livingForecast,showType:65,title:n.livingForecast.title,authorName:n.nickname,authorAvatar:n.small_pic,authorLink:"/user/"+n.uid,coverTag:"棰勫憡",isLive:n.isLive,coverImg:n.livingForecast.cover,planTime:n.livingForecast.planTimestamp,roomName:n.livingForecast.title,isVertical:n.livingForecast.coverType==1,playLink:`/sohulive/index.shtml?roomId=${n.uid}&planTime=${n.livingForecast.planTimestamp}`,intro:n.livingForecast.intro}),w.push({rawData:n,showType:n.show_type,authorName:n.nickname,authorLink:n.url_html5,authorAvatar:n.pgc_user_photo||n.small_pic,playLink:n.pc_url,subscribeCount:n.total_fans_count,playCount:n.total_play_count,moreVideoLink:n.pc_url,videoList:T,desc:n.desc,isLive:n.isLive,isBaida:n.title_id&&n.title_id===1,uid:n.uid,isFollow:n.subscribed}),w.push(...V);break;case 62:let A="";n.course&&n.courseId?A=`//m.tv.sohu.com/upload/h5/xiaoke/course.html?roomId=${n.roomId}&courseId=${n.courseId}`:A=n.pc_url,w.push({rawData:n,showType:n.show_type,title:n.room_name,authorName:n.nickname,authorAvatar:n.small_pic,authorLink:"/user/"+n.uid,coverTag:"鐩存挱涓",isLive:n.isLive,coverImg:n.live_cover,dateAndTime:Le(Number(String(n.streamTime).slice(0,10))*1e3,"yyyy-MM-dd hh:mm:ss"),roomName:n.room_name,isVertical:n.vHeight>n.vWidth,playLink:A});break;case 65:w.push({rawData:n,showType:n.show_type,title:n.title,authorName:n.nickname,authorAvatar:n.small_pic,authorLink:"/user/"+n.uid,coverTag:"棰勫憡",isLive:!1,coverImg:n.cover,planTime:n.plan_timestamp,roomName:n.title,isVertical:n.coverType==1,intro:n.intro,playLink:`/sohulive/index.shtml?roomId=${n.uid}&planTime=${n.plan_timestamp}`});break}}),r.value=w,le(()=>{window.dispatchEvent(new Event("scroll"))}).then()}p.value?window.messagebus&&window.messagebus.publish("statV2.ping.searchResult",{type:"impress",txid:"search-noresult"}):window.messagebus&&window.messagebus.publish("statV2.ping.searchResult",{type:"impress",txid:"search-result"})}});h();const P=()=>{u.value||!v.value||window.scrollY+window.innerHeight>=document.body.offsetHeight-100&&(c.value++,h())};return $e(()=>{window.addEventListener("scroll",P)}),Ee(()=>{window.removeEventListener("scroll",P)}),(I,M)=>(a(),o(D,null,[!p.value&&r.value&&r.value.length?(a(),o("div",_l,[i("div",fl,[(a(!0),o(D,null,E(r.value,w=>(a(),o(D,null,[w.showType===4?(a(),F(De,{key:0,info:w,class:"live-item next-same-type-mt-16","pb-click-a":"","pb-impress":"","data-pb-txid":"search-videos"},null,8,["info"])):w.showType===5?(a(),F(Pe,{key:1,info:w,class:"live-item"},null,8,["info"])):w.showType===62?(a(),F(Be,{key:2,info:w,vertical:w.isVertical,class:"live-item","pb-click-a":"","pb-impress":"","data-pb-txid":w.showType===65?"search-forelive":"search-live"},null,8,["info","vertical","data-pb-txid"])):m("",!0)],64))),256))]),v.value?m("",!0):(a(),o("div",ml,"鍝庡憖锝炶浣犵炕鍒拌佸簳浜"))])):m("",!0),p.value?(a(),o("div",gl,[N(Ce,null,{default:Ie(()=>[yl]),_:1}),r.value&&r.value.length?(a(),o("div",kl,[bl,i("div",wl,[(a(!0),o(D,null,E(r.value,w=>(a(),o(D,null,[w.showType===4?(a(),F(De,{key:0,info:w,class:"live-item next-same-type-mt-16","pb-click-a":"","pb-impress":"","data-pb-txid":"search-videos"},null,8,["info"])):w.showType===5?(a(),F(Pe,{key:1,info:w,class:"live-item"},null,8,["info"])):w.showType===62?(a(),F(Be,{key:2,info:w,vertical:w.isVertical,class:"live-item","pb-click-a":"","pb-impress":"","data-pb-txid":w.showType===65?"search-forelive":"search-live"},null,8,["info","vertical","data-pb-txid"])):m("",!0)],64))),256))])])):m("",!0)])):m("",!0)],64))}}),Tl=R(Ll,[["__scopeId","data-v-8cd4df2d"]]),xl={class:"layout","pb-click-a":"","data-pb-txid":"search-pageclick"},$l={class:"layout__left"},Il={class:"left__header"},Cl={class:"left__body"},Vl={class:"layout__right"},Al=z({__name:"App",setup(l){const{key:t}=Y();document.title=t+" - 鎼滅嫄瑙嗛 瑙嗛鎼滅储";const e=C("0"),r=C([{key:"0",name:"鍐呭"},{key:"1",name:"鎾富"},{key:"2",name:"鐭墽"},{key:"3",name:"鐩存挱"}]),u=C({0:{component:me(ll),currPageNum:1,txid:"search-total"},1:{component:me(ua),currPageNum:1,txid:"search-user"},2:{component:me(hl),currPageNum:1,txid:"search-shorttvplaypage"},3:{component:me(Tl),currPageNum:1,txid:"search-livepage"}});(function(){const{p:d,tab:f}=Y();f&&u.value[f]?e.value=f:e.value="0",c(u.value[e.value].txid),u.value[e.value].currPageNum=Number(d)||1})();const p=me(u.value[e.value].component);Q(e,(v,d)=>{if(v!==d){if(d){const{p:f}=Y();u.value[d].currPageNum=Number(f)||1}u.value[v]&&(ke({tab:v,p:u.value[v].currPageNum}),p.value=u.value[v].component,c(u.value[v].txid))}});function c(v){window.messagebus&&v&&window.messagebus.publish("statV2.ping.searchResult",{type:"impress",txid:v})}return(v,d)=>(a(),o("div",xl,[i("div",$l,[i("div",Il,[N(xt,{modelValue:e.value,"onUpdate:modelValue":d[0]||(d[0]=f=>e.value=f),"tab-item-list":r.value},null,8,["modelValue","tab-item-list"])]),i("div",Cl,[(a(),F(ht,null,[(a(),F(pt(p.value)))],1024))])]),i("div",Vl,[W(i("div",null,[N(_t,{class:"hot-search-list"}),N(ft,{class:"relative-search-list"})],512),[[we,e.value!=="1"]]),W(i("div",null,[N(wa,{class:"hot-bz-list"})],512),[[we,e.value==="1"]])])]))}}),Nl=R(Al,[["__scopeId","data-v-59a7dd6c"]]),rt=mt(Nl);rt.directive("lazyload",gt);rt.mount("#search-result-app");