/* sohutv 2025-09-25 17:51:56 */ var ee=(g,a)=>()=>(a||g((a={exports:{}}).exports,a),a.exports);var F=(g,a,u)=>new Promise((c,m)=>{var k=h=>{try{_(u.next(h))}catch(r){m(r)}},f=h=>{try{_(u.throw(h))}catch(r){m(r)}},_=h=>h.done?c(h.value):Promise.resolve(h.value).then(k,f);_((u=u.apply(g,a)).next())});import{u as Y,p as te,a as oe,b as J,L as q,_ as T,q as K,i as se,s as ne,c as ae}from"./lazyload-CI9HSlFC.js";import{c as re,a as ie,d as U,r as p,o as O,b as d,e as C,f as o,n as D,F as L,g as P,h as le,i,w as G,u as I,t as w,j as x,k as S,l as A,m as ce,p as E,q as N,s as W,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 Q,a as fe}from"./formatImageSize-D8RRbRbb.js";import{A as _e}from"./FollowButton-CxQ_a2AR.js";import{_ as he}from"./md5-B6nkZR_V.js";import{S as ge}from"./ScrollLoadingDetector-CricvAzx.js";import{a as be,c as ke,F as ye,b as we,s as R}from"./FeedCard-CKU9Arns.js";import{s as Ie,a as Ce,b as Le}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-CWr8gm-z.js";/* empty css */import"./topic_img_small-CL_1M9Jg.js";import"./TitleHightlight-DtG5oWjB.js";import"./transHighlight-D-25BIaP.js";var At=ee(Z=>{const X=re({history:ie("/s/follow"),routes:[]});X.beforeResolve((g,a,u)=>F(Z,null,function*(){try{const c=Y(),{updateLogin:m}=c;te.getPassport()?c.getUserInfo():m(!1),oe().updateScene(0)}catch(c){}u()}));const Fe="//hd.my.tv.sohu.com",Se={getLivingUserList(g){return F(this,null,function*(){return J(`${Fe}/aggregation/h5/v1/getFollowUserList`,g)})}},Re={key:0,class:"module-live"},Ue={key:0,class:"streamer-item","data-pb-txid":"focus_stream_liveing"},He={class:"item_avatar status-live"},xe=["onClick"],Pe=["src"],Ae={key:0,class:"icon-follow-plus"},Te={class:"item_info"},ze=["onClick"],je={class:"desc"},Be={key:1,class:"streamer-item","data-pb-txid":"focus_stream_liveing"},Ne={class:"item_avatar status-pre"},Ee=["onClick"],Oe=["src"],Me={class:"label label-pre"},Ve={key:0,class:"icon-follow-plus"},qe={class:"item_info"},Ge=["onClick"],We={class:"desc"},Qe={key:0,class:"more"},Ye={key:0},Je={key:1},Ke=U({__name:"LivingUsers",emits:["loaded"],setup(g,{emit:a}){const u=Y(),c={uid:ve("SUV")||pe()},m=u.isLogin,k=a,f=p([]),_=p(!1);function h(){_.value=!_.value}function r(s){let n=q.makeLiveUrl({content_live:{roomId:s}});window.open(n)}function v(s){const n=q.makeLiveScheduleUrl(s);window.open(n)}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:n}=yield Se.getLivingUserList(s);if(n.status===200){let e=n.data.livingUserList||[];for(let t=0;t0)}})),(s,n)=>{const l=le("pb");return f.value.length>0?(i(),d("div",Re,[n[1]||(n[1]=o("div",{class:"title"},[o("span",{class:"icon-living"}),o("h3",null,"姝e湪鐩存挱")],-1)),o("div",{class:D(["streamer-list",{"streamer-list-more":_.value&&f.value.length>10}])},[(i(!0),d(L,null,P(f.value,(e,t)=>(i(),d(L,{key:e.uid},[e.livingRoomID?G((i(),d("div",Ue,[o("div",He,[o("a",{href:"javascript:void(0)",class:"avatar",onClick:y=>r(e.livingRoomID)},[o("img",{src:I(Q)(e.smallphoto),alt:""},null,8,Pe)],8,xe),n[0]||(n[0]=o("span",{class:"label label-live"},"鐩存挱涓",-1)),!I(m)||I(m)&&e.isAiRecommend?(i(),d("span",Ae)):C("",!0)]),o("div",Te,[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",Be,[o("div",Ne,[o("a",{href:"javascript:void(0)",class:"avatar",onClick:y=>v(e.scheduleInfo)},[o("img",{src:I(Q)(e.smallphoto),alt:""},null,8,Oe)],8,Ee),o("span",Me,w(e.scheduleInfo.startTime)+"寮鎾",1),!I(m)||I(m)&&e.isAiRecommend?(i(),d("span",Ve)):C("",!0)]),o("div",qe,[o("h4",null,[o("a",{href:"javascript:void(0)",class:"name",onClick:y=>v(e.scheduleInfo)},w(e.nickname),9,Ge)]),o("p",We,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}]]):C("",!0)],64))),128))],2),f.value.length>10?(i(),d("div",Qe,[o("a",{href:"javascript:;",onClick:h},[_.value?(i(),d("span",Je,"鏀惰捣")):(i(),d("span",Ye,"灞曞紑")),o("span",{class:D(["arr",{arrUp:_.value}])},null,2)])])):C("",!0)])):C("",!0)}}}),Xe=T(Ke,[["__scopeId","data-v-db888b64"]]),Ze="//api.tv.sohu.com",et={apiUrl:`${Ze}/v4/rank/pc/video/labelPage.json`,getComRankList(g){const a={rankFileId:"",pageSize:""};return J(`${this.apiUrl}?${K.stringify(Object.assign(a,g))}`)}},tt={class:"commentrank-box"},ot={class:"commentrank-con"},st={class:"commentrank-list"},nt=["href"],at={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"},ft=U({__name:"CommentRank",setup(g){const a=p([]),u=p([]),c=p({}),m=r=>fe(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&&(a.value=s.data.data.rankContext||[],u.value=s.data.data.customRankPageVo.tabInfoVos||[],c.value=s.data.data.customRankPageVo)}catch(s){}})}k();const f=x(()=>{var v,s;if(!u.value||!((v=c.value)!=null&&v.rankFeildId))return!1;const r=u.value.find(n=>n.rankFileId===c.value.rankFeildId);return((s=r==null?void 0:r.rankExtendInfo)==null?void 0:s.broadlistType)===0});function _(r){return r.every(v=>Object.keys(v).length===0)}x(()=>f.value);function h(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(L,null,P(a.value,(s,n)=>(i(),d("div",{class:D(["commentrank-item",{"hcommentrank-item":f.value}]),key:s.contentId},[o("a",{href:s.actionUrl,target:"_blank",class:"commentrank-item-link"},[n<5?(i(),d("div",at,[o("div",rt,[o("div",it,[o("img",{src:m(s.coverImage),alt:""},null,8,lt)])]),o("span",{class:D(["ranknum",h(n)])},null,2)])):(i(),d("div",ct,[o("span",{class:D(["ranknum",h(n)])},null,2)])),o("div",{class:D(["commentrank-item-right",{"commentrank-item-right-noimg":n>=5}])},[o("h3",{class:D({"r-tit":!0,"r-tittwo":!s.tipList||s.tipList.length===0||_(s.tipList)})},w(s.name),3),s.tipList&&s.tipList.length>0&&!_(s.tipList)?(i(),d("div",dt,[(i(!0),d(L,null,P(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))])):C("",!0),o("div",ut,[o("div",mt,[o("div",vt,[S(_e,{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]=A("鏉¤瘎璁"))])])],2)],8,nt)],2))),128))])])]))}}),_t=T(ft,[["__scopeId","data-v-b72dbb64"]]),ht={class:"footer-bottom"},gt={class:"footer-bottom_copyright"},bt=U({__name:"InfoFooter",setup(g){const a=p(new Date().getFullYear());return(u,c)=>(i(),d("div",ht,[c[3]||(c[3]=ce('',2)),o("div",gt,[c[0]||(c[0]=A("澶囨鍙凤細")),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)),A(" Copyright 漏 "+w(a.value)+" Sohu.com Inc. All Rights Reserved.",1)])]))}}),kt=T(bt,[["__scopeId","data-v-6ee4b5b1"]]),yt={class:"feed-card-list"},wt={key:0,class:"no-feed"},It={key:2,class:"no-more-placeholder"},Ct=U({__name:"FeedCardList",setup(g){const a=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 n={};u&&(n.lastId=u);const{data:l,error:e}=yield be.query(n);if((l==null?void 0:l.status)==200){const{feeds:t=[],hasmore:y,lastId:H}=l.data;u=H,c.value=y,n.lastId||(a.value=[]),a.value=a.value.concat(t)}m.value=!1})}N("deleteFeedItem",n=>{const l=a.value.findIndex(e=>e.feedId==n);l>-1&&a.value.splice(l,1)}),O(()=>{Ie(_),Ce(),Le(h)});const _=n=>{const{countNum:l,feedId:e}=n,t=a.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)},h=n=>{r(n.param)},r=n=>{const l=n.feedId;if(!l)return;const e=a.value.findIndex(H=>H.feedId==l),t=a.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),n.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)};N("setFeedItemForward",r),N("setPrivacyFeedItem",(n,l)=>{const e=a.value.findIndex(t=>t.feedId==n);l==0?a.value[e].plevel=0:l==1&&(a.value[e].isTopFeed,a.value[e].plevel=3)});function s(){k().then(R)}return k(),(n,l)=>(i(),d("div",yt,[(i(!0),d(L,null,P(a.value,(e,t)=>(i(),d(L,{key:e.feedId},[I(ke)(e)?(i(),E(ye,{key:0,class:"feed-card",item:e,"data-feed-card-index":t},null,8,["item","data-feed-card-index"])):C("",!0)],64))),128)),m.value?(i(),d(L,{key:0},P(5,e=>S(we,{class:"feed-card",key:e})),64)):(i(),d(L,{key:1},[a.value.length==0?(i(),d("div",wt,l[0]||(l[0]=[o("img",{src:he},null,-1),o("div",{class:"tips"},[A("鏆傛椂杩樻病鏈夊姩鎬"),o("br"),A("蹇幓鍏虫敞鐢ㄦ埛鍙戠幇鏇村绮惧僵鍐呭鍚")],-1)]))):c.value?(i(),E(ge,{key:1,onOnTrigger:s})):(i(),d("div",It,"娌℃湁鏇村鍐呭浜"))],64))]))}}),Lt=T(Ct,[["__scopeId","data-v-3258b3f4"]]),Dt={class:"feed"},$t={class:"body"},Ft={class:"body__left"},St={class:"body__right"},Rt=U({__name:"Feed",setup(g){const a=K.getUrlParam("tvline"),u=p(0),c=p(0),m=p(null),k=p({}),f=p(!1),_=p(!1),h=b=>{_.value=b,f.value=!0},r=x(()=>!!f.value),v=p(0),s=p(0),n=()=>{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",R),window.addEventListener("scroll",R),setTimeout(R,1e3),window.addEventListener("resize",y),y(),W(()=>{setTimeout(()=>{m.value&&(M(),V(),n(),l(),new ResizeObserver(()=>{M(),V(),n(),l()}).observe(m.value))},2e3)})}),de(()=>{window.removeEventListener("resize",y),document.body.removeEventListener("scroll",R),window.removeEventListener("scroll",R)}),p(!1),p(!1);const M=()=>F(this,null,function*(){if(yield W(),m.value){const b=m.value.children;let j=0;for(let B=0;B{c.value>u.value?k.value={position:"static"}:k.value={position:"sticky",bottom:"0",zIndex:"1"}};return(b,j)=>(i(),d(L,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:h}),r.value?(i(),E(_t,{key:0,class:"comment-rank"})):C("",!0)],4),S(kt,{class:"info-footer",style:z(k.value)},null,8,["style"])],4)]),o("div",St,[S(Lt)])]),S(De)]),I(a)?(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)):C("",!0)],64))}}),Ut=T(Rt,[["__scopeId","data-v-9d381ea3"]]),Ht={class:"app"},xt=U({__name:"App",setup(g){return(a,u)=>(i(),d("div",Ht,[S(Ut)]))}});function Pt(){return/phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone/i.test(navigator.userAgent)}Pt()&&(window.location.href="//m.tv.sohu.com/upload/h5/follow/index.html");const $=ue(xt);$.component("DislogConfirm",$e);$.provide("player",null);$.use(me());$.directive("lazyload",se);$.directive("svg-sprite",ne);$.directive("pb",ae);$.config.globalProperties.window=window;$.use(X).mount("#app")});export default At();