import{_ as e}from"./vendor-DKh56KT7.js";import{g as o,f as t}from"./vendor-BJZ6tUoe.js";import{ag as s,r as l,q as r,x as a,a4 as i,a5 as n,v,a2 as d,a3 as c,ad as p,bH as f,bf as u,bJ as m,bA as j,bM as x,K as b,b1 as h,aW as y}from"./vendor-BXdGExd0.js";import{u as w,D as k}from"./vendor-DHdPOO28.js";import{u as g,_}from"./vendor-CwfdNEr1.js";import{_ as C}from"./vendor-D2Fuiil7.js";import{_ as $}from"./vendor-CIxbPk9K.js";import{f as I,P as V,g as F}from"./souav-BTAG2baT.js";import{s as M}from"./vendor-CB_mu4eO.js";import{_ as S}from"./vendor-BCo6x5W8.js";import"./vendor-Dm4oB1Pn.js";import"./vendor-DN37M9Hi.js";import"./vendor-DBhUxCDU.js";import"./vendor-nxASRxho.js";import"./vendor-CzTn-9lu.js";import"./vendor-BAqn-6d_.js";import"./vendor-DlsNk5rM.js";import"./vendor-Bsarx7Le.js";import"./vendor-bo_0oRCG.js";import"./vendor-QgNWKiQk.js";import"./vendor-DJUGQ7Dr.js";import"./vendor-QBCTe_-W.js";import"./vendor-DppN28kL.js";import"./vendor-TgWiOutC.js";import"./vendor-DSXubtF9.js";import"./vendor-CDxkAdJH.js";import"./vendor-Cv8m7sE6.js";import"./vendor-Dos3PyFQ.js";import"./vendor-Dwl46Tfs.js";import"./vendor-BHR_E30J.js";import"./vendor-DzK633Zd.js";import"./vendor-CfyHAoLP.js";const z={class:"h-dvh bg-gray-900 text-white"},A={key:0,class:"h-full w-full flex flex-col"},T={class:"sticky top-0 z-20 bg-gray-900",ref:"tabBarRef"},q={class:"w-full h-[35px] flex items-center mt-[10px] pl-[5px]"},P={class:"relative w-0 h-full"},R={class:"absolute left-[1px] top-[9px] text-xs text-rose-500"},U={class:"tab-content flex-1 flex flex-col"},B={key:1,class:"h-full w-full flex justify-center items-center"},D={class:"fixed left-0 top-0 w-full flex items-center justify-between h-10 z-30"},E=S(s({__name:"VideoPop",props:{video:{}},emits:["ppw-close"],setup(s,{expose:S}){const E=s,H=w(),J=g(),K=I(),{playUrl:L,cover:N,hasTitleAd:W,titleAdList:G,detailModel:O,videoTitle:Q,isNoFreeCount:X}=M(H),{commentCount:Y}=M(J),{isVip:Z}=M(K),ee=l(null),oe=["详情","评论"],te=l(0),se=l(0),le=()=>{V.open("Feedback",{props:{vid:E.video.contentId},transition:"slide-fade"})};return r(async()=>{E.video&&(se.value=E.video.contentId??0,H.resetVidoeModel(E.video),await H.init(se.value),te.value=0)}),a(()=>{H.clearState()}),S({handleSwitchVideo:async e=>{var o;e.contentId!==se.value&&(H.clearState(),H.resetVidoeModel(e),se.value=e.contentId,await H.init(se.value),te.value=0,null==(o=ee.value)||o.scrollTo(0,0))}}),(s,l)=>{const r=t,a=o,w=e;return y(),i("div",z,[v(O)?(y(),i("div",A,[se.value?(y(),d(k,{key:0,id:se.value,url:v(L),cover:v(N)},null,8,["id","url","cover"])):c("",!0),n("div",{class:"flex-1 flex flex-col overflow-y-auto",ref_key:"scrollContainerRef",ref:ee,style:{"-webkit-overflow-scrolling":"touch"}},[v(W)?(y(),d(C,{key:0,"banner-list":v(G)},null,8,["banner-list"])):c("",!0),n("div",T,[n("div",q,[p(a,{active:te.value,"onUpdate:active":l[0]||(l[0]=e=>te.value=e),background:"transparent","line-width":"12px","line-height":"3px",color:"#FF0E51","title-active-color":"#fff","title-inactive-color":"#9ca3af"},{default:f(()=>[(y(),i(b,null,h(oe,e=>p(r,{key:e,title:e,"title-style":{fontSize:"16px"}},null,8,["title"])),64))]),_:1},8,["active"]),n("div",P,[n("span",R,"("+u(v(Y))+")",1)]),l[3]||(l[3]=n("div",{class:"flex-grow"},null,-1)),n("button",{onClick:le,class:"mr-[10px] px-[5px] text-rose-500 text-xs"}," 无法播放？ ")])],512),n("div",U,[m(p($,null,null,512),[[j,0===te.value]]),m(p(_,{vid:se.value},null,8,["vid"]),[[j,1===te.value]])])],512)])):(y(),i("div",B,[p(w)])),n("div",D,[n("div",{class:"w-10 h-10 flex items-center justify-center pointer-events-auto active:scale-90 transition-transform",onClick:l[1]||(l[1]=x(e=>s.$emit("ppw-close"),["stop"]))},[...l[4]||(l[4]=[n("i",{class:"icon-sprite icon-back"},null,-1)])]),n("div",{class:"w-10 h-10 flex items-center justify-center pointer-events-auto active:scale-90 transition-transform",onClick:l[2]||(l[2]=x(e=>(async()=>{const e=`${location.protocol}//${location.host}/video/${se.value}`;F(`${Q.value}\n${e}`,"")})(),["stop"]))},[...l[5]||(l[5]=[n("i",{class:"icon-sprite icon-share"},null,-1)])])])])}}}),[["__scopeId","data-v-9c9f2e7e"]]);export{E as default};
