@viewlift/player-backup 2.0.316-backup → 2.0.318-backup

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (63) hide show
  1. package/cjs/{autoNextVideo-aca868b2.js → autoNextVideo-6704601a.js} +1 -1
  2. package/cjs/bundle.css +1085 -979
  3. package/cjs/{features-ba230d44.js → features-ef61de84.js} +1 -1
  4. package/cjs/{generic-b119e225.js → generic-754b73b9.js} +1 -1
  5. package/cjs/{index-c1289347.js → index-58a5e66f.js} +1 -1
  6. package/cjs/{index-90eaa87b.js → index-759a1ed5.js} +1 -1
  7. package/cjs/{index-069a9358.js → index-94a82c6b.js} +1 -1
  8. package/cjs/index-c82f1ab8.js +1 -0
  9. package/cjs/index.js +1 -1
  10. package/cjs/{multicamv2-afc38215.js → multicamv2-a5ccde69.js} +1 -1
  11. package/cjs/{multicamv2-1de3d2cf.js → multicamv2-c0ea0f16.js} +1 -1
  12. package/cjs/{nextEpisodeButton-ba5016fe.js → nextEpisodeButton-94a6e1c3.js} +1 -1
  13. package/cjs/{playlist-4c8be9da.js → playlist-869072fe.js} +1 -1
  14. package/cjs/{series-b93644c2.js → series-45f423d1.js} +1 -1
  15. package/cjs/{series-v2-93b2300c.js → series-v2-85099d28.js} +1 -1
  16. package/cjs/{series-v2-706cd019.js → series-v2-fa48542f.js} +1 -1
  17. package/cjs/{skin-e69b9634.js → skin-0ba3b5ee.js} +1 -1
  18. package/cjs/{skin-e0837286.js → skin-0f4c3f0c.js} +1 -1
  19. package/cjs/{skin-9fd7e847.js → skin-10eb465d.js} +1 -1
  20. package/cjs/{skin-ebca6c8b.js → skin-13f1ddc0.js} +1 -1
  21. package/cjs/{skin-dcc335ff.js → skin-211ae95b.js} +1 -1
  22. package/cjs/{skin-32b69fad.js → skin-a015e59f.js} +1 -1
  23. package/cjs/{skin-6dfcf154.js → skin-ba4cd74f.js} +1 -1
  24. package/cjs/{skin-20ef2a38.js → skin-c6e91e59.js} +1 -1
  25. package/cjs/{skin-bf860a27.js → skin-e5bc212a.js} +1 -1
  26. package/cjs/{skin-35b032cc.js → skin-f7c8304f.js} +1 -1
  27. package/cjs/videoSelector-3c8fb5e9.js +1 -0
  28. package/cjs/{videoSelector-cf477c8e.js → videoSelector-e8c72f5d.js} +1 -1
  29. package/cjs/{videojs-dash5.es-fd74bd77.js → videojs-dash5.es-e6b0205f.js} +1 -1
  30. package/esm/{autoNextVideo-91c70a62.js → autoNextVideo-d5b82444.js} +1 -1
  31. package/esm/bundle.css +1085 -979
  32. package/esm/components/video-selector/videoSelector.d.ts +1 -0
  33. package/esm/{features-ee38c5bb.js → features-99081d09.js} +1 -1
  34. package/esm/{generic-d8ac6622.js → generic-f765c6f0.js} +1 -1
  35. package/esm/index-32db0990.js +1 -0
  36. package/esm/{index-22ed302f.js → index-894852f9.js} +1 -1
  37. package/esm/{index-554f98ba.js → index-97684837.js} +1 -1
  38. package/esm/{index-080bf7b9.js → index-aba78d94.js} +1 -1
  39. package/esm/index.js +1 -1
  40. package/esm/{multicamv2-52fd51a9.js → multicamv2-455bd82e.js} +1 -1
  41. package/esm/{multicamv2-f174146d.js → multicamv2-723a367d.js} +1 -1
  42. package/esm/{nextEpisodeButton-a6d2c73b.js → nextEpisodeButton-6ceba54e.js} +1 -1
  43. package/esm/{playlist-a412afc9.js → playlist-16d651a2.js} +1 -1
  44. package/esm/{series-becfa7b8.js → series-99ed8498.js} +1 -1
  45. package/esm/{series-v2-1736cc8f.js → series-v2-d9d8653b.js} +1 -1
  46. package/esm/{series-v2-5442a8d9.js → series-v2-ec6c014a.js} +1 -1
  47. package/esm/{skin-8a5bf136.js → skin-0c5cb109.js} +1 -1
  48. package/esm/{skin-076873a1.js → skin-513a9b7d.js} +1 -1
  49. package/esm/{skin-e0e20103.js → skin-5b9c3675.js} +1 -1
  50. package/esm/{skin-1c90159f.js → skin-66c6b120.js} +1 -1
  51. package/esm/{skin-500c2418.js → skin-953812ed.js} +1 -1
  52. package/esm/{skin-4f4fee6c.js → skin-b471f198.js} +1 -1
  53. package/esm/{skin-b8d4c095.js → skin-c182cabd.js} +1 -1
  54. package/esm/{skin-3be46735.js → skin-e63ece28.js} +1 -1
  55. package/esm/{skin-c212b8d7.js → skin-f3c11ee9.js} +1 -1
  56. package/esm/{skin-56f6d601.js → skin-ffe5b1ec.js} +1 -1
  57. package/esm/{videoSelector-c77c3f9e.js → videoSelector-ba26c654.js} +1 -1
  58. package/esm/{videoSelector-45e68ccd.js → videoSelector-fc8de3a6.js} +1 -1
  59. package/esm/{videojs-dash5.es-ea7b0efc.js → videojs-dash5.es-43f0858c.js} +1 -1
  60. package/package.json +1 -1
  61. package/cjs/index-9c7a1bcb.js +0 -1
  62. package/cjs/videoSelector-0747ad7d.js +0 -1
  63. package/esm/index-54e8aa9b.js +0 -1
@@ -1 +1 @@
1
- import"./index-080bf7b9.js";import{t,g as e}from"./skin-932f3764.js";import{e as n}from"./generic-d8ac6622.js";let r="my-player";function i(t,n,i){const a=document.querySelector(".vjs-progress-holder.vjs-slider.vjs-slider-horizontal"),o=e(r);if(!a||!o)return;const s=a.getBoundingClientRect(),l=(t.clientX-s.left)/s.width,u=function(t,e){if(!e||0===e.length)return null;let n=0,r=e.length-1;for(;n<=r;){const i=Math.floor((n+r)/2),a=e[i];if(a===t)return a;a<t?n=i+1:r=i-1}const i=e[n]??1/0,a=e[r]??-1/0;return Math.abs(i-t)<Math.abs(a-t)?i:a}(Math.round(l*o.duration()),i),c=n[u];c&&!c.loading&&(c.loading=!0,async function(t){if(t._tiles)return t._tiles;try{const e=await fetch(t.uri,{mode:"cors"}),n=await e.blob(),r=await createImageBitmap(n),[i,a]=t.layout.split("x").map(Number),o=r.width/a,s=r.height/i,l=[];for(let e=0;e<i;e++)for(let n=0;n<a;n++){const i=document.createElement("canvas");i.width=o,i.height=s,i.getContext("2d").drawImage(r,n*o,e*s,o,s,0,0,o,s);const a=i.toDataURL("image/png");l.push({uri:a,duration:t.duration}),t._tiles=l}return l}catch(e){const[n,r]=t.layout.split("x").map(Number);let i=[];for(let e=0;e<n*r;e++)i.push({uri:window?.app_data?.appcmsMain?.images?.placeholderCover,duration:t.duration});return i}}(c).then(t=>{const e=t[c.tileIndex],n=document.querySelector(".vjs-thumbnail-holder img");n&&e.uri&&(n.src=e.uri),c.loading=!1,c.src=e.uri}))}async function a(e){let n={};e.forEach((t,e)=>{const[r,i]=t.layout.split("x").map(Number),a=r*i,o=t.duration;for(let r=0;r<a;r++){const i=Math.round((e*a+r)*o);n[i]={...t,duration:t.duration,tileIndex:r,loading:!1,style:{left:"-60px",height:"85px",width:"130px",left:"-60px",border:"1px solid transparent",borderRadius:"4px"}}}});const r=Object.keys(n).map(Number).sort((t,e)=>t-e),a=document.querySelector(".vjs-progress-holder.vjs-slider.vjs-slider-horizontal");a?.addEventListener("mousemove",t(t=>i(t,n,r),500));const o=document.querySelector(".vjs-progress-control.vjs-control");return o?.addEventListener("pointerdown",function(e){document.addEventListener("pointermove",t(t=>i(t,n,r),500))}),n}function o(t){return t.replace(/AdSegmentFilter\/markers=\(.+?\)\//,"")}function s(t){const e=t.match(/Thumbnail_\$Number%0\d+d\$\.\w+/);return e?e[0]:null}function l(t,e){const n=t.match(/%0(\d+)d/);if(!n)return t;const r=parseInt(n[1],10),i=String(e).padStart(r,"0");return t.replace(/\$Number%0\d+d\$/,i)}async function u(t){const i=e(t);let{src:u}=i.currentSource();if(u=u?.includes("blob")?i?.getSource?.():u,u?.includes("m3u8")){let e=await async function(t,e){r=e;try{const e=await fetch(t);return function(t){const e=t.split("\n"),n=[];return e.forEach(t=>{if((t=t.trim()).startsWith("#EXT-X-IMAGE-STREAM-INF")){const e=t.split(","),r={resolution:null,uri:null};e.forEach(t=>{t.includes("RESOLUTION")&&(r.resolution=t.split("=")[1]),t.includes("URI")&&(r.uri=t.split("=")[1].replace(/"/g,""))}),n.push(r)}}),n}(await e.text())}catch(t){console.error("Error fetching the M3U8 manifest:",t)}}(u,t);if(e?.length>0){const{uri:t}=e?.[0]||null,n=u.substring(0,u.lastIndexOf("/"))+"/";let r=await(async(t,e)=>{const n=await fetch(t+e),r=(await n.text()).split("\n").map(t=>t.trim()),i=[];let a=null;for(let e=0;e<r?.length;e++){const n=r[e];if(n.startsWith("#EXT-X-TILES"))a={resolution:null,duration:null,uri:null,layout:null},(n.split(":")[1]||"").split(",").forEach(t=>{const[e,n]=t.split("=");e&&n&&(a[e.trim().toLowerCase()]=n.trim())});else{if(n.startsWith("#EXTINF"))continue;(n.includes("jpg")||n.includes("png")||n.includes("jpeg"))&&(a.uri=n.includes("http")?n:t+n,i.push(a),a=null)}}return i})(n,t),o=await a(r);i.thumbnails(o)}}else if(u?.includes("mpd")){let c=await async function(t,i){r=i;const a=e(i),u=t.split("/"),c=u.findIndex(t=>"dash"===t.toLowerCase()),d=o(-1!==c?u.slice(0,c+1).join("/"):new URL(t).origin);try{const e=await fetch(t),r=await e.text(),i=(new DOMParser).parseFromString(r,"application/xml"),o=a?.duration()||n()?.video?.runtime,u=i?.querySelector("MPD > BaseURL")?.textContent||d+"/",c=i.getElementsByTagName("AdaptationSet");for(let t=0;t<c.length;t++){const e=c[t];if("image"===e.getAttribute("contentType")&&"image/png"===e.getAttribute("mimeType")||"image/jpeg"===e.getAttribute("mimeType")){const n=e.getElementsByTagName("SegmentTemplate")[0],r=n.getElementsByTagName("SegmentTimeline")?.[0];if(n&&r){const i=r.getElementsByTagName("S"),a=parseInt(i[0]?.getAttribute("t")),s=parseInt(i[0]?.getAttribute("d")),l=e.getElementsByTagName("Representation")[0],u=l.getElementsByTagName("EssentialProperty")[0].getAttribute("value"),[c,m]=u?.split("x");if(n){n.getAttribute("media");const e=n.getAttribute("timescale"),r=(e?s/e:s)/(c*m),i=l.getAttribute("id"),p=Math.round(o/r),g=Math.ceil(p/(c*m)),h=n.getAttribute("media");if(parseInt(n.getAttribute("startNumber")),isNaN(parseInt(g)))return;let f=[];for(t=0;t<g;t++){const e=h,n="/"==e[0]?new URL(d).origin:d+"/";f.push({duration:r,layout:u,uri:n+e.replace("$Time$",a+t*s).replace("$RepresentationID$",i)})}return f}}else{const r=e.getElementsByTagName("Representation")[0],i=r.getElementsByTagName("EssentialProperty")[0].getAttribute("value"),[a,c]=i?.split("x");if(n){n.getAttribute("media");const e=n.getAttribute("duration"),d=n.getAttribute("timescale"),m=(d?e/d:e)/(a*c),p=r.getAttribute("id"),g=Math.round(o/m),h=Math.ceil(g/(a*c)),f=n.getAttribute("media"),b=parseInt(n.getAttribute("startNumber"))||0;if(isNaN(parseInt(h)))return;let y=[];const w=s(f);for(t=0;t<h;t++){const e=w?l(w,t+b):f;y.push({duration:m,layout:i,uri:u+e.replace("$Number$",t+b).replace("$RepresentationID$",p)})}return y}}}}return console.log("No trickplay segment found."),null}catch(t){console.error("Error fetching or parsing MPD:",t)}}(u,t);if(c?.length>0){let t=await a(c);i.thumbnails(t)}}}export{u as i};
1
+ import"./index-aba78d94.js";import{t,g as e}from"./skin-932f3764.js";import{e as n}from"./generic-f765c6f0.js";let r="my-player";function i(t,n,i){const a=document.querySelector(".vjs-progress-holder.vjs-slider.vjs-slider-horizontal"),o=e(r);if(!a||!o)return;const s=a.getBoundingClientRect(),l=(t.clientX-s.left)/s.width,u=function(t,e){if(!e||0===e.length)return null;let n=0,r=e.length-1;for(;n<=r;){const i=Math.floor((n+r)/2),a=e[i];if(a===t)return a;a<t?n=i+1:r=i-1}const i=e[n]??1/0,a=e[r]??-1/0;return Math.abs(i-t)<Math.abs(a-t)?i:a}(Math.round(l*o.duration()),i),c=n[u];c&&!c.loading&&(c.loading=!0,async function(t){if(t._tiles)return t._tiles;try{const e=await fetch(t.uri,{mode:"cors"}),n=await e.blob(),r=await createImageBitmap(n),[i,a]=t.layout.split("x").map(Number),o=r.width/a,s=r.height/i,l=[];for(let e=0;e<i;e++)for(let n=0;n<a;n++){const i=document.createElement("canvas");i.width=o,i.height=s,i.getContext("2d").drawImage(r,n*o,e*s,o,s,0,0,o,s);const a=i.toDataURL("image/png");l.push({uri:a,duration:t.duration}),t._tiles=l}return l}catch(e){const[n,r]=t.layout.split("x").map(Number);let i=[];for(let e=0;e<n*r;e++)i.push({uri:window?.app_data?.appcmsMain?.images?.placeholderCover,duration:t.duration});return i}}(c).then(t=>{const e=t[c.tileIndex],n=document.querySelector(".vjs-thumbnail-holder img");n&&e.uri&&(n.src=e.uri),c.loading=!1,c.src=e.uri}))}async function a(e){let n={};e.forEach((t,e)=>{const[r,i]=t.layout.split("x").map(Number),a=r*i,o=t.duration;for(let r=0;r<a;r++){const i=Math.round((e*a+r)*o);n[i]={...t,duration:t.duration,tileIndex:r,loading:!1,style:{left:"-60px",height:"85px",width:"130px",left:"-60px",border:"1px solid transparent",borderRadius:"4px"}}}});const r=Object.keys(n).map(Number).sort((t,e)=>t-e),a=document.querySelector(".vjs-progress-holder.vjs-slider.vjs-slider-horizontal");a?.addEventListener("mousemove",t(t=>i(t,n,r),500));const o=document.querySelector(".vjs-progress-control.vjs-control");return o?.addEventListener("pointerdown",function(e){document.addEventListener("pointermove",t(t=>i(t,n,r),500))}),n}function o(t){return t.replace(/AdSegmentFilter\/markers=\(.+?\)\//,"")}function s(t){const e=t.match(/Thumbnail_\$Number%0\d+d\$\.\w+/);return e?e[0]:null}function l(t,e){const n=t.match(/%0(\d+)d/);if(!n)return t;const r=parseInt(n[1],10),i=String(e).padStart(r,"0");return t.replace(/\$Number%0\d+d\$/,i)}async function u(t){const i=e(t);let{src:u}=i.currentSource();if(u=u?.includes("blob")?i?.getSource?.():u,u?.includes("m3u8")){let e=await async function(t,e){r=e;try{const e=await fetch(t);return function(t){const e=t.split("\n"),n=[];return e.forEach(t=>{if((t=t.trim()).startsWith("#EXT-X-IMAGE-STREAM-INF")){const e=t.split(","),r={resolution:null,uri:null};e.forEach(t=>{t.includes("RESOLUTION")&&(r.resolution=t.split("=")[1]),t.includes("URI")&&(r.uri=t.split("=")[1].replace(/"/g,""))}),n.push(r)}}),n}(await e.text())}catch(t){console.error("Error fetching the M3U8 manifest:",t)}}(u,t);if(e?.length>0){const{uri:t}=e?.[0]||null,n=u.substring(0,u.lastIndexOf("/"))+"/";let r=await(async(t,e)=>{const n=await fetch(t+e),r=(await n.text()).split("\n").map(t=>t.trim()),i=[];let a=null;for(let e=0;e<r?.length;e++){const n=r[e];if(n.startsWith("#EXT-X-TILES"))a={resolution:null,duration:null,uri:null,layout:null},(n.split(":")[1]||"").split(",").forEach(t=>{const[e,n]=t.split("=");e&&n&&(a[e.trim().toLowerCase()]=n.trim())});else{if(n.startsWith("#EXTINF"))continue;(n.includes("jpg")||n.includes("png")||n.includes("jpeg"))&&(a.uri=n.includes("http")?n:t+n,i.push(a),a=null)}}return i})(n,t),o=await a(r);i.thumbnails(o)}}else if(u?.includes("mpd")){let c=await async function(t,i){r=i;const a=e(i),u=t.split("/"),c=u.findIndex(t=>"dash"===t.toLowerCase()),d=o(-1!==c?u.slice(0,c+1).join("/"):new URL(t).origin);try{const e=await fetch(t),r=await e.text(),i=(new DOMParser).parseFromString(r,"application/xml"),o=a?.duration()||n()?.video?.runtime,u=i?.querySelector("MPD > BaseURL")?.textContent||d+"/",c=i.getElementsByTagName("AdaptationSet");for(let t=0;t<c.length;t++){const e=c[t];if("image"===e.getAttribute("contentType")&&"image/png"===e.getAttribute("mimeType")||"image/jpeg"===e.getAttribute("mimeType")){const n=e.getElementsByTagName("SegmentTemplate")[0],r=n.getElementsByTagName("SegmentTimeline")?.[0];if(n&&r){const i=r.getElementsByTagName("S"),a=parseInt(i[0]?.getAttribute("t")),s=parseInt(i[0]?.getAttribute("d")),l=e.getElementsByTagName("Representation")[0],u=l.getElementsByTagName("EssentialProperty")[0].getAttribute("value"),[c,m]=u?.split("x");if(n){n.getAttribute("media");const e=n.getAttribute("timescale"),r=(e?s/e:s)/(c*m),i=l.getAttribute("id"),p=Math.round(o/r),g=Math.ceil(p/(c*m)),h=n.getAttribute("media");if(parseInt(n.getAttribute("startNumber")),isNaN(parseInt(g)))return;let f=[];for(t=0;t<g;t++){const e=h,n="/"==e[0]?new URL(d).origin:d+"/";f.push({duration:r,layout:u,uri:n+e.replace("$Time$",a+t*s).replace("$RepresentationID$",i)})}return f}}else{const r=e.getElementsByTagName("Representation")[0],i=r.getElementsByTagName("EssentialProperty")[0].getAttribute("value"),[a,c]=i?.split("x");if(n){n.getAttribute("media");const e=n.getAttribute("duration"),d=n.getAttribute("timescale"),m=(d?e/d:e)/(a*c),p=r.getAttribute("id"),g=Math.round(o/m),h=Math.ceil(g/(a*c)),f=n.getAttribute("media"),b=parseInt(n.getAttribute("startNumber"))||0;if(isNaN(parseInt(h)))return;let y=[];const w=s(f);for(t=0;t<h;t++){const e=w?l(w,t+b):f;y.push({duration:m,layout:i,uri:u+e.replace("$Number$",t+b).replace("$RepresentationID$",p)})}return y}}}}return console.log("No trickplay segment found."),null}catch(t){console.error("Error fetching or parsing MPD:",t)}}(u,t);if(c?.length>0){let t=await a(c);i.thumbnails(t)}}}export{u as i};
@@ -1 +1 @@
1
- import{g as e,d as t}from"./skin-932f3764.js";import{a4 as n,d as l}from"./generic-d8ac6622.js";import{s as a}from"./autoNextVideo-91c70a62.js";import{r}from"./relatedVideosManager-6e242502.js";import i from"video.js";let o=[],s=!1,d=null,c=!1,m=null,u=null,p=null,f=null,h=null;const g=()=>{null!=d&&(clearInterval(d),d=null),c=!1},v="next-ep-preview-player-thumb",x=(e,t)=>{if(!e)return;var n;n=t,n?.gist?.imageGist?.r16x9||n?.img||window;let l=e.getElementsByClassName(v)[0];l||(l=document.createElement("div"),l.className=v,l.setAttribute("aria-hidden","true"),e.appendChild(l))},y=(e,t)=>{if(!e)return;const n=e.getElementsByClassName(v)[0];n&&(n.style.visibility=t?"visible":"hidden")},C=()=>{let e=document.createElement("div");e.className="next-heading-wrapper";let t=document.createElement("div");t.className="next-ep-header";let n=document.createElement("span");n.className="next-ep-header-text",n.textContent="Next up in";let l=document.createElement("span");return l.className="next-ep-duration",l.textContent="10",t.append(n,l),e.append(t),e},E=(e,n,l,a)=>{let r=e?.isClip?e?.seriesTitle:e?.title,i=e?.gist?.description||e?.description||"",o=document.createElement("div");o.className="next-ep-content";let d=document.createElement("div");d.className="next-ep-thumb-wrap";let c=document.createElement("img");c.className="next-ep-img",c.alt="",c.src=e?.gist?.imageGist?.r16x9||e?.img||window?.customData?.fallbackImage;let m=(e=>{if(null==e||Number.isNaN(Number(e)))return"";const t=Math.floor(Number(e));return`${Math.floor(t/60)}:${String(t%60).padStart(2,"0")}`})(e?.runtime),u=document.createElement("div");u.className="next-ep-thumb-runtime",u.textContent=m,m||u.classList.add("next-ep-thumb-runtime--empty"),d.appendChild(c),d.appendChild(u);let p=document.createElement("div");p.className="next-ep-meta";let f=document.createElement("div");f.className="next-ep-title",f.textContent=`${r||""}`;let h=document.createElement("div");h.className="next-ep-desc",h.textContent=i||"",String(i||"").trim()||h.classList.add("next-ep-desc--empty");let v=document.createElement("div");v.className="next-ep-meta-row";let x=document.createElement("span");x.className="next-ep-badge";let y=(e=>{const t=e?.isClip;if(t)return"CLIP"})(e);x.textContent=y,y||x.classList.add("next-ep-badge--empty");let C=document.createElement("span");C.className="next-ep-episode",C.textContent=(e=>{if(!e||"string"!=typeof e)return"";const t=e.match(/^S(\d+)\s*E(\d+)$/i)||e.match(/^S(\d+)E(\d+)$/i);return t?`S${t[1]} E${Number(t[2])}`:e})(e?.episodeDisplayAttribute)||"";let E=document.createElement("div");E.className="next-ep-meta-row-left",E.appendChild(x),E.appendChild(C);let w=document.createElement("img");w.className="next-ep-network-logo",w.alt="";let A=(e=>{if(!e)return;const t=window?.app_data?.appcmsMain?.networks;if(!e||!t)return;const n=t?.find(t=>{if(t.identifier==e)return t});return n?.badgeImage})(e?.network);A?w.src=A:w.classList.add("next-ep-network-logo--empty"),v.appendChild(E),p.appendChild(f),p.appendChild(h),p.appendChild(v);let b=document.createElement("div");return b.className="next-ep-meta-with-logo",b.appendChild(p),b.appendChild(w),o.appendChild(d),o.appendChild(b),o.onclick=t(()=>{g(),n?.remove(),s=!0,N(l)},400),o},w=(t,a)=>{if(s=!1,f=t,h=a,p&&(p(),p=null),a?.series?.enable){o=[];const e=l();e?.map(e=>o.push(...e.episodes))}else{const e=r.get();o=e?.content||[],p=r.subscribe(()=>{p&&(p(),p=null),f&&h&&w(f,h)})}let i=e(t);if(!i)return;(e=>{e&&u&&(e.off("timeupdate",u),u=null)})(e(m)),g(),m=t,u=()=>{if(s)return;let e=i.duration(),l=i.currentTime(),a=Number.isFinite(e)&&e>0?e-l:1/0,r=document.getElementsByClassName("next-ep-preview")?.[0];const m=document.getElementById(t),u=n()<=o?.length-1;if(a>1){if(null!=d||c){g();let e=r?.querySelector(".next-ep-header .next-ep-duration");e&&(e.textContent="10")}return r&&(r.style.visibility="hidden"),void y(m,!1)}u?(r&&(r.style.visibility="visible"),y(m,!0),c||null!=d||(i.pause(t),c=!0,(e=>{if(null!=d)return;const t=document.getElementsByClassName("next-ep-preview")?.[0],l=t?.querySelector(".next-ep-header .next-ep-duration");if(!l)return;let a=10;l.textContent="10",d=setInterval(()=>{a--,l.textContent=String(a),0===a&&(clearInterval(d),d=null,c=!1,o.filter((e,t)=>t==n()),N(e))},1e3)})(t))):y(m,!1)},i.on("timeupdate",u);let v=o.filter((e,t)=>t==n());if(v?.length>0)if(document.getElementsByClassName("next-ep-preview")?.[0]){let e=document.getElementsByClassName("next-ep-preview")?.[0];e.style.visibility="hidden",e.querySelector(".next-ep-preview-inner")?.remove(),Array.from(e.children).forEach(e=>{e.classList.contains("next-ep-content")&&e.remove()});let n=e.querySelector(".next-heading-wrapper");if(n){let e=n.querySelector(".next-ep-header"),t=e?.querySelector(".next-ep-duration");if(!t&&e){e.textContent="";let n=document.createElement("span");n.className="next-ep-header-text",n.textContent="Next up in",t=document.createElement("span"),t.className="next-ep-duration",t.textContent="10",e.append(n,t)}else t&&(t.textContent="10")}else n=C(),e.insertBefore(n,e.firstChild);e.appendChild(E(v[0],e,t));const l=document.getElementById(t);x(l,v[0]),y(l,!1)}else{let e=document.createElement("div");e.className="next-ep-preview",e.style.visibility="hidden";let n=document.getElementById(t);n.append(e);let l=C();e.append(l);let a=E(v[0],e,t);e.append(a),x(n,v[0]),y(n,!1)}},N=(t,l)=>{let r=e(t);if(!r)return;let i=r.duration();if(!Number.isFinite(i)||i<=0)return;r.pause(t);let s=n();a(s,t,o)};var A,b,L,B;function S(t,n){let l=e(t),a=n?.tvProviderLogoUrl;if(!a)return;let r=document.createElement("div");r.className="tvProviderImage";let i=document.createElement("img");i.src=`${a}`,i.alt="Provider Image",r.append(i),l.el().appendChild(r),l.on("useractive",()=>{r.classList.remove("vjs-fade")}),l.on("userinactive",()=>{l.paused()||r.classList.add("vjs-fade")}),l.on("fullscreenchange",()=>{l.isFullscreen_?r.style.top="3.2rem":r.style.top="1rem"})}A={0:{src:"data:image/gif;base64,R0lGODlhAQABAPAAAP///wAAACH5BAAAAAAALAAAAAABAAEAAAICRAEAOw==",alt:"loading"}},b=function(){var e,t,n,l,a;for(n in t=(e=Array.prototype.slice.call(arguments)).shift()||{},e)for(a in l=e[n])l.hasOwnProperty(a)&&("object"==typeof l[a]?t[a]=b(t[a],l[a]):t[a]=l[a]);return t},L=function(e,t){return function(n){return window.getComputedStyle?window.getComputedStyle(e,t)[n]:e.currentStyle[n]}},B=function(e){return"HTML"!==e.nodeName&&"static"===L(e)("position")?B(e.offsetParent):e},i.registerPlugin("thumbnails",function(e){var t,n,l,a,r,i,o,s;function d(){document.removeEventListener("pointermove",o),document.removeEventListener("pointerup",d),s()}n=b({},A,e),a=this,function(){var e,t,n;-1!==navigator.userAgent.toLowerCase().indexOf("android")&&(t=function(){e.addClass("fake-active")},n=function(){e.removeClass("fake-active")},(e=a.controlBar.progressControl).on("touchstart",t),e.on("touchend",n),e.on("touchcancel",n))}(),(t=document.createElement("div")).className="vjs-thumbnail-holder",l=document.createElement("img"),t.appendChild(l),l.src=n[0].src,l.className="vjs-thumbnail",b(l.style,n[0].style),l.style.left||l.style.right||(l.onload=function(){l.style.left=-l.naturalWidth/2+"px"}),i=a.duration(),a.on("durationchange",function(e){i=a.duration()}),a.on("loadedmetadata",function(e){i=a.duration()}),(r=a.controlBar.progressControl).el().appendChild(t),o=function(e){var a,o,s,d,c,m,u,p,f,h;for(o in s=0,f=(window.pageXOffset?{x:window.pageXOffset,y:window.pageYOffset}:{x:document.documentElement.scrollLeft,y:document.documentElement.scrollTop}).x,u=((h=B(r.el()).getBoundingClientRect()).width||h.right)+f,m=e.pageX,e.changedTouches&&(m=e.changedTouches[0].pageX),d=m||e.clientX+document.body.scrollLeft+document.documentElement.scrollLeft,d-=B(r.el()).getBoundingClientRect().left+f,a=Math.floor((d-r.el().offsetLeft)/r.width()*i),n)a>o&&(s=Math.max(s,o));(c=n[s]).src&&l.src!=c.src&&(l.src=c.src),c.style&&l.style!=c.style&&b(l.style,c.style),d+(p=function(e,t){var n;return t?parseFloat(t):"auto"!==(n=L(e)("clip"))&&"inherit"!==n&&4===(n=n.split(/(?:\(|\))/)[1].split(/(?:,| )/)).length?parseFloat(n[1])-parseFloat(n[3]):0}(l,c.width||n[0].width)/2)>u?d-=d+p-u:d<p&&(d=p),t.style.left=d+"px"},r.on("mousemove",o),r.on("touchmove",o),r.on("pointerdown",function(e){document.addEventListener("pointermove",o),document.addEventListener("pointerup",d)}),s=function(e){t.style.left="-1000px"},r.on("mouseout",s),r.on("touchcancel",s),r.on("touchend",s),a.on("userinactive",s)});export{w as a,S as b};
1
+ import{g as e,d as t}from"./skin-932f3764.js";import{a4 as n,d as l}from"./generic-f765c6f0.js";import{s as a}from"./autoNextVideo-d5b82444.js";import{r}from"./relatedVideosManager-6e242502.js";import i from"video.js";let o=[],s=!1,d=null,c=!1,m=null,u=null,p=null,f=null,h=null;const g=()=>{null!=d&&(clearInterval(d),d=null),c=!1},v="next-ep-preview-player-thumb",x=(e,t)=>{if(!e)return;var n;n=t,n?.gist?.imageGist?.r16x9||n?.img||window;let l=e.getElementsByClassName(v)[0];l||(l=document.createElement("div"),l.className=v,l.setAttribute("aria-hidden","true"),e.appendChild(l))},y=(e,t)=>{if(!e)return;const n=e.getElementsByClassName(v)[0];n&&(n.style.visibility=t?"visible":"hidden")},C=()=>{let e=document.createElement("div");e.className="next-heading-wrapper";let t=document.createElement("div");t.className="next-ep-header";let n=document.createElement("span");n.className="next-ep-header-text",n.textContent="Next up in";let l=document.createElement("span");return l.className="next-ep-duration",l.textContent="10",t.append(n,l),e.append(t),e},E=(e,n,l,a)=>{let r=e?.isClip?e?.seriesTitle:e?.title,i=e?.gist?.description||e?.description||"",o=document.createElement("div");o.className="next-ep-content";let d=document.createElement("div");d.className="next-ep-thumb-wrap";let c=document.createElement("img");c.className="next-ep-img",c.alt="",c.src=e?.gist?.imageGist?.r16x9||e?.img||window?.customData?.fallbackImage;let m=(e=>{if(null==e||Number.isNaN(Number(e)))return"";const t=Math.floor(Number(e));return`${Math.floor(t/60)}:${String(t%60).padStart(2,"0")}`})(e?.runtime),u=document.createElement("div");u.className="next-ep-thumb-runtime",u.textContent=m,m||u.classList.add("next-ep-thumb-runtime--empty"),d.appendChild(c),d.appendChild(u);let p=document.createElement("div");p.className="next-ep-meta";let f=document.createElement("div");f.className="next-ep-title",f.textContent=`${r||""}`;let h=document.createElement("div");h.className="next-ep-desc",h.textContent=i||"",String(i||"").trim()||h.classList.add("next-ep-desc--empty");let v=document.createElement("div");v.className="next-ep-meta-row";let x=document.createElement("span");x.className="next-ep-badge";let y=(e=>{const t=e?.isClip;if(t)return"CLIP"})(e);x.textContent=y,y||x.classList.add("next-ep-badge--empty");let C=document.createElement("span");C.className="next-ep-episode",C.textContent=(e=>{if(!e||"string"!=typeof e)return"";const t=e.match(/^S(\d+)\s*E(\d+)$/i)||e.match(/^S(\d+)E(\d+)$/i);return t?`S${t[1]} E${Number(t[2])}`:e})(e?.episodeDisplayAttribute)||"";let E=document.createElement("div");E.className="next-ep-meta-row-left",E.appendChild(x),E.appendChild(C);let w=document.createElement("img");w.className="next-ep-network-logo",w.alt="";let A=(e=>{if(!e)return;const t=window?.app_data?.appcmsMain?.networks;if(!e||!t)return;const n=t?.find(t=>{if(t.identifier==e)return t});return n?.badgeImage})(e?.network);A?w.src=A:w.classList.add("next-ep-network-logo--empty"),v.appendChild(E),p.appendChild(f),p.appendChild(h),p.appendChild(v);let b=document.createElement("div");return b.className="next-ep-meta-with-logo",b.appendChild(p),b.appendChild(w),o.appendChild(d),o.appendChild(b),o.onclick=t(()=>{g(),n?.remove(),s=!0,N(l)},400),o},w=(t,a)=>{if(s=!1,f=t,h=a,p&&(p(),p=null),a?.series?.enable){o=[];const e=l();e?.map(e=>o.push(...e.episodes))}else{const e=r.get();o=e?.content||[],p=r.subscribe(()=>{p&&(p(),p=null),f&&h&&w(f,h)})}let i=e(t);if(!i)return;(e=>{e&&u&&(e.off("timeupdate",u),u=null)})(e(m)),g(),m=t,u=()=>{if(s)return;let e=i.duration(),l=i.currentTime(),a=Number.isFinite(e)&&e>0?e-l:1/0,r=document.getElementsByClassName("next-ep-preview")?.[0];const m=document.getElementById(t),u=n()<=o?.length-1;if(a>1){if(null!=d||c){g();let e=r?.querySelector(".next-ep-header .next-ep-duration");e&&(e.textContent="10")}return r&&(r.style.visibility="hidden"),void y(m,!1)}u?(r&&(r.style.visibility="visible"),y(m,!0),c||null!=d||(i.pause(t),c=!0,(e=>{if(null!=d)return;const t=document.getElementsByClassName("next-ep-preview")?.[0],l=t?.querySelector(".next-ep-header .next-ep-duration");if(!l)return;let a=10;l.textContent="10",d=setInterval(()=>{a--,l.textContent=String(a),0===a&&(clearInterval(d),d=null,c=!1,o.filter((e,t)=>t==n()),N(e))},1e3)})(t))):y(m,!1)},i.on("timeupdate",u);let v=o.filter((e,t)=>t==n());if(v?.length>0)if(document.getElementsByClassName("next-ep-preview")?.[0]){let e=document.getElementsByClassName("next-ep-preview")?.[0];e.style.visibility="hidden",e.querySelector(".next-ep-preview-inner")?.remove(),Array.from(e.children).forEach(e=>{e.classList.contains("next-ep-content")&&e.remove()});let n=e.querySelector(".next-heading-wrapper");if(n){let e=n.querySelector(".next-ep-header"),t=e?.querySelector(".next-ep-duration");if(!t&&e){e.textContent="";let n=document.createElement("span");n.className="next-ep-header-text",n.textContent="Next up in",t=document.createElement("span"),t.className="next-ep-duration",t.textContent="10",e.append(n,t)}else t&&(t.textContent="10")}else n=C(),e.insertBefore(n,e.firstChild);e.appendChild(E(v[0],e,t));const l=document.getElementById(t);x(l,v[0]),y(l,!1)}else{let e=document.createElement("div");e.className="next-ep-preview",e.style.visibility="hidden";let n=document.getElementById(t);n.append(e);let l=C();e.append(l);let a=E(v[0],e,t);e.append(a),x(n,v[0]),y(n,!1)}},N=(t,l)=>{let r=e(t);if(!r)return;let i=r.duration();if(!Number.isFinite(i)||i<=0)return;r.pause(t);let s=n();a(s,t,o)};var A,b,L,B;function S(t,n){let l=e(t),a=n?.tvProviderLogoUrl;if(!a)return;let r=document.createElement("div");r.className="tvProviderImage";let i=document.createElement("img");i.src=`${a}`,i.alt="Provider Image",r.append(i),l.el().appendChild(r),l.on("useractive",()=>{r.classList.remove("vjs-fade")}),l.on("userinactive",()=>{l.paused()||r.classList.add("vjs-fade")}),l.on("fullscreenchange",()=>{l.isFullscreen_?r.style.top="3.2rem":r.style.top="1rem"})}A={0:{src:"data:image/gif;base64,R0lGODlhAQABAPAAAP///wAAACH5BAAAAAAALAAAAAABAAEAAAICRAEAOw==",alt:"loading"}},b=function(){var e,t,n,l,a;for(n in t=(e=Array.prototype.slice.call(arguments)).shift()||{},e)for(a in l=e[n])l.hasOwnProperty(a)&&("object"==typeof l[a]?t[a]=b(t[a],l[a]):t[a]=l[a]);return t},L=function(e,t){return function(n){return window.getComputedStyle?window.getComputedStyle(e,t)[n]:e.currentStyle[n]}},B=function(e){return"HTML"!==e.nodeName&&"static"===L(e)("position")?B(e.offsetParent):e},i.registerPlugin("thumbnails",function(e){var t,n,l,a,r,i,o,s;function d(){document.removeEventListener("pointermove",o),document.removeEventListener("pointerup",d),s()}n=b({},A,e),a=this,function(){var e,t,n;-1!==navigator.userAgent.toLowerCase().indexOf("android")&&(t=function(){e.addClass("fake-active")},n=function(){e.removeClass("fake-active")},(e=a.controlBar.progressControl).on("touchstart",t),e.on("touchend",n),e.on("touchcancel",n))}(),(t=document.createElement("div")).className="vjs-thumbnail-holder",l=document.createElement("img"),t.appendChild(l),l.src=n[0].src,l.className="vjs-thumbnail",b(l.style,n[0].style),l.style.left||l.style.right||(l.onload=function(){l.style.left=-l.naturalWidth/2+"px"}),i=a.duration(),a.on("durationchange",function(e){i=a.duration()}),a.on("loadedmetadata",function(e){i=a.duration()}),(r=a.controlBar.progressControl).el().appendChild(t),o=function(e){var a,o,s,d,c,m,u,p,f,h;for(o in s=0,f=(window.pageXOffset?{x:window.pageXOffset,y:window.pageYOffset}:{x:document.documentElement.scrollLeft,y:document.documentElement.scrollTop}).x,u=((h=B(r.el()).getBoundingClientRect()).width||h.right)+f,m=e.pageX,e.changedTouches&&(m=e.changedTouches[0].pageX),d=m||e.clientX+document.body.scrollLeft+document.documentElement.scrollLeft,d-=B(r.el()).getBoundingClientRect().left+f,a=Math.floor((d-r.el().offsetLeft)/r.width()*i),n)a>o&&(s=Math.max(s,o));(c=n[s]).src&&l.src!=c.src&&(l.src=c.src),c.style&&l.style!=c.style&&b(l.style,c.style),d+(p=function(e,t){var n;return t?parseFloat(t):"auto"!==(n=L(e)("clip"))&&"inherit"!==n&&4===(n=n.split(/(?:\(|\))/)[1].split(/(?:,| )/)).length?parseFloat(n[1])-parseFloat(n[3]):0}(l,c.width||n[0].width)/2)>u?d-=d+p-u:d<p&&(d=p),t.style.left=d+"px"},r.on("mousemove",o),r.on("touchmove",o),r.on("pointerdown",function(e){document.addEventListener("pointermove",o),document.addEventListener("pointerup",d)}),s=function(e){t.style.left="-1000px"},r.on("mouseout",s),r.on("touchcancel",s),r.on("touchend",s),a.on("userinactive",s)});export{w as a,S as b};
package/esm/index.js CHANGED
@@ -1 +1 @@
1
- import"video.js/dist/video-js.min.css";import"./generic-d8ac6622.js";import"video.js";export{V as default}from"./index-54e8aa9b.js";import"./index-22ed302f.js";import"./captions-6426f98a.js";import"./renditions-38f26c3d.js";import"./resolution-41f5c799.js";import"./skin-932f3764.js";import"./browser-766b903b.js";import"./localisation-1ebd418b.js";import"./relatedVideosManager-6e242502.js";import"axios";import"md5";import"js-cookie";import"@viewlift/comscore/index.js";import"@viewlift/sse";import"@babel/runtime/helpers/defineProperty";
1
+ import"video.js/dist/video-js.min.css";import"./generic-f765c6f0.js";import"video.js";export{V as default}from"./index-32db0990.js";import"./index-894852f9.js";import"./captions-6426f98a.js";import"./renditions-38f26c3d.js";import"./resolution-41f5c799.js";import"./skin-932f3764.js";import"./browser-766b903b.js";import"./localisation-1ebd418b.js";import"./relatedVideosManager-6e242502.js";import"axios";import"md5";import"js-cookie";import"@viewlift/comscore/index.js";import"@viewlift/sse";import"@babel/runtime/helpers/defineProperty";
@@ -1 +1 @@
1
- import e from"video.js";import{i as t,g as s,j as a}from"./icons-b8ca9c4a.js";import{T as l,P as o}from"./generic-d8ac6622.js";import{j as i,g as r}from"./skin-932f3764.js";import"axios";import"./browser-766b903b.js";import"md5";import"js-cookie";import"./captions-6426f98a.js";import"@viewlift/comscore/index.js";const n=e.getComponent("Component");class d extends n{constructor(e,t={}){super(e,t),this.playerId=t.playerId,this.seriesData=t.sres,this.streams=t.streams,this.currentVideoData=t.res,this.initialiseStructure(),this.loadCSS()}createEl(){let s=e.dom.createEl("div",{className:"stream-selection vjs-control vjs-button"});s.style.position="unset";let a=e.dom.createEl("div",{className:"stream-selector-icon",innerHTML:`${t()}`});return e.dom.appendContent(s,a),s}loadCSS(){import("./multicamv2-1fb5149a.js").then(e=>{let t=document.createElement("style");t.id="multicam-v2",t.append(`${e.default}`),document.head.appendChild(t)})}initialiseStructure(){let t=this.el(),s=e.dom.createEl("div",{className:"stream-container hidden"});e.dom.$(".stream-selector-icon",this.el()).onclick=()=>{s.classList?.contains("hidden")?(i(),s.classList.remove("hidden"),t.classList.add("open"),s.style.right="0px"):(s.classList.add("hidden"),t.classList.remove("open"),s.style.right="-350px")};let a=document.getElementById(this.playerId);if(a){let l=window.getComputedStyle(a,null).getPropertyValue("height").slice(0,-2);s.style.height=`${l}px`,a.style.overflow="hidden",e.dom.appendContent(t,s),this.addFunctionality(s)}}addFunctionality(t){let i=this.el(),n=e.dom.createEl("div",{className:"stream-selector-head"}),d=e.dom.createEl("div",{className:"stream-selector-cross-icon",innerHTML:`${s()}`});d.onclick=()=>{t.classList.add("hidden"),i.classList.remove("open"),t.style.right="-350px"};let m=e.dom.createEl("div",{className:"stream-selector-title",innerHTML:"Streams"}),c=e.dom.createEl("div",{className:"stream-selector-content"}),p=e.dom.createEl("div",{className:"stream-tray"});for(let t=0;t<this.streams.length;t++){let s=e.dom.createEl("div",{className:`stream -${t}`,innerHTML:`${a()}`});0==t&&(s.classList.add("selected"),s.style.border="4px solid #D2393B"),s.onclick=()=>{let a=e.dom.$$(".stream");for(let e=0;e<a.length;e++)a[e].style.border="none",a[e].classList.remove("selected");s.classList.add("selected"),s.style.border="4px solid #D2393B",l(this.playerId,this.streams[t].id).then(e=>{o(this.playerId),console.log(e)}).catch(e=>{console.log(e)})},s.style.backgroundImage=`url(${this.streams[t].img})`;let i=document.createElement("img");i.className="stream-thumbnail-image",i.src=`${this?.streams[t]?.img}`,i.alt="No Thumbnail Available",s.append(i),e.dom.appendContent(p,s),e.dom.appendContent(c,p)}e.dom.appendContent(n,d),e.dom.appendContent(n,m),e.dom.appendContent(t,n),e.dom.appendContent(t,c),r(this.playerId).on("fullscreenchange",()=>{let e=window.getComputedStyle(document.getElementById(this.playerId),null).getPropertyValue("height").slice(0,-2);t.style.height=`${e}px`})}}export{d as default};
1
+ import e from"video.js";import{i as t,g as s,j as a}from"./icons-b8ca9c4a.js";import{T as l,P as o}from"./generic-f765c6f0.js";import{j as i,g as r}from"./skin-932f3764.js";import"axios";import"./browser-766b903b.js";import"md5";import"js-cookie";import"./captions-6426f98a.js";import"@viewlift/comscore/index.js";const n=e.getComponent("Component");class d extends n{constructor(e,t={}){super(e,t),this.playerId=t.playerId,this.seriesData=t.sres,this.streams=t.streams,this.currentVideoData=t.res,this.initialiseStructure(),this.loadCSS()}createEl(){let s=e.dom.createEl("div",{className:"stream-selection vjs-control vjs-button"});s.style.position="unset";let a=e.dom.createEl("div",{className:"stream-selector-icon",innerHTML:`${t()}`});return e.dom.appendContent(s,a),s}loadCSS(){import("./multicamv2-1fb5149a.js").then(e=>{let t=document.createElement("style");t.id="multicam-v2",t.append(`${e.default}`),document.head.appendChild(t)})}initialiseStructure(){let t=this.el(),s=e.dom.createEl("div",{className:"stream-container hidden"});e.dom.$(".stream-selector-icon",this.el()).onclick=()=>{s.classList?.contains("hidden")?(i(),s.classList.remove("hidden"),t.classList.add("open"),s.style.right="0px"):(s.classList.add("hidden"),t.classList.remove("open"),s.style.right="-350px")};let a=document.getElementById(this.playerId);if(a){let l=window.getComputedStyle(a,null).getPropertyValue("height").slice(0,-2);s.style.height=`${l}px`,a.style.overflow="hidden",e.dom.appendContent(t,s),this.addFunctionality(s)}}addFunctionality(t){let i=this.el(),n=e.dom.createEl("div",{className:"stream-selector-head"}),d=e.dom.createEl("div",{className:"stream-selector-cross-icon",innerHTML:`${s()}`});d.onclick=()=>{t.classList.add("hidden"),i.classList.remove("open"),t.style.right="-350px"};let m=e.dom.createEl("div",{className:"stream-selector-title",innerHTML:"Streams"}),c=e.dom.createEl("div",{className:"stream-selector-content"}),p=e.dom.createEl("div",{className:"stream-tray"});for(let t=0;t<this.streams.length;t++){let s=e.dom.createEl("div",{className:`stream -${t}`,innerHTML:`${a()}`});0==t&&(s.classList.add("selected"),s.style.border="4px solid #D2393B"),s.onclick=()=>{let a=e.dom.$$(".stream");for(let e=0;e<a.length;e++)a[e].style.border="none",a[e].classList.remove("selected");s.classList.add("selected"),s.style.border="4px solid #D2393B",l(this.playerId,this.streams[t].id).then(e=>{o(this.playerId),console.log(e)}).catch(e=>{console.log(e)})},s.style.backgroundImage=`url(${this.streams[t].img})`;let i=document.createElement("img");i.className="stream-thumbnail-image",i.src=`${this?.streams[t]?.img}`,i.alt="No Thumbnail Available",s.append(i),e.dom.appendContent(p,s),e.dom.appendContent(c,p)}e.dom.appendContent(n,d),e.dom.appendContent(n,m),e.dom.appendContent(t,n),e.dom.appendContent(t,c),r(this.playerId).on("fullscreenchange",()=>{let e=window.getComputedStyle(document.getElementById(this.playerId),null).getPropertyValue("height").slice(0,-2);t.style.height=`${e}px`})}}export{d as default};
@@ -1 +1 @@
1
- import e from"video.js";import{i as t,g as s,j as a}from"./icons-b8ca9c4a.js";import{T as o,P as i}from"./generic-d8ac6622.js";import{j as l,s as r,l as d}from"./skin-932f3764.js";import"axios";import"./browser-766b903b.js";import"md5";import"js-cookie";import"./captions-6426f98a.js";import"@viewlift/comscore/index.js";const n=e.getComponent("Component");class m extends n{constructor(e,t={}){super(e,t),this.playerId=t.playerId,this.seriesData=t.sres,this.streams=t.streams,this.currentVideoData=t.res,this.initialiseStructure(),this.loadCSS()}createEl(){let s=e.dom.createEl("div",{className:"stream-selection vjs-control vjs-button"});s.style.position="unset";let a=e.dom.createEl("div",{className:"stream-selector-icon",innerHTML:`${t()}`});return e.dom.appendContent(s,a),s}loadCSS(){import("./multicamv2-b7cec0cf.js").then(e=>{let t=document.createElement("style");t.id="multicam-v2",t.append(`${e.default}`),document.head.appendChild(t)})}initialiseStructure(){let t=this.el(),s=e.dom.createEl("div",{className:"stream-container hidden"});e.dom.$(".stream-selector-icon",this.el()).onclick=()=>{s.classList?.contains("hidden")?(l(),s.classList.remove("hidden"),t.classList.add("open"),r(this.playerId,s)):(s.classList.add("hidden"),t.classList.remove("open"))};let a=document.getElementById(this.playerId);if(a){let o=window.getComputedStyle(a,null).getPropertyValue("height").slice(0,-2);s.style.height=`${o}px`,a.style.overflow="hidden",e.dom.appendContent(t,s),this.addFunctionality(s)}}addFunctionality(t){let l=this.el(),r=e.dom.createEl("div",{className:"stream-selector-head"}),n=e.dom.createEl("div",{className:"stream-selector-cross-icon",innerHTML:`${s()}`});n.onclick=()=>{t.classList.add("hidden"),l.classList.remove("open")};let m=e.dom.createEl("div",{className:"stream-selector-title",innerHTML:"Streams"}),c=e.dom.createEl("div",{className:"stream-selector-content"}),p=e.dom.createEl("div",{className:"stream-tray"});for(let t=0;t<this.streams.length;t++){let s=e.dom.createEl("div",{className:`stream -${t}`,innerHTML:`${a()}`});0==t&&(s.classList.add("selected"),s.style.border="2px solid #D2393B"),s.onclick=()=>{let a=e.dom.$$(".stream");for(let e=0;e<a.length;e++)a[e].style.border="none",a[e].classList.remove("selected");s.classList.add("selected"),s.style.border="2px solid #D2393B",o(this.playerId,this.streams[t].id).then(e=>{i(this.playerId),console.log(e)}).catch(e=>{console.log(e)})},s.style.backgroundImage=`url(${this.streams[t].img})`;let l=document.createElement("img");l.className="stream-thumbnail-image",l.src=`${this?.streams[t]?.img||window?.customData?.fallbackImage}`,s.append(l),e.dom.appendContent(p,s),e.dom.appendContent(c,p)}e.dom.appendContent(r,n),e.dom.appendContent(r,m),e.dom.appendContent(t,r),e.dom.appendContent(t,c),d(this.playerId,t)}}export{m as default};
1
+ import e from"video.js";import{i as t,g as s,j as a}from"./icons-b8ca9c4a.js";import{T as o,P as i}from"./generic-f765c6f0.js";import{j as l,s as r,l as d}from"./skin-932f3764.js";import"axios";import"./browser-766b903b.js";import"md5";import"js-cookie";import"./captions-6426f98a.js";import"@viewlift/comscore/index.js";const n=e.getComponent("Component");class m extends n{constructor(e,t={}){super(e,t),this.playerId=t.playerId,this.seriesData=t.sres,this.streams=t.streams,this.currentVideoData=t.res,this.initialiseStructure(),this.loadCSS()}createEl(){let s=e.dom.createEl("div",{className:"stream-selection vjs-control vjs-button"});s.style.position="unset";let a=e.dom.createEl("div",{className:"stream-selector-icon",innerHTML:`${t()}`});return e.dom.appendContent(s,a),s}loadCSS(){import("./multicamv2-b7cec0cf.js").then(e=>{let t=document.createElement("style");t.id="multicam-v2",t.append(`${e.default}`),document.head.appendChild(t)})}initialiseStructure(){let t=this.el(),s=e.dom.createEl("div",{className:"stream-container hidden"});e.dom.$(".stream-selector-icon",this.el()).onclick=()=>{s.classList?.contains("hidden")?(l(),s.classList.remove("hidden"),t.classList.add("open"),r(this.playerId,s)):(s.classList.add("hidden"),t.classList.remove("open"))};let a=document.getElementById(this.playerId);if(a){let o=window.getComputedStyle(a,null).getPropertyValue("height").slice(0,-2);s.style.height=`${o}px`,a.style.overflow="hidden",e.dom.appendContent(t,s),this.addFunctionality(s)}}addFunctionality(t){let l=this.el(),r=e.dom.createEl("div",{className:"stream-selector-head"}),n=e.dom.createEl("div",{className:"stream-selector-cross-icon",innerHTML:`${s()}`});n.onclick=()=>{t.classList.add("hidden"),l.classList.remove("open")};let m=e.dom.createEl("div",{className:"stream-selector-title",innerHTML:"Streams"}),c=e.dom.createEl("div",{className:"stream-selector-content"}),p=e.dom.createEl("div",{className:"stream-tray"});for(let t=0;t<this.streams.length;t++){let s=e.dom.createEl("div",{className:`stream -${t}`,innerHTML:`${a()}`});0==t&&(s.classList.add("selected"),s.style.border="2px solid #D2393B"),s.onclick=()=>{let a=e.dom.$$(".stream");for(let e=0;e<a.length;e++)a[e].style.border="none",a[e].classList.remove("selected");s.classList.add("selected"),s.style.border="2px solid #D2393B",o(this.playerId,this.streams[t].id).then(e=>{i(this.playerId),console.log(e)}).catch(e=>{console.log(e)})},s.style.backgroundImage=`url(${this.streams[t].img})`;let l=document.createElement("img");l.className="stream-thumbnail-image",l.src=`${this?.streams[t]?.img||window?.customData?.fallbackImage}`,s.append(l),e.dom.appendContent(p,s),e.dom.appendContent(c,p)}e.dom.appendContent(r,n),e.dom.appendContent(r,m),e.dom.appendContent(t,r),e.dom.appendContent(t,c),d(this.playerId,t)}}export{m as default};
@@ -1 +1 @@
1
- import e from"video.js";import{P as t}from"./icons-b8ca9c4a.js";import{T as s,h as n}from"./generic-d8ac6622.js";import{f as o}from"./skin-932f3764.js";import"axios";import"./browser-766b903b.js";import"md5";import"js-cookie";import"./captions-6426f98a.js";import"@viewlift/comscore/index.js";const i=e.getComponent("Component");class d extends i{constructor(e,t={}){super(e,t),this.playerId=t.playerId,this.seriesData=t.sres,this.currentVideoData=t.res,this.initialiseStructure(),this.loadCSS()}createEl(){let s=e.dom.createEl("div",{className:"play-next"}),n=e.dom.createEl("div",{className:"play-next-icon",innerHTML:`${t(window.controlsColor?window.controlsColor:"white")}`});return e.dom.appendContent(s,n),s}loadCSS(){import("./nextEpisodeButton-a1556cdf.js").then(e=>{let t=document.createElement("style");t.id="multicam",t.append(`${e.default}`),document.head.appendChild(t)})}initialiseStructure(){let t=this.el(),s=e.dom.createEl("div",{className:"next-eps nextepisode-hidden"}),n=e.dom.createEl("div",{className:"next",innerHTML:"Next Episode"}),o=e.dom.createEl("div",{className:"nextep-meta-details next-margin"}),i=e.dom.createEl("div",{className:"next-eps-image"}),d=e.dom.createEl("div",{className:"next-eps-description"});e.dom.appendContent(o,i),e.dom.appendContent(o,d),e.dom.appendContent(s,n),e.dom.appendContent(s,o),this.toggleContentOnHover(t,s),e.dom.appendContent(t,s)}toggleContentOnHover(t,s){t.addEventListener("mouseover",()=>{e.dom.removeClass(s,"nextepisode-hidden")}),s.addEventListener("mouseover",()=>{e.dom.removeClass(s,"nextepisode-hidden")}),t.addEventListener("mouseout",()=>{e.dom.addClass(s,"nextepisode-hidden")}),s.addEventListener("mouseout",()=>{e.dom.addClass(s,"nextepisode-hidden")})}}const l=(e,t)=>{let s=r(e,t.video.gist.id),n=p(e[s],t.video.gist.id),o=a(e[s],n);m(o.nextEp)},r=(e,t)=>{let s=-1;for(let n=0;n<e.length;n++)for(let o=0;o<e[n].episodes.length;o++)if(e[n].episodes[o].id===t){s=n;break}return s},a=(e=null,t)=>{if(!(e&&t>=0))return{prevEp:null,nextEp:null};const s=e.episodes.length,n=t-1>=0?t-1:s-1,o=(t+1)%s;let i=s>1?e.episodes[n]:null,d=s>1?e.episodes[o]:null;return n===o&&(0===n?d=null:i=null),{prevEp:i,nextEp:d,prevEpIdx:n,nextEpIdx:o}},p=(e=null,t)=>{let s=null;return e?(e.episodes.forEach((e,n)=>{e.gist.id===t&&(s=n)}),s):null},m=t=>{e.dom.$(".next-eps"),e.dom.$(".play-next").onclick=()=>{s("my-player",t?.gist?.id).then(e=>{n(e.response)})};let i=e.dom.$(".next-eps-image");const d=o(`<img src=${t?.gist?.videoImageUrl} />`),l=d?.firstChild;i?.append(l);let r=e.dom.$(".next-eps-description");const a=o(`<div class='next-eps-title'>${t?.title}</div>\n <div class='next-eps-description-details'>${t?.gist?.description}</div>`);for(;a?.firstChild;)r?.appendChild(a.firstChild)};export{d as default,l as initaliseFunctionality};
1
+ import e from"video.js";import{P as t}from"./icons-b8ca9c4a.js";import{T as s,h as n}from"./generic-f765c6f0.js";import{f as o}from"./skin-932f3764.js";import"axios";import"./browser-766b903b.js";import"md5";import"js-cookie";import"./captions-6426f98a.js";import"@viewlift/comscore/index.js";const i=e.getComponent("Component");class d extends i{constructor(e,t={}){super(e,t),this.playerId=t.playerId,this.seriesData=t.sres,this.currentVideoData=t.res,this.initialiseStructure(),this.loadCSS()}createEl(){let s=e.dom.createEl("div",{className:"play-next"}),n=e.dom.createEl("div",{className:"play-next-icon",innerHTML:`${t(window.controlsColor?window.controlsColor:"white")}`});return e.dom.appendContent(s,n),s}loadCSS(){import("./nextEpisodeButton-a1556cdf.js").then(e=>{let t=document.createElement("style");t.id="multicam",t.append(`${e.default}`),document.head.appendChild(t)})}initialiseStructure(){let t=this.el(),s=e.dom.createEl("div",{className:"next-eps nextepisode-hidden"}),n=e.dom.createEl("div",{className:"next",innerHTML:"Next Episode"}),o=e.dom.createEl("div",{className:"nextep-meta-details next-margin"}),i=e.dom.createEl("div",{className:"next-eps-image"}),d=e.dom.createEl("div",{className:"next-eps-description"});e.dom.appendContent(o,i),e.dom.appendContent(o,d),e.dom.appendContent(s,n),e.dom.appendContent(s,o),this.toggleContentOnHover(t,s),e.dom.appendContent(t,s)}toggleContentOnHover(t,s){t.addEventListener("mouseover",()=>{e.dom.removeClass(s,"nextepisode-hidden")}),s.addEventListener("mouseover",()=>{e.dom.removeClass(s,"nextepisode-hidden")}),t.addEventListener("mouseout",()=>{e.dom.addClass(s,"nextepisode-hidden")}),s.addEventListener("mouseout",()=>{e.dom.addClass(s,"nextepisode-hidden")})}}const l=(e,t)=>{let s=r(e,t.video.gist.id),n=p(e[s],t.video.gist.id),o=a(e[s],n);m(o.nextEp)},r=(e,t)=>{let s=-1;for(let n=0;n<e.length;n++)for(let o=0;o<e[n].episodes.length;o++)if(e[n].episodes[o].id===t){s=n;break}return s},a=(e=null,t)=>{if(!(e&&t>=0))return{prevEp:null,nextEp:null};const s=e.episodes.length,n=t-1>=0?t-1:s-1,o=(t+1)%s;let i=s>1?e.episodes[n]:null,d=s>1?e.episodes[o]:null;return n===o&&(0===n?d=null:i=null),{prevEp:i,nextEp:d,prevEpIdx:n,nextEpIdx:o}},p=(e=null,t)=>{let s=null;return e?(e.episodes.forEach((e,n)=>{e.gist.id===t&&(s=n)}),s):null},m=t=>{e.dom.$(".next-eps"),e.dom.$(".play-next").onclick=()=>{s("my-player",t?.gist?.id).then(e=>{n(e.response)})};let i=e.dom.$(".next-eps-image");const d=o(`<img src=${t?.gist?.videoImageUrl} />`),l=d?.firstChild;i?.append(l);let r=e.dom.$(".next-eps-description");const a=o(`<div class='next-eps-title'>${t?.title}</div>\n <div class='next-eps-description-details'>${t?.gist?.description}</div>`);for(;a?.firstChild;)r?.appendChild(a.firstChild)};export{d as default,l as initaliseFunctionality};
@@ -1 +1 @@
1
- import e from"video.js";import{E as t,g as s}from"./icons-b8ca9c4a.js";import{T as i,a6 as l}from"./generic-d8ac6622.js";import{a as o}from"./autoNextVideo-91c70a62.js";import{j as a,g as n}from"./skin-932f3764.js";import"axios";import"./browser-766b903b.js";import"md5";import"js-cookie";import"./captions-6426f98a.js";import"@viewlift/comscore/index.js";import"./index-22ed302f.js";import"./localisation-1ebd418b.js";const d=e.getComponent("Component");class c extends d{constructor(e,t={}){super(e,t),this.playerId=t.playerId,this.seriesData=t.sres,this.videos=t?.playlist?.content,this.cb=t?.playlist?.cb||null,this.autoNext=t?.playlist?.autoNext||!1,this.currentVideoData=t.res,this.initialiseStructure(),this.loadCSS(),this.autoNext&&o({playerId:this.playerId,content:this.videos,cb:this.cb})}createEl(){let s=e.dom.createEl("div",{className:"playlist-selection vjs-control vjs-button"});s.style.position="unset";let i=e.dom.createEl("div",{className:"playlist-selector-icon",innerHTML:`${t()}`});return e.dom.appendContent(s,i),s}loadCSS(){import("./playlist-7ecf432a.js").then(e=>{let t=document.createElement("style");t.id="playlist-selection",t.append(`${e.default}`),document.head.appendChild(t)})}initialiseStructure(){let t=this.el(),s=e.dom.createEl("div",{className:"selection-container hidden"});e.dom.$(".playlist-selector-icon",this.el()).onclick=()=>{s.classList?.contains("hidden")?(a(),s.classList.remove("hidden"),t.classList.add("open"),s.style.right="0px"):(s.classList.add("hidden"),t.classList.remove("open"),s.style.right="-350px")};let i=document.getElementById(this.playerId);if(i){let l=window.getComputedStyle(i,null).getPropertyValue("height").slice(0,-2);s.style.height=`${l}px`,e.dom.appendContent(t,s),i.style.overflow="hidden",this.addFunctionality(s)}}addFunctionality(t){let o=this.el(),a=e.dom.createEl("div",{className:"playlist-selector-head"}),d=e.dom.createEl("div",{className:"playlist-selector-cross-icon",innerHTML:`${s()}`});d.onclick=()=>{t.classList.add("hidden"),o.classList.remove("open"),t.style.right="-350px"};let c=e.dom.createEl("div",{className:"playlist-selector-title",innerHTML:"Playlist"}),r=e.dom.createEl("div",{className:"playlist-selector-content"});for(let t=0;t<this.videos.length;t++){let s=e.dom.createEl("div",{className:"playlist-container"}),o=e.dom.createEl("div",{className:"playlist-section",index:t}),a=e.dom.createEl("div",{className:"playlist-title",innerHTML:`${this.videos[t]?.title||""}`}),n=e.dom.createEl("div",{className:"playlist-progress-bar",innerHTML:`<div style='width:${this.videos[t].watchedPercentage}%' class='playlist-progress-bar-value'></div>`});e.dom.appendContent(o,a),e.dom.appendContent(o,n),e.dom.appendContent(s,o),e.dom.appendContent(r,s);let d=e.dom.createEl("div",{className:"playlist-section-expanded hidden"}),c=e.dom.createEl("div",{className:"playlist-description",innerHTML:`${this.videos[t]?.description||""}`}),p=e.dom.createEl("div",{className:"playlist-image"});p.style.backgroundImage=`url(${this.videos[t].img})`,e.dom.appendContent(d,p),e.dom.appendContent(d,c),e.dom.appendContent(s,d),e.dom.appendContent(r,s),d.onclick=e=>{e.stopPropagation(),l(t+1),i(this.playerId,this.videos[t].id).then(e=>{this?.cb&&this.cb(e)}).catch(e=>{this?.cb&&this.cb(e)})},o.onclick=e=>{let t=document.getElementsByClassName("playlist-selector-content")[0].childNodes;t=[...t];let i=t[e.target.index].getElementsByClassName("playlist-section-expanded")[0];i?.classList?.contains("hidden")?(s.style.backgroundColor="#0000007d",i?.classList?.remove("hidden")):(i?.classList?.add("hidden"),s.style.backgroundColor="unset")}}e.dom.appendContent(a,d),e.dom.appendContent(a,c),e.dom.appendContent(t,a),e.dom.appendContent(t,r),n(this.playerId).on("fullscreenchange",()=>{let e=document.getElementById(this.playerId);if(e){let s=window.getComputedStyle(e,null).getPropertyValue("height").slice(0,-2);t.style.height=`${s}px`}})}}export{c as default};
1
+ import e from"video.js";import{E as t,g as s}from"./icons-b8ca9c4a.js";import{T as i,a6 as l}from"./generic-f765c6f0.js";import{a as o}from"./autoNextVideo-d5b82444.js";import{j as a,g as n}from"./skin-932f3764.js";import"axios";import"./browser-766b903b.js";import"md5";import"js-cookie";import"./captions-6426f98a.js";import"@viewlift/comscore/index.js";import"./index-894852f9.js";import"./localisation-1ebd418b.js";const d=e.getComponent("Component");class c extends d{constructor(e,t={}){super(e,t),this.playerId=t.playerId,this.seriesData=t.sres,this.videos=t?.playlist?.content,this.cb=t?.playlist?.cb||null,this.autoNext=t?.playlist?.autoNext||!1,this.currentVideoData=t.res,this.initialiseStructure(),this.loadCSS(),this.autoNext&&o({playerId:this.playerId,content:this.videos,cb:this.cb})}createEl(){let s=e.dom.createEl("div",{className:"playlist-selection vjs-control vjs-button"});s.style.position="unset";let i=e.dom.createEl("div",{className:"playlist-selector-icon",innerHTML:`${t()}`});return e.dom.appendContent(s,i),s}loadCSS(){import("./playlist-7ecf432a.js").then(e=>{let t=document.createElement("style");t.id="playlist-selection",t.append(`${e.default}`),document.head.appendChild(t)})}initialiseStructure(){let t=this.el(),s=e.dom.createEl("div",{className:"selection-container hidden"});e.dom.$(".playlist-selector-icon",this.el()).onclick=()=>{s.classList?.contains("hidden")?(a(),s.classList.remove("hidden"),t.classList.add("open"),s.style.right="0px"):(s.classList.add("hidden"),t.classList.remove("open"),s.style.right="-350px")};let i=document.getElementById(this.playerId);if(i){let l=window.getComputedStyle(i,null).getPropertyValue("height").slice(0,-2);s.style.height=`${l}px`,e.dom.appendContent(t,s),i.style.overflow="hidden",this.addFunctionality(s)}}addFunctionality(t){let o=this.el(),a=e.dom.createEl("div",{className:"playlist-selector-head"}),d=e.dom.createEl("div",{className:"playlist-selector-cross-icon",innerHTML:`${s()}`});d.onclick=()=>{t.classList.add("hidden"),o.classList.remove("open"),t.style.right="-350px"};let c=e.dom.createEl("div",{className:"playlist-selector-title",innerHTML:"Playlist"}),r=e.dom.createEl("div",{className:"playlist-selector-content"});for(let t=0;t<this.videos.length;t++){let s=e.dom.createEl("div",{className:"playlist-container"}),o=e.dom.createEl("div",{className:"playlist-section",index:t}),a=e.dom.createEl("div",{className:"playlist-title",innerHTML:`${this.videos[t]?.title||""}`}),n=e.dom.createEl("div",{className:"playlist-progress-bar",innerHTML:`<div style='width:${this.videos[t].watchedPercentage}%' class='playlist-progress-bar-value'></div>`});e.dom.appendContent(o,a),e.dom.appendContent(o,n),e.dom.appendContent(s,o),e.dom.appendContent(r,s);let d=e.dom.createEl("div",{className:"playlist-section-expanded hidden"}),c=e.dom.createEl("div",{className:"playlist-description",innerHTML:`${this.videos[t]?.description||""}`}),p=e.dom.createEl("div",{className:"playlist-image"});p.style.backgroundImage=`url(${this.videos[t].img})`,e.dom.appendContent(d,p),e.dom.appendContent(d,c),e.dom.appendContent(s,d),e.dom.appendContent(r,s),d.onclick=e=>{e.stopPropagation(),l(t+1),i(this.playerId,this.videos[t].id).then(e=>{this?.cb&&this.cb(e)}).catch(e=>{this?.cb&&this.cb(e)})},o.onclick=e=>{let t=document.getElementsByClassName("playlist-selector-content")[0].childNodes;t=[...t];let i=t[e.target.index].getElementsByClassName("playlist-section-expanded")[0];i?.classList?.contains("hidden")?(s.style.backgroundColor="#0000007d",i?.classList?.remove("hidden")):(i?.classList?.add("hidden"),s.style.backgroundColor="unset")}}e.dom.appendContent(a,d),e.dom.appendContent(a,c),e.dom.appendContent(t,a),e.dom.appendContent(t,r),n(this.playerId).on("fullscreenchange",()=>{let e=document.getElementById(this.playerId);if(e){let s=window.getComputedStyle(e,null).getPropertyValue("height").slice(0,-2);t.style.height=`${s}px`}})}}export{c as default};
@@ -1 +1 @@
1
- import e from"@babel/runtime/helpers/defineProperty";import i from"video.js";import{aa as s,Q as t,T as d,h as n,P as a}from"./generic-d8ac6622.js";import{E as o}from"./icons-b8ca9c4a.js";import{f as l}from"./skin-932f3764.js";import"axios";import"./browser-766b903b.js";import"md5";import"js-cookie";import"./captions-6426f98a.js";import"@viewlift/comscore/index.js";const r=i.getComponent("Component");let c;class p extends r{constructor(i,s={}){super(i,s),e(this,"seriesData",[]),this.seriesData=s.seriesData,c=s.playerId,g(this.el(),this.seriesData),this.loadCSS()}createEl(){let e=document.createElement("div");return e.classList.add("vjs-season-list"),e}loadCSS(){import("./series-041152aa.js").then(e=>{let i=document.createElement("style");i.id="series",i.append(`${e.default}`),document.head.appendChild(i)})}}async function v(e,i,s,o){t(c),(e=>{document.getElementById(`${e}`).classList.add("vjs-waiting")})(c),d(c,i).then(e=>{n(e.response),a(c)})}function m(e,i,s){let t=i.querySelector(".meta-details");i.classList.toggle("episode-active"),t.classList.toggle("metadetails-active"),s.forEach((i,t)=>{t!==e&&(s[t].classList.remove("episode-active"),s[t].querySelector(".meta-details").classList.remove("metadetails-active"))})}function h(e,i,t,d){let n=document.getElementById("season-list"),a=document.getElementById("episode-list"),o=document.getElementById("episode-container");e.id;let r=e.episodes.map((e,i)=>`\n <div id="episode-wrapper" class="episode-wrapper">\n <div class="episode-title" id="episode-title">\n <div class="details-wrapper">\n <div id="title-wrapper" class="title-wrapper">${i+1} ${e.title} </div>\n <div class="progress-bar-div">\n <div id="progress-div" class="progress-div"></div>\n </div>\n </div>\n <div class="meta-details">\n <div class="episode-image lazy" style="width:124px; height: 70px;">\n <img src=${e.gist.videoImageUrl} alt="${e.title}'s cover"></img>\n </div>\n <div class="description-wrapper">${e.gist.description}</div>\n </div>\n </div>\n </div>`).join("");for(;o?.firstChild;)o.removeChild(o.firstChild);const c=l(r);for(;c?.firstChild;)o.appendChild(c.firstChild);!function(e){s(e).then(e=>{let i=e.data,s=document.querySelectorAll("#progress-div");s&&i.map((e,i)=>{e&&e.watchedPercentage&&s[i]&&(s[i].style.width=e.watchedPercentage+"px")})}).catch(e=>{})}(d),n.classList.toggle("hide-container"),a.classList.toggle("hide-container");let p=document.querySelectorAll(".details-wrapper"),h=document.querySelectorAll("#episode-title"),g=document.querySelectorAll(".meta-details"),u=document.querySelector("#episodes-back-btn"),f=e.id,w=e.episodes;u.addEventListener("click",()=>function(e,i){e.classList.remove("hide-container"),i.classList.add("hide-container")}(n,a));for(let i=0;i<p.length;i++)p[i].addEventListener("click",()=>m(i,h[i],h)),g[i].addEventListener("click",()=>v(0,w[i].id)),e.episodes[i].id==f&&h[i].classList.add("highlight-active-eps")}function g(e,i){const s=`<div class="hover-div"></div>\n ${o()}\n <div class="player-season-list-container on-click-toggle">\n <div id="season-list" class="season-list">\n <div class="season-list-head">seasons</div>\n <div class="season-name-container">\n ${function(e){return e.map((e,i)=>`<div\n class="season-title-sdk"\n key=title-${e.title}\n > <div class="season-container">\n ${e.title}\n </div>\n </div>\n `).join("")}(i)}\n </div>\n </div>\n <div id="episode-list" class="episode-list hide-container"><div id="episodes-back-btn" class="episodes-back-btn" >\n <svg class='icon icon-backward' height="22px" width="22px" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path fill-rule="evenodd" clip-rule="evenodd" d="M0.383092 19.5818C-0.0882695 19.0669 -0.124672 18.2566 0.273985 17.6961L0.382714 17.5615L7.30134 9.99714L0.383092 2.43893C-0.0882694 1.92406 -0.124672 1.11374 0.273985 0.553232L0.382714 0.418625C0.853882 -0.0964584 1.59542 -0.136236 2.10835 0.299398L2.23153 0.418213L11 9.99608L2.23191 19.5814C1.72148 20.1394 0.893733 20.1396 0.383092 19.5818Z" fill="white"/>\n </svg>\n <span>Episodes<span></div> <div id="episode-container" class="episode-container"> </div></div>\n </div>`;for(;e?.firstChild;)e.removeChild(e.firstChild);const t=l(s);for(;t?.firstChild;)e.appendChild(t.firstChild)}export{g as customSeasonList,h as handleSeasonChange,p as seriesModule};
1
+ import e from"@babel/runtime/helpers/defineProperty";import i from"video.js";import{aa as s,Q as t,T as d,h as n,P as a}from"./generic-f765c6f0.js";import{E as o}from"./icons-b8ca9c4a.js";import{f as l}from"./skin-932f3764.js";import"axios";import"./browser-766b903b.js";import"md5";import"js-cookie";import"./captions-6426f98a.js";import"@viewlift/comscore/index.js";const r=i.getComponent("Component");let c;class p extends r{constructor(i,s={}){super(i,s),e(this,"seriesData",[]),this.seriesData=s.seriesData,c=s.playerId,g(this.el(),this.seriesData),this.loadCSS()}createEl(){let e=document.createElement("div");return e.classList.add("vjs-season-list"),e}loadCSS(){import("./series-041152aa.js").then(e=>{let i=document.createElement("style");i.id="series",i.append(`${e.default}`),document.head.appendChild(i)})}}async function v(e,i,s,o){t(c),(e=>{document.getElementById(`${e}`).classList.add("vjs-waiting")})(c),d(c,i).then(e=>{n(e.response),a(c)})}function m(e,i,s){let t=i.querySelector(".meta-details");i.classList.toggle("episode-active"),t.classList.toggle("metadetails-active"),s.forEach((i,t)=>{t!==e&&(s[t].classList.remove("episode-active"),s[t].querySelector(".meta-details").classList.remove("metadetails-active"))})}function h(e,i,t,d){let n=document.getElementById("season-list"),a=document.getElementById("episode-list"),o=document.getElementById("episode-container");e.id;let r=e.episodes.map((e,i)=>`\n <div id="episode-wrapper" class="episode-wrapper">\n <div class="episode-title" id="episode-title">\n <div class="details-wrapper">\n <div id="title-wrapper" class="title-wrapper">${i+1} ${e.title} </div>\n <div class="progress-bar-div">\n <div id="progress-div" class="progress-div"></div>\n </div>\n </div>\n <div class="meta-details">\n <div class="episode-image lazy" style="width:124px; height: 70px;">\n <img src=${e.gist.videoImageUrl} alt="${e.title}'s cover"></img>\n </div>\n <div class="description-wrapper">${e.gist.description}</div>\n </div>\n </div>\n </div>`).join("");for(;o?.firstChild;)o.removeChild(o.firstChild);const c=l(r);for(;c?.firstChild;)o.appendChild(c.firstChild);!function(e){s(e).then(e=>{let i=e.data,s=document.querySelectorAll("#progress-div");s&&i.map((e,i)=>{e&&e.watchedPercentage&&s[i]&&(s[i].style.width=e.watchedPercentage+"px")})}).catch(e=>{})}(d),n.classList.toggle("hide-container"),a.classList.toggle("hide-container");let p=document.querySelectorAll(".details-wrapper"),h=document.querySelectorAll("#episode-title"),g=document.querySelectorAll(".meta-details"),u=document.querySelector("#episodes-back-btn"),f=e.id,w=e.episodes;u.addEventListener("click",()=>function(e,i){e.classList.remove("hide-container"),i.classList.add("hide-container")}(n,a));for(let i=0;i<p.length;i++)p[i].addEventListener("click",()=>m(i,h[i],h)),g[i].addEventListener("click",()=>v(0,w[i].id)),e.episodes[i].id==f&&h[i].classList.add("highlight-active-eps")}function g(e,i){const s=`<div class="hover-div"></div>\n ${o()}\n <div class="player-season-list-container on-click-toggle">\n <div id="season-list" class="season-list">\n <div class="season-list-head">seasons</div>\n <div class="season-name-container">\n ${function(e){return e.map((e,i)=>`<div\n class="season-title-sdk"\n key=title-${e.title}\n > <div class="season-container">\n ${e.title}\n </div>\n </div>\n `).join("")}(i)}\n </div>\n </div>\n <div id="episode-list" class="episode-list hide-container"><div id="episodes-back-btn" class="episodes-back-btn" >\n <svg class='icon icon-backward' height="22px" width="22px" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path fill-rule="evenodd" clip-rule="evenodd" d="M0.383092 19.5818C-0.0882695 19.0669 -0.124672 18.2566 0.273985 17.6961L0.382714 17.5615L7.30134 9.99714L0.383092 2.43893C-0.0882694 1.92406 -0.124672 1.11374 0.273985 0.553232L0.382714 0.418625C0.853882 -0.0964584 1.59542 -0.136236 2.10835 0.299398L2.23153 0.418213L11 9.99608L2.23191 19.5814C1.72148 20.1394 0.893733 20.1396 0.383092 19.5818Z" fill="white"/>\n </svg>\n <span>Episodes<span></div> <div id="episode-container" class="episode-container"> </div></div>\n </div>`;for(;e?.firstChild;)e.removeChild(e.firstChild);const t=l(s);for(;t?.firstChild;)e.appendChild(t.firstChild)}export{g as customSeasonList,h as handleSeasonChange,p as seriesModule};
@@ -1 +1 @@
1
- import e from"video.js";import{E as s,g as t,B as i}from"./icons-b8ca9c4a.js";import{m as o,ab as a,ac as n,T as l,d as r,L as d}from"./generic-d8ac6622.js";import{j as c,p as m,g as p}from"./skin-932f3764.js";import{a as h}from"./autoNextVideo-91c70a62.js";import"axios";import"./browser-766b903b.js";import"md5";import"js-cookie";import"./captions-6426f98a.js";import"@viewlift/comscore/index.js";import"./index-22ed302f.js";import"./localisation-1ebd418b.js";const C=e.getComponent("Component");class g extends C{constructor(e,s={}){if(super(e,s),this.playerId=s.playerId,this.seriesData=s.sres,this.videos=s?.sres?.seasons,this.currentVideoData=s.res,this.initialiseStructure(),this.loadCSS(),this.selectedSeason=0,this.cb=s?.series?.cb,this.autoPlayNext=s?.series?.autoPlayNext||!1,sessionStorage.getItem("token"),this.watchMap=o(),this?.autoPlayNext&&s?.series?.enable){let e=s?.sres?.seasons,t=[];e.map(e=>{t.push(...e.episodes)}),a(t),n(this.options_?.res?.video?.id),h({playerId:this.playerId,content:t,cb:this.cb,series:s?.sres})}}createEl(){let t=e.dom.createEl("div",{className:"series-selection vjs-control vjs-button"});t.style.position="unset";let i=e.dom.createEl("div",{className:"series-selector-icon",innerHTML:`${s()}`});return e.dom.appendContent(t,i),t}loadCSS(){import("./series-v2-87343239.js").then(e=>{let s=document.createElement("style");s.id="series-v2",s.append(`${e.default}`),document.head.appendChild(s)})}toggleOpenClose(e){let s=this.el();e?.classList?.contains("hidden")?(c(),e.classList.remove("hidden"),s.classList.add("open"),e.style.right="0px"):(e.classList.add("hidden"),s.classList.remove("open"),e.style.right="-350px")}initialiseStructure(){let s=this.el(),t=e.dom.createEl("div",{className:"series-selection-container hidden"});e.dom.$(".series-selector-icon",this.el()).onclick=()=>this.toggleOpenClose(t);let i=document.getElementById(this.playerId);if(i){let o=window.getComputedStyle(i,null).getPropertyValue("height").slice(0,-2);t.style.height=`${o}px`,e.dom.appendContent(s,t),i.style.overflow="hidden",this.addFunctionality(t)}}addFunctionality(s){let i=this.el(),o=e.dom.createEl("div",{className:"series-selector-head"}),a=e.dom.createEl("div",{className:"series-selector-cross-icon",innerHTML:`${t()}`});a.onclick=()=>{if("series-selector-cross-icon"===a.className)s.classList.add("hidden"),i.classList.remove("open"),s.style.right="-350px";else if("series-selector-back-icon"===a.className){let s=e.dom.$(".series-selector-content",this.el());for(e.dom.$(".series-selector-cross-icon",this.el()),a.className="series-selector-cross-icon";s?.firstChild;)s.removeChild(s.firstChild);let i=this.createSeasonLister();for(e.dom.appendContent(s,i),e.dom.$(".series-selector-title",this.el()).textContent="Seasons";a?.firstChild;)a.removeChild(a.firstChild);const o=m(t());a.appendChild(o)}};let n=e.dom.createEl("div",{className:"series-selector-title",innerHTML:"Seasons"}),l=e.dom.createEl("div",{className:"series-selector-content"}),r=this.createSeasonLister();e.dom.appendContent(l,r),e.dom.appendContent(o,a),e.dom.appendContent(o,n),e.dom.appendContent(s,o),e.dom.appendContent(s,l),p(this.playerId).on("fullscreenchange",()=>{let e=document.getElementById(this.playerId);if(e){let t=window.getComputedStyle(e,null).getPropertyValue("height").slice(0,-2);s.style.height=`${t}px`}})}createSeasonLister(){p(this.playerId);let s=r(),t=e.dom.createEl("div",{className:"season-container"});for(let i=0;i<s.length;i++){let o=document.createElement("label");o.className="season-holder",o.setAttribute("for",`season-${i}`);let a=document.createElement("div");a.className=`season - ${i}`,a.textContent=s[i]?.title;let n=e.dom.createEl("input",{className:`radio - ${i}`,id:`season-${i}`,name:"season-radio"});n.setAttribute("type","radio"),this.selectedSeason==i&&(n.checked=!0),n.onclick=e=>{d.set(i),this.showSeasonDetails(i)},e.dom.appendContent(o,n),e.dom.appendContent(o,a),e.dom.appendContent(t,o)}return t}getSeasonDetailsContainer(s,t){s=s.map(e=>({id:e?.id,title:e?.title,description:e?.gist?.description,img:e?.gist?.imageGist?.r16x9,watchedPercentage:this?.watchMap?.get(e?.id)?.p||0}));for(let i=0;i<s.length;i++){let o=e.dom.createEl("div",{className:"series-container"}),a=e.dom.createEl("div",{className:"series-section",index:i}),r=e.dom.createEl("div",{className:"series-title",innerHTML:`${s[i]?.title||""}`}),d=e.dom.createEl("div",{className:"series-progress-bar",innerHTML:`<div style='width:${s[i].watchedPercentage}%' class='series-progress-bar-value'></div>`});e.dom.appendContent(a,r),e.dom.appendContent(a,d),e.dom.appendContent(o,a),e.dom.appendContent(t,o);let c=e.dom.createEl("div",{className:"series-section-expanded hidden"}),m=s[i]?.description||"";m?.length>170&&(m=m.substr(0,170)+"...");let p=e.dom.createEl("div",{className:"series-description",innerHTML:`${m||""}`}),h=e.dom.createEl("img",{className:"series-image"});h.src=`${s[i]?.img||window?.customData?.fallbackImage}`,h.alt=`${s[i]?.title}`,e.dom.appendContent(c,h),e.dom.appendContent(c,p),e.dom.appendContent(o,c),e.dom.appendContent(t,o),c.onclick=e=>{e.stopPropagation(),n(s[i]?.id),l(this.playerId,s[i].id).then(e=>{this?.cb&&this.cb(e)}).catch(e=>{this?.cb&&this.cb(e)})},a.onclick=e=>{let s=document.getElementsByClassName("series-selector-content")[0].childNodes;s=[...s];let t=s[e.target.index].getElementsByClassName("series-section-expanded")[0];t?.classList?.contains("hidden")?(o.style.backgroundColor="#0000007d",t?.classList?.remove("hidden")):(t?.classList?.add("hidden"),o.style.backgroundColor="unset")}}return parent}showSeasonDetails(s){this.selectedSeason=s;let t=e.dom.$(".series-selector-content",this.el());for(;t?.firstChild;)t.removeChild(t.firstChild);let o=r()[s].episodes;this.getSeasonDetailsContainer(o,t);let a=e.dom.$(".series-selector-cross-icon",this.el());for(a.className="series-selector-back-icon";a?.firstChild;)a.removeChild(a.firstChild);const n=m(i());a.appendChild(n),e.dom.$(".series-selector-title",this.el()).textContent=`Season ${s+1}`}}export{g as default};
1
+ import e from"video.js";import{E as s,g as t,B as i}from"./icons-b8ca9c4a.js";import{m as o,ab as a,ac as n,T as l,d as r,L as d}from"./generic-f765c6f0.js";import{j as c,p as m,g as p}from"./skin-932f3764.js";import{a as h}from"./autoNextVideo-d5b82444.js";import"axios";import"./browser-766b903b.js";import"md5";import"js-cookie";import"./captions-6426f98a.js";import"@viewlift/comscore/index.js";import"./index-894852f9.js";import"./localisation-1ebd418b.js";const C=e.getComponent("Component");class g extends C{constructor(e,s={}){if(super(e,s),this.playerId=s.playerId,this.seriesData=s.sres,this.videos=s?.sres?.seasons,this.currentVideoData=s.res,this.initialiseStructure(),this.loadCSS(),this.selectedSeason=0,this.cb=s?.series?.cb,this.autoPlayNext=s?.series?.autoPlayNext||!1,sessionStorage.getItem("token"),this.watchMap=o(),this?.autoPlayNext&&s?.series?.enable){let e=s?.sres?.seasons,t=[];e.map(e=>{t.push(...e.episodes)}),a(t),n(this.options_?.res?.video?.id),h({playerId:this.playerId,content:t,cb:this.cb,series:s?.sres})}}createEl(){let t=e.dom.createEl("div",{className:"series-selection vjs-control vjs-button"});t.style.position="unset";let i=e.dom.createEl("div",{className:"series-selector-icon",innerHTML:`${s()}`});return e.dom.appendContent(t,i),t}loadCSS(){import("./series-v2-87343239.js").then(e=>{let s=document.createElement("style");s.id="series-v2",s.append(`${e.default}`),document.head.appendChild(s)})}toggleOpenClose(e){let s=this.el();e?.classList?.contains("hidden")?(c(),e.classList.remove("hidden"),s.classList.add("open"),e.style.right="0px"):(e.classList.add("hidden"),s.classList.remove("open"),e.style.right="-350px")}initialiseStructure(){let s=this.el(),t=e.dom.createEl("div",{className:"series-selection-container hidden"});e.dom.$(".series-selector-icon",this.el()).onclick=()=>this.toggleOpenClose(t);let i=document.getElementById(this.playerId);if(i){let o=window.getComputedStyle(i,null).getPropertyValue("height").slice(0,-2);t.style.height=`${o}px`,e.dom.appendContent(s,t),i.style.overflow="hidden",this.addFunctionality(t)}}addFunctionality(s){let i=this.el(),o=e.dom.createEl("div",{className:"series-selector-head"}),a=e.dom.createEl("div",{className:"series-selector-cross-icon",innerHTML:`${t()}`});a.onclick=()=>{if("series-selector-cross-icon"===a.className)s.classList.add("hidden"),i.classList.remove("open"),s.style.right="-350px";else if("series-selector-back-icon"===a.className){let s=e.dom.$(".series-selector-content",this.el());for(e.dom.$(".series-selector-cross-icon",this.el()),a.className="series-selector-cross-icon";s?.firstChild;)s.removeChild(s.firstChild);let i=this.createSeasonLister();for(e.dom.appendContent(s,i),e.dom.$(".series-selector-title",this.el()).textContent="Seasons";a?.firstChild;)a.removeChild(a.firstChild);const o=m(t());a.appendChild(o)}};let n=e.dom.createEl("div",{className:"series-selector-title",innerHTML:"Seasons"}),l=e.dom.createEl("div",{className:"series-selector-content"}),r=this.createSeasonLister();e.dom.appendContent(l,r),e.dom.appendContent(o,a),e.dom.appendContent(o,n),e.dom.appendContent(s,o),e.dom.appendContent(s,l),p(this.playerId).on("fullscreenchange",()=>{let e=document.getElementById(this.playerId);if(e){let t=window.getComputedStyle(e,null).getPropertyValue("height").slice(0,-2);s.style.height=`${t}px`}})}createSeasonLister(){p(this.playerId);let s=r(),t=e.dom.createEl("div",{className:"season-container"});for(let i=0;i<s.length;i++){let o=document.createElement("label");o.className="season-holder",o.setAttribute("for",`season-${i}`);let a=document.createElement("div");a.className=`season - ${i}`,a.textContent=s[i]?.title;let n=e.dom.createEl("input",{className:`radio - ${i}`,id:`season-${i}`,name:"season-radio"});n.setAttribute("type","radio"),this.selectedSeason==i&&(n.checked=!0),n.onclick=e=>{d.set(i),this.showSeasonDetails(i)},e.dom.appendContent(o,n),e.dom.appendContent(o,a),e.dom.appendContent(t,o)}return t}getSeasonDetailsContainer(s,t){s=s.map(e=>({id:e?.id,title:e?.title,description:e?.gist?.description,img:e?.gist?.imageGist?.r16x9,watchedPercentage:this?.watchMap?.get(e?.id)?.p||0}));for(let i=0;i<s.length;i++){let o=e.dom.createEl("div",{className:"series-container"}),a=e.dom.createEl("div",{className:"series-section",index:i}),r=e.dom.createEl("div",{className:"series-title",innerHTML:`${s[i]?.title||""}`}),d=e.dom.createEl("div",{className:"series-progress-bar",innerHTML:`<div style='width:${s[i].watchedPercentage}%' class='series-progress-bar-value'></div>`});e.dom.appendContent(a,r),e.dom.appendContent(a,d),e.dom.appendContent(o,a),e.dom.appendContent(t,o);let c=e.dom.createEl("div",{className:"series-section-expanded hidden"}),m=s[i]?.description||"";m?.length>170&&(m=m.substr(0,170)+"...");let p=e.dom.createEl("div",{className:"series-description",innerHTML:`${m||""}`}),h=e.dom.createEl("img",{className:"series-image"});h.src=`${s[i]?.img||window?.customData?.fallbackImage}`,h.alt=`${s[i]?.title}`,e.dom.appendContent(c,h),e.dom.appendContent(c,p),e.dom.appendContent(o,c),e.dom.appendContent(t,o),c.onclick=e=>{e.stopPropagation(),n(s[i]?.id),l(this.playerId,s[i].id).then(e=>{this?.cb&&this.cb(e)}).catch(e=>{this?.cb&&this.cb(e)})},a.onclick=e=>{let s=document.getElementsByClassName("series-selector-content")[0].childNodes;s=[...s];let t=s[e.target.index].getElementsByClassName("series-section-expanded")[0];t?.classList?.contains("hidden")?(o.style.backgroundColor="#0000007d",t?.classList?.remove("hidden")):(t?.classList?.add("hidden"),o.style.backgroundColor="unset")}}return parent}showSeasonDetails(s){this.selectedSeason=s;let t=e.dom.$(".series-selector-content",this.el());for(;t?.firstChild;)t.removeChild(t.firstChild);let o=r()[s].episodes;this.getSeasonDetailsContainer(o,t);let a=e.dom.$(".series-selector-cross-icon",this.el());for(a.className="series-selector-back-icon";a?.firstChild;)a.removeChild(a.firstChild);const n=m(i());a.appendChild(n),e.dom.$(".series-selector-title",this.el()).textContent=`Season ${s+1}`}}export{g as default};
@@ -1 +1 @@
1
- import e from"video.js";import{f as s,g as t,B as o}from"./icons-b8ca9c4a.js";import{m as i,ab as a,ac as n,T as l,d as r,L as d}from"./generic-d8ac6622.js";import{j as c,s as m,p,l as h,g as u,i as C}from"./skin-932f3764.js";import{a as g}from"./autoNextVideo-91c70a62.js";import"axios";import"./browser-766b903b.js";import"md5";import"js-cookie";import"./captions-6426f98a.js";import"@viewlift/comscore/index.js";import"./index-22ed302f.js";import"./localisation-1ebd418b.js";const y=e.getComponent("Component");class b extends y{constructor(e,s={}){if(super(e,s),this.playerId=s.playerId,this.seriesData=s.sres,this.videos=s?.sres?.seasons,this.currentVideoData=s.res,this.initialiseStructure(),this.loadCSS(),this.selectedSeason=0,this.cb=s?.series?.cb,this.autoPlayNext=s?.series?.autoPlayNext||!1,sessionStorage.getItem("token"),this.watchMap=i(),this?.autoPlayNext&&s?.series?.enable){let e=s?.sres?.seasons,t=[];e.map(e=>{t.push(...e.episodes)}),a(t),n(this.options_?.res?.video?.id),g({playerId:this.playerId,content:t,cb:this.cb,series:s?.sres})}}createEl(){let t=e.dom.createEl("div",{className:"series-selection vjs-control vjs-button"});t.style.position="unset";let o=e.dom.createEl("button",{className:"series-selector-icon",title:"season selector",innerHTML:`${s()}`});return e.dom.appendContent(t,o),t}loadCSS(){import("./series-v2-6e9853f8.js").then(e=>{let s=document.createElement("style");s.id="series-v2",s.append(`${e.default}`),document.head.appendChild(s)})}toggleOpenClose(e){let s=this.el();e?.classList?.contains("hidden")?(c(),e.classList.remove("hidden"),s.classList.add("open"),m(this.playerId,e)):(e.classList.add("hidden"),s.classList.remove("open"))}handleTabIndexSelector(){const e=document.getElementsByClassName("season-holder");document.getElementById("sr-announcer").textContent="season selector dialog open",document.getElementsByClassName("series-selector-cross-icon")?.[0]&&(document.getElementsByClassName("series-selector-cross-icon")[0].tabIndex=0);for(let s=0;s<e?.length;s++)e[s].tabIndex=0}handleCloseTabIndex(){const e=document.getElementsByClassName("season-holder");document.getElementById("sr-announcer").textContent="season selector dialog closed",document.getElementsByClassName("series-selector-cross-icon")?.[0]&&(document.getElementsByClassName("series-selector-cross-icon")[0].tabIndex=-1);for(let s=0;s<e?.length;s++)e[s]&&(e[s].tabIndex=-1);setTimeout(()=>{document.getElementsByClassName("series-selector-icon")[0]&&document.getElementsByClassName("series-selector-icon")[0].focus()},100)}initialiseStructure(){let s=this.el(),t=e.dom.createEl("div",{className:"series-selection-container hidden",role:"dialog",ariaModal:"true"});t.setAttribute("aria-labelledby","seasons"),e.dom.$(".series-selector-icon",this.el()).onclick=()=>{this.toggleOpenClose(t),this.handleTabIndexSelector()};let o=document.getElementById(this.playerId);if(o){let i=window.getComputedStyle(o,null).getPropertyValue("height").slice(0,-2);t.style.height=`${i}px`,e.dom.appendContent(s,t),o.style.overflow="hidden",this.addFunctionality(t)}}handleSeriesCloseIcon(s,o,i){if("series-selector-cross-icon"===s.className)o.classList.add("hidden"),i.classList.remove("open"),this.handleCloseTabIndex();else if("series-selector-back-icon"===s.className){let o=e.dom.$(".series-selector-content",this.el());for(e.dom.$(".series-selector-cross-icon",this.el()),s.className="series-selector-cross-icon";o?.firstChild;)o.removeChild(o.firstChild);let i=this.createSeasonLister();for(e.dom.appendContent(o,i),e.dom.$(".series-selector-title",this.el()).textContent="Seasons";s?.firstChild;)s.removeChild(s.firstChild);const a=p(t());s.appendChild(a)}}addFunctionality(s){let o=this.el(),i=e.dom.createEl("div",{className:"series-selector-head"}),a=e.dom.createEl("button",{className:"series-selector-cross-icon",ariaLabel:"close season selector",innerHTML:`${t()}`,tabIndex:-1});a.onclick=()=>{this.handleSeriesCloseIcon(a,s,o)},a.onkeydown=e=>{"Enter"===e.key&&this.handleSeriesCloseIcon(a,s,o)};let n=e.dom.createEl("h2",{className:"series-selector-title",ariaLabel:"Seasons",innerHTML:"Seasons",id:"seasons"}),l=e.dom.createEl("div",{style:"position:absolute;left:-9999px;top:auto;width:1px;height:1px;overflow:hidden;",ariaLive:"assertive",id:"sr-announcer",tabIndex:-1}),r=e.dom.createEl("div",{className:"series-selector-content"}),d=this.createSeasonLister();e.dom.appendContent(i,l),e.dom.appendContent(r,d),e.dom.appendContent(i,a),e.dom.appendContent(i,n),e.dom.appendContent(s,i),e.dom.appendContent(s,r),h(this.playerId,s)}createSeasonLister(){u(this.playerId);let s=r(),t=e.dom.createEl("div",{className:"season-container"});for(let o=0;o<s.length;o++){let i=document.createElement("label");i.className="season-holder",i.ariaLabel=s[o]?.title,i.role="button",i.type="button",i.setAttribute("aria-LabelledBy",s[o]?.title),i.setAttribute("for",`season-${o}`);let a=document.createElement("div");a.className=`season - ${o}`,a.textContent=s[o]?.title,a.id=s[o]?.title;let n=e.dom.createEl("input",{className:`radio - ${o}`,id:`season-${o}`,name:"season-radio"});n.setAttribute("type","radio"),this.selectedSeason==o&&(n.checked=!0),n.onclick=e=>{d.set(o),this.showSeasonDetails(o)},i.onkeydown=e=>{"Enter"===e.key&&(d.set(o),this.showSeasonDetails(o))},e.dom.appendContent(i,n),e.dom.appendContent(i,a),e.dom.appendContent(t,i)}return t}loadSeriesAssetById(e,s){n(e[s]?.id),l(this.playerId,e[s].id).then(e=>{this?.cb&&this.cb(e)}).catch(e=>{this?.cb&&this.cb(e)})}getSeasonDetailsContainer(s,t){s=s.map(e=>({id:e?.id,title:e?.title,description:e?.gist?.description,img:e?.gist?.imageGist?.r16x9||window?.app_data?.appcmsMain?.images?.placeholderCover,watchedPercentage:this?.watchMap?.get(e?.id)?.p||0}));for(let o=0;o<s.length;o++){let i=e.dom.createEl("div",{className:"series-container",tabIndex:0,role:"button",type:"button"}),a=e.dom.createEl("div",{className:"series-section-data",index:o,innerHTML:`${s[o]?.title||""}`});e.dom.createEl("div",{className:"series-title",innerHTML:`${s[o]?.title||""}`}),e.dom.createEl("div",{className:"series-progress-bar",innerHTML:`<div style='width:${s[o].watchedPercentage}%' class='series-progress-bar-value'></div>`});let n=e.dom.createEl("div",{className:"series-section-image"}),l=s[o]?.description||"";l?.length>170&&(l=l.substr(0,170)+"..."),e.dom.createEl("div",{className:"series-description",innerHTML:`${l||""}`});let r=e.dom.createEl("img",{className:"series-image"});r.src=`${C(s[o]?.img)}`,r.alt=`Episode ${o+1}`,e.dom.appendContent(n,r),e.dom.appendContent(i,n),e.dom.appendContent(i,a),e.dom.appendContent(t,i),i.onclick=e=>{e.stopPropagation(),this.loadSeriesAssetById(s,o)},i.onkeydown=e=>{"Enter"===e.key&&(e.stopPropagation(),this.loadSeriesAssetById(s,o))},a.onclick=e=>{let s=document.getElementsByClassName("series-selector-content")[0].childNodes;s=[...s];let t=s[e.target.index].getElementsByClassName("series-section-expanded")[0];t?.classList?.contains("hidden")?(i.style.backgroundColor="#0000007d",t?.classList?.remove("hidden")):(t?.classList?.add("hidden"),i.style.backgroundColor="unset")}}return parent}showSeasonDetails(s){this.selectedSeason=s;let t=e.dom.$(".series-selector-content",this.el());for(;t?.firstChild;)t.removeChild(t.firstChild);let i=r()[s].episodes;this.getSeasonDetailsContainer(i,t);let a=e.dom.$(".series-selector-cross-icon",this.el());for(a.className="series-selector-back-icon";a?.firstChild;)a.removeChild(a.firstChild);const n=p(o());a.appendChild(n),e.dom.$(".series-selector-title",this.el()).textContent=`Season ${s+1}`}}export{b as default};
1
+ import e from"video.js";import{f as s,g as t,B as o}from"./icons-b8ca9c4a.js";import{m as i,ab as a,ac as n,T as l,d as r,L as d}from"./generic-f765c6f0.js";import{j as c,s as m,p,l as h,g as u,i as C}from"./skin-932f3764.js";import{a as g}from"./autoNextVideo-d5b82444.js";import"axios";import"./browser-766b903b.js";import"md5";import"js-cookie";import"./captions-6426f98a.js";import"@viewlift/comscore/index.js";import"./index-894852f9.js";import"./localisation-1ebd418b.js";const y=e.getComponent("Component");class b extends y{constructor(e,s={}){if(super(e,s),this.playerId=s.playerId,this.seriesData=s.sres,this.videos=s?.sres?.seasons,this.currentVideoData=s.res,this.initialiseStructure(),this.loadCSS(),this.selectedSeason=0,this.cb=s?.series?.cb,this.autoPlayNext=s?.series?.autoPlayNext||!1,sessionStorage.getItem("token"),this.watchMap=i(),this?.autoPlayNext&&s?.series?.enable){let e=s?.sres?.seasons,t=[];e.map(e=>{t.push(...e.episodes)}),a(t),n(this.options_?.res?.video?.id),g({playerId:this.playerId,content:t,cb:this.cb,series:s?.sres})}}createEl(){let t=e.dom.createEl("div",{className:"series-selection vjs-control vjs-button"});t.style.position="unset";let o=e.dom.createEl("button",{className:"series-selector-icon",title:"season selector",innerHTML:`${s()}`});return e.dom.appendContent(t,o),t}loadCSS(){import("./series-v2-6e9853f8.js").then(e=>{let s=document.createElement("style");s.id="series-v2",s.append(`${e.default}`),document.head.appendChild(s)})}toggleOpenClose(e){let s=this.el();e?.classList?.contains("hidden")?(c(),e.classList.remove("hidden"),s.classList.add("open"),m(this.playerId,e)):(e.classList.add("hidden"),s.classList.remove("open"))}handleTabIndexSelector(){const e=document.getElementsByClassName("season-holder");document.getElementById("sr-announcer").textContent="season selector dialog open",document.getElementsByClassName("series-selector-cross-icon")?.[0]&&(document.getElementsByClassName("series-selector-cross-icon")[0].tabIndex=0);for(let s=0;s<e?.length;s++)e[s].tabIndex=0}handleCloseTabIndex(){const e=document.getElementsByClassName("season-holder");document.getElementById("sr-announcer").textContent="season selector dialog closed",document.getElementsByClassName("series-selector-cross-icon")?.[0]&&(document.getElementsByClassName("series-selector-cross-icon")[0].tabIndex=-1);for(let s=0;s<e?.length;s++)e[s]&&(e[s].tabIndex=-1);setTimeout(()=>{document.getElementsByClassName("series-selector-icon")[0]&&document.getElementsByClassName("series-selector-icon")[0].focus()},100)}initialiseStructure(){let s=this.el(),t=e.dom.createEl("div",{className:"series-selection-container hidden",role:"dialog",ariaModal:"true"});t.setAttribute("aria-labelledby","seasons"),e.dom.$(".series-selector-icon",this.el()).onclick=()=>{this.toggleOpenClose(t),this.handleTabIndexSelector()};let o=document.getElementById(this.playerId);if(o){let i=window.getComputedStyle(o,null).getPropertyValue("height").slice(0,-2);t.style.height=`${i}px`,e.dom.appendContent(s,t),o.style.overflow="hidden",this.addFunctionality(t)}}handleSeriesCloseIcon(s,o,i){if("series-selector-cross-icon"===s.className)o.classList.add("hidden"),i.classList.remove("open"),this.handleCloseTabIndex();else if("series-selector-back-icon"===s.className){let o=e.dom.$(".series-selector-content",this.el());for(e.dom.$(".series-selector-cross-icon",this.el()),s.className="series-selector-cross-icon";o?.firstChild;)o.removeChild(o.firstChild);let i=this.createSeasonLister();for(e.dom.appendContent(o,i),e.dom.$(".series-selector-title",this.el()).textContent="Seasons";s?.firstChild;)s.removeChild(s.firstChild);const a=p(t());s.appendChild(a)}}addFunctionality(s){let o=this.el(),i=e.dom.createEl("div",{className:"series-selector-head"}),a=e.dom.createEl("button",{className:"series-selector-cross-icon",ariaLabel:"close season selector",innerHTML:`${t()}`,tabIndex:-1});a.onclick=()=>{this.handleSeriesCloseIcon(a,s,o)},a.onkeydown=e=>{"Enter"===e.key&&this.handleSeriesCloseIcon(a,s,o)};let n=e.dom.createEl("h2",{className:"series-selector-title",ariaLabel:"Seasons",innerHTML:"Seasons",id:"seasons"}),l=e.dom.createEl("div",{style:"position:absolute;left:-9999px;top:auto;width:1px;height:1px;overflow:hidden;",ariaLive:"assertive",id:"sr-announcer",tabIndex:-1}),r=e.dom.createEl("div",{className:"series-selector-content"}),d=this.createSeasonLister();e.dom.appendContent(i,l),e.dom.appendContent(r,d),e.dom.appendContent(i,a),e.dom.appendContent(i,n),e.dom.appendContent(s,i),e.dom.appendContent(s,r),h(this.playerId,s)}createSeasonLister(){u(this.playerId);let s=r(),t=e.dom.createEl("div",{className:"season-container"});for(let o=0;o<s.length;o++){let i=document.createElement("label");i.className="season-holder",i.ariaLabel=s[o]?.title,i.role="button",i.type="button",i.setAttribute("aria-LabelledBy",s[o]?.title),i.setAttribute("for",`season-${o}`);let a=document.createElement("div");a.className=`season - ${o}`,a.textContent=s[o]?.title,a.id=s[o]?.title;let n=e.dom.createEl("input",{className:`radio - ${o}`,id:`season-${o}`,name:"season-radio"});n.setAttribute("type","radio"),this.selectedSeason==o&&(n.checked=!0),n.onclick=e=>{d.set(o),this.showSeasonDetails(o)},i.onkeydown=e=>{"Enter"===e.key&&(d.set(o),this.showSeasonDetails(o))},e.dom.appendContent(i,n),e.dom.appendContent(i,a),e.dom.appendContent(t,i)}return t}loadSeriesAssetById(e,s){n(e[s]?.id),l(this.playerId,e[s].id).then(e=>{this?.cb&&this.cb(e)}).catch(e=>{this?.cb&&this.cb(e)})}getSeasonDetailsContainer(s,t){s=s.map(e=>({id:e?.id,title:e?.title,description:e?.gist?.description,img:e?.gist?.imageGist?.r16x9||window?.app_data?.appcmsMain?.images?.placeholderCover,watchedPercentage:this?.watchMap?.get(e?.id)?.p||0}));for(let o=0;o<s.length;o++){let i=e.dom.createEl("div",{className:"series-container",tabIndex:0,role:"button",type:"button"}),a=e.dom.createEl("div",{className:"series-section-data",index:o,innerHTML:`${s[o]?.title||""}`});e.dom.createEl("div",{className:"series-title",innerHTML:`${s[o]?.title||""}`}),e.dom.createEl("div",{className:"series-progress-bar",innerHTML:`<div style='width:${s[o].watchedPercentage}%' class='series-progress-bar-value'></div>`});let n=e.dom.createEl("div",{className:"series-section-image"}),l=s[o]?.description||"";l?.length>170&&(l=l.substr(0,170)+"..."),e.dom.createEl("div",{className:"series-description",innerHTML:`${l||""}`});let r=e.dom.createEl("img",{className:"series-image"});r.src=`${C(s[o]?.img)}`,r.alt=`Episode ${o+1}`,e.dom.appendContent(n,r),e.dom.appendContent(i,n),e.dom.appendContent(i,a),e.dom.appendContent(t,i),i.onclick=e=>{e.stopPropagation(),this.loadSeriesAssetById(s,o)},i.onkeydown=e=>{"Enter"===e.key&&(e.stopPropagation(),this.loadSeriesAssetById(s,o))},a.onclick=e=>{let s=document.getElementsByClassName("series-selector-content")[0].childNodes;s=[...s];let t=s[e.target.index].getElementsByClassName("series-section-expanded")[0];t?.classList?.contains("hidden")?(i.style.backgroundColor="#0000007d",t?.classList?.remove("hidden")):(t?.classList?.add("hidden"),i.style.backgroundColor="unset")}}return parent}showSeasonDetails(s){this.selectedSeason=s;let t=e.dom.$(".series-selector-content",this.el());for(;t?.firstChild;)t.removeChild(t.firstChild);let i=r()[s].episodes;this.getSeasonDetailsContainer(i,t);let a=e.dom.$(".series-selector-cross-icon",this.el());for(a.className="series-selector-back-icon";a?.firstChild;)a.removeChild(a.firstChild);const n=p(o());a.appendChild(n),e.dom.$(".series-selector-title",this.el()).textContent=`Season ${s+1}`}}export{b as default};
@@ -1 +1 @@
1
- import{P as o,Q as t}from"./generic-d8ac6622.js";import{g as e}from"./skin-932f3764.js";import"video.js";import"axios";import"./browser-766b903b.js";import"md5";import"js-cookie";import"./captions-6426f98a.js";import"@viewlift/comscore/index.js";function s(o){r(o),i(o)}const i=s=>{const i=e(s);let r=document.getElementById(`${s}`);r&&r.addEventListener("touchstart",()=>{i.paused()?o(s):t(s)})},r=o=>{const t=e(o);t.requestFullscreen=function(){},t.controlBar.hide()};export{s as initaliseSkin};
1
+ import{P as o,Q as t}from"./generic-f765c6f0.js";import{g as e}from"./skin-932f3764.js";import"video.js";import"axios";import"./browser-766b903b.js";import"md5";import"js-cookie";import"./captions-6426f98a.js";import"@viewlift/comscore/index.js";function s(o){r(o),i(o)}const i=s=>{const i=e(s);let r=document.getElementById(`${s}`);r&&r.addEventListener("touchstart",()=>{i.paused()?o(s):t(s)})},r=o=>{const t=e(o);t.requestFullscreen=function(){},t.controlBar.hide()};export{s as initaliseSkin};
@@ -1 +1 @@
1
- import{f as e,g as t,h as o,d as i,e as l,i as s,j as a,k as n,l as r,m as d}from"./features-ee38c5bb.js";import{M as m,a as c,c as p,d as u}from"./icons-b8ca9c4a.js";import{g,b as f}from"./skin-932f3764.js";import{g as h}from"./renditions-38f26c3d.js";import{g as j}from"./captions-6426f98a.js";import{a as v,b as C}from"./index-080bf7b9.js";import{i as w}from"./index-554f98ba.js";import{a as V,d as y}from"./browser-766b903b.js";import{r as b}from"./relatedVideosManager-6e242502.js";import"video.js";import"./generic-d8ac6622.js";import"axios";import"md5";import"js-cookie";import"@viewlift/comscore/index.js";import"./localisation-1ebd418b.js";import"./autoNextVideo-91c70a62.js";import"./index-22ed302f.js";function B(B,k){g(B).addClass("skin_defaultv2"),function(){"Chrome"==y()&&import("./chromett-a3cbb2e1.js").then(e=>{let t=document.createElement("style");t.id="chromett",t.append(`${e.default}`),document.head.appendChild(t)});import("./skin-46def1ff.js").then(e=>{let t=document.createElement("style");t.id="default_v2",t.append(`${e.default}`),document.head.appendChild(t)})}(),function(i,l){let s=g(i);s&&(s.on("loadeddata",()=>{h(i)?.length>0&&e(i,l),j(i)?.length>0&&t(i,l);const o=b.get()?.content?.length>0;if((l?.series?.enable||window?.app_data?.appcmsMain?.features?.auto_play||o)&&!l?.liveVideo)v(i,l);else if(!l?.liveVideo&&!l?.series?.enable){let e;e=b.subscribe(t=>{t?.content?.length>0&&(v(i,l),e&&e())})}l?.liveVideo||V()||w(i)}),s.one("play",()=>{window?.customData?.iframeOverlayUrl&&o(i,window?.customData?.iframeOverlayUrl)}))}(B,k),function(e,t){let o=g(e);o.controlBar?.removeChild("VolumePanel"),o.controlBar?.addChild("VolumePanel",{inline:!1},1);const i=o.controlBar?.getChild("ProgressControl"),l=o.controlBar?.getChild("CurrentTimeDisplay"),s=o.controlBar?.getChild("SeekToLive"),a=document.createElement("div");a.className="custom-spaced-progress-bar",i&&l&&s&&a.append(i.el(),l.el(),s.el());o.controlBar?.el()?.append(a),o?.controlBar?.getChild("FullscreenToggle")?.el()?.appendChild(f(m(window.controlsColor))),o?.controlBar?.getChild("FullscreenToggle")?.el()?.appendChild(f(c(window.controlsColor)));let n=document.getElementsByClassName("vjs-time-control");t.liveVideo&&n[0]&&(n[0].style.display="none")}(B,k),function(e,t){const o=t?.skin_settings||{},m=0!=o?.slowMoBtn;0==t?.liveVideo&&0==t?.liveui&&i(e,"defaultV2",p());(0==t?.liveVideo&&0==t?.liveui||1==t?.liveui)&&l(e,"defaultV2",u());!t.liveVideo&&m&&s(e);const c=b.get();c?.content?.length>0&&a(e,c);let f;f=b.subscribe(t=>{const o=g(e);!o?.controlBar?.getChild("videoSelector")&&t?.content?.length>0&&(a(e,t),f&&f())}),t?.streams?.length>1&&n(e,t?.streams);t?.playlist?.content?.length>0&&r(e,t?.playlist);t?.series?.enable&&d(e,t)}(B,k),C(B,k)}export{B as initialiseSkin};
1
+ import{f as e,g as t,h as o,d as i,e as l,i as s,j as a,k as n,l as r,m as d}from"./features-99081d09.js";import{M as m,a as c,c as p,d as u}from"./icons-b8ca9c4a.js";import{g,b as f}from"./skin-932f3764.js";import{g as h}from"./renditions-38f26c3d.js";import{g as j}from"./captions-6426f98a.js";import{a as v,b as C}from"./index-aba78d94.js";import{i as w}from"./index-97684837.js";import{a as V,d as y}from"./browser-766b903b.js";import{r as b}from"./relatedVideosManager-6e242502.js";import"video.js";import"./generic-f765c6f0.js";import"axios";import"md5";import"js-cookie";import"@viewlift/comscore/index.js";import"./localisation-1ebd418b.js";import"./autoNextVideo-d5b82444.js";import"./index-894852f9.js";function B(B,k){g(B).addClass("skin_defaultv2"),function(){"Chrome"==y()&&import("./chromett-a3cbb2e1.js").then(e=>{let t=document.createElement("style");t.id="chromett",t.append(`${e.default}`),document.head.appendChild(t)});import("./skin-46def1ff.js").then(e=>{let t=document.createElement("style");t.id="default_v2",t.append(`${e.default}`),document.head.appendChild(t)})}(),function(i,l){let s=g(i);s&&(s.on("loadeddata",()=>{h(i)?.length>0&&e(i,l),j(i)?.length>0&&t(i,l);const o=b.get()?.content?.length>0;if((l?.series?.enable||window?.app_data?.appcmsMain?.features?.auto_play||o)&&!l?.liveVideo)v(i,l);else if(!l?.liveVideo&&!l?.series?.enable){let e;e=b.subscribe(t=>{t?.content?.length>0&&(v(i,l),e&&e())})}l?.liveVideo||V()||w(i)}),s.one("play",()=>{window?.customData?.iframeOverlayUrl&&o(i,window?.customData?.iframeOverlayUrl)}))}(B,k),function(e,t){let o=g(e);o.controlBar?.removeChild("VolumePanel"),o.controlBar?.addChild("VolumePanel",{inline:!1},1);const i=o.controlBar?.getChild("ProgressControl"),l=o.controlBar?.getChild("CurrentTimeDisplay"),s=o.controlBar?.getChild("SeekToLive"),a=document.createElement("div");a.className="custom-spaced-progress-bar",i&&l&&s&&a.append(i.el(),l.el(),s.el());o.controlBar?.el()?.append(a),o?.controlBar?.getChild("FullscreenToggle")?.el()?.appendChild(f(m(window.controlsColor))),o?.controlBar?.getChild("FullscreenToggle")?.el()?.appendChild(f(c(window.controlsColor)));let n=document.getElementsByClassName("vjs-time-control");t.liveVideo&&n[0]&&(n[0].style.display="none")}(B,k),function(e,t){const o=t?.skin_settings||{},m=0!=o?.slowMoBtn;0==t?.liveVideo&&0==t?.liveui&&i(e,"defaultV2",p());(0==t?.liveVideo&&0==t?.liveui||1==t?.liveui)&&l(e,"defaultV2",u());!t.liveVideo&&m&&s(e);const c=b.get();c?.content?.length>0&&a(e,c);let f;f=b.subscribe(t=>{const o=g(e);!o?.controlBar?.getChild("videoSelector")&&t?.content?.length>0&&(a(e,t),f&&f())}),t?.streams?.length>1&&n(e,t?.streams);t?.playlist?.content?.length>0&&r(e,t?.playlist);t?.series?.enable&&d(e,t)}(B,k),C(B,k)}export{B as initialiseSkin};
@@ -1 +1 @@
1
- import{f as e,r as t,d as i,e as n,j as l,k as o,l as s,m as r}from"./features-ee38c5bb.js";import{e as c}from"./icons-b8ca9c4a.js";import{g as C,p as a,e as d}from"./skin-932f3764.js";import{g as h}from"./renditions-38f26c3d.js";import{a as p,b as u}from"./index-080bf7b9.js";import{r as v}from"./relatedVideosManager-6e242502.js";import{a7 as f,a8 as m,e as g,a9 as L,m as B}from"./generic-d8ac6622.js";import"video.js";import"./localisation-1ebd418b.js";import"./autoNextVideo-91c70a62.js";import"./index-22ed302f.js";import"axios";import"./browser-766b903b.js";import"md5";import"js-cookie";import"./captions-6426f98a.js";import"@viewlift/comscore/index.js";function y(y,b){C(y).addClass("skin_news_live"),function(t,i){let n=C(t);n&&n.on("loadeddata",()=>{h(t)?.length>0&&0!=i?.skin_settings?.settingsToggle&&e(t,i);const n=v.get()?.content?.length>0;if((i?.series?.enable||window?.app_data?.appcmsMain?.features?.auto_play||n)&&!i?.liveVideo)p(t,i);else if(!i?.liveVideo&&!i?.series?.enable){let e;e=v.subscribe(n=>{n?.content?.length>0&&(p(t,i),e&&e())})}})}(y,b),function(e,t){let i=C(e);i.controlBar?.removeChild("PlayToggle");const n=i?.controlBar?.el()?.children?.[2],l=document.createElement("div");l.className="vjs-play-toggle-container",l.append(i?.controlBar?.addChild("PlayToggle")?.el()),i?.controlBar?.el()?.insertBefore(l,n),i?.controlBar?.removeChild("VolumePanel"),i?.controlBar?.addChild("VolumePanel",{inline:!0},1);const o=i?.controlBar?.getChild("ProgressControl");i.controlBar?.removeChild("SeekToLive"),i.controlBar?.addChild("SeekToLive",{inline:!1},2);const s=i.controlBar?.getChild("SeekToLive")?.el();s&&(s.onclick=()=>{if(i.paused())try{i.play()}catch(e){console.log(e)}});const r=document.createElement("div");r.className="custom-spaced-progress-bar",o&&r.append(o.el());i.controlBar?.el()?.append(r);const c='<svg xmlns="http://www.w3.org/2000/svg" style="display : none">\n <defs>\n <symbol id="vjs-icon-pause" viewBox="0 0 17 16">\n <path d="M6.00138 15.4894C6.02138 15.7494 5.82138 15.9694 5.56138 15.9894C5.54138 15.9894 5.52138 15.9894 5.50138 15.9894H2.50138C2.24138 16.0094 2.02138 15.8094 2.00138 15.5494C2.00138 15.5294 2.00138 15.5094 2.00138 15.4894V0.499411C1.98138 0.239411 2.18138 0.0194107 2.44138 -0.000589337C2.46138 -0.000589337 2.48138 -0.000589337 2.50138 -0.000589337H5.50138C5.76138 -0.0205893 5.98138 0.179411 6.00138 0.439411C6.00138 0.459411 6.00138 0.479411 6.00138 0.499411V15.4894ZM14.0014 0.509411C14.0214 0.249411 13.8214 0.0294105 13.5614 0.00941051C13.5414 0.00941051 13.5214 0.00941051 13.5014 0.00941051H10.5014C10.2414 -0.0105895 10.0214 0.189411 10.0014 0.449411C10.0014 0.469411 10.0014 0.489411 10.0014 0.509411V15.4994C9.98138 15.7594 10.1814 15.9794 10.4414 15.9994C10.4614 15.9994 10.4814 15.9994 10.5014 15.9994H13.5014C13.7614 16.0194 13.9814 15.8194 14.0014 15.5594C14.0014 15.5394 14.0014 15.5194 14.0014 15.4994V0.509411Z" fill="#EBEBEB"/>\n </symbol>\n <symbol id="vjs-icon-play" viewBox="0 0 17 16">\n <path d="M0.38279 15.9526C0.28279 16.0326 0.142791 16.0126 0.0527906 15.9126C0.0127906 15.8626 -0.00720943 15.8026 0.00279057 15.7326V0.262601C-0.0172094 0.132601 0.0727907 0.0226013 0.192791 0.00260128C0.262791 -0.00739872 0.32279 0.0126014 0.38279 0.0426014L15.8528 7.8126C16.0628 7.9226 16.0628 8.0926 15.8528 8.1926L0.38279 15.9526Z" fill="white"/>\n </symbol>\n\n <symbol id="vjs-icon-fullscreen" viewBox="0 0 24 24">\n <path d="M19.8621 5.44209L19.0221 10.4521C18.9821 10.7221 18.7821 10.7821 18.5821 10.5921L17.1421 9.15209L14.3521 11.9421L12.9321 10.5221L15.7221 7.73209L14.2821 6.29209C14.0921 6.10209 14.1521 5.90209 14.4221 5.85209L19.4321 5.01209C19.6121 4.96209 19.7921 5.07209 19.8421 5.25209C19.8821 5.32209 19.8821 5.38209 19.8621 5.44209ZM9.15209 17.1621L11.9421 14.3721L10.5221 12.9521L7.73209 15.7421L6.29209 14.3021C6.10209 14.1121 5.90209 14.1721 5.85209 14.4421L5.01209 19.4521C4.96209 19.6321 5.07209 19.8121 5.25209 19.8621C5.30209 19.8821 5.37209 19.8821 5.42209 19.8621L10.4321 19.0221C10.7021 18.9821 10.7621 18.7821 10.5721 18.5821L9.15209 17.1621Z" fill="#EBEBEB"/>\n </symbol>\n <symbol id="vjs-icon-fullscreen-back" viewBox="0 0 24 24">\n <path d="M10.92 13.49L10.08 18.5C10.04 18.77 9.84001 18.83 9.64001 18.64L8.20001 17.2L5.41001 19.99L3.99001 18.57L6.78001 15.78L5.34001 14.34C5.15001 14.15 5.21001 13.95 5.48001 13.9L10.49 13.06C10.67 13.01 10.85 13.12 10.9 13.3C10.94 13.37 10.94 13.43 10.92 13.49ZM17.21 8.21L20 5.42L18.58 4L15.79 6.79L14.35 5.35C14.16 5.16 13.96 5.22 13.91 5.49L13.07 10.5C13.02 10.68 13.13 10.86 13.31 10.91C13.36 10.93 13.43 10.93 13.48 10.91L18.49 10.07C18.76 10.03 18.82 9.83 18.63 9.63L17.21 8.21Z" fill="#EBEBEB"/>\n </symbol>\n\n <symbol id="vjs-icon-volume1" viewBox="0 0 24 24"> \n <path d="M11.65 4.28V19.72C11.65 20 11.48 20.08 11.27 19.89L5.86 15.09H2.9C2.62 15.09 2.38 14.86 2.38 14.57V9.43C2.38 9.15 2.61 8.91 2.9 8.91H5.86L11.27 4.11C11.48 3.92 11.65 3.99 11.65 4.28Z" fill="#EBEBEB"/>\n <path d="M13.62 16V14C14.73 14 15.62 13.11 15.62 12C15.62 10.89 14.73 10 13.62 10V8C15.83 8 17.62 9.79 17.62 12C17.62 14.21 15.83 16 13.62 16Z" fill="#EBEBEB"/>\n <path d="M21.62 12C21.62 7.58 18.04 4 13.62 4V6C16.93 6 19.62 8.69 19.62 12C19.62 15.31 16.93 18 13.62 18V20C18.04 19.99 21.61 16.41 21.62 12Z" fill="#EBEBEB"/>\n </symbol>\n <symbol id="vjs-icon-volume2" viewBox="0 0 24 24"> \n <path d="M11.65 4.28V19.72C11.65 20 11.48 20.08 11.27 19.89L5.86 15.09H2.9C2.62 15.09 2.38 14.86 2.38 14.57V9.43C2.38 9.15 2.61 8.91 2.9 8.91H5.86L11.27 4.11C11.48 3.92 11.65 3.99 11.65 4.28Z" fill="#EBEBEB"/>\n <path d="M13.62 16V14C14.73 14 15.62 13.11 15.62 12C15.62 10.89 14.73 10 13.62 10V8C15.83 8 17.62 9.79 17.62 12C17.62 14.21 15.83 16 13.62 16Z" fill="#EBEBEB"/>\n <path d="M21.62 12C21.62 7.58 18.04 4 13.62 4V6C16.93 6 19.62 8.69 19.62 12C19.62 15.31 16.93 18 13.62 18V20C18.04 19.99 21.61 16.41 21.62 12Z" fill="#EBEBEB"/>\n </symbol>\n <symbol id="vjs-icon-volume3" viewBox="0 0 24 24">\n <path d="M11.65 4.28V19.72C11.65 20 11.48 20.08 11.27 19.89L5.86 15.09H2.9C2.62 15.09 2.38 14.86 2.38 14.57V9.43C2.38 9.15 2.61 8.91 2.9 8.91H5.86L11.27 4.11C11.48 3.92 11.65 3.99 11.65 4.28Z" fill="#EBEBEB"/>\n <path d="M13.62 16V14C14.73 14 15.62 13.11 15.62 12C15.62 10.89 14.73 10 13.62 10V8C15.83 8 17.62 9.79 17.62 12C17.62 14.21 15.83 16 13.62 16Z" fill="#EBEBEB"/>\n <path d="M21.62 12C21.62 7.58 18.04 4 13.62 4V6C16.93 6 19.62 8.69 19.62 12C19.62 15.31 16.93 18 13.62 18V20C18.04 19.99 21.61 16.41 21.62 12Z" fill="#EBEBEB"/>\n </symbol>\n <symbol id="vjs-icon-mute" viewBox="0 0 24 24"> \n <g clip-path="url(#clip0_19_559)">\n <path d="M11.65 4.28V19.72C11.65 20 11.48 20.08 11.27 19.89L5.86 15.09H2.9C2.62 15.09 2.38 14.86 2.38 14.57V9.43C2.38 9.15 2.61 8.91 2.9 8.91H5.86L11.27 4.11C11.48 3.92 11.65 3.99 11.65 4.28Z" fill="#EBEBEB"/>\n <path d="M19.0909 12.5238L21.2626 14.6955L19.8146 16.1436L17.6429 13.9718L15.4711 16.1436L14.0231 14.6955L16.1948 12.5238L14.0231 10.352L15.4711 8.904L17.6429 11.0757L19.8146 8.904L21.2626 10.352L19.0909 12.5238Z" fill="white"/>\n </g>\n <defs>\n <clipPath id="clip0_19_559">\n <rect width="24" height="24" fill="white"/>\n </clipPath>\n </defs>\n </symbol>\n <symbol id="vjs-icon-big-mute" viewBox="0 0 24 24"> \n <g clip-path="url(#clip0_19_559)">\n <path d="M11.65 4.28V19.72C11.65 20 11.48 20.08 11.27 19.89L5.86 15.09H2.9C2.62 15.09 2.38 14.86 2.38 14.57V9.43C2.38 9.15 2.61 8.91 2.9 8.91H5.86L11.27 4.11C11.48 3.92 11.65 3.99 11.65 4.28Z" fill="inherit"/>\n <path d="M19.0909 12.5238L21.2626 14.6955L19.8146 16.1436L17.6429 13.9718L15.4711 16.1436L14.0231 14.6955L16.1948 12.5238L14.0231 10.352L15.4711 8.904L17.6429 11.0757L19.8146 8.904L21.2626 10.352L19.0909 12.5238Z" fill="inherit"/>\n </g>\n <defs>\n <clipPath id="clip0_19_559">\n <rect width="24" height="24" fill="inherit"/>\n </clipPath>\n </defs>\n </symbol>\n\n <symbol id="vjs-icon-pip" viewBox="0 0 24 16">\n <rect x="1" y="1" width="22" height="14" rx="1" stroke="white" stroke-width="2"/>\n <rect x="9.33331" y="6.66666" width="10.6667" height="5.33333" rx="1" fill="white"/>\n </symbol>\n\n <symbol id="vjs-icon-captions" viewBox="0 0 29 16">\n <rect x="1" y="1" width="27" height="14" rx="1" fill="white" stroke="white" stroke-width="2"/>\n <path d="M11.9795 5.25488C11.6377 5.25488 11.3317 5.31673 11.0615 5.44043C10.7946 5.56413 10.5684 5.74316 10.3828 5.97754C10.1973 6.20866 10.0557 6.49023 9.95801 6.82227C9.86035 7.15104 9.81152 7.52214 9.81152 7.93555C9.81152 8.48893 9.88965 8.96582 10.0459 9.36621C10.2021 9.76335 10.4398 10.0693 10.7588 10.2842C11.0778 10.4958 11.4814 10.6016 11.9697 10.6016C12.2725 10.6016 12.5671 10.5723 12.8535 10.5137C13.14 10.4551 13.4362 10.3753 13.7422 10.2744V11.2705C13.4525 11.3844 13.1595 11.4674 12.8633 11.5195C12.5671 11.5716 12.2253 11.5977 11.8379 11.5977C11.1087 11.5977 10.5033 11.4463 10.0215 11.1436C9.54297 10.8408 9.1849 10.4144 8.94727 9.86426C8.71289 9.31413 8.5957 8.6696 8.5957 7.93066C8.5957 7.3903 8.67057 6.89551 8.82031 6.44629C8.97005 5.99707 9.18815 5.6097 9.47461 5.28418C9.76107 4.9554 10.1143 4.70312 10.5342 4.52734C10.9574 4.34831 11.4408 4.25879 11.9844 4.25879C12.3424 4.25879 12.694 4.29948 13.0391 4.38086C13.3874 4.45898 13.7096 4.57129 14.0059 4.71777L13.5957 5.68457C13.3483 5.56738 13.0895 5.46647 12.8193 5.38184C12.5492 5.2972 12.2692 5.25488 11.9795 5.25488ZM17.9174 5.25488C17.5756 5.25488 17.2696 5.31673 16.9994 5.44043C16.7325 5.56413 16.5062 5.74316 16.3207 5.97754C16.1352 6.20866 15.9936 6.49023 15.8959 6.82227C15.7982 7.15104 15.7494 7.52214 15.7494 7.93555C15.7494 8.48893 15.8275 8.96582 15.9838 9.36621C16.14 9.76335 16.3777 10.0693 16.6967 10.2842C17.0157 10.4958 17.4193 10.6016 17.9076 10.6016C18.2104 10.6016 18.5049 10.5723 18.7914 10.5137C19.0779 10.4551 19.3741 10.3753 19.6801 10.2744V11.2705C19.3904 11.3844 19.0974 11.4674 18.8012 11.5195C18.5049 11.5716 18.1632 11.5977 17.7758 11.5977C17.0466 11.5977 16.4411 11.4463 15.9594 11.1436C15.4809 10.8408 15.1228 10.4144 14.8852 9.86426C14.6508 9.31413 14.5336 8.6696 14.5336 7.93066C14.5336 7.3903 14.6085 6.89551 14.7582 6.44629C14.9079 5.99707 15.126 5.6097 15.4125 5.28418C15.699 4.9554 16.0521 4.70312 16.4721 4.52734C16.8952 4.34831 17.3786 4.25879 17.9223 4.25879C18.2803 4.25879 18.6319 4.29948 18.977 4.38086C19.3253 4.45898 19.6475 4.57129 19.9437 4.71777L19.5336 5.68457C19.2862 5.56738 19.0274 5.46647 18.7572 5.38184C18.487 5.2972 18.2071 5.25488 17.9174 5.25488Z" fill="#050910"/>\n </symbol>\n\n <symbol id="vjs-icon-captions-off" viewBox="0 0 29 16">\n <rect x="1" y="1" width="27" height="14" rx="1" stroke="white" stroke-width="2"/>\n <path d="M11.9795 5.25488C11.6377 5.25488 11.3317 5.31673 11.0615 5.44043C10.7946 5.56413 10.5684 5.74316 10.3828 5.97754C10.1973 6.20866 10.0557 6.49023 9.95801 6.82227C9.86035 7.15104 9.81152 7.52214 9.81152 7.93555C9.81152 8.48893 9.88965 8.96582 10.0459 9.36621C10.2021 9.76335 10.4398 10.0693 10.7588 10.2842C11.0778 10.4958 11.4814 10.6016 11.9697 10.6016C12.2725 10.6016 12.5671 10.5723 12.8535 10.5137C13.14 10.4551 13.4362 10.3753 13.7422 10.2744V11.2705C13.4525 11.3844 13.1595 11.4674 12.8633 11.5195C12.5671 11.5716 12.2253 11.5977 11.8379 11.5977C11.1087 11.5977 10.5033 11.4463 10.0215 11.1436C9.54297 10.8408 9.1849 10.4144 8.94727 9.86426C8.71289 9.31413 8.5957 8.6696 8.5957 7.93066C8.5957 7.3903 8.67057 6.89551 8.82031 6.44629C8.97005 5.99707 9.18815 5.6097 9.47461 5.28418C9.76107 4.9554 10.1143 4.70312 10.5342 4.52734C10.9574 4.34831 11.4408 4.25879 11.9844 4.25879C12.3424 4.25879 12.694 4.29948 13.0391 4.38086C13.3874 4.45898 13.7096 4.57129 14.0059 4.71777L13.5957 5.68457C13.3483 5.56738 13.0895 5.46647 12.8193 5.38184C12.5492 5.2972 12.2692 5.25488 11.9795 5.25488ZM17.9174 5.25488C17.5756 5.25488 17.2696 5.31673 16.9994 5.44043C16.7325 5.56413 16.5062 5.74316 16.3207 5.97754C16.1352 6.20866 15.9936 6.49023 15.8959 6.82227C15.7982 7.15104 15.7494 7.52214 15.7494 7.93555C15.7494 8.48893 15.8275 8.96582 15.9838 9.36621C16.14 9.76335 16.3777 10.0693 16.6967 10.2842C17.0157 10.4958 17.4193 10.6016 17.9076 10.6016C18.2104 10.6016 18.5049 10.5723 18.7914 10.5137C19.0779 10.4551 19.3741 10.3753 19.6801 10.2744V11.2705C19.3904 11.3844 19.0974 11.4674 18.8012 11.5195C18.5049 11.5716 18.1632 11.5977 17.7758 11.5977C17.0466 11.5977 16.4411 11.4463 15.9594 11.1436C15.4809 10.8408 15.1228 10.4144 14.8852 9.86426C14.6508 9.31413 14.5336 8.6696 14.5336 7.93066C14.5336 7.3903 14.6085 6.89551 14.7582 6.44629C14.9079 5.99707 15.126 5.6097 15.4125 5.28418C15.699 4.9554 16.0521 4.70312 16.4721 4.52734C16.8952 4.34831 17.3786 4.25879 17.9223 4.25879C18.2803 4.25879 18.6319 4.29948 18.977 4.38086C19.3253 4.45898 19.6475 4.57129 19.9437 4.71777L19.5336 5.68457C19.2862 5.56738 19.0274 5.46647 18.7572 5.38184C18.487 5.2972 18.2071 5.25488 17.9174 5.25488Z" fill="white"/>\n </symbol>\n\n </defs>\n </svg>';i.el().insertBefore(a(c),i.el().firstChild??null);const h=i?.controlBar?.getChild("PlayToggle")?.el()?.firstChild||null;if(h){h.style.height="18px",h.style.width="18px";const e=d(h,i.paused()?"#vjs-icon-play":"#vjs-icon-pause");i.on("pause",()=>e.setAttributeNS(null,"href","#vjs-icon-play")),i.on("play",()=>e.setAttributeNS(null,"href","#vjs-icon-pause"))}const p=i?.controlBar?.getChild("FullscreenToggle")?.el()?.firstChild||null;if(p){p.style.height="24px",p.style.width="24px";const e=d(p,"#vjs-icon-fullscreen");i.on("fullscreenchange",()=>{const t=i.isFullscreen_;e?.setAttributeNS(null,"href",t?"#vjs-icon-fullscreen-back":"#vjs-icon-fullscreen")})}const u=i?.controlBar?.getChild("VolumePanel")?.el()||null;if(u){const e=u.querySelector(".vjs-mute-control .vjs-icon-placeholder");e.classList.add("vjs-svg-icon"),e.style.height="24px",e.style.width="24px";const t=d(e,i.muted()?"#vjs-icon-mute":"#vjs-icon-volume1");i.on("volumechange",e=>{const n=i.volume();console.log(n,i.muted()),0==n||i.muted()?t.setAttributeNS(null,"href","#vjs-icon-mute"):n>0&&n<=.3?t.setAttributeNS(null,"href","#vjs-icon-volume1"):n>=.3&&n<=.7?t.setAttributeNS(null,"href","#vjs-icon-volume2"):t.setAttributeNS(null,"href","#vjs-icon-volume3")})}const v=i?.controlBar?.getChild("PictureInPictureToggle")?.el()||null;if(v){const e=v?.querySelector(".vjs-icon-placeholder");e.style.height="25px",e.style.width="25px";const t=d(e,"#vjs-icon-pip");i.on("enterpictureinpicture",()=>{t.setAttributeNS(null,"href","#vjs-icon-pip")})}const f=i?.controlBar?.getChild("SubsCapsButton")?.el()||null;if(f){const e=f.querySelector(".vjs-subs-caps-button .vjs-icon-placeholder");e.classList.add("vjs-svg-icon"),e.style.height="29px",e.style.width="29px";const t=d(e,"#vjs-icon-caps");t.setAttributeNS(null,"href","#vjs-icon-captions-off"),i.textTracks().on("change",function(e){for(var n=i.textTracks(),l=!1,o=0;o<n.length;o++){var s=n[o];if(("captions"===s.kind||"subtitles"===s.kind)&&"showing"===s.mode){l=!0;break}}l?t.setAttributeNS(null,"href","#vjs-icon-captions"):t.setAttributeNS(null,"href","#vjs-icon-captions-off")})}i&&t?.liveVideo&&t?.liveui&&(i.liveTracker.on("liveedgechange",()=>{L(i)}),i.on("timeupdate",()=>{L(i)}));function m(e){const t=Math.floor(e/3600),i=Math.floor(e%3600/60),n=Math.floor(e%60),l=e=>String(e).padStart(2,"0");return 0===t?`${l(i)}:${l(n)}`:`${l(t)}:${l(i)}:${l(n)}`}function g(e){const t=e.seekable();if(t&&t.length>0){const i=t.end(0);return Math.max(0,i-e.currentTime())}return 0}function L(e){const t=e.liveTracker.atLiveEdge(),i=g(e),n=e?.controlBar?.remainingTimeDisplay?.el();if(!n)return;const l=n.querySelector(".vjs-remaining-time-display");t?n.style.display="none":(n.style.display="flex",l&&(l.innerText=m(i)))}}(y,b),function(e,a){const d=a?.liveVideo||!1,h=a?.res?.contentType||"video",p=a?.res?.[h]?.isSSAIEnabled||!1,u=a?.skin_settings||{};const y=a?.customData?.ads||{};t(e),u?.skipBtn&&0==a?.liveVideo&&0==a?.liveui&&i(e,"VL_ONE",SkipSvgV2());u?.rewindBtn&&(0==a?.liveVideo&&0==a?.liveui||1==a?.liveui)&&n(e,"VL_ONE",c());const b=v.get();b?.content?.length>0&&l(e,b);let j;j=v.subscribe(t=>{const i=C(e);!i?.controlBar?.getChild("videoSelector")&&t?.content?.length>0&&(l(e,t),j&&j())}),a?.streams?.length>1&&o(e,a?.streams);a?.playlist?.content?.length>0&&s(e,a?.playlist);a?.series?.enable&&r(e,a);if(p&&d&&"TRANSMIT"==y?.liveAdSticherProvider&&y?.liveAdClientSideTracking)f(e,a);else if("MEDIA_TAILOR"==y?.vodAdSticherProvider&&y?.vodAdClientSideTracking&&p)if(d)m(e);else{let t=null;if(a?.series?.enable){let e=g()?.video?.gist?.id,i=B(),{t:n,p:l}=i?.get(e)||{t:0,p:0};"function"==typeof window?.watchHistory?.cb&&window.watchHistory.cb({watchedTime:n}),l<95&&(t=n)}else{const{watchHistoryResumeTime:e,watchedPercentage:i}=a;i<95&&(t=e)}L(e,t)}}(y,b),u(y,b)}export{y as initialiseSkin};
1
+ import{f as e,r as t,d as i,e as n,j as l,k as o,l as s,m as r}from"./features-99081d09.js";import{e as c}from"./icons-b8ca9c4a.js";import{g as C,p as a,e as d}from"./skin-932f3764.js";import{g as h}from"./renditions-38f26c3d.js";import{a as p,b as u}from"./index-aba78d94.js";import{r as v}from"./relatedVideosManager-6e242502.js";import{a7 as f,a8 as m,e as g,a9 as L,m as B}from"./generic-f765c6f0.js";import"video.js";import"./localisation-1ebd418b.js";import"./autoNextVideo-d5b82444.js";import"./index-894852f9.js";import"axios";import"./browser-766b903b.js";import"md5";import"js-cookie";import"./captions-6426f98a.js";import"@viewlift/comscore/index.js";function y(y,b){C(y).addClass("skin_news_live"),function(t,i){let n=C(t);n&&n.on("loadeddata",()=>{h(t)?.length>0&&0!=i?.skin_settings?.settingsToggle&&e(t,i);const n=v.get()?.content?.length>0;if((i?.series?.enable||window?.app_data?.appcmsMain?.features?.auto_play||n)&&!i?.liveVideo)p(t,i);else if(!i?.liveVideo&&!i?.series?.enable){let e;e=v.subscribe(n=>{n?.content?.length>0&&(p(t,i),e&&e())})}})}(y,b),function(e,t){let i=C(e);i.controlBar?.removeChild("PlayToggle");const n=i?.controlBar?.el()?.children?.[2],l=document.createElement("div");l.className="vjs-play-toggle-container",l.append(i?.controlBar?.addChild("PlayToggle")?.el()),i?.controlBar?.el()?.insertBefore(l,n),i?.controlBar?.removeChild("VolumePanel"),i?.controlBar?.addChild("VolumePanel",{inline:!0},1);const o=i?.controlBar?.getChild("ProgressControl");i.controlBar?.removeChild("SeekToLive"),i.controlBar?.addChild("SeekToLive",{inline:!1},2);const s=i.controlBar?.getChild("SeekToLive")?.el();s&&(s.onclick=()=>{if(i.paused())try{i.play()}catch(e){console.log(e)}});const r=document.createElement("div");r.className="custom-spaced-progress-bar",o&&r.append(o.el());i.controlBar?.el()?.append(r);const c='<svg xmlns="http://www.w3.org/2000/svg" style="display : none">\n <defs>\n <symbol id="vjs-icon-pause" viewBox="0 0 17 16">\n <path d="M6.00138 15.4894C6.02138 15.7494 5.82138 15.9694 5.56138 15.9894C5.54138 15.9894 5.52138 15.9894 5.50138 15.9894H2.50138C2.24138 16.0094 2.02138 15.8094 2.00138 15.5494C2.00138 15.5294 2.00138 15.5094 2.00138 15.4894V0.499411C1.98138 0.239411 2.18138 0.0194107 2.44138 -0.000589337C2.46138 -0.000589337 2.48138 -0.000589337 2.50138 -0.000589337H5.50138C5.76138 -0.0205893 5.98138 0.179411 6.00138 0.439411C6.00138 0.459411 6.00138 0.479411 6.00138 0.499411V15.4894ZM14.0014 0.509411C14.0214 0.249411 13.8214 0.0294105 13.5614 0.00941051C13.5414 0.00941051 13.5214 0.00941051 13.5014 0.00941051H10.5014C10.2414 -0.0105895 10.0214 0.189411 10.0014 0.449411C10.0014 0.469411 10.0014 0.489411 10.0014 0.509411V15.4994C9.98138 15.7594 10.1814 15.9794 10.4414 15.9994C10.4614 15.9994 10.4814 15.9994 10.5014 15.9994H13.5014C13.7614 16.0194 13.9814 15.8194 14.0014 15.5594C14.0014 15.5394 14.0014 15.5194 14.0014 15.4994V0.509411Z" fill="#EBEBEB"/>\n </symbol>\n <symbol id="vjs-icon-play" viewBox="0 0 17 16">\n <path d="M0.38279 15.9526C0.28279 16.0326 0.142791 16.0126 0.0527906 15.9126C0.0127906 15.8626 -0.00720943 15.8026 0.00279057 15.7326V0.262601C-0.0172094 0.132601 0.0727907 0.0226013 0.192791 0.00260128C0.262791 -0.00739872 0.32279 0.0126014 0.38279 0.0426014L15.8528 7.8126C16.0628 7.9226 16.0628 8.0926 15.8528 8.1926L0.38279 15.9526Z" fill="white"/>\n </symbol>\n\n <symbol id="vjs-icon-fullscreen" viewBox="0 0 24 24">\n <path d="M19.8621 5.44209L19.0221 10.4521C18.9821 10.7221 18.7821 10.7821 18.5821 10.5921L17.1421 9.15209L14.3521 11.9421L12.9321 10.5221L15.7221 7.73209L14.2821 6.29209C14.0921 6.10209 14.1521 5.90209 14.4221 5.85209L19.4321 5.01209C19.6121 4.96209 19.7921 5.07209 19.8421 5.25209C19.8821 5.32209 19.8821 5.38209 19.8621 5.44209ZM9.15209 17.1621L11.9421 14.3721L10.5221 12.9521L7.73209 15.7421L6.29209 14.3021C6.10209 14.1121 5.90209 14.1721 5.85209 14.4421L5.01209 19.4521C4.96209 19.6321 5.07209 19.8121 5.25209 19.8621C5.30209 19.8821 5.37209 19.8821 5.42209 19.8621L10.4321 19.0221C10.7021 18.9821 10.7621 18.7821 10.5721 18.5821L9.15209 17.1621Z" fill="#EBEBEB"/>\n </symbol>\n <symbol id="vjs-icon-fullscreen-back" viewBox="0 0 24 24">\n <path d="M10.92 13.49L10.08 18.5C10.04 18.77 9.84001 18.83 9.64001 18.64L8.20001 17.2L5.41001 19.99L3.99001 18.57L6.78001 15.78L5.34001 14.34C5.15001 14.15 5.21001 13.95 5.48001 13.9L10.49 13.06C10.67 13.01 10.85 13.12 10.9 13.3C10.94 13.37 10.94 13.43 10.92 13.49ZM17.21 8.21L20 5.42L18.58 4L15.79 6.79L14.35 5.35C14.16 5.16 13.96 5.22 13.91 5.49L13.07 10.5C13.02 10.68 13.13 10.86 13.31 10.91C13.36 10.93 13.43 10.93 13.48 10.91L18.49 10.07C18.76 10.03 18.82 9.83 18.63 9.63L17.21 8.21Z" fill="#EBEBEB"/>\n </symbol>\n\n <symbol id="vjs-icon-volume1" viewBox="0 0 24 24"> \n <path d="M11.65 4.28V19.72C11.65 20 11.48 20.08 11.27 19.89L5.86 15.09H2.9C2.62 15.09 2.38 14.86 2.38 14.57V9.43C2.38 9.15 2.61 8.91 2.9 8.91H5.86L11.27 4.11C11.48 3.92 11.65 3.99 11.65 4.28Z" fill="#EBEBEB"/>\n <path d="M13.62 16V14C14.73 14 15.62 13.11 15.62 12C15.62 10.89 14.73 10 13.62 10V8C15.83 8 17.62 9.79 17.62 12C17.62 14.21 15.83 16 13.62 16Z" fill="#EBEBEB"/>\n <path d="M21.62 12C21.62 7.58 18.04 4 13.62 4V6C16.93 6 19.62 8.69 19.62 12C19.62 15.31 16.93 18 13.62 18V20C18.04 19.99 21.61 16.41 21.62 12Z" fill="#EBEBEB"/>\n </symbol>\n <symbol id="vjs-icon-volume2" viewBox="0 0 24 24"> \n <path d="M11.65 4.28V19.72C11.65 20 11.48 20.08 11.27 19.89L5.86 15.09H2.9C2.62 15.09 2.38 14.86 2.38 14.57V9.43C2.38 9.15 2.61 8.91 2.9 8.91H5.86L11.27 4.11C11.48 3.92 11.65 3.99 11.65 4.28Z" fill="#EBEBEB"/>\n <path d="M13.62 16V14C14.73 14 15.62 13.11 15.62 12C15.62 10.89 14.73 10 13.62 10V8C15.83 8 17.62 9.79 17.62 12C17.62 14.21 15.83 16 13.62 16Z" fill="#EBEBEB"/>\n <path d="M21.62 12C21.62 7.58 18.04 4 13.62 4V6C16.93 6 19.62 8.69 19.62 12C19.62 15.31 16.93 18 13.62 18V20C18.04 19.99 21.61 16.41 21.62 12Z" fill="#EBEBEB"/>\n </symbol>\n <symbol id="vjs-icon-volume3" viewBox="0 0 24 24">\n <path d="M11.65 4.28V19.72C11.65 20 11.48 20.08 11.27 19.89L5.86 15.09H2.9C2.62 15.09 2.38 14.86 2.38 14.57V9.43C2.38 9.15 2.61 8.91 2.9 8.91H5.86L11.27 4.11C11.48 3.92 11.65 3.99 11.65 4.28Z" fill="#EBEBEB"/>\n <path d="M13.62 16V14C14.73 14 15.62 13.11 15.62 12C15.62 10.89 14.73 10 13.62 10V8C15.83 8 17.62 9.79 17.62 12C17.62 14.21 15.83 16 13.62 16Z" fill="#EBEBEB"/>\n <path d="M21.62 12C21.62 7.58 18.04 4 13.62 4V6C16.93 6 19.62 8.69 19.62 12C19.62 15.31 16.93 18 13.62 18V20C18.04 19.99 21.61 16.41 21.62 12Z" fill="#EBEBEB"/>\n </symbol>\n <symbol id="vjs-icon-mute" viewBox="0 0 24 24"> \n <g clip-path="url(#clip0_19_559)">\n <path d="M11.65 4.28V19.72C11.65 20 11.48 20.08 11.27 19.89L5.86 15.09H2.9C2.62 15.09 2.38 14.86 2.38 14.57V9.43C2.38 9.15 2.61 8.91 2.9 8.91H5.86L11.27 4.11C11.48 3.92 11.65 3.99 11.65 4.28Z" fill="#EBEBEB"/>\n <path d="M19.0909 12.5238L21.2626 14.6955L19.8146 16.1436L17.6429 13.9718L15.4711 16.1436L14.0231 14.6955L16.1948 12.5238L14.0231 10.352L15.4711 8.904L17.6429 11.0757L19.8146 8.904L21.2626 10.352L19.0909 12.5238Z" fill="white"/>\n </g>\n <defs>\n <clipPath id="clip0_19_559">\n <rect width="24" height="24" fill="white"/>\n </clipPath>\n </defs>\n </symbol>\n <symbol id="vjs-icon-big-mute" viewBox="0 0 24 24"> \n <g clip-path="url(#clip0_19_559)">\n <path d="M11.65 4.28V19.72C11.65 20 11.48 20.08 11.27 19.89L5.86 15.09H2.9C2.62 15.09 2.38 14.86 2.38 14.57V9.43C2.38 9.15 2.61 8.91 2.9 8.91H5.86L11.27 4.11C11.48 3.92 11.65 3.99 11.65 4.28Z" fill="inherit"/>\n <path d="M19.0909 12.5238L21.2626 14.6955L19.8146 16.1436L17.6429 13.9718L15.4711 16.1436L14.0231 14.6955L16.1948 12.5238L14.0231 10.352L15.4711 8.904L17.6429 11.0757L19.8146 8.904L21.2626 10.352L19.0909 12.5238Z" fill="inherit"/>\n </g>\n <defs>\n <clipPath id="clip0_19_559">\n <rect width="24" height="24" fill="inherit"/>\n </clipPath>\n </defs>\n </symbol>\n\n <symbol id="vjs-icon-pip" viewBox="0 0 24 16">\n <rect x="1" y="1" width="22" height="14" rx="1" stroke="white" stroke-width="2"/>\n <rect x="9.33331" y="6.66666" width="10.6667" height="5.33333" rx="1" fill="white"/>\n </symbol>\n\n <symbol id="vjs-icon-captions" viewBox="0 0 29 16">\n <rect x="1" y="1" width="27" height="14" rx="1" fill="white" stroke="white" stroke-width="2"/>\n <path d="M11.9795 5.25488C11.6377 5.25488 11.3317 5.31673 11.0615 5.44043C10.7946 5.56413 10.5684 5.74316 10.3828 5.97754C10.1973 6.20866 10.0557 6.49023 9.95801 6.82227C9.86035 7.15104 9.81152 7.52214 9.81152 7.93555C9.81152 8.48893 9.88965 8.96582 10.0459 9.36621C10.2021 9.76335 10.4398 10.0693 10.7588 10.2842C11.0778 10.4958 11.4814 10.6016 11.9697 10.6016C12.2725 10.6016 12.5671 10.5723 12.8535 10.5137C13.14 10.4551 13.4362 10.3753 13.7422 10.2744V11.2705C13.4525 11.3844 13.1595 11.4674 12.8633 11.5195C12.5671 11.5716 12.2253 11.5977 11.8379 11.5977C11.1087 11.5977 10.5033 11.4463 10.0215 11.1436C9.54297 10.8408 9.1849 10.4144 8.94727 9.86426C8.71289 9.31413 8.5957 8.6696 8.5957 7.93066C8.5957 7.3903 8.67057 6.89551 8.82031 6.44629C8.97005 5.99707 9.18815 5.6097 9.47461 5.28418C9.76107 4.9554 10.1143 4.70312 10.5342 4.52734C10.9574 4.34831 11.4408 4.25879 11.9844 4.25879C12.3424 4.25879 12.694 4.29948 13.0391 4.38086C13.3874 4.45898 13.7096 4.57129 14.0059 4.71777L13.5957 5.68457C13.3483 5.56738 13.0895 5.46647 12.8193 5.38184C12.5492 5.2972 12.2692 5.25488 11.9795 5.25488ZM17.9174 5.25488C17.5756 5.25488 17.2696 5.31673 16.9994 5.44043C16.7325 5.56413 16.5062 5.74316 16.3207 5.97754C16.1352 6.20866 15.9936 6.49023 15.8959 6.82227C15.7982 7.15104 15.7494 7.52214 15.7494 7.93555C15.7494 8.48893 15.8275 8.96582 15.9838 9.36621C16.14 9.76335 16.3777 10.0693 16.6967 10.2842C17.0157 10.4958 17.4193 10.6016 17.9076 10.6016C18.2104 10.6016 18.5049 10.5723 18.7914 10.5137C19.0779 10.4551 19.3741 10.3753 19.6801 10.2744V11.2705C19.3904 11.3844 19.0974 11.4674 18.8012 11.5195C18.5049 11.5716 18.1632 11.5977 17.7758 11.5977C17.0466 11.5977 16.4411 11.4463 15.9594 11.1436C15.4809 10.8408 15.1228 10.4144 14.8852 9.86426C14.6508 9.31413 14.5336 8.6696 14.5336 7.93066C14.5336 7.3903 14.6085 6.89551 14.7582 6.44629C14.9079 5.99707 15.126 5.6097 15.4125 5.28418C15.699 4.9554 16.0521 4.70312 16.4721 4.52734C16.8952 4.34831 17.3786 4.25879 17.9223 4.25879C18.2803 4.25879 18.6319 4.29948 18.977 4.38086C19.3253 4.45898 19.6475 4.57129 19.9437 4.71777L19.5336 5.68457C19.2862 5.56738 19.0274 5.46647 18.7572 5.38184C18.487 5.2972 18.2071 5.25488 17.9174 5.25488Z" fill="#050910"/>\n </symbol>\n\n <symbol id="vjs-icon-captions-off" viewBox="0 0 29 16">\n <rect x="1" y="1" width="27" height="14" rx="1" stroke="white" stroke-width="2"/>\n <path d="M11.9795 5.25488C11.6377 5.25488 11.3317 5.31673 11.0615 5.44043C10.7946 5.56413 10.5684 5.74316 10.3828 5.97754C10.1973 6.20866 10.0557 6.49023 9.95801 6.82227C9.86035 7.15104 9.81152 7.52214 9.81152 7.93555C9.81152 8.48893 9.88965 8.96582 10.0459 9.36621C10.2021 9.76335 10.4398 10.0693 10.7588 10.2842C11.0778 10.4958 11.4814 10.6016 11.9697 10.6016C12.2725 10.6016 12.5671 10.5723 12.8535 10.5137C13.14 10.4551 13.4362 10.3753 13.7422 10.2744V11.2705C13.4525 11.3844 13.1595 11.4674 12.8633 11.5195C12.5671 11.5716 12.2253 11.5977 11.8379 11.5977C11.1087 11.5977 10.5033 11.4463 10.0215 11.1436C9.54297 10.8408 9.1849 10.4144 8.94727 9.86426C8.71289 9.31413 8.5957 8.6696 8.5957 7.93066C8.5957 7.3903 8.67057 6.89551 8.82031 6.44629C8.97005 5.99707 9.18815 5.6097 9.47461 5.28418C9.76107 4.9554 10.1143 4.70312 10.5342 4.52734C10.9574 4.34831 11.4408 4.25879 11.9844 4.25879C12.3424 4.25879 12.694 4.29948 13.0391 4.38086C13.3874 4.45898 13.7096 4.57129 14.0059 4.71777L13.5957 5.68457C13.3483 5.56738 13.0895 5.46647 12.8193 5.38184C12.5492 5.2972 12.2692 5.25488 11.9795 5.25488ZM17.9174 5.25488C17.5756 5.25488 17.2696 5.31673 16.9994 5.44043C16.7325 5.56413 16.5062 5.74316 16.3207 5.97754C16.1352 6.20866 15.9936 6.49023 15.8959 6.82227C15.7982 7.15104 15.7494 7.52214 15.7494 7.93555C15.7494 8.48893 15.8275 8.96582 15.9838 9.36621C16.14 9.76335 16.3777 10.0693 16.6967 10.2842C17.0157 10.4958 17.4193 10.6016 17.9076 10.6016C18.2104 10.6016 18.5049 10.5723 18.7914 10.5137C19.0779 10.4551 19.3741 10.3753 19.6801 10.2744V11.2705C19.3904 11.3844 19.0974 11.4674 18.8012 11.5195C18.5049 11.5716 18.1632 11.5977 17.7758 11.5977C17.0466 11.5977 16.4411 11.4463 15.9594 11.1436C15.4809 10.8408 15.1228 10.4144 14.8852 9.86426C14.6508 9.31413 14.5336 8.6696 14.5336 7.93066C14.5336 7.3903 14.6085 6.89551 14.7582 6.44629C14.9079 5.99707 15.126 5.6097 15.4125 5.28418C15.699 4.9554 16.0521 4.70312 16.4721 4.52734C16.8952 4.34831 17.3786 4.25879 17.9223 4.25879C18.2803 4.25879 18.6319 4.29948 18.977 4.38086C19.3253 4.45898 19.6475 4.57129 19.9437 4.71777L19.5336 5.68457C19.2862 5.56738 19.0274 5.46647 18.7572 5.38184C18.487 5.2972 18.2071 5.25488 17.9174 5.25488Z" fill="white"/>\n </symbol>\n\n </defs>\n </svg>';i.el().insertBefore(a(c),i.el().firstChild??null);const h=i?.controlBar?.getChild("PlayToggle")?.el()?.firstChild||null;if(h){h.style.height="18px",h.style.width="18px";const e=d(h,i.paused()?"#vjs-icon-play":"#vjs-icon-pause");i.on("pause",()=>e.setAttributeNS(null,"href","#vjs-icon-play")),i.on("play",()=>e.setAttributeNS(null,"href","#vjs-icon-pause"))}const p=i?.controlBar?.getChild("FullscreenToggle")?.el()?.firstChild||null;if(p){p.style.height="24px",p.style.width="24px";const e=d(p,"#vjs-icon-fullscreen");i.on("fullscreenchange",()=>{const t=i.isFullscreen_;e?.setAttributeNS(null,"href",t?"#vjs-icon-fullscreen-back":"#vjs-icon-fullscreen")})}const u=i?.controlBar?.getChild("VolumePanel")?.el()||null;if(u){const e=u.querySelector(".vjs-mute-control .vjs-icon-placeholder");e.classList.add("vjs-svg-icon"),e.style.height="24px",e.style.width="24px";const t=d(e,i.muted()?"#vjs-icon-mute":"#vjs-icon-volume1");i.on("volumechange",e=>{const n=i.volume();console.log(n,i.muted()),0==n||i.muted()?t.setAttributeNS(null,"href","#vjs-icon-mute"):n>0&&n<=.3?t.setAttributeNS(null,"href","#vjs-icon-volume1"):n>=.3&&n<=.7?t.setAttributeNS(null,"href","#vjs-icon-volume2"):t.setAttributeNS(null,"href","#vjs-icon-volume3")})}const v=i?.controlBar?.getChild("PictureInPictureToggle")?.el()||null;if(v){const e=v?.querySelector(".vjs-icon-placeholder");e.style.height="25px",e.style.width="25px";const t=d(e,"#vjs-icon-pip");i.on("enterpictureinpicture",()=>{t.setAttributeNS(null,"href","#vjs-icon-pip")})}const f=i?.controlBar?.getChild("SubsCapsButton")?.el()||null;if(f){const e=f.querySelector(".vjs-subs-caps-button .vjs-icon-placeholder");e.classList.add("vjs-svg-icon"),e.style.height="29px",e.style.width="29px";const t=d(e,"#vjs-icon-caps");t.setAttributeNS(null,"href","#vjs-icon-captions-off"),i.textTracks().on("change",function(e){for(var n=i.textTracks(),l=!1,o=0;o<n.length;o++){var s=n[o];if(("captions"===s.kind||"subtitles"===s.kind)&&"showing"===s.mode){l=!0;break}}l?t.setAttributeNS(null,"href","#vjs-icon-captions"):t.setAttributeNS(null,"href","#vjs-icon-captions-off")})}i&&t?.liveVideo&&t?.liveui&&(i.liveTracker.on("liveedgechange",()=>{L(i)}),i.on("timeupdate",()=>{L(i)}));function m(e){const t=Math.floor(e/3600),i=Math.floor(e%3600/60),n=Math.floor(e%60),l=e=>String(e).padStart(2,"0");return 0===t?`${l(i)}:${l(n)}`:`${l(t)}:${l(i)}:${l(n)}`}function g(e){const t=e.seekable();if(t&&t.length>0){const i=t.end(0);return Math.max(0,i-e.currentTime())}return 0}function L(e){const t=e.liveTracker.atLiveEdge(),i=g(e),n=e?.controlBar?.remainingTimeDisplay?.el();if(!n)return;const l=n.querySelector(".vjs-remaining-time-display");t?n.style.display="none":(n.style.display="flex",l&&(l.innerText=m(i)))}}(y,b),function(e,a){const d=a?.liveVideo||!1,h=a?.res?.contentType||"video",p=a?.res?.[h]?.isSSAIEnabled||!1,u=a?.skin_settings||{};const y=a?.customData?.ads||{};t(e),u?.skipBtn&&0==a?.liveVideo&&0==a?.liveui&&i(e,"VL_ONE",SkipSvgV2());u?.rewindBtn&&(0==a?.liveVideo&&0==a?.liveui||1==a?.liveui)&&n(e,"VL_ONE",c());const b=v.get();b?.content?.length>0&&l(e,b);let j;j=v.subscribe(t=>{const i=C(e);!i?.controlBar?.getChild("videoSelector")&&t?.content?.length>0&&(l(e,t),j&&j())}),a?.streams?.length>1&&o(e,a?.streams);a?.playlist?.content?.length>0&&s(e,a?.playlist);a?.series?.enable&&r(e,a);if(p&&d&&"TRANSMIT"==y?.liveAdSticherProvider&&y?.liveAdClientSideTracking)f(e,a);else if("MEDIA_TAILOR"==y?.vodAdSticherProvider&&y?.vodAdClientSideTracking&&p)if(d)m(e);else{let t=null;if(a?.series?.enable){let e=g()?.video?.gist?.id,i=B(),{t:n,p:l}=i?.get(e)||{t:0,p:0};"function"==typeof window?.watchHistory?.cb&&window.watchHistory.cb({watchedTime:n}),l<95&&(t=n)}else{const{watchHistoryResumeTime:e,watchedPercentage:i}=a;i<95&&(t=e)}L(e,t)}}(y,b),u(y,b)}export{y as initialiseSkin};
@@ -1 +1 @@
1
- import{g as o}from"./skin-932f3764.js";import{f as t,n as i}from"./features-ee38c5bb.js";import{g as s}from"./renditions-38f26c3d.js";import{r as e}from"./captions-6426f98a.js";import"video.js";import"./generic-d8ac6622.js";import"axios";import"./browser-766b903b.js";import"md5";import"js-cookie";import"@viewlift/comscore/index.js";import"./localisation-1ebd418b.js";function n(n,r){import("./skin-c4d10b91.js").then(o=>{let t=document.createElement("style");t.id="multiplayer_css",t.append(`${o.default}`),document.head.appendChild(t)}),function(i,n){o(i).on("loadeddata",()=>{s(i)?.length>0&&t(i,n),n?.disableCaptions&&e(i)})}(n,r),function(t){const s=o(t);s.controls(!1),i(t)}(n),function(t){const i=o(t);i.addChild("SubsCapsButton")}(n)}export{n as initialiseSkin};
1
+ import{g as o}from"./skin-932f3764.js";import{f as t,n as i}from"./features-99081d09.js";import{g as s}from"./renditions-38f26c3d.js";import{r as e}from"./captions-6426f98a.js";import"video.js";import"./generic-f765c6f0.js";import"axios";import"./browser-766b903b.js";import"md5";import"js-cookie";import"@viewlift/comscore/index.js";import"./localisation-1ebd418b.js";function n(n,r){import("./skin-c4d10b91.js").then(o=>{let t=document.createElement("style");t.id="multiplayer_css",t.append(`${o.default}`),document.head.appendChild(t)}),function(i,n){o(i).on("loadeddata",()=>{s(i)?.length>0&&t(i,n),n?.disableCaptions&&e(i)})}(n,r),function(t){const s=o(t);s.controls(!1),i(t)}(n),function(t){const i=o(t);i.addChild("SubsCapsButton")}(n)}export{n as initialiseSkin};
@@ -1 +1 @@
1
- import{f as e,d as t,e as i,j as n,k as l,l as s,m as o}from"./features-ee38c5bb.js";import{e as C}from"./icons-b8ca9c4a.js";import{g as r,p as c,e as a}from"./skin-932f3764.js";import{g as d}from"./renditions-38f26c3d.js";import{a as h,b as p}from"./index-080bf7b9.js";import{r as u}from"./relatedVideosManager-6e242502.js";import{e as m,a9 as f,m as v}from"./generic-d8ac6622.js";import"video.js";import"./localisation-1ebd418b.js";import"./autoNextVideo-91c70a62.js";import"./index-22ed302f.js";import"axios";import"./browser-766b903b.js";import"md5";import"js-cookie";import"./captions-6426f98a.js";import"@viewlift/comscore/index.js";function g(g,B){r(g).addClass("skin_mini"),function(t,i){let n=r(t);n&&n.on("loadeddata",()=>{d(t)?.length>0&&0!=i?.skin_settings?.settingsToggle&&e(t,i);const n=u.get()?.content?.length>0;if((i?.series?.enable||window?.app_data?.appcmsMain?.features?.auto_play||n)&&!i?.liveVideo)h(t,i);else if(!i?.liveVideo&&!i?.series?.enable){let e;e=u.subscribe(n=>{n?.content?.length>0&&(h(t,i),e&&e())})}})}(g,B),function(e,t){let i=r(e);i.controlBar?.removeChild("VolumePanel"),i.controlBar?.addChild("VolumePanel",{inline:!1},1);const n=i.controlBar?.getChild("ProgressControl"),l=document.createElement("div");l.className="custom-spaced-progress-bar",n&&l.append(n.el());i.controlBar?.el()?.append(l);const s='<svg xmlns="http://www.w3.org/2000/svg" style="display : none">\n <defs>\n <symbol id="vjs-icon-pause" viewBox="0 0 17 16">\n <path d="M6.00138 15.4894C6.02138 15.7494 5.82138 15.9694 5.56138 15.9894C5.54138 15.9894 5.52138 15.9894 5.50138 15.9894H2.50138C2.24138 16.0094 2.02138 15.8094 2.00138 15.5494C2.00138 15.5294 2.00138 15.5094 2.00138 15.4894V0.499411C1.98138 0.239411 2.18138 0.0194107 2.44138 -0.000589337C2.46138 -0.000589337 2.48138 -0.000589337 2.50138 -0.000589337H5.50138C5.76138 -0.0205893 5.98138 0.179411 6.00138 0.439411C6.00138 0.459411 6.00138 0.479411 6.00138 0.499411V15.4894ZM14.0014 0.509411C14.0214 0.249411 13.8214 0.0294105 13.5614 0.00941051C13.5414 0.00941051 13.5214 0.00941051 13.5014 0.00941051H10.5014C10.2414 -0.0105895 10.0214 0.189411 10.0014 0.449411C10.0014 0.469411 10.0014 0.489411 10.0014 0.509411V15.4994C9.98138 15.7594 10.1814 15.9794 10.4414 15.9994C10.4614 15.9994 10.4814 15.9994 10.5014 15.9994H13.5014C13.7614 16.0194 13.9814 15.8194 14.0014 15.5594C14.0014 15.5394 14.0014 15.5194 14.0014 15.4994V0.509411Z" fill="#EBEBEB"/>\n </symbol>\n <symbol id="vjs-icon-play" viewBox="0 0 17 16">\n <path d="M0.38279 15.9526C0.28279 16.0326 0.142791 16.0126 0.0527906 15.9126C0.0127906 15.8626 -0.00720943 15.8026 0.00279057 15.7326V0.262601C-0.0172094 0.132601 0.0727907 0.0226013 0.192791 0.00260128C0.262791 -0.00739872 0.32279 0.0126014 0.38279 0.0426014L15.8528 7.8126C16.0628 7.9226 16.0628 8.0926 15.8528 8.1926L0.38279 15.9526Z" fill="white"/>\n </symbol>\n\n <symbol id="vjs-icon-fullscreen" viewBox="0 0 24 24">\n <path d="M19.8621 5.44209L19.0221 10.4521C18.9821 10.7221 18.7821 10.7821 18.5821 10.5921L17.1421 9.15209L14.3521 11.9421L12.9321 10.5221L15.7221 7.73209L14.2821 6.29209C14.0921 6.10209 14.1521 5.90209 14.4221 5.85209L19.4321 5.01209C19.6121 4.96209 19.7921 5.07209 19.8421 5.25209C19.8821 5.32209 19.8821 5.38209 19.8621 5.44209ZM9.15209 17.1621L11.9421 14.3721L10.5221 12.9521L7.73209 15.7421L6.29209 14.3021C6.10209 14.1121 5.90209 14.1721 5.85209 14.4421L5.01209 19.4521C4.96209 19.6321 5.07209 19.8121 5.25209 19.8621C5.30209 19.8821 5.37209 19.8821 5.42209 19.8621L10.4321 19.0221C10.7021 18.9821 10.7621 18.7821 10.5721 18.5821L9.15209 17.1621Z" fill="#EBEBEB"/>\n </symbol>\n <symbol id="vjs-icon-fullscreen-back" viewBox="0 0 24 24">\n <path d="M10.92 13.49L10.08 18.5C10.04 18.77 9.84001 18.83 9.64001 18.64L8.20001 17.2L5.41001 19.99L3.99001 18.57L6.78001 15.78L5.34001 14.34C5.15001 14.15 5.21001 13.95 5.48001 13.9L10.49 13.06C10.67 13.01 10.85 13.12 10.9 13.3C10.94 13.37 10.94 13.43 10.92 13.49ZM17.21 8.21L20 5.42L18.58 4L15.79 6.79L14.35 5.35C14.16 5.16 13.96 5.22 13.91 5.49L13.07 10.5C13.02 10.68 13.13 10.86 13.31 10.91C13.36 10.93 13.43 10.93 13.48 10.91L18.49 10.07C18.76 10.03 18.82 9.83 18.63 9.63L17.21 8.21Z" fill="#EBEBEB"/>\n </symbol>\n\n <symbol id="vjs-icon-volume1" viewBox="0 0 24 24"> \n <path d="M11.65 4.28V19.72C11.65 20 11.48 20.08 11.27 19.89L5.86 15.09H2.9C2.62 15.09 2.38 14.86 2.38 14.57V9.43C2.38 9.15 2.61 8.91 2.9 8.91H5.86L11.27 4.11C11.48 3.92 11.65 3.99 11.65 4.28Z" fill="#EBEBEB"/>\n <path d="M13.62 16V14C14.73 14 15.62 13.11 15.62 12C15.62 10.89 14.73 10 13.62 10V8C15.83 8 17.62 9.79 17.62 12C17.62 14.21 15.83 16 13.62 16Z" fill="#EBEBEB"/>\n <path d="M21.62 12C21.62 7.58 18.04 4 13.62 4V6C16.93 6 19.62 8.69 19.62 12C19.62 15.31 16.93 18 13.62 18V20C18.04 19.99 21.61 16.41 21.62 12Z" fill="#EBEBEB"/>\n </symbol>\n <symbol id="vjs-icon-volume2" viewBox="0 0 24 24"> \n <path d="M11.65 4.28V19.72C11.65 20 11.48 20.08 11.27 19.89L5.86 15.09H2.9C2.62 15.09 2.38 14.86 2.38 14.57V9.43C2.38 9.15 2.61 8.91 2.9 8.91H5.86L11.27 4.11C11.48 3.92 11.65 3.99 11.65 4.28Z" fill="#EBEBEB"/>\n <path d="M13.62 16V14C14.73 14 15.62 13.11 15.62 12C15.62 10.89 14.73 10 13.62 10V8C15.83 8 17.62 9.79 17.62 12C17.62 14.21 15.83 16 13.62 16Z" fill="#EBEBEB"/>\n <path d="M21.62 12C21.62 7.58 18.04 4 13.62 4V6C16.93 6 19.62 8.69 19.62 12C19.62 15.31 16.93 18 13.62 18V20C18.04 19.99 21.61 16.41 21.62 12Z" fill="#EBEBEB"/>\n </symbol>\n <symbol id="vjs-icon-volume3" viewBox="0 0 24 24">\n <path d="M11.65 4.28V19.72C11.65 20 11.48 20.08 11.27 19.89L5.86 15.09H2.9C2.62 15.09 2.38 14.86 2.38 14.57V9.43C2.38 9.15 2.61 8.91 2.9 8.91H5.86L11.27 4.11C11.48 3.92 11.65 3.99 11.65 4.28Z" fill="#EBEBEB"/>\n <path d="M13.62 16V14C14.73 14 15.62 13.11 15.62 12C15.62 10.89 14.73 10 13.62 10V8C15.83 8 17.62 9.79 17.62 12C17.62 14.21 15.83 16 13.62 16Z" fill="#EBEBEB"/>\n <path d="M21.62 12C21.62 7.58 18.04 4 13.62 4V6C16.93 6 19.62 8.69 19.62 12C19.62 15.31 16.93 18 13.62 18V20C18.04 19.99 21.61 16.41 21.62 12Z" fill="#EBEBEB"/>\n </symbol>\n <symbol id="vjs-icon-mute" viewBox="0 0 24 24"> \n <g clip-path="url(#clip0_19_559)">\n <path d="M11.65 4.28V19.72C11.65 20 11.48 20.08 11.27 19.89L5.86 15.09H2.9C2.62 15.09 2.38 14.86 2.38 14.57V9.43C2.38 9.15 2.61 8.91 2.9 8.91H5.86L11.27 4.11C11.48 3.92 11.65 3.99 11.65 4.28Z" fill="#EBEBEB"/>\n <path d="M19.0909 12.5238L21.2626 14.6955L19.8146 16.1436L17.6429 13.9718L15.4711 16.1436L14.0231 14.6955L16.1948 12.5238L14.0231 10.352L15.4711 8.904L17.6429 11.0757L19.8146 8.904L21.2626 10.352L19.0909 12.5238Z" fill="white"/>\n </g>\n <defs>\n <clipPath id="clip0_19_559">\n <rect width="24" height="24" fill="white"/>\n </clipPath>\n </defs>\n </symbol>\n\n <symbol id="vjs-icon-pip" viewBox="0 0 24 16">\n <rect x="1" y="1" width="22" height="14" rx="1" stroke="white" stroke-width="2"/>\n <rect x="9.33331" y="6.66666" width="10.6667" height="5.33333" rx="1" fill="white"/>\n </symbol>\n\n <symbol id="vjs-icon-captions" viewBox="0 0 29 16">\n <rect x="1" y="1" width="27" height="14" rx="1" fill="white" stroke="white" stroke-width="2"/>\n <path d="M11.9795 5.25488C11.6377 5.25488 11.3317 5.31673 11.0615 5.44043C10.7946 5.56413 10.5684 5.74316 10.3828 5.97754C10.1973 6.20866 10.0557 6.49023 9.95801 6.82227C9.86035 7.15104 9.81152 7.52214 9.81152 7.93555C9.81152 8.48893 9.88965 8.96582 10.0459 9.36621C10.2021 9.76335 10.4398 10.0693 10.7588 10.2842C11.0778 10.4958 11.4814 10.6016 11.9697 10.6016C12.2725 10.6016 12.5671 10.5723 12.8535 10.5137C13.14 10.4551 13.4362 10.3753 13.7422 10.2744V11.2705C13.4525 11.3844 13.1595 11.4674 12.8633 11.5195C12.5671 11.5716 12.2253 11.5977 11.8379 11.5977C11.1087 11.5977 10.5033 11.4463 10.0215 11.1436C9.54297 10.8408 9.1849 10.4144 8.94727 9.86426C8.71289 9.31413 8.5957 8.6696 8.5957 7.93066C8.5957 7.3903 8.67057 6.89551 8.82031 6.44629C8.97005 5.99707 9.18815 5.6097 9.47461 5.28418C9.76107 4.9554 10.1143 4.70312 10.5342 4.52734C10.9574 4.34831 11.4408 4.25879 11.9844 4.25879C12.3424 4.25879 12.694 4.29948 13.0391 4.38086C13.3874 4.45898 13.7096 4.57129 14.0059 4.71777L13.5957 5.68457C13.3483 5.56738 13.0895 5.46647 12.8193 5.38184C12.5492 5.2972 12.2692 5.25488 11.9795 5.25488ZM17.9174 5.25488C17.5756 5.25488 17.2696 5.31673 16.9994 5.44043C16.7325 5.56413 16.5062 5.74316 16.3207 5.97754C16.1352 6.20866 15.9936 6.49023 15.8959 6.82227C15.7982 7.15104 15.7494 7.52214 15.7494 7.93555C15.7494 8.48893 15.8275 8.96582 15.9838 9.36621C16.14 9.76335 16.3777 10.0693 16.6967 10.2842C17.0157 10.4958 17.4193 10.6016 17.9076 10.6016C18.2104 10.6016 18.5049 10.5723 18.7914 10.5137C19.0779 10.4551 19.3741 10.3753 19.6801 10.2744V11.2705C19.3904 11.3844 19.0974 11.4674 18.8012 11.5195C18.5049 11.5716 18.1632 11.5977 17.7758 11.5977C17.0466 11.5977 16.4411 11.4463 15.9594 11.1436C15.4809 10.8408 15.1228 10.4144 14.8852 9.86426C14.6508 9.31413 14.5336 8.6696 14.5336 7.93066C14.5336 7.3903 14.6085 6.89551 14.7582 6.44629C14.9079 5.99707 15.126 5.6097 15.4125 5.28418C15.699 4.9554 16.0521 4.70312 16.4721 4.52734C16.8952 4.34831 17.3786 4.25879 17.9223 4.25879C18.2803 4.25879 18.6319 4.29948 18.977 4.38086C19.3253 4.45898 19.6475 4.57129 19.9437 4.71777L19.5336 5.68457C19.2862 5.56738 19.0274 5.46647 18.7572 5.38184C18.487 5.2972 18.2071 5.25488 17.9174 5.25488Z" fill="#050910"/>\n </symbol>\n\n <symbol id="vjs-icon-captions-off" viewBox="0 0 29 16">\n <rect x="1" y="1" width="27" height="14" rx="1" stroke="white" stroke-width="2"/>\n <path d="M11.9795 5.25488C11.6377 5.25488 11.3317 5.31673 11.0615 5.44043C10.7946 5.56413 10.5684 5.74316 10.3828 5.97754C10.1973 6.20866 10.0557 6.49023 9.95801 6.82227C9.86035 7.15104 9.81152 7.52214 9.81152 7.93555C9.81152 8.48893 9.88965 8.96582 10.0459 9.36621C10.2021 9.76335 10.4398 10.0693 10.7588 10.2842C11.0778 10.4958 11.4814 10.6016 11.9697 10.6016C12.2725 10.6016 12.5671 10.5723 12.8535 10.5137C13.14 10.4551 13.4362 10.3753 13.7422 10.2744V11.2705C13.4525 11.3844 13.1595 11.4674 12.8633 11.5195C12.5671 11.5716 12.2253 11.5977 11.8379 11.5977C11.1087 11.5977 10.5033 11.4463 10.0215 11.1436C9.54297 10.8408 9.1849 10.4144 8.94727 9.86426C8.71289 9.31413 8.5957 8.6696 8.5957 7.93066C8.5957 7.3903 8.67057 6.89551 8.82031 6.44629C8.97005 5.99707 9.18815 5.6097 9.47461 5.28418C9.76107 4.9554 10.1143 4.70312 10.5342 4.52734C10.9574 4.34831 11.4408 4.25879 11.9844 4.25879C12.3424 4.25879 12.694 4.29948 13.0391 4.38086C13.3874 4.45898 13.7096 4.57129 14.0059 4.71777L13.5957 5.68457C13.3483 5.56738 13.0895 5.46647 12.8193 5.38184C12.5492 5.2972 12.2692 5.25488 11.9795 5.25488ZM17.9174 5.25488C17.5756 5.25488 17.2696 5.31673 16.9994 5.44043C16.7325 5.56413 16.5062 5.74316 16.3207 5.97754C16.1352 6.20866 15.9936 6.49023 15.8959 6.82227C15.7982 7.15104 15.7494 7.52214 15.7494 7.93555C15.7494 8.48893 15.8275 8.96582 15.9838 9.36621C16.14 9.76335 16.3777 10.0693 16.6967 10.2842C17.0157 10.4958 17.4193 10.6016 17.9076 10.6016C18.2104 10.6016 18.5049 10.5723 18.7914 10.5137C19.0779 10.4551 19.3741 10.3753 19.6801 10.2744V11.2705C19.3904 11.3844 19.0974 11.4674 18.8012 11.5195C18.5049 11.5716 18.1632 11.5977 17.7758 11.5977C17.0466 11.5977 16.4411 11.4463 15.9594 11.1436C15.4809 10.8408 15.1228 10.4144 14.8852 9.86426C14.6508 9.31413 14.5336 8.6696 14.5336 7.93066C14.5336 7.3903 14.6085 6.89551 14.7582 6.44629C14.9079 5.99707 15.126 5.6097 15.4125 5.28418C15.699 4.9554 16.0521 4.70312 16.4721 4.52734C16.8952 4.34831 17.3786 4.25879 17.9223 4.25879C18.2803 4.25879 18.6319 4.29948 18.977 4.38086C19.3253 4.45898 19.6475 4.57129 19.9437 4.71777L19.5336 5.68457C19.2862 5.56738 19.0274 5.46647 18.7572 5.38184C18.487 5.2972 18.2071 5.25488 17.9174 5.25488Z" fill="white"/>\n </symbol>\n\n </defs>';i.el().insertBefore(c(s),i.el().firstChild??null);const o=i?.controlBar?.getChild("PlayToggle")?.el()?.firstChild||null;if(o){o.style.height="16px",o.style.width="16px";const e=a(o,i.paused()?"#vjs-icon-play":"#vjs-icon-pause");i.on("pause",()=>e.setAttributeNS(null,"href","#vjs-icon-play")),i.on("play",()=>e.setAttributeNS(null,"href","#vjs-icon-pause"))}const C=i?.controlBar?.getChild("FullscreenToggle")?.el()?.firstChild||null;if(C){C.style.height="24px",C.style.width="24px";const e=a(C,"#vjs-icon-fullscreen");i.on("fullscreenchange",()=>{const t=i.isFullscreen_;e?.setAttributeNS(null,"href",t?"#vjs-icon-fullscreen-back":"#vjs-icon-fullscreen")})}const d=i?.controlBar?.getChild("VolumePanel")?.el()||null;if(d){const e=d.querySelector(".vjs-mute-control .vjs-icon-placeholder");e.classList.add("vjs-svg-icon"),e.style.height="24px",e.style.width="24px";const t=a(e,i.muted()?"#vjs-icon-mute":"#vjs-icon-volume1");i.on("volumechange",e=>{const n=i.volume();0==n||i.muted()?t.setAttributeNS(null,"href","#vjs-icon-mute"):n>0&&n<=.3?t.setAttributeNS(null,"href","#vjs-icon-volume1"):n>=.3&&n<=.7?t.setAttributeNS(null,"href","#vjs-icon-volume2"):t.setAttributeNS(null,"href","#vjs-icon-volume3")})}const h=i?.controlBar?.getChild("PictureInPictureToggle")?.el()||null;if(h){const e=h?.querySelector(".vjs-icon-placeholder");e.style.height="25px",e.style.width="25px";const t=a(e,"#vjs-icon-pip");i.on("enterpictureinpicture",()=>{t.setAttributeNS(null,"href","#vjs-icon-pip")})}const p=i?.controlBar?.getChild("SubsCapsButton")?.el()||null;if(p){const e=p.querySelector(".vjs-subs-caps-button .vjs-icon-placeholder");e.classList.add("vjs-svg-icon"),e.style.height="29px",e.style.width="29px";const t=a(e,"#vjs-icon-caps");t.setAttributeNS(null,"href","#vjs-icon-captions-off"),i.textTracks().on("change",function(e){for(var n=i.textTracks(),l=!1,s=0;s<n.length;s++){var o=n[s];if(("captions"===o.kind||"subtitles"===o.kind)&&"showing"===o.mode){l=!0;break}}l?t.setAttributeNS(null,"href","#vjs-icon-captions"):t.setAttributeNS(null,"href","#vjs-icon-captions-off")})}i&&t?.liveVideo&&t?.liveui&&(i.liveTracker.on("liveedgechange",()=>{f(i)}),i.on("timeupdate",()=>{f(i)}));function u(e){const t=Math.floor(e/3600),i=Math.floor(e%3600/60),n=Math.floor(e%60),l=e=>String(e).padStart(2,"0");return 0===t?`${l(i)}:${l(n)}`:`${l(t)}:${l(i)}:${l(n)}`}function m(e){const t=e.seekable();if(t&&t.length>0){const i=t.end(0);return Math.max(0,i-e.currentTime())}return 0}function f(e){const t=e.liveTracker.atLiveEdge(),i=m(e),n=e?.controlBar?.remainingTimeDisplay?.el();if(!n)return;const l=n.querySelector(".vjs-remaining-time-display");t?n.style.display="none":(n.style.display="flex",l&&(l.innerText=u(i)))}}(g,B),function(e,c){const a=c?.res?.video?.isSSAIEnabled||!1,d=c?.skin_settings||{};const h=c?.customData?.ads||{};d?.skipBtn&&0==c?.liveVideo&&0==c?.liveui&&t(e,"VL_ONE",SkipSvgV2());d?.rewindBtn&&(0==c?.liveVideo&&0==c?.liveui||1==c?.liveui)&&i(e,"VL_ONE",C());const p=u.get();p?.content?.length>0&&n(e,p);let g;g=u.subscribe(t=>{const i=r(e);!i?.controlBar?.getChild("videoSelector")&&t?.content?.length>0&&(n(e,t),g&&g())}),c?.streams?.length>1&&l(e,c?.streams);c?.playlist?.content?.length>0&&s(e,c?.playlist);c?.series?.enable&&o(e,c);if("MEDIA_TAILOR"==h?.vodAdSticherProvider&&h?.vodAdClientSideTracking&&a){let t=null;if(c?.series?.enable){let e=m()?.video?.gist?.id,i=v(),{t:n,p:l}=i?.get(e)||{t:0,p:0};l<95&&(t=n)}else{const{watchHistoryResumeTime:e,watchedPercentage:i}=c;i<95&&(t=e)}f(e,t)}}(g,B),p(g,B)}export{g as initialiseSkin};
1
+ import{f as e,d as t,e as i,j as n,k as l,l as s,m as o}from"./features-99081d09.js";import{e as C}from"./icons-b8ca9c4a.js";import{g as r,p as c,e as a}from"./skin-932f3764.js";import{g as d}from"./renditions-38f26c3d.js";import{a as h,b as p}from"./index-aba78d94.js";import{r as u}from"./relatedVideosManager-6e242502.js";import{e as m,a9 as f,m as v}from"./generic-f765c6f0.js";import"video.js";import"./localisation-1ebd418b.js";import"./autoNextVideo-d5b82444.js";import"./index-894852f9.js";import"axios";import"./browser-766b903b.js";import"md5";import"js-cookie";import"./captions-6426f98a.js";import"@viewlift/comscore/index.js";function g(g,B){r(g).addClass("skin_mini"),function(t,i){let n=r(t);n&&n.on("loadeddata",()=>{d(t)?.length>0&&0!=i?.skin_settings?.settingsToggle&&e(t,i);const n=u.get()?.content?.length>0;if((i?.series?.enable||window?.app_data?.appcmsMain?.features?.auto_play||n)&&!i?.liveVideo)h(t,i);else if(!i?.liveVideo&&!i?.series?.enable){let e;e=u.subscribe(n=>{n?.content?.length>0&&(h(t,i),e&&e())})}})}(g,B),function(e,t){let i=r(e);i.controlBar?.removeChild("VolumePanel"),i.controlBar?.addChild("VolumePanel",{inline:!1},1);const n=i.controlBar?.getChild("ProgressControl"),l=document.createElement("div");l.className="custom-spaced-progress-bar",n&&l.append(n.el());i.controlBar?.el()?.append(l);const s='<svg xmlns="http://www.w3.org/2000/svg" style="display : none">\n <defs>\n <symbol id="vjs-icon-pause" viewBox="0 0 17 16">\n <path d="M6.00138 15.4894C6.02138 15.7494 5.82138 15.9694 5.56138 15.9894C5.54138 15.9894 5.52138 15.9894 5.50138 15.9894H2.50138C2.24138 16.0094 2.02138 15.8094 2.00138 15.5494C2.00138 15.5294 2.00138 15.5094 2.00138 15.4894V0.499411C1.98138 0.239411 2.18138 0.0194107 2.44138 -0.000589337C2.46138 -0.000589337 2.48138 -0.000589337 2.50138 -0.000589337H5.50138C5.76138 -0.0205893 5.98138 0.179411 6.00138 0.439411C6.00138 0.459411 6.00138 0.479411 6.00138 0.499411V15.4894ZM14.0014 0.509411C14.0214 0.249411 13.8214 0.0294105 13.5614 0.00941051C13.5414 0.00941051 13.5214 0.00941051 13.5014 0.00941051H10.5014C10.2414 -0.0105895 10.0214 0.189411 10.0014 0.449411C10.0014 0.469411 10.0014 0.489411 10.0014 0.509411V15.4994C9.98138 15.7594 10.1814 15.9794 10.4414 15.9994C10.4614 15.9994 10.4814 15.9994 10.5014 15.9994H13.5014C13.7614 16.0194 13.9814 15.8194 14.0014 15.5594C14.0014 15.5394 14.0014 15.5194 14.0014 15.4994V0.509411Z" fill="#EBEBEB"/>\n </symbol>\n <symbol id="vjs-icon-play" viewBox="0 0 17 16">\n <path d="M0.38279 15.9526C0.28279 16.0326 0.142791 16.0126 0.0527906 15.9126C0.0127906 15.8626 -0.00720943 15.8026 0.00279057 15.7326V0.262601C-0.0172094 0.132601 0.0727907 0.0226013 0.192791 0.00260128C0.262791 -0.00739872 0.32279 0.0126014 0.38279 0.0426014L15.8528 7.8126C16.0628 7.9226 16.0628 8.0926 15.8528 8.1926L0.38279 15.9526Z" fill="white"/>\n </symbol>\n\n <symbol id="vjs-icon-fullscreen" viewBox="0 0 24 24">\n <path d="M19.8621 5.44209L19.0221 10.4521C18.9821 10.7221 18.7821 10.7821 18.5821 10.5921L17.1421 9.15209L14.3521 11.9421L12.9321 10.5221L15.7221 7.73209L14.2821 6.29209C14.0921 6.10209 14.1521 5.90209 14.4221 5.85209L19.4321 5.01209C19.6121 4.96209 19.7921 5.07209 19.8421 5.25209C19.8821 5.32209 19.8821 5.38209 19.8621 5.44209ZM9.15209 17.1621L11.9421 14.3721L10.5221 12.9521L7.73209 15.7421L6.29209 14.3021C6.10209 14.1121 5.90209 14.1721 5.85209 14.4421L5.01209 19.4521C4.96209 19.6321 5.07209 19.8121 5.25209 19.8621C5.30209 19.8821 5.37209 19.8821 5.42209 19.8621L10.4321 19.0221C10.7021 18.9821 10.7621 18.7821 10.5721 18.5821L9.15209 17.1621Z" fill="#EBEBEB"/>\n </symbol>\n <symbol id="vjs-icon-fullscreen-back" viewBox="0 0 24 24">\n <path d="M10.92 13.49L10.08 18.5C10.04 18.77 9.84001 18.83 9.64001 18.64L8.20001 17.2L5.41001 19.99L3.99001 18.57L6.78001 15.78L5.34001 14.34C5.15001 14.15 5.21001 13.95 5.48001 13.9L10.49 13.06C10.67 13.01 10.85 13.12 10.9 13.3C10.94 13.37 10.94 13.43 10.92 13.49ZM17.21 8.21L20 5.42L18.58 4L15.79 6.79L14.35 5.35C14.16 5.16 13.96 5.22 13.91 5.49L13.07 10.5C13.02 10.68 13.13 10.86 13.31 10.91C13.36 10.93 13.43 10.93 13.48 10.91L18.49 10.07C18.76 10.03 18.82 9.83 18.63 9.63L17.21 8.21Z" fill="#EBEBEB"/>\n </symbol>\n\n <symbol id="vjs-icon-volume1" viewBox="0 0 24 24"> \n <path d="M11.65 4.28V19.72C11.65 20 11.48 20.08 11.27 19.89L5.86 15.09H2.9C2.62 15.09 2.38 14.86 2.38 14.57V9.43C2.38 9.15 2.61 8.91 2.9 8.91H5.86L11.27 4.11C11.48 3.92 11.65 3.99 11.65 4.28Z" fill="#EBEBEB"/>\n <path d="M13.62 16V14C14.73 14 15.62 13.11 15.62 12C15.62 10.89 14.73 10 13.62 10V8C15.83 8 17.62 9.79 17.62 12C17.62 14.21 15.83 16 13.62 16Z" fill="#EBEBEB"/>\n <path d="M21.62 12C21.62 7.58 18.04 4 13.62 4V6C16.93 6 19.62 8.69 19.62 12C19.62 15.31 16.93 18 13.62 18V20C18.04 19.99 21.61 16.41 21.62 12Z" fill="#EBEBEB"/>\n </symbol>\n <symbol id="vjs-icon-volume2" viewBox="0 0 24 24"> \n <path d="M11.65 4.28V19.72C11.65 20 11.48 20.08 11.27 19.89L5.86 15.09H2.9C2.62 15.09 2.38 14.86 2.38 14.57V9.43C2.38 9.15 2.61 8.91 2.9 8.91H5.86L11.27 4.11C11.48 3.92 11.65 3.99 11.65 4.28Z" fill="#EBEBEB"/>\n <path d="M13.62 16V14C14.73 14 15.62 13.11 15.62 12C15.62 10.89 14.73 10 13.62 10V8C15.83 8 17.62 9.79 17.62 12C17.62 14.21 15.83 16 13.62 16Z" fill="#EBEBEB"/>\n <path d="M21.62 12C21.62 7.58 18.04 4 13.62 4V6C16.93 6 19.62 8.69 19.62 12C19.62 15.31 16.93 18 13.62 18V20C18.04 19.99 21.61 16.41 21.62 12Z" fill="#EBEBEB"/>\n </symbol>\n <symbol id="vjs-icon-volume3" viewBox="0 0 24 24">\n <path d="M11.65 4.28V19.72C11.65 20 11.48 20.08 11.27 19.89L5.86 15.09H2.9C2.62 15.09 2.38 14.86 2.38 14.57V9.43C2.38 9.15 2.61 8.91 2.9 8.91H5.86L11.27 4.11C11.48 3.92 11.65 3.99 11.65 4.28Z" fill="#EBEBEB"/>\n <path d="M13.62 16V14C14.73 14 15.62 13.11 15.62 12C15.62 10.89 14.73 10 13.62 10V8C15.83 8 17.62 9.79 17.62 12C17.62 14.21 15.83 16 13.62 16Z" fill="#EBEBEB"/>\n <path d="M21.62 12C21.62 7.58 18.04 4 13.62 4V6C16.93 6 19.62 8.69 19.62 12C19.62 15.31 16.93 18 13.62 18V20C18.04 19.99 21.61 16.41 21.62 12Z" fill="#EBEBEB"/>\n </symbol>\n <symbol id="vjs-icon-mute" viewBox="0 0 24 24"> \n <g clip-path="url(#clip0_19_559)">\n <path d="M11.65 4.28V19.72C11.65 20 11.48 20.08 11.27 19.89L5.86 15.09H2.9C2.62 15.09 2.38 14.86 2.38 14.57V9.43C2.38 9.15 2.61 8.91 2.9 8.91H5.86L11.27 4.11C11.48 3.92 11.65 3.99 11.65 4.28Z" fill="#EBEBEB"/>\n <path d="M19.0909 12.5238L21.2626 14.6955L19.8146 16.1436L17.6429 13.9718L15.4711 16.1436L14.0231 14.6955L16.1948 12.5238L14.0231 10.352L15.4711 8.904L17.6429 11.0757L19.8146 8.904L21.2626 10.352L19.0909 12.5238Z" fill="white"/>\n </g>\n <defs>\n <clipPath id="clip0_19_559">\n <rect width="24" height="24" fill="white"/>\n </clipPath>\n </defs>\n </symbol>\n\n <symbol id="vjs-icon-pip" viewBox="0 0 24 16">\n <rect x="1" y="1" width="22" height="14" rx="1" stroke="white" stroke-width="2"/>\n <rect x="9.33331" y="6.66666" width="10.6667" height="5.33333" rx="1" fill="white"/>\n </symbol>\n\n <symbol id="vjs-icon-captions" viewBox="0 0 29 16">\n <rect x="1" y="1" width="27" height="14" rx="1" fill="white" stroke="white" stroke-width="2"/>\n <path d="M11.9795 5.25488C11.6377 5.25488 11.3317 5.31673 11.0615 5.44043C10.7946 5.56413 10.5684 5.74316 10.3828 5.97754C10.1973 6.20866 10.0557 6.49023 9.95801 6.82227C9.86035 7.15104 9.81152 7.52214 9.81152 7.93555C9.81152 8.48893 9.88965 8.96582 10.0459 9.36621C10.2021 9.76335 10.4398 10.0693 10.7588 10.2842C11.0778 10.4958 11.4814 10.6016 11.9697 10.6016C12.2725 10.6016 12.5671 10.5723 12.8535 10.5137C13.14 10.4551 13.4362 10.3753 13.7422 10.2744V11.2705C13.4525 11.3844 13.1595 11.4674 12.8633 11.5195C12.5671 11.5716 12.2253 11.5977 11.8379 11.5977C11.1087 11.5977 10.5033 11.4463 10.0215 11.1436C9.54297 10.8408 9.1849 10.4144 8.94727 9.86426C8.71289 9.31413 8.5957 8.6696 8.5957 7.93066C8.5957 7.3903 8.67057 6.89551 8.82031 6.44629C8.97005 5.99707 9.18815 5.6097 9.47461 5.28418C9.76107 4.9554 10.1143 4.70312 10.5342 4.52734C10.9574 4.34831 11.4408 4.25879 11.9844 4.25879C12.3424 4.25879 12.694 4.29948 13.0391 4.38086C13.3874 4.45898 13.7096 4.57129 14.0059 4.71777L13.5957 5.68457C13.3483 5.56738 13.0895 5.46647 12.8193 5.38184C12.5492 5.2972 12.2692 5.25488 11.9795 5.25488ZM17.9174 5.25488C17.5756 5.25488 17.2696 5.31673 16.9994 5.44043C16.7325 5.56413 16.5062 5.74316 16.3207 5.97754C16.1352 6.20866 15.9936 6.49023 15.8959 6.82227C15.7982 7.15104 15.7494 7.52214 15.7494 7.93555C15.7494 8.48893 15.8275 8.96582 15.9838 9.36621C16.14 9.76335 16.3777 10.0693 16.6967 10.2842C17.0157 10.4958 17.4193 10.6016 17.9076 10.6016C18.2104 10.6016 18.5049 10.5723 18.7914 10.5137C19.0779 10.4551 19.3741 10.3753 19.6801 10.2744V11.2705C19.3904 11.3844 19.0974 11.4674 18.8012 11.5195C18.5049 11.5716 18.1632 11.5977 17.7758 11.5977C17.0466 11.5977 16.4411 11.4463 15.9594 11.1436C15.4809 10.8408 15.1228 10.4144 14.8852 9.86426C14.6508 9.31413 14.5336 8.6696 14.5336 7.93066C14.5336 7.3903 14.6085 6.89551 14.7582 6.44629C14.9079 5.99707 15.126 5.6097 15.4125 5.28418C15.699 4.9554 16.0521 4.70312 16.4721 4.52734C16.8952 4.34831 17.3786 4.25879 17.9223 4.25879C18.2803 4.25879 18.6319 4.29948 18.977 4.38086C19.3253 4.45898 19.6475 4.57129 19.9437 4.71777L19.5336 5.68457C19.2862 5.56738 19.0274 5.46647 18.7572 5.38184C18.487 5.2972 18.2071 5.25488 17.9174 5.25488Z" fill="#050910"/>\n </symbol>\n\n <symbol id="vjs-icon-captions-off" viewBox="0 0 29 16">\n <rect x="1" y="1" width="27" height="14" rx="1" stroke="white" stroke-width="2"/>\n <path d="M11.9795 5.25488C11.6377 5.25488 11.3317 5.31673 11.0615 5.44043C10.7946 5.56413 10.5684 5.74316 10.3828 5.97754C10.1973 6.20866 10.0557 6.49023 9.95801 6.82227C9.86035 7.15104 9.81152 7.52214 9.81152 7.93555C9.81152 8.48893 9.88965 8.96582 10.0459 9.36621C10.2021 9.76335 10.4398 10.0693 10.7588 10.2842C11.0778 10.4958 11.4814 10.6016 11.9697 10.6016C12.2725 10.6016 12.5671 10.5723 12.8535 10.5137C13.14 10.4551 13.4362 10.3753 13.7422 10.2744V11.2705C13.4525 11.3844 13.1595 11.4674 12.8633 11.5195C12.5671 11.5716 12.2253 11.5977 11.8379 11.5977C11.1087 11.5977 10.5033 11.4463 10.0215 11.1436C9.54297 10.8408 9.1849 10.4144 8.94727 9.86426C8.71289 9.31413 8.5957 8.6696 8.5957 7.93066C8.5957 7.3903 8.67057 6.89551 8.82031 6.44629C8.97005 5.99707 9.18815 5.6097 9.47461 5.28418C9.76107 4.9554 10.1143 4.70312 10.5342 4.52734C10.9574 4.34831 11.4408 4.25879 11.9844 4.25879C12.3424 4.25879 12.694 4.29948 13.0391 4.38086C13.3874 4.45898 13.7096 4.57129 14.0059 4.71777L13.5957 5.68457C13.3483 5.56738 13.0895 5.46647 12.8193 5.38184C12.5492 5.2972 12.2692 5.25488 11.9795 5.25488ZM17.9174 5.25488C17.5756 5.25488 17.2696 5.31673 16.9994 5.44043C16.7325 5.56413 16.5062 5.74316 16.3207 5.97754C16.1352 6.20866 15.9936 6.49023 15.8959 6.82227C15.7982 7.15104 15.7494 7.52214 15.7494 7.93555C15.7494 8.48893 15.8275 8.96582 15.9838 9.36621C16.14 9.76335 16.3777 10.0693 16.6967 10.2842C17.0157 10.4958 17.4193 10.6016 17.9076 10.6016C18.2104 10.6016 18.5049 10.5723 18.7914 10.5137C19.0779 10.4551 19.3741 10.3753 19.6801 10.2744V11.2705C19.3904 11.3844 19.0974 11.4674 18.8012 11.5195C18.5049 11.5716 18.1632 11.5977 17.7758 11.5977C17.0466 11.5977 16.4411 11.4463 15.9594 11.1436C15.4809 10.8408 15.1228 10.4144 14.8852 9.86426C14.6508 9.31413 14.5336 8.6696 14.5336 7.93066C14.5336 7.3903 14.6085 6.89551 14.7582 6.44629C14.9079 5.99707 15.126 5.6097 15.4125 5.28418C15.699 4.9554 16.0521 4.70312 16.4721 4.52734C16.8952 4.34831 17.3786 4.25879 17.9223 4.25879C18.2803 4.25879 18.6319 4.29948 18.977 4.38086C19.3253 4.45898 19.6475 4.57129 19.9437 4.71777L19.5336 5.68457C19.2862 5.56738 19.0274 5.46647 18.7572 5.38184C18.487 5.2972 18.2071 5.25488 17.9174 5.25488Z" fill="white"/>\n </symbol>\n\n </defs>';i.el().insertBefore(c(s),i.el().firstChild??null);const o=i?.controlBar?.getChild("PlayToggle")?.el()?.firstChild||null;if(o){o.style.height="16px",o.style.width="16px";const e=a(o,i.paused()?"#vjs-icon-play":"#vjs-icon-pause");i.on("pause",()=>e.setAttributeNS(null,"href","#vjs-icon-play")),i.on("play",()=>e.setAttributeNS(null,"href","#vjs-icon-pause"))}const C=i?.controlBar?.getChild("FullscreenToggle")?.el()?.firstChild||null;if(C){C.style.height="24px",C.style.width="24px";const e=a(C,"#vjs-icon-fullscreen");i.on("fullscreenchange",()=>{const t=i.isFullscreen_;e?.setAttributeNS(null,"href",t?"#vjs-icon-fullscreen-back":"#vjs-icon-fullscreen")})}const d=i?.controlBar?.getChild("VolumePanel")?.el()||null;if(d){const e=d.querySelector(".vjs-mute-control .vjs-icon-placeholder");e.classList.add("vjs-svg-icon"),e.style.height="24px",e.style.width="24px";const t=a(e,i.muted()?"#vjs-icon-mute":"#vjs-icon-volume1");i.on("volumechange",e=>{const n=i.volume();0==n||i.muted()?t.setAttributeNS(null,"href","#vjs-icon-mute"):n>0&&n<=.3?t.setAttributeNS(null,"href","#vjs-icon-volume1"):n>=.3&&n<=.7?t.setAttributeNS(null,"href","#vjs-icon-volume2"):t.setAttributeNS(null,"href","#vjs-icon-volume3")})}const h=i?.controlBar?.getChild("PictureInPictureToggle")?.el()||null;if(h){const e=h?.querySelector(".vjs-icon-placeholder");e.style.height="25px",e.style.width="25px";const t=a(e,"#vjs-icon-pip");i.on("enterpictureinpicture",()=>{t.setAttributeNS(null,"href","#vjs-icon-pip")})}const p=i?.controlBar?.getChild("SubsCapsButton")?.el()||null;if(p){const e=p.querySelector(".vjs-subs-caps-button .vjs-icon-placeholder");e.classList.add("vjs-svg-icon"),e.style.height="29px",e.style.width="29px";const t=a(e,"#vjs-icon-caps");t.setAttributeNS(null,"href","#vjs-icon-captions-off"),i.textTracks().on("change",function(e){for(var n=i.textTracks(),l=!1,s=0;s<n.length;s++){var o=n[s];if(("captions"===o.kind||"subtitles"===o.kind)&&"showing"===o.mode){l=!0;break}}l?t.setAttributeNS(null,"href","#vjs-icon-captions"):t.setAttributeNS(null,"href","#vjs-icon-captions-off")})}i&&t?.liveVideo&&t?.liveui&&(i.liveTracker.on("liveedgechange",()=>{f(i)}),i.on("timeupdate",()=>{f(i)}));function u(e){const t=Math.floor(e/3600),i=Math.floor(e%3600/60),n=Math.floor(e%60),l=e=>String(e).padStart(2,"0");return 0===t?`${l(i)}:${l(n)}`:`${l(t)}:${l(i)}:${l(n)}`}function m(e){const t=e.seekable();if(t&&t.length>0){const i=t.end(0);return Math.max(0,i-e.currentTime())}return 0}function f(e){const t=e.liveTracker.atLiveEdge(),i=m(e),n=e?.controlBar?.remainingTimeDisplay?.el();if(!n)return;const l=n.querySelector(".vjs-remaining-time-display");t?n.style.display="none":(n.style.display="flex",l&&(l.innerText=u(i)))}}(g,B),function(e,c){const a=c?.res?.video?.isSSAIEnabled||!1,d=c?.skin_settings||{};const h=c?.customData?.ads||{};d?.skipBtn&&0==c?.liveVideo&&0==c?.liveui&&t(e,"VL_ONE",SkipSvgV2());d?.rewindBtn&&(0==c?.liveVideo&&0==c?.liveui||1==c?.liveui)&&i(e,"VL_ONE",C());const p=u.get();p?.content?.length>0&&n(e,p);let g;g=u.subscribe(t=>{const i=r(e);!i?.controlBar?.getChild("videoSelector")&&t?.content?.length>0&&(n(e,t),g&&g())}),c?.streams?.length>1&&l(e,c?.streams);c?.playlist?.content?.length>0&&s(e,c?.playlist);c?.series?.enable&&o(e,c);if("MEDIA_TAILOR"==h?.vodAdSticherProvider&&h?.vodAdClientSideTracking&&a){let t=null;if(c?.series?.enable){let e=m()?.video?.gist?.id,i=v(),{t:n,p:l}=i?.get(e)||{t:0,p:0};l<95&&(t=n)}else{const{watchHistoryResumeTime:e,watchedPercentage:i}=c;i<95&&(t=e)}f(e,t)}}(g,B),p(g,B)}export{g as initialiseSkin};