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