/* sohutv 2025-05-13 17:46:04 */
var U=Object.defineProperty;var S=Object.getOwnPropertySymbols;var C=Object.prototype.hasOwnProperty,D=Object.prototype.propertyIsEnumerable;var _=(i,e,t)=>e in i?U(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,b=(i,e)=>{for(var t in e||(e={}))C.call(e,t)&&_(i,t,e[t]);if(S)for(var t of S(e))D.call(e,t)&&_(i,t,e[t]);return i};var w=(i,e,t)=>_(i,typeof e!="symbol"?e+"":e,t);var p=(i,e,t)=>new Promise((s,a)=>{var c=o=>{try{u(t.next(o))}catch(f){a(f)}},y=o=>{try{u(t.throw(o))}catch(f){a(f)}},u=o=>o.done?s(o.value):Promise.resolve(o.value).then(c,y);u((t=t.apply(i,e)).next())});import{L as k,f as B,b as $,q as x,e as q,u as j,A as O,F as N,g as R,c as H,_ as L}from"./lazyload-eMdKdbtN.js";import{E as M,r as m,d as E,b as v,e as V,f as n,F as z,g as G,w as X,h as Y,l as T,t as I,i as h,G as Q,k as F,o as W,s as J}from"./vendor-C7CT9tic.js";class K{constructor(e){w(this,"config");w(this,"el");this.config=e||{},this.init()}init(){let e=this.el=document.createElement("div");e.className="player-flow",e.innerHTML=`
`,document.body.appendChild(e),this.vrsPlayerEl=document.getElementById("vrsPlayer"),this.livePlayerEl=document.getElementById("livePlayer"),this.loadingPanelEl=document.querySelector(".loading-panel"),this.vrsLoadingEl=document.querySelector(".loading-inner"),kao("//js.tv.itc.cn/player/lottie.js",()=>{this.vrsLoadingAni=lottie.loadAnimation({container:this.vrsLoadingEl,renderer:"svg",loop:!0,autoplay:!0,path:"//js.tv.itc.cn/player/gzl-loading.json"})})}pause(){try{this.vrsPlayer&&this.vrsPlayer.pause(),this.livePlayer&&this.livePlayer.pause()}catch(e){}}play(e,t){e&&(e=b({originRefData:e},e),!(t&&t.classList.contains("playing"))&&(this.retPanel(),e.live&&e.roomId?(this.vrsPlayer&&this.vrsPlayer.pause(),this.loadingPanelEl.style.display="none",this.vrsPlayerEl.style.display="none",this.livePlayerEl.style.display="block",this.livePlay(e)):(this.livePlayer&&this.livePlayer.pause(),this.loadingPanelEl.style.display="block",this.vrsPlayerEl.style.cssText="display:block;opacity:0;",this.livePlayerEl.style.display="none",this.vrsPlay(e)),t&&(t.appendChild(this.el),this.parentElement&&(this.parentElement.classList.remove("playing"),this.parentElement.closest(".player-card").querySelector(".play-btn").style.display="block"),this.parentElement=t,this.parentElement.classList.add("playing"),this.parentElement.closest(".player-card").querySelector(".play-btn").style.display="none")))}livePlay(e){this.livePlayer&&(this.livePlayer.destroy(),this.livePlayer=null),kao("//file.qf.56.com/f/script/config/qfplayer/tvlive/umd/qfliveplayer.js",()=>{this.livePlayer=window.QF.livePlayer({wrapperId:"livePlayer",roomId:e.roomId,pageType:"2",streamName:e.streamName,type:e.course==1?"4":"3",isEnterLink:!0,isFullscreen:!0,isAltTrack:e.altTrack,ctrlStyle:{iconWidth:24,fontSize:14},widget:{toLiveRoom:{link:e.playLink||k.makeLiveUrl(e)}},events:{onNolive:()=>{e.originRefData.live=0}}})})}vrsPlay(e){if(e.api_key="037f723e008a83c9a69847c032814842",e.isGzl=1,e.showRecommend=0,e.tvPlayType=e.tvPlayType||"",e.pwd=e.pwd||"",this.vrsPlayer){this.vrsPlayer.doPlay(e);return}kao("h5player",()=>{this.vrsPlayer=playerFactory.createPlayer("#vrsPlayer",{data:e,autoplay:!0,disablePlaylist:!0}),this.vrsPlayer.on("playing",()=>{this.retPanel(),this.vrsPlayer.resize(),this.loadingPanelEl.style.display="none",this.vrsPlayerEl.style.opacity="1"}),this.vrsPlayer.on("ended",()=>{this.vrsPlayer.replay()}),this.vrsPlayer.on("error",t=>{this.showXiaokePayTips(e)}),this.vrsPlayer.on("data.exception",t=>{var s,a;t=t||{},t.code==201&&((s=t.vdata)==null?void 0:s.play)==1&&((a=t.vdata)==null?void 0:a.status)==11?this.showPwdPanel(e):this.showXiaokePayTips(e)})})}createErrorPanel(e){this.retPanel();let t=document.createElement("div");return t.className="player-error-panel",t.style.cssText=`background-image:url(${B.convertFormat(e.hor_w16_pic||e.cover)});`,t}showXiaokePayTips(e){let t=this.xiaokePanel=this.createErrorPanel(e),s=e.cus_userId||e.user_id,a=s?`鐪婽a鐨勫叾瀹冧綔鍝`:"";t.innerHTML=`
`,this.el.appendChild(t)}showPwdPanel(e){let t=this.pwdPanel=this.createErrorPanel(e);t.innerHTML=`
`,this.el.appendChild(t);let s=this.el.querySelector(".player-error-panel-content .pwd input"),a=this.el.querySelector(".player-error-panel-content .btn-submit"),c=this.el.querySelector(".player-error-panel-content .pwd-tip");e.pwd?(c.style.display="block",e.pwd="",this.pwdTipTimer&&clearTimeout(this.pwdTipTimer),this.pwdTipTimer=setTimeout(()=>{c.style.display="none"},3e3)):c.style.display="none",s==null||s.addEventListener("input",()=>{s.value?a.classList.remove("btn-dis"):a.classList.add("btn-dis")}),a==null||a.addEventListener("click",()=>{a.classList.contains("btn-dis")||(e.pwd=s.value,this.play(e))})}seek(e){this.vrsPlayer&&this.vrsPlayer.state=="3"&&this.vrsPlayer.seek(e)}retPanel(){this.xiaokePanel&&this.xiaokePanel.remove(),this.pwdPanel&&this.pwdPanel.remove()}}const Pe=new K,Z="//hd.my.tv.sohu.com",ee={apiUrl:`${Z}/aggregation/h5/v1/getInterestedList`,getIOnterestUserList(i){const e={sver:"99.9.99",plat:"-1",uid:"",nums:"20",businessType:"6",userID:""};return $(`${this.apiUrl}?${x.stringify(Object.assign(e,i))}`)}},te=M("authorInfo",()=>{const i=m({});return{authorInfo:i,updateAuthorInfo:s=>{i.value=Object.assign({},i.value,s)},updateAuthInfo:s=>p(void 0,null,function*(){const a={owner:s,subsribe:1},c=yield q.getOwnerInfo(a);c.data.status===200&&(i.value=c.data.data)})}}),se={class:"interest-box"},ie={key:0,class:"intereste-con"},ae={class:"intereste-list"},le=["onClick"],re=["onClick"],oe={class:"name"},ne={class:"desc"},ce=["onClick"],de=E({__name:"InterestList",setup(i){const e=j(),t=te(),s=m([]),a=()=>p(this,null,function*(){const l={uid:"",userID:""};if(l.uid=R("SUV")||H(),e.isLogin){const r=yield e.getUserInfo();l.userID=r.id}else l.userID="";return l});function c(){return p(this,null,function*(){const l=yield a(),r=b({},l);ee.getIOnterestUserList(r).then(P=>{const{data:d,status:g,statusTest:ye}=P.data;g==200&&(s.value=d.recommendUserList||[])})})}c();function y(l){s.value=s.value.filter(r=>r.uid!==l.uid)}function u(l){if(l!=null&&l.uid){const r=document.createElement("a");r.target="_blank",r.href=k.makeAuthorHomeUrl({uid:l.uid}),r.click()}}const o=m("");function f(){return p(this,null,function*(){const l=x.getUrlParam("uid")||"";if(l)o.value=l;else if(e.isLogin){const r=yield e.getUserInfo();r&&(o.value=r==null?void 0:r.id)}else o.value=""})}function A(){return p(this,null,function*(){var l;yield f(),o.value===String(e.userInfo.id)&&(yield t.updateAuthInfo((l=e.userInfo)==null?void 0:l.id))})}return(l,r)=>{const P=Y("pb");return h(),v("div",se,[s.value.length?(h(),v("div",ie,[r[0]||(r[0]=n("div",{class:"intereste-title"},[n("span",{class:"inttit-icn"}),n("h3",null,"鎰熷叴瓒g殑浜")],-1)),n("div",ae,[(h(!0),v(z,null,G(s.value,d=>X((h(),v("div",{class:"streamer-item",key:d.uid,"data-pb-txid":"focus_stream_interested_user"},[n("div",{class:"item_avatar",onClick:g=>u(d)},[T(O,{info:d},null,8,["info"])],8,le),n("div",{class:"item_info",onClick:g=>u(d)},[n("h4",null,[n("a",oe,I(d.nickname),1)]),n("p",ne,I(d.recReason),1)],8,re),T(N,{styleObject:{"font-weight":"500"},uid:d.uid,type:"solid",isFollow:d.isFollow,from:10,onOnFollow:A},null,8,["uid","isFollow"]),n("span",{class:"nfb-feedback",onClick:g=>y(d)},null,8,ce)])),[[P,{memo:{userid:d.uid}},void 0,{click:!0,impress:!0}]])),128))])])):V("",!0)])}}}),_e=L(de,[["__scopeId","data-v-0a3f87e5"]]),ue={class:"footer-bottom"},pe={class:"footer-bottom_copyright"},ve=E({__name:"InfoFooter",setup(i){const e=m(new Date().getFullYear());return(t,s)=>(h(),v("div",ue,[s[3]||(s[3]=Q('',2)),n("div",pe,[s[0]||(s[0]=F("澶囨鍙凤細")),s[1]||(s[1]=n("a",{href:"https://beian.miit.gov.cn/",target:"_blank"},"浜琁CP璇030367鍙-1",-1)),s[2]||(s[2]=n("br",null,null,-1)),F(" Copyright 漏 "+I(e.value)+" Sohu.com Inc.All Rights Reserved.",1)])]))}}),be=L(ve,[["__scopeId","data-v-38ccef8b"]]),he=E({__name:"ScrollLoadingDetector",emits:["on-trigger"],setup(i,{emit:e}){const t=e;let s=null;const a=m(null);function c(){a.value&&(s=new IntersectionObserver(u=>{u!=null&&u[0].isIntersecting&&t("on-trigger")}),s.observe(a.value))}function y(){s&&s.disconnect()}return W(()=>{c()}),J(()=>{y()}),(u,o)=>(h(),v("div",{class:"scroll-loading-detector",ref_key:"detectorRef",ref:a},null,512))}}),we=L(he,[["__scopeId","data-v-8f0240b8"]]);export{_e as I,we as S,be as a,Pe as p,te as u};