PageSourceSearch

https://www.oneplay.cz/_nuxt/ZGgsfHiX.js

js oneplay.cz collected 2026-09-24 19:32:52 UTC 3,823 bytes, 1 lines download raw bytes

1import{d as L,J as _,u as V,f as z,v as o,s as i,A as H,R as N,o as R,g as j,h as f,n as b,j as u,b as F,w as M,N as U,P as J,F as O,r as Y,_ as q}from"./DV34RqXk.js";import{P as G,h as K,c as Q,n as W,s as X}from"./B7YQfcKJ.js";import{E as Z}from"./DWnDfZaj.js";import{u as $}from"./Daqavq2N.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};t.SENTRY_RELEASE={id:"R13.27"}}catch{}})();try{(function(){var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},l=new t.Error().stack;l&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[l]="2b3d4584-cedd-4adc-b946-2b649feac7f4",t._sentryDebugIdIdentifier="sentry-dbid-2b3d4584-cedd-4adc-b946-2b649feac7f4")})()}catch{}const ee=L({__name:"SimplePlayer",props:{configuration:{},rawData:{},cover:{type:Boolean},variant:{default:"default"},isDetail:{type:Boolean,default:!1}},emits:["play-change","mute-change"],setup(t,{expose:l,emit:h}){_(e=>({v564513cd:S.value}));const s=t,{auth:P,player:w,tracking:c,sa:y}=V(),k=P.useStore(),D=o(()=>{const e=s.rawData?.playData?.media?.stream.assets?.some(n=>n.flags?.includes("bp-smartlib")),r=!!c.useStore().heartbeatTracking;return k.user&&s.rawData?.playData?.media.stream.isLive?[...r?[K,Q]:[],W,e?X:void 0].filter(Boolean):[]}),p=h,{destroy:x,isTrackedPlaying:v,setupPlayer:B,setAsPreviouslyPlayed:E}=$({isAutoplay:!!s.configuration.autoplay,isDetail:s.isDetail}),{t:d}=z("components.player.VolumeBar"),S=o(()=>s.cover?"cover":"contain"),m=Y(),a=o(()=>m.value?.player);i(()=>s.configuration,async(e,r)=>{if(a.value&&r?.sourceInfo&&e.sourceInfo.id!==r.sourceInfo.id){const{nextVideo:n,heartbeats:I}=a.value.plugins,g=s.rawData?.playData?.playerControl;if(!n||!g)return;await n.addSource(w.transformPlayerSourceInfo(g,void 0,void 0,void 0,!0)).then(()=>{I?.reset(e.plugins?.heartbeats)})}}),i(a,e=>{if(!e)return;B(e);const r=s.rawData?.playData?.playerControl?.tracking;r&&c.trackPlayer(e,r,!0),e.addEventListener("ready",()=>{T(e)}),e.addEventListener("playing",()=>{v.value||(e.pause(),E())})});const T=e=>{const r=s.rawData?.playData?.media.stream.assets?.[0]?.audiotracks?.findIndex(n=>n.default);r&&e?.selectAudioLanguage(r)};H(()=>{const e=s.rawData?.playData?.playerControl?.tracking;a.value&&e&&c.untrackPlayer(a.value,e),x()}),N(()=>{a.value?.destroy(),y.trackLfHeartbeat({isBackgroundPlayer:!0,isPlaying:!1})}),i(()=>a.value?.isPlaying,e=>{p("play-change",!!e)}),i([()=>a.value?.isPlaying],([e])=>{y.trackLfHeartbeat({isBackgroundPlayer:!0,isPlaying:e})}),i(v,e=>{e&&!a.value?.isPlaying?a.value?.play():!e&&a.value?.isPlaying&&a.value?.pause()}),l({play:()=>{a.value?.play()},pause:()=>{a.value?.pause()}});const A=o(()=>s.variant==="hero"&&!a.value?.isPlaying),C=()=>{a.value&&(a.value.muted=!a.value.muted,p("mute-change",a.value.muted))};return(e,r)=>(R(),j(O,null,[f(u(G),{ref_key:"playerElement",ref:m,class:b(["e-player",{"player-controls-visible":a.value?.shouldDisplayControls}]),plugins:D.value,configuration:t.configuration},null,8,["class","plugins","configuration"]),F("div",{class:b(["e-volume-wrapper",[t.variant]]),part:"volume-wrapper"},[f(Z,{text:u(d)(a.value?.muted?"unmute":"mute")},{default:M(({setRef:n})=>[f(U,{ref:n,class:"icon",icon:a.value?.muted?"volume-off":"volume-on",variant:"lucid",size:t.variant=="card"||t.variant=="detail"?"small":"large","icon-size":t.variant=="hero"?32:t.variant=="detail"?24:void 0,"aria-label":a.value?.muted?u(d)("unmute"):u(d)("mute"),"aria-keyshortcuts":"M",tabindex:A.value?-1:0,onClick:J(C,["prevent","stop"])},null,8,["icon","size","icon-size","aria-label","tabindex"])]),_:1},8,["text"])],2)],64))}}),ne=Object.assign(q(ee,[["__scopeId","data-v-053be964"]]),{__name:"EboxPlayerSimplePlayer"});export{ne 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.