/* sohutv 2025-08-11 16:13:53 */ var ee=(h,n)=>()=>(n||h((n={exports:{}}).exports,n),n.exports);var F=(h,n,u)=>new Promise((c,m)=>{var k=g=>{try{f(u.next(g))}catch(r){m(r)}},_=g=>{try{f(u.throw(g))}catch(r){m(r)}},f=g=>g.done?c(g.value):Promise.resolve(g.value).then(k,_);f((u=u.apply(h,n)).next())});import{u as J,p as te,a as oe,b as K,L as M,_ as A,q as Q,i as se,s as ae,c as ne}from"./lazyload-CI9HSlFC.js";import{c as re,a as ie,d as R,r as p,o as O,b as d,e as L,f as o,n as D,F as C,g as T,h as le,i,w as G,u as I,t as w,j as x,k as S,l as P,m as ce,p as V,q as E,s as Y,v as de,x as z,y as ue,z as me}from"./vendor-CylMHHih.js";import{g as ve,c as pe}from"./likeType-Cf_dJXm9.js";import{g as W,a as _e}from"./formatImageSize-D8RRbRbb.js";import{A as fe}from"./FollowButton-CxQ_a2AR.js";import{_ as ge}from"./md5-B6nkZR_V.js";import{S as he}from"./ScrollLoadingDetector-CricvAzx.js";import{a as be,c as ke,F as ye,b as we,s as U}from"./FeedCard-BiORxmj_.js";import{s as Ie,a as Le,b as Ce}from"./formatNumber-CECdNMNa.js";import{T as De}from"./ToTop-ES4GW5uI.js";/* empty css */import{D as $e}from"./DislogConfirm-Yc5HxfaC.js";import"./pinglun-CMVY9J4W.js";import"./emotions-DbiRi93f.js";import"./atRecomUser-LkCQbY1C.js";/* empty css */import"./topic_img_small-CL_1M9Jg.js";import"./TitleHightlight-DtG5oWjB.js";import"./transHighlight-DDac-ImT.js";var Tt=ee(Z=>{const X=re({history:ie("/s/follow"),routes:[]});X.beforeResolve((h,n,u)=>F(Z,null,function*(){try{const c=J(),{updateLogin:m}=c;te.getPassport()?c.getUserInfo():m(!1),oe().updateScene(0)}catch(c){}u()}));const Fe="//hd.my.tv.sohu.com",Se={getLivingUserList(h){return F(this,null,function*(){return K(`${Fe}/aggregation/h5/v1/getFollowUserList`,h)})}},Re={key:0,class:"module-live"},He={key:0,class:"streamer-item","data-pb-txid":"focus_stream_liveing"},Ue={class:"item_avatar status-live"},xe=["onClick"],Te=["src"],Pe={key:0,class:"icon-follow-plus"},Ae={class:"item_info"},ze=["onClick"],je={class:"desc"},Ne={key:1,class:"streamer-item","data-pb-txid":"focus_stream_liveing"},Ee={class:"item_avatar status-pre"},Ve=["onClick"],Oe=["src"],Be={class:"label label-pre"},qe={key:0,class:"icon-follow-plus"},Me={class:"item_info"},Ge=["onClick"],Ye={class:"desc"},We={key:0,class:"more"},Je={key:0},Ke={key:1},Qe=R({__name:"LivingUsers",emits:["loaded"],setup(h,{emit:n}){const u=J(),c={uid:ve("SUV")||pe()},m=u.isLogin,k=n,_=p([]),f=p(!1);function g(){f.value=!f.value}function r(s){let a=M.makeLiveUrl({content_live:{roomId:s}});window.open(a)}function v(s){const a=M.makeLiveScheduleUrl(s);window.open(a)}return O(()=>F(this,null,function*(){var l;yield u.getUserInfo();const s={uid:c.uid,followUserStatusTypes:1,sver:"9.9.00",userID:((l=u.userInfo)==null?void 0:l.id)||""};let{data:a}=yield Se.getLivingUserList(s);if(a.status===200){let e=a.data.livingUserList||[];for(let t=0;t0)}})),(s,a)=>{const l=le("pb");return _.value.length>0?(i(),d("div",Re,[a[1]||(a[1]=o("div",{class:"title"},[o("span",{class:"icon-living"}),o("h3",null,"姝e湪鐩存挱")],-1)),o("div",{class:D(["streamer-list",{"streamer-list-more":f.value&&_.value.length>10}])},[(i(!0),d(C,null,T(_.value,(e,t)=>(i(),d(C,{key:e.uid},[e.livingRoomID?G((i(),d("div",He,[o("div",Ue,[o("a",{href:"javascript:void(0)",class:"avatar",onClick:y=>r(e.livingRoomID)},[o("img",{src:I(W)(e.smallphoto),alt:""},null,8,Te)],8,xe),a[0]||(a[0]=o("span",{class:"label label-live"},"鐩存挱涓",-1)),!I(m)||I(m)&&e.isAiRecommend?(i(),d("span",Pe)):L("",!0)]),o("div",Ae,[o("h4",null,[o("a",{href:"javascript:void(0)",class:"name",onClick:y=>r(e.livingRoomID)},w(e.nickname),9,ze)]),o("p",je,w(e.sign),1)])])),[[l,{memo:{usertype:e!=null&&e.isAiRecommend&&(e==null?void 0:e.isAiRecommend)==!0?0:1,type:1,content_form:e.avMedia,position:t+1,userid:e.uid}},void 0,{click:!0,impress:!0}]]):e.scheduleInfo?G((i(),d("div",Ne,[o("div",Ee,[o("a",{href:"javascript:void(0)",class:"avatar",onClick:y=>v(e.scheduleInfo)},[o("img",{src:I(W)(e.smallphoto),alt:""},null,8,Oe)],8,Ve),o("span",Be,w(e.scheduleInfo.startTime)+"寮鎾",1),!I(m)||I(m)&&e.isAiRecommend?(i(),d("span",qe)):L("",!0)]),o("div",Me,[o("h4",null,[o("a",{href:"javascript:void(0)",class:"name",onClick:y=>v(e.scheduleInfo)},w(e.nickname),9,Ge)]),o("p",Ye,w(e.sign),1)])])),[[l,{memo:{usertype:e!=null&&e.isAiRecommend&&(e==null?void 0:e.isAiRecommend)==!0?0:1,type:2,content_form:e.avMedia,position:t+1,scheduleId:e.scheduleInfo.scheduleId,userid:e.uid}},void 0,{click:!0,impress:!0}]]):L("",!0)],64))),128))],2),_.value.length>10?(i(),d("div",We,[o("a",{href:"javascript:;",onClick:g},[f.value?(i(),d("span",Ke,"鏀惰捣")):(i(),d("span",Je,"灞曞紑")),o("span",{class:D(["arr",{arrUp:f.value}])},null,2)])])):L("",!0)])):L("",!0)}}}),Xe=A(Qe,[["__scopeId","data-v-db888b64"]]),Ze="//api.tv.sohu.com",et={apiUrl:`${Ze}/v4/rank/pc/video/labelPage.json`,getComRankList(h){const n={rankFileId:"",pageSize:""};return K(`${this.apiUrl}?${Q.stringify(Object.assign(n,h))}`)}},tt={class:"commentrank-box"},ot={class:"commentrank-con"},st={class:"commentrank-list"},at=["href"],nt={key:0,class:"commentrank-item-left"},rt={class:"commentrank-item-left-box"},it={class:"commentrank-item-left-img"},lt=["src"],ct={key:1,class:"commentrank-item-left ctr-noimg"},dt={key:0,class:"r-tip"},ut={class:"r-users"},mt={class:"r-userlist"},vt={class:"r-userlistimg"},pt={class:"pl-num"},_t=R({__name:"CommentRank",setup(h){const n=p([]),u=p([]),c=p({}),m=r=>_e(r,{c_pad:{w:164,h:228,blur:80},o_convert:{f:"webp"}});function k(){return F(this,null,function*(){var v;const r={rankFileId:"694",pageSize:"10"};try{const s=yield et.getComRankList(r);((v=s.data)==null?void 0:v.status)===200&&(n.value=s.data.data.rankContext||[],u.value=s.data.data.customRankPageVo.tabInfoVos||[],c.value=s.data.data.customRankPageVo)}catch(s){}})}k();const _=x(()=>{var v,s;if(!u.value||!((v=c.value)!=null&&v.rankFeildId))return!1;const r=u.value.find(a=>a.rankFileId===c.value.rankFeildId);return((s=r==null?void 0:r.rankExtendInfo)==null?void 0:s.broadlistType)===0});function f(r){return r.every(v=>Object.keys(v).length===0)}x(()=>_.value);function g(r){return r===0?"ranknum1":r===1?"ranknum2":r===2?"ranknum3":r===3?"ranknum4":r===4?"ranknum5":r===5?"ranknum6":r===6?"ranknum7":r===7?"ranknum8":r===8?"ranknum9":r===9?"ranknum10":""}return(r,v)=>(i(),d("div",tt,[o("div",ot,[v[1]||(v[1]=o("div",{class:"commentrank-title"},[o("span",{class:"comtit-icn"}),o("h3",null,"璇勮姒")],-1)),o("div",st,[(i(!0),d(C,null,T(n.value,(s,a)=>(i(),d("div",{class:D(["commentrank-item",{"hcommentrank-item":_.value}]),key:s.contentId},[o("a",{href:s.actionUrl,target:"_blank",class:"commentrank-item-link"},[a<5?(i(),d("div",nt,[o("div",rt,[o("div",it,[o("img",{src:m(s.coverImage),alt:""},null,8,lt)])]),o("span",{class:D(["ranknum",g(a)])},null,2)])):(i(),d("div",ct,[o("span",{class:D(["ranknum",g(a)])},null,2)])),o("div",{class:D(["commentrank-item-right",{"commentrank-item-right-noimg":a>=5}])},[o("h3",{class:D({"r-tit":!0,"r-tittwo":!s.tipList||s.tipList.length===0||f(s.tipList)})},w(s.name),3),s.tipList&&s.tipList.length>0&&!f(s.tipList)?(i(),d("div",dt,[(i(!0),d(C,null,T(s.tipList.slice(0,2),(l,e)=>(i(),d("p",{key:e,class:D({pwidth:e===0&&s.tipList.length>1})},w(l.tip),3))),128))])):L("",!0),o("div",ut,[o("div",mt,[o("div",vt,[S(fe,{info:{smallphoto:s.userSmallPhoto}},null,8,["info"])]),o("span",null,w(s.userName),1)]),o("p",pt,[o("span",null,w(s.formatCommentCount),1),v[0]||(v[0]=P("鏉¤瘎璁"))])])],2)],8,at)],2))),128))])])]))}}),ft=A(_t,[["__scopeId","data-v-b72dbb64"]]),gt={class:"footer-bottom"},ht={class:"footer-bottom_copyright"},bt=R({__name:"InfoFooter",setup(h){const n=p(new Date().getFullYear());return(u,c)=>(i(),d("div",gt,[c[3]||(c[3]=ce('',2)),o("div",ht,[c[0]||(c[0]=P("澶囨鍙凤細")),c[1]||(c[1]=o("a",{href:"https://beian.miit.gov.cn/",target:"_blank"},"浜琁CP璇030367鍙-1",-1)),c[2]||(c[2]=o("br",null,null,-1)),P(" Copyright 漏 "+w(n.value)+" Sohu.com Inc. All Rights Reserved.",1)])]))}}),kt=A(bt,[["__scopeId","data-v-6ee4b5b1"]]),yt={class:"feed-card-list"},wt={key:0,class:"no-feed"},It={key:2,class:"no-more-placeholder"},Lt=R({__name:"FeedCardList",setup(h){const n=p([]);let u="";const c=p(!0),m=p(!1);function k(){return F(this,null,function*(){if(m.value||!c.value)return;m.value=!0;const a={};u&&(a.lastId=u);const{data:l,error:e}=yield be.query(a);if((l==null?void 0:l.status)==200){const{feeds:t=[],hasmore:y,lastId:H}=l.data;u=H,c.value=y,a.lastId||(n.value=[]),n.value=n.value.concat(t)}m.value=!1})}E("deleteFeedItem",a=>{const l=n.value.findIndex(e=>e.feedId==a);l>-1&&n.value.splice(l,1)}),O(()=>{Ie(f),Le(),Ce(g)});const f=a=>{const{countNum:l,feedId:e}=a,t=n.value.find(y=>y.feedId==e);t&&((t==null?void 0:t.type)!=11?t.commentDigg.commentCount=l:t.content.forward_source_info.commentDigg.commentCount=l)},g=a=>{r(a.param)},r=a=>{const l=a.feedId;if(!l)return;const e=n.value.findIndex(H=>H.feedId==l),t=n.value[e];t&&((t==null?void 0:t.type)!=11?t.commentDigg.forwardCount?t.commentDigg.forwardCount=Number(t==null?void 0:t.commentDigg.forwardCount)+1:t.commentDigg.forwardCount=1:t.content.forward_source_info.commentDigg.forwardCount?t.content.forward_source_info.commentDigg.forwardCount=Number(t==null?void 0:t.content.forward_source_info.commentDigg.forwardCount)+1:t.content.forward_source_info.commentDigg.forwardCount=1),a.hasComment&&((t==null?void 0:t.type)!=11?t.commentDigg.commentCount?t.commentDigg.commentCount=Number(t==null?void 0:t.commentDigg.commentCount)+1:t.commentDigg.commentCount=1:t.content.forward_source_info.commentDigg.commentCount?t.content.forward_source_info.commentDigg.commentCount=Number(t==null?void 0:t.content.forward_source_info.commentDigg.commentCount)+1:t.content.forward_source_info.commentDigg.commentCount=1)};E("setFeedItemForward",r),E("setPrivacyFeedItem",(a,l)=>{const e=n.value.findIndex(t=>t.feedId==a);l==0?n.value[e].plevel=0:l==1&&(n.value[e].isTopFeed,n.value[e].plevel=3)});function s(){k().then()}return k(),(a,l)=>(i(),d("div",yt,[(i(!0),d(C,null,T(n.value,(e,t)=>(i(),d(C,{key:e.feedId},[I(ke)(e)?(i(),V(ye,{key:0,class:"feed-card",item:e,"data-feed-card-index":t},null,8,["item","data-feed-card-index"])):L("",!0)],64))),128)),m.value?(i(),d(C,{key:0},T(5,e=>S(we,{class:"feed-card",key:e})),64)):(i(),d(C,{key:1},[n.value.length==0?(i(),d("div",wt,l[0]||(l[0]=[o("img",{src:ge},null,-1),o("div",{class:"tips"},[P("鏆傛椂杩樻病鏈夊姩鎬"),o("br"),P("蹇幓鍏虫敞鐢ㄦ埛鍙戠幇鏇村绮惧僵鍐呭鍚")],-1)]))):c.value?(i(),V(he,{key:1,onOnTrigger:s})):(i(),d("div",It,"娌℃湁鏇村鍐呭浜"))],64))]))}}),Ct=A(Lt,[["__scopeId","data-v-a7609158"]]),Dt={class:"feed"},$t={class:"body"},Ft={class:"body__left"},St={class:"body__right"},Rt=R({__name:"Feed",setup(h){const n=Q.getUrlParam("tvline"),u=p(0),c=p(0),m=p(null),k=p({}),_=p(!1),f=p(!1),g=b=>{f.value=b,_.value=!0},r=x(()=>!!_.value),v=p(0),s=p(0),a=()=>{const b=document.querySelector(".footer-bottom");b?v.value=b.offsetHeight:v.value=0},l=()=>{const b=document.querySelector(".hd-topbar");b?s.value=b.offsetHeight:s.value=0},e=x(()=>c.value>u.value?{top:`-${c.value-u.value}px`}:{top:"66px"}),t=x(()=>({"min-height":`${u.value-v.value-s.value}px`})),y=()=>{try{u.value=window.innerHeight}catch(b){}},H=(window.innerHeight-76)/2+76;O(()=>{document.body.addEventListener("scroll",U),window.addEventListener("scroll",U),setTimeout(U,1e3),window.addEventListener("resize",y),y(),Y(()=>{setTimeout(()=>{m.value&&(B(),q(),a(),l(),new ResizeObserver(()=>{B(),q(),a(),l()}).observe(m.value))},2e3)})}),de(()=>{window.removeEventListener("resize",y),document.body.removeEventListener("scroll",U),window.removeEventListener("scroll",U)}),p(!1),p(!1);const B=()=>F(this,null,function*(){if(yield Y(),m.value){const b=m.value.children;let j=0;for(let N=0;N{c.value>u.value?k.value={position:"static"}:k.value={position:"sticky",bottom:"0",zIndex:"1"}};return(b,j)=>(i(),d(C,null,[o("div",Dt,[o("div",$t,[o("div",Ft,[o("div",{class:"left__content",ref_key:"myDiv",ref:m,style:z(e.value)},[o("div",{class:"left__content-wrap",style:z(t.value)},[S(Xe,{class:"live-list",onLoaded:g}),r.value?(i(),V(ft,{key:0,class:"comment-rank"})):L("",!0)],4),S(kt,{class:"info-footer",style:z(k.value)},null,8,["style"])],4)]),o("div",St,[S(Ct)])]),S(De)]),I(n)?(i(),d("div",{key:0,style:z([{top:I(H)+"px"},{height:"1px",width:"100%",position:"fixed","background-color":"red","z-index":"999"}])},null,4)):L("",!0)],64))}}),Ht=A(Rt,[["__scopeId","data-v-9d381ea3"]]),Ut={class:"app"},xt=R({__name:"App",setup(h){return(n,u)=>(i(),d("div",Ut,[S(Ht)]))}}),$=ue(xt);$.component("DislogConfirm",$e);$.provide("player",null);$.use(me());$.directive("lazyload",se);$.directive("svg-sprite",ae);$.directive("pb",ne);$.config.globalProperties.window=window;$.use(X).mount("#app")});export default Tt();