PageSourceSearch

https://cdn.watchpfl.com/_nuxt/live.57bed5ed.js

js watchpfl.com collected 2026-09-29 02:22:20 UTC 4,637 bytes, 1 lines download raw bytes

1var G=Object.defineProperty;var H=(o,s,t)=>s in o?G(o,s,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[s]=t;var V=(o,s,t)=>(H(o,typeof s!="symbol"?s+"":s,t),t);import{ar as C,aX as A,aG as r,b0 as d,aL as i,aM as n,b9 as P,aC as a,aN as N,ba as B,bb as J,bi as E,b4 as M,r as h,bj as R,bk as W,b6 as b,aY as U,bl as T,bm as F,aH as L,aI as D,bn as X,ab as Y,bo as K,bg as Q,aJ as $,bp as Z,bq as x,bc as ee,bd as se,b1 as te}from"./vuelibs.d028b2dc.js";import{C as ae}from"./entry.761c0754.js";import{_ as ie}from"./StreamPlayer.vue.08beff16.js";import{L as oe}from"./LiveVideos.dae556e8.js";import"./libs.de2e798a.js";import"./videojs.38146b0b.js";function z(o){return typeof o=="string"?o:o.name}const re={class:"video_desc"},ne={class:"padding-both"},le={key:0,class:"upcoming"},ce={class:"large-text align-center"},de={class:"pre-wrap live-description"},pe={key:1},ue={key:2},ve={key:3},me={class:"matches"},_e={class:"flex middle gap-4"},he=i("div",{class:"flex wrap center align-center"},[i("div",{class:"crown"}),i("strong",{class:"vs"},"VS")],-1),fe={class:"flex middle end gap-8"},ge=C({__name:"LiveDescription",props:{video:{},isLive:{type:Boolean}},setup(o){const s=A(),t=e=>typeof e=="string"||!e.cc?{}:{"background-image":`url(${M.asset("images/flags/"+e.cc+".svg")})`};return(e,v)=>{var l,m,f,g,w,p,S,k,y;return r(),d("div",re,[i("div",ne,[e.isLive?P("",!0):(r(),d("h2",le,n(e.$t("coming")),1)),i("h1",ce,n(e.video.getName(a(s).locale.value)),1),i("p",de,n(e.video.getDescription(a(s).locale.value)),1),(l=e.video)!=null&&l.details?(r(),d("hr",pe)):P("",!0),(f=(m=e.video)==null?void 0:m.details)!=null&&f.prelim?(r(),d("p",ue,[i("strong",null,n(e.$t("prelims")),1),N(" "+n((w=(g=e.video)==null?void 0:g.details)==null?void 0:w.prelim),1)])):P("",!0),(S=(p=e.video)==null?void 0:p.details)!=null&&S.main?(r(),d("p",ve,[i("strong",null,n(e.$t("maincard")),1),N(" "+n((y=(k=e.video)==null?void 0:k.details)==null?void 0:y.main),1)])):P("",!0),i("div",me,[(r(!0),d(B,null,J(e.video.matches,u=>(r(),d(B,null,[i("h4",null,n(u.name),1),i("div",_e,[i("div",{class:"flag",style:E(t(u.player0))},null,4),N(" "+n(a(z)(u.player0)),1)]),he,i("div",fe,[N(n(a(z)(u.player1))+" ",1),i("div",{class:"flag",style:E(t(u.player1))},null,4)])],64))),256))])])])}}}),ye=5e3,Le=C({__name:"LiveView",props:{app:{},api:{},prePoster:{},postPoster:{},showSafetyDisclaimer:{type:Boolean},upsell:{type:Boolean}},setup(o){const s=o,t=h(),e=h(),v=h(!1),l=h(!!s.showSafetyDisclaimer&&!R.i.safetyDisclaimerAccepted),m=A();let f=null;const g=()=>f=setTimeout(y,ye);class w{constructor(){V(this,"_didStart",0);V(this,"_fight","")}get duration(){return(Date.now()-this._didStart)/1e3}start(_){this._fight=_,!this._didStart&&(this._didStart=Date.now(),b.i.track("Live Video",{Name:"Started","Live Event Name":this._fight}))}end(){this._didStart&&(b.i.track("Live Video",{Name:"Ended","Live Event Name":this._fight,Duration:this.duration}),this._didStart=0)}stop(){this._didStart&&(b.i.track("Live Video",{Name:"Stopped","Live Event Name":this._fight,Duration:this.duration}),this._didStart=0)}}var p=new w;const S=W(),k=c=>t.value&&p.start(c),y=async()=>{var c;try{t.value=await oe.i.live(s.app),(c=t.value)!=null&&c.active||p.end(),g()}catch(_){console.log(_),t.value=void 0,X.httpStatus(_)==404?(p.end(),v.value=!0,s.upsell&&Y(S(ae.billing))):e.value=U.error(m,_,"live_"),g()}},u=()=>l.value=!1;return b.i.track("Page Load",{Name:"Live"}),U.title(m,s.app,"live"),T(y),F(()=>{clearTimeout(f),p.stop()}),(c,_)=>{const O=se,j=K;return r(),L(j,null,{default:D(()=>[a(t)||a(v)?(r(),L(ie,{key:0,video:a(t),hasAccess:a(Q).i.hasAccess,streaming:!!a(t)&&a(t).active,prePoster:c.prePoster,postPoster:c.postPoster,muted:c.api.muted,showSafetyDisclaimer:a(l),onOnPlay:k},{subwall:D(()=>[$(Z)]),description:D(({video:I,streaming:q})=>[$(ge,{video:I,isLive:q},null,8,["video","isLive"])]),default:D(()=>[a(l)?(r(),L(x,{key:0,onConsent:u})):P("",!0)]),_:1},8,["video","hasAccess","streaming","prePoster","postPoster","muted","showSafetyDisclaimer"])):a(e)?(r(),L(ee,{key:1,error:a(e)},null,8,["error"])):(r(),L(O,{key:2,class:"large"}))]),_:1})}}}),Pe={id:"live"},$e=C({__name:"live",setup(o){const s=l=>M.asset("images/live_"+l+(window.innerWidth>1024?"@2x":"")+".jpg"),t=h(s("pre")),e=h(s("post")),v=()=>{t.value=s("pre"),e.value=s("post")};return T(()=>window.addEventListener("resize",v)),F(()=>window.removeEventListener("resize",v)),b.i.track("Page Load",{Name:"Live"}),(l,m)=>(r(),d("div",Pe,[$(Le,{app:"pfl",api:a(te).i,prePoster:a(t),postPoster:a(e),showSafetyDisclaimer:!0,upsell:!1},null,8,["api","prePoster","postPoster"])]))}});
1export{$e as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.