@viewlift/player-backup 2.0.39-backup → 2.0.40-smarttv
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.
- package/cjs/autoNextVideo-f1accb29.js +1 -0
- package/cjs/browser-2df57579.js +1 -0
- package/cjs/bundle.css +71 -89
- package/cjs/caption-settings-da2f1e29.js +1 -0
- package/cjs/captions-1a203000.js +1 -0
- package/cjs/features-635e2e87.js +1 -0
- package/cjs/generic-19e39f29.js +1 -0
- package/cjs/icons-9e9e6364.js +1 -0
- package/cjs/index-55edb2ef.js +1 -0
- package/cjs/index-9210aba0.js +1 -0
- package/cjs/index.js +1 -1
- package/cjs/keyboardShortcuts-36a025cd.js +1 -0
- package/cjs/multicamv2-06b92a99.js +1 -0
- package/cjs/multicamv2-3bc2ddd0.js +1 -0
- package/cjs/nextEpisodeButton-101cb231.js +1 -0
- package/cjs/playlist-fd7b01c9.js +1 -0
- package/cjs/renditions-44a16b5d.js +1 -0
- package/cjs/resolution-185c674c.js +1 -0
- package/cjs/series-c3c8ad85.js +1 -0
- package/cjs/series-v2-3ea41545.js +1 -0
- package/cjs/series-v2-4d50eda1.js +1 -0
- package/cjs/settings-icon-459a23cb.js +1 -0
- package/cjs/skin-26d6279b.js +1 -0
- package/cjs/skin-3bc3d9ac.js +1 -0
- package/cjs/skin-64423c1c.js +1 -0
- package/cjs/skin-94664ea9.js +1 -0
- package/cjs/skin-bfb9c959.js +1 -0
- package/cjs/skin-cedec766.js +1 -0
- package/cjs/skin-eae9862c.js +1 -0
- package/cjs/util-d989f91c.js +1 -0
- package/cjs/videoSelector-5c9ba61f.js +1 -0
- package/cjs/videoSelector-84cc9c69.js +1 -0
- package/cjs/videojs_contrib_dash-b5187686.js +1 -0
- package/esm/autoNextVideo-6f30518f.js +1 -0
- package/esm/browser-000da9e7.js +1 -0
- package/esm/bundle.css +71 -89
- package/esm/caption-settings-107d63b3.js +1 -0
- package/esm/captions-0433e46b.js +1 -0
- package/esm/features-ad2f7efd.js +1 -0
- package/esm/generic-0ffb9040.js +1 -0
- package/esm/icons-68d3a609.js +1 -0
- package/esm/index-42df0bbb.js +1 -0
- package/esm/index-9abdfceb.js +1 -0
- package/esm/index.js +1 -1
- package/esm/keyboardShortcuts-e7e8e090.js +1 -0
- package/esm/multicamv2-2785916a.js +1 -0
- package/esm/multicamv2-ceee35e3.js +1 -0
- package/esm/nextEpisodeButton-46490140.js +1 -0
- package/esm/playlist-e1c99c1f.js +1 -0
- package/esm/renditions-3d54d574.js +1 -0
- package/esm/resolution-6614556f.js +1 -0
- package/esm/series-75598f3a.js +1 -0
- package/esm/series-v2-74aeb25e.js +1 -0
- package/esm/series-v2-77035868.js +1 -0
- package/esm/settings-icon-027bdc89.js +1 -0
- package/esm/skin-0abd39b1.js +1 -0
- package/esm/skin-531a4095.js +1 -0
- package/esm/skin-8574f521.js +1 -0
- package/esm/skin-966f17f4.js +1 -0
- package/esm/skin-aac0fc69.js +1 -0
- package/esm/skin-ad19eaff.js +1 -0
- package/esm/skin-dd6e1332.js +1 -0
- package/esm/util-332cd53f.js +1 -0
- package/esm/videoSelector-8bff314c.js +1 -0
- package/esm/videoSelector-b8e5addf.js +1 -0
- package/esm/videojs_contrib_dash-116adedc.js +1 -0
- package/package.json +5 -3
- package/cjs/autoNextVideo-f43d3c6b.js +0 -1
- package/cjs/browser-77c57718.js +0 -1
- package/cjs/caption-settings-be714e97.js +0 -1
- package/cjs/captions-07bd3069.js +0 -1
- package/cjs/features-97b9ddd3.js +0 -1
- package/cjs/generic-d5a358b3.js +0 -1
- package/cjs/icons-1a3febef.js +0 -1
- package/cjs/index-84cce26a.js +0 -1
- package/cjs/index-bab9264c.js +0 -1
- package/cjs/index-ff62e3f1.js +0 -1
- package/cjs/multicamv2-27a1f79a.js +0 -1
- package/cjs/multicamv2-e061b01b.js +0 -1
- package/cjs/nextEpisodeButton-9149040d.js +0 -1
- package/cjs/playlist-f9f44391.js +0 -1
- package/cjs/renditions-fed22c12.js +0 -1
- package/cjs/resolution-e46c9615.js +0 -1
- package/cjs/series-0ddcd078.js +0 -1
- package/cjs/series-v2-9caf000c.js +0 -1
- package/cjs/series-v2-e23e32e1.js +0 -1
- package/cjs/settings-icon-70f8857a.js +0 -1
- package/cjs/skin-0a56d50e.js +0 -1
- package/cjs/skin-1d925909.js +0 -1
- package/cjs/skin-2edd7170.js +0 -1
- package/cjs/skin-3544db58.js +0 -1
- package/cjs/skin-8bfd28a5.js +0 -1
- package/cjs/skin-9337f348.js +0 -1
- package/cjs/skin-d465fffd.js +0 -1
- package/cjs/util-ef2cd61e.js +0 -1
- package/cjs/videoSelector-2f34f31e.js +0 -1
- package/cjs/videoSelector-62fd5fa1.js +0 -1
- package/cjs/videojs_contrib_dash-5ac53a44.js +0 -1
- package/esm/autoNextVideo-a02e0bce.js +0 -1
- package/esm/browser-d4613b36.js +0 -1
- package/esm/caption-settings-4ab479b0.js +0 -1
- package/esm/captions-b7fd8308.js +0 -1
- package/esm/features-ce8f391c.js +0 -1
- package/esm/generic-c74188d9.js +0 -1
- package/esm/icons-8e47e640.js +0 -1
- package/esm/index-5d92eaa3.js +0 -1
- package/esm/index-c9b8e971.js +0 -1
- package/esm/index-e9390d8f.js +0 -1
- package/esm/multicamv2-8b4670ee.js +0 -1
- package/esm/multicamv2-d46580c3.js +0 -1
- package/esm/nextEpisodeButton-1016717d.js +0 -1
- package/esm/playlist-5874bf55.js +0 -1
- package/esm/renditions-4c09c626.js +0 -1
- package/esm/resolution-920515d1.js +0 -1
- package/esm/series-c42e7202.js +0 -1
- package/esm/series-v2-0329b92a.js +0 -1
- package/esm/series-v2-1d2ad120.js +0 -1
- package/esm/settings-icon-366126fa.js +0 -1
- package/esm/skin-58b9263c.js +0 -1
- package/esm/skin-7cb0aacc.js +0 -1
- package/esm/skin-7fcbc562.js +0 -1
- package/esm/skin-82110b92.js +0 -1
- package/esm/skin-c7e4615b.js +0 -1
- package/esm/skin-f66d3f4d.js +0 -1
- package/esm/skin-f790ba88.js +0 -1
- package/esm/util-80257541.js +0 -1
- package/esm/videoSelector-2feea699.js +0 -1
- package/esm/videoSelector-fe5e1c99.js +0 -1
- package/esm/videojs_contrib_dash-a82e8b26.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import e from"@babel/runtime-corejs3/core-js-stable/reflect/construct";import r from"@babel/runtime-corejs3/helpers/classCallCheck";import s from"@babel/runtime-corejs3/helpers/createClass";import t from"@babel/runtime-corejs3/helpers/inherits";import o from"@babel/runtime-corejs3/helpers/possibleConstructorReturn";import a from"@babel/runtime-corejs3/helpers/getPrototypeOf";import i from"@babel/runtime-corejs3/core-js-stable/instance/slice";import"core-js/modules/es.object.to-string.js";import"core-js/modules/es.promise.js";import n from"video.js";import{h as c,f as l,i as m}from"./icons-68d3a609.js";import{G as d,C as p}from"./generic-0ffb9040.js";import{e as u,g as j}from"./skin-531a4095.js";import"@babel/runtime-corejs3/core-js-stable/instance/concat";import"@babel/runtime-corejs3/helpers/asyncToGenerator";import"core-js/modules/es.symbol.js";import"core-js/modules/es.symbol.description.js";import"@babel/runtime-corejs3/regenerator";import"@babel/runtime-corejs3/core-js-stable/promise";import"@babel/runtime-corejs3/core-js-stable/set-timeout";import"@babel/runtime-corejs3/core-js-stable/instance/filter";import"@babel/runtime-corejs3/core-js-stable/object/assign";import"axios";import"core-js/modules/es.promise.finally.js";import"core-js/modules/es.array.iterator.js";import"core-js/modules/es.typed-array.uint8-array.js";import"core-js/modules/es.typed-array.copy-within.js";import"core-js/modules/es.typed-array.every.js";import"core-js/modules/es.typed-array.fill.js";import"core-js/modules/es.typed-array.filter.js";import"core-js/modules/es.typed-array.find.js";import"core-js/modules/es.typed-array.find-index.js";import"core-js/modules/es.typed-array.for-each.js";import"core-js/modules/es.typed-array.includes.js";import"core-js/modules/es.typed-array.index-of.js";import"core-js/modules/es.typed-array.iterator.js";import"core-js/modules/es.typed-array.join.js";import"core-js/modules/es.typed-array.last-index-of.js";import"core-js/modules/es.typed-array.map.js";import"core-js/modules/es.typed-array.reduce.js";import"core-js/modules/es.typed-array.reduce-right.js";import"core-js/modules/es.typed-array.reverse.js";import"core-js/modules/es.typed-array.set.js";import"core-js/modules/es.typed-array.slice.js";import"core-js/modules/es.typed-array.some.js";import"core-js/modules/es.typed-array.sort.js";import"core-js/modules/es.typed-array.subarray.js";import"core-js/modules/es.typed-array.to-locale-string.js";import"core-js/modules/es.typed-array.to-string.js";import"core-js/modules/es.regexp.exec.js";import"core-js/modules/es.string.replace.js";import"@babel/runtime-corejs3/core-js-stable/instance/includes";import"@babel/runtime-corejs3/core-js-stable/instance/index-of";import"./browser-000da9e7.js";import"core-js/modules/es.array.join.js";import"core-js/modules/es.regexp.to-string.js";import"core-js/modules/es.regexp.constructor.js";import"core-js/modules/es.function.name.js";import"@babel/runtime-corejs3/core-js-stable/instance/map";import"@babel/runtime-corejs3/core-js-stable/math/trunc";import"@babel/runtime-corejs3/core-js-stable/instance/find";import"@babel/runtime-corejs3/core-js-stable/date/now";import"@babel/runtime-corejs3/core-js-stable/map";import"js-cookie";import"ua-parser-js";import"@babel/runtime-corejs3/core-js-stable/instance/find-index";import"./captions-0433e46b.js";import"core-js/modules/es.string.match.js";import"core-js/modules/es.number.to-fixed.js";import"@babel/runtime-corejs3/core-js-stable/set-interval";function y(r){var s=b();return function(){var t,i=a(r);if(s){var n=a(this).constructor;t=e(i,arguments,n)}else t=i.apply(this,arguments);return o(this,t)}}function b(){try{var r=!Boolean.prototype.valueOf.call(e(Boolean,[],(function(){})))}catch(r){}return(b=function(){return!!r})()}var f=n.getComponent("Component"),h=function(e){t(a,f);var o=y(a);function a(e){var s,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return r(this,a),(s=o.call(this,e,t)).playerId=t.playerId,s.seriesData=t.sres,s.streams=t.streams,s.currentVideoData=t.res,s.initialiseStructure(),s.loadCSS(),s}return s(a,[{key:"createEl",value:function(){var e=n.dom.createEl("div",{className:"stream-selection vjs-control vjs-button"});e.style.position="unset";var r=n.dom.createEl("div",{className:"stream-selector-icon",innerHTML:"".concat(c())});return n.dom.appendContent(e,r),e}},{key:"loadCSS",value:function(){import("./multicamv2-1fb5149a.js").then((function(e){var r=document.createElement("style");r.id="multicam-v2",r.append("".concat(e.default)),document.head.appendChild(r)}))}},{key:"initialiseStructure",value:function(){var e=this.el(),r=n.dom.createEl("div",{className:"stream-container hidden"});n.dom.$(".stream-selector-icon",this.el()).onclick=function(){var s;null!==(s=r.classList)&&void 0!==s&&s.contains("hidden")?(u(),r.classList.remove("hidden"),e.classList.add("open"),r.style.right="0px"):(r.classList.add("hidden"),e.classList.remove("open"),r.style.right="-350px")};var s=document.getElementById(this.playerId);if(s){var t=window.getComputedStyle(s,null).getPropertyValue("height"),o=i(t).call(t,0,-2);r.style.height="".concat(o,"px"),s.style.overflow="hidden",n.dom.appendContent(e,r),this.addFunctionality(r)}}},{key:"addFunctionality",value:function(e){var r=this,s=this.el(),t=n.dom.createEl("div",{className:"stream-selector-head"}),o=n.dom.createEl("div",{className:"stream-selector-cross-icon",innerHTML:"".concat(l())});o.onclick=function(){e.classList.add("hidden"),s.classList.remove("open"),e.style.right="-350px"};for(var a=n.dom.createEl("div",{className:"stream-selector-title",innerHTML:"Streams"}),c=n.dom.createEl("div",{className:"stream-selector-content"}),u=n.dom.createEl("div",{className:"stream-tray"}),y=function(e){var s,t=n.dom.createEl("div",{className:"stream -".concat(e),innerHTML:"".concat(m())});0==e&&(t.classList.add("selected"),t.style.border="4px solid #D2393B"),t.onclick=function(){for(var s=n.dom.$$(".stream"),o=0;o<s.length;o++)s[o].style.border="none",s[o].classList.remove("selected");t.classList.add("selected"),t.style.border="4px solid #D2393B",d(r.playerId,r.streams[e].id).then((function(e){p(r.playerId),console.log(e)})).catch((function(e){console.log(e)}))},t.style.backgroundImage="url(".concat(r.streams[e].img,")");var o=document.createElement("img");o.className="stream-thumbnail-image",o.src="".concat(null==r||null===(s=r.streams[e])||void 0===s?void 0:s.img),o.alt="No Thumbnail Available",t.append(o),n.dom.appendContent(u,t),n.dom.appendContent(c,u)},b=0;b<this.streams.length;b++)y(b);n.dom.appendContent(t,o),n.dom.appendContent(t,a),n.dom.appendContent(e,t),n.dom.appendContent(e,c),j(this.playerId).on("fullscreenchange",(function(){var s=window.getComputedStyle(document.getElementById(r.playerId),null).getPropertyValue("height"),t=i(s).call(s,0,-2);e.style.height="".concat(t,"px")}))}}]),a}();export{h as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import e from"@babel/runtime-corejs3/core-js-stable/reflect/construct";import r from"@babel/runtime-corejs3/helpers/classCallCheck";import o from"@babel/runtime-corejs3/helpers/createClass";import s from"@babel/runtime-corejs3/helpers/inherits";import t from"@babel/runtime-corejs3/helpers/possibleConstructorReturn";import i from"@babel/runtime-corejs3/helpers/getPrototypeOf";import n from"@babel/runtime-corejs3/core-js-stable/instance/for-each";import a from"@babel/runtime-corejs3/core-js-stable/instance/concat";import"core-js/modules/es.object.to-string.js";import"core-js/modules/es.promise.js";import"core-js/modules/es.symbol.js";import"core-js/modules/es.symbol.description.js";import l from"video.js";import{P as m}from"./icons-68d3a609.js";import{G as d,f as c}from"./generic-0ffb9040.js";import{d as p}from"./skin-531a4095.js";import"@babel/runtime-corejs3/helpers/asyncToGenerator";import"@babel/runtime-corejs3/regenerator";import"@babel/runtime-corejs3/core-js-stable/promise";import"@babel/runtime-corejs3/core-js-stable/set-timeout";import"@babel/runtime-corejs3/core-js-stable/instance/filter";import"@babel/runtime-corejs3/core-js-stable/object/assign";import"axios";import"core-js/modules/es.promise.finally.js";import"core-js/modules/es.array.iterator.js";import"core-js/modules/es.typed-array.uint8-array.js";import"core-js/modules/es.typed-array.copy-within.js";import"core-js/modules/es.typed-array.every.js";import"core-js/modules/es.typed-array.fill.js";import"core-js/modules/es.typed-array.filter.js";import"core-js/modules/es.typed-array.find.js";import"core-js/modules/es.typed-array.find-index.js";import"core-js/modules/es.typed-array.for-each.js";import"core-js/modules/es.typed-array.includes.js";import"core-js/modules/es.typed-array.index-of.js";import"core-js/modules/es.typed-array.iterator.js";import"core-js/modules/es.typed-array.join.js";import"core-js/modules/es.typed-array.last-index-of.js";import"core-js/modules/es.typed-array.map.js";import"core-js/modules/es.typed-array.reduce.js";import"core-js/modules/es.typed-array.reduce-right.js";import"core-js/modules/es.typed-array.reverse.js";import"core-js/modules/es.typed-array.set.js";import"core-js/modules/es.typed-array.slice.js";import"core-js/modules/es.typed-array.some.js";import"core-js/modules/es.typed-array.sort.js";import"core-js/modules/es.typed-array.subarray.js";import"core-js/modules/es.typed-array.to-locale-string.js";import"core-js/modules/es.typed-array.to-string.js";import"core-js/modules/es.regexp.exec.js";import"core-js/modules/es.string.replace.js";import"@babel/runtime-corejs3/core-js-stable/instance/includes";import"@babel/runtime-corejs3/core-js-stable/instance/index-of";import"@babel/runtime-corejs3/core-js-stable/instance/slice";import"./browser-000da9e7.js";import"core-js/modules/es.array.join.js";import"core-js/modules/es.regexp.to-string.js";import"core-js/modules/es.regexp.constructor.js";import"core-js/modules/es.function.name.js";import"@babel/runtime-corejs3/core-js-stable/instance/map";import"@babel/runtime-corejs3/core-js-stable/math/trunc";import"@babel/runtime-corejs3/core-js-stable/instance/find";import"@babel/runtime-corejs3/core-js-stable/date/now";import"@babel/runtime-corejs3/core-js-stable/map";import"js-cookie";import"ua-parser-js";import"@babel/runtime-corejs3/core-js-stable/instance/find-index";import"./captions-0433e46b.js";import"core-js/modules/es.string.match.js";import"core-js/modules/es.number.to-fixed.js";import"@babel/runtime-corejs3/core-js-stable/set-interval";function u(r){var o=j();return function(){var s,n=i(r);if(o){var a=i(this).constructor;s=e(n,arguments,a)}else s=n.apply(this,arguments);return t(this,s)}}function j(){try{var r=!Boolean.prototype.valueOf.call(e(Boolean,[],(function(){})))}catch(r){}return(j=function(){return!!r})()}var b=l.getComponent("Component"),y=function(e){s(i,b);var t=u(i);function i(e){var o,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return r(this,i),(o=t.call(this,e,s)).playerId=s.playerId,o.seriesData=s.sres,o.currentVideoData=s.res,o.initialiseStructure(),o.loadCSS(),o}return o(i,[{key:"createEl",value:function(){var e=l.dom.createEl("div",{className:"play-next"}),r=l.dom.createEl("div",{className:"play-next-icon",innerHTML:"".concat(m(window.controlsColor?window.controlsColor:"white"))});return l.dom.appendContent(e,r),e}},{key:"loadCSS",value:function(){import("./nextEpisodeButton-a1556cdf.js").then((function(e){var r=document.createElement("style");r.id="multicam",r.append("".concat(e.default)),document.head.appendChild(r)}))}},{key:"initialiseStructure",value:function(){var e=this.el(),r=l.dom.createEl("div",{className:"next-eps nextepisode-hidden"}),o=l.dom.createEl("div",{className:"next",innerHTML:"Next Episode"}),s=l.dom.createEl("div",{className:"nextep-meta-details next-margin"}),t=l.dom.createEl("div",{className:"next-eps-image"}),i=l.dom.createEl("div",{className:"next-eps-description"});l.dom.appendContent(s,t),l.dom.appendContent(s,i),l.dom.appendContent(r,o),l.dom.appendContent(r,s),this.toggleContentOnHover(e,r),l.dom.appendContent(e,r)}},{key:"toggleContentOnHover",value:function(e,r){e.addEventListener("mouseover",(function(){l.dom.removeClass(r,"nextepisode-hidden")})),r.addEventListener("mouseover",(function(){l.dom.removeClass(r,"nextepisode-hidden")})),e.addEventListener("mouseout",(function(){l.dom.addClass(r,"nextepisode-hidden")})),r.addEventListener("mouseout",(function(){l.dom.addClass(r,"nextepisode-hidden")}))}}]),i}(),v=function(e,r){var o=f(e,r.video.gist.id),s=x(e[o],r.video.gist.id),t=h(e[o],s);g(t.nextEp)},f=function(e,r){for(var o=-1,s=0;s<e.length;s++)for(var t=0;t<e[s].episodes.length;t++)if(e[s].episodes[t].id===r){o=s;break}return o},h=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,r=arguments.length>1?arguments[1]:void 0;if(!(e&&r>=0))return{prevEp:null,nextEp:null};var o=e.episodes.length,s=r-1>=0?r-1:o-1,t=(r+1)%o,i=o>1?e.episodes[s]:null,n=o>1?e.episodes[t]:null;return s===t&&(0===s?n=null:i=null),{prevEp:i,nextEp:n,prevEpIdx:s,nextEpIdx:t}},x=function(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,o=arguments.length>1?arguments[1]:void 0,s=null;return r?(n(e=r.episodes).call(e,(function(e,r){e.gist.id===o&&(s=r)})),s):null},g=function(e){var r,o,s;l.dom.$(".next-eps"),l.dom.$(".play-next").onclick=function(){var r;d("my-player",null==e||null===(r=e.gist)||void 0===r?void 0:r.id).then((function(e){c(e.response)}))};var t=l.dom.$(".next-eps-image"),i=p("<img src=".concat(null==e||null===(r=e.gist)||void 0===r?void 0:r.videoImageUrl," />")),n=null==i?void 0:i.firstChild;null==t||t.append(n);for(var m=l.dom.$(".next-eps-description"),u=p(a(o="<div class='next-eps-title'>".concat(null==e?void 0:e.title,"</div>\n <div class='next-eps-description-details'>")).call(o,null==e||null===(s=e.gist)||void 0===s?void 0:s.description,"</div>"));null!=u&&u.firstChild;)null==m||m.appendChild(u.firstChild)};export{y as default,v as initaliseFunctionality};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import e from"@babel/runtime-corejs3/core-js-stable/reflect/construct";import t from"@babel/runtime-corejs3/helpers/classCallCheck";import s from"@babel/runtime-corejs3/helpers/createClass";import o from"@babel/runtime-corejs3/helpers/inherits";import r from"@babel/runtime-corejs3/helpers/possibleConstructorReturn";import i from"@babel/runtime-corejs3/helpers/getPrototypeOf";import a from"@babel/runtime-corejs3/core-js-stable/instance/slice";import l from"@babel/runtime-corejs3/core-js-stable/instance/concat";import"core-js/modules/es.object.to-string.js";import"core-js/modules/es.promise.js";import"core-js/modules/es.symbol.js";import"core-js/modules/es.symbol.description.js";import n from"video.js";import{E as c,f as d}from"./icons-68d3a609.js";import{G as m,R as p}from"./generic-0ffb9040.js";import{a as u}from"./autoNextVideo-6f30518f.js";import{e as j,g as y}from"./skin-531a4095.js";import"@babel/runtime-corejs3/helpers/asyncToGenerator";import"@babel/runtime-corejs3/regenerator";import"@babel/runtime-corejs3/core-js-stable/promise";import"@babel/runtime-corejs3/core-js-stable/set-timeout";import"@babel/runtime-corejs3/core-js-stable/instance/filter";import"@babel/runtime-corejs3/core-js-stable/object/assign";import"axios";import"core-js/modules/es.promise.finally.js";import"core-js/modules/es.array.iterator.js";import"core-js/modules/es.typed-array.uint8-array.js";import"core-js/modules/es.typed-array.copy-within.js";import"core-js/modules/es.typed-array.every.js";import"core-js/modules/es.typed-array.fill.js";import"core-js/modules/es.typed-array.filter.js";import"core-js/modules/es.typed-array.find.js";import"core-js/modules/es.typed-array.find-index.js";import"core-js/modules/es.typed-array.for-each.js";import"core-js/modules/es.typed-array.includes.js";import"core-js/modules/es.typed-array.index-of.js";import"core-js/modules/es.typed-array.iterator.js";import"core-js/modules/es.typed-array.join.js";import"core-js/modules/es.typed-array.last-index-of.js";import"core-js/modules/es.typed-array.map.js";import"core-js/modules/es.typed-array.reduce.js";import"core-js/modules/es.typed-array.reduce-right.js";import"core-js/modules/es.typed-array.reverse.js";import"core-js/modules/es.typed-array.set.js";import"core-js/modules/es.typed-array.slice.js";import"core-js/modules/es.typed-array.some.js";import"core-js/modules/es.typed-array.sort.js";import"core-js/modules/es.typed-array.subarray.js";import"core-js/modules/es.typed-array.to-locale-string.js";import"core-js/modules/es.typed-array.to-string.js";import"core-js/modules/es.regexp.exec.js";import"core-js/modules/es.string.replace.js";import"@babel/runtime-corejs3/core-js-stable/instance/includes";import"@babel/runtime-corejs3/core-js-stable/instance/index-of";import"./browser-000da9e7.js";import"core-js/modules/es.array.join.js";import"core-js/modules/es.regexp.to-string.js";import"core-js/modules/es.regexp.constructor.js";import"core-js/modules/es.function.name.js";import"@babel/runtime-corejs3/core-js-stable/instance/map";import"@babel/runtime-corejs3/core-js-stable/math/trunc";import"@babel/runtime-corejs3/core-js-stable/instance/find";import"@babel/runtime-corejs3/core-js-stable/date/now";import"@babel/runtime-corejs3/core-js-stable/map";import"js-cookie";import"ua-parser-js";import"@babel/runtime-corejs3/core-js-stable/instance/find-index";import"./captions-0433e46b.js";import"core-js/modules/es.string.match.js";import"core-js/modules/es.number.to-fixed.js";import"@babel/runtime-corejs3/core-js-stable/set-interval";import"./util-332cd53f.js";function b(t){var s=v();return function(){var o,a=i(t);if(s){var l=i(this).constructor;o=e(a,arguments,l)}else o=a.apply(this,arguments);return r(this,o)}}function v(){try{var t=!Boolean.prototype.valueOf.call(e(Boolean,[],(function(){})))}catch(t){}return(v=function(){return!!t})()}var f=n.getComponent("Component"),h=function(e){o(i,f);var r=b(i);function i(e){var s,o,a,l,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t(this,i),(l=r.call(this,e,n)).playerId=n.playerId,l.seriesData=n.sres,l.videos=null==n||null===(s=n.playlist)||void 0===s?void 0:s.content,l.cb=(null==n||null===(o=n.playlist)||void 0===o?void 0:o.cb)||null,l.autoNext=(null==n||null===(a=n.playlist)||void 0===a?void 0:a.autoNext)||!1,l.currentVideoData=n.res,l.initialiseStructure(),l.loadCSS(),l.autoNext&&u({playerId:l.playerId,content:l.videos,cb:l.cb}),l}return s(i,[{key:"createEl",value:function(){var e=n.dom.createEl("div",{className:"playlist-selection vjs-control vjs-button"});e.style.position="unset";var t=n.dom.createEl("div",{className:"playlist-selector-icon",innerHTML:"".concat(c())});return n.dom.appendContent(e,t),e}},{key:"loadCSS",value:function(){import("./playlist-7ecf432a.js").then((function(e){var t=document.createElement("style");t.id="playlist-selection",t.append("".concat(e.default)),document.head.appendChild(t)}))}},{key:"initialiseStructure",value:function(){var e=this.el(),t=n.dom.createEl("div",{className:"selection-container hidden"});n.dom.$(".playlist-selector-icon",this.el()).onclick=function(){var s;null!==(s=t.classList)&&void 0!==s&&s.contains("hidden")?(j(),t.classList.remove("hidden"),e.classList.add("open"),t.style.right="0px"):(t.classList.add("hidden"),e.classList.remove("open"),t.style.right="-350px")};var s=document.getElementById(this.playerId);if(s){var o=window.getComputedStyle(s,null).getPropertyValue("height"),r=a(o).call(o,0,-2);t.style.height="".concat(r,"px"),n.dom.appendContent(e,t),s.style.overflow="hidden",this.addFunctionality(t)}}},{key:"addFunctionality",value:function(e){var t=this,s=this.el(),o=n.dom.createEl("div",{className:"playlist-selector-head"}),r=n.dom.createEl("div",{className:"playlist-selector-cross-icon",innerHTML:"".concat(d())});r.onclick=function(){e.classList.add("hidden"),s.classList.remove("open"),e.style.right="-350px"};for(var i=n.dom.createEl("div",{className:"playlist-selector-title",innerHTML:"Playlist"}),c=n.dom.createEl("div",{className:"playlist-selector-content"}),u=function(e){var s,o,r=n.dom.createEl("div",{className:"playlist-container"}),i=n.dom.createEl("div",{className:"playlist-section",index:e}),a=n.dom.createEl("div",{className:"playlist-title",innerHTML:"".concat((null===(s=t.videos[e])||void 0===s?void 0:s.title)||"")}),d=n.dom.createEl("div",{className:"playlist-progress-bar",innerHTML:"<div style='width:".concat(t.videos[e].watchedPercentage,"%' class='playlist-progress-bar-value'></div>")});n.dom.appendContent(i,a),n.dom.appendContent(i,d),n.dom.appendContent(r,i),n.dom.appendContent(c,r);var u=n.dom.createEl("div",{className:"playlist-section-expanded hidden"}),j=n.dom.createEl("div",{className:"playlist-description",innerHTML:"".concat((null===(o=t.videos[e])||void 0===o?void 0:o.description)||"")}),y=n.dom.createEl("div",{className:"playlist-image"});y.style.backgroundImage="url(".concat(t.videos[e].img,")"),n.dom.appendContent(u,y),n.dom.appendContent(u,j),n.dom.appendContent(r,u),n.dom.appendContent(c,r),u.onclick=function(s){s.stopPropagation(),p(e+1),m(t.playerId,t.videos[e].id).then((function(e){null!=t&&t.cb&&t.cb(e)})).catch((function(e){null!=t&&t.cb&&t.cb(e)}))},i.onclick=function(e){var t,s,o,i,a=document.getElementsByClassName("playlist-selector-content")[0].childNodes,n=(a=l(t=[]).call(t,a))[e.target.index].getElementsByClassName("playlist-section-expanded")[0];null!=n&&null!==(s=n.classList)&&void 0!==s&&s.contains("hidden")?(r.style.backgroundColor="#0000007d",null==n||null===(o=n.classList)||void 0===o||o.remove("hidden")):(null==n||null===(i=n.classList)||void 0===i||i.add("hidden"),r.style.backgroundColor="unset")}},j=0;j<this.videos.length;j++)u(j);n.dom.appendContent(o,r),n.dom.appendContent(o,i),n.dom.appendContent(e,o),n.dom.appendContent(e,c),y(this.playerId).on("fullscreenchange",(function(){var s=document.getElementById(t.playerId);if(s){var o=window.getComputedStyle(s,null).getPropertyValue("height"),r=a(o).call(o,0,-2);e.style.height="".concat(r,"px")}}))}}]),i}();export{h as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import l from"@babel/runtime-corejs3/core-js-stable/instance/sort";import{g as i}from"./skin-531a4095.js";var n=function(n){var o,e=i(n),t=[];if((null==e||null===(o=e.tech_)||void 0===o?void 0:o.vhs)||!1){var d,u,v=null==e||null===(d=e.tech_)||void 0===d||null===(u=d.vhs)||void 0===u?void 0:u.representations();(null==v?void 0:v.length)>0&&(t=null==v?void 0:l(v).call(v,(function(l,i){return(null==l?void 0:l.height)==(null==i?void 0:i.height)?(null==i?void 0:i.bandwidth)-(null==l?void 0:l.bandwidth):(null==i?void 0:i.height)-(null==l?void 0:l.height)})))}else{var r,h,a=null==e||null===(r=e.dash)||void 0===r||null===(h=r.mediaPlayer)||void 0===h?void 0:h.getBitrateInfoListFor("video");(null==a?void 0:a.length)>0&&(t=null==a?void 0:l(a).call(a,(function(l,i){return i.height-l.height})))}return t};export{n as g};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import e from"@babel/runtime-corejs3/core-js-stable/reflect/construct";import t from"@babel/runtime-corejs3/helpers/classCallCheck";import n from"@babel/runtime-corejs3/helpers/createClass";import i from"@babel/runtime-corejs3/helpers/inherits";import o from"@babel/runtime-corejs3/helpers/possibleConstructorReturn";import a from"@babel/runtime-corejs3/helpers/getPrototypeOf";import"core-js/modules/es.number.to-fixed.js";import l from"@babel/runtime-corejs3/core-js-stable/instance/map";import d from"@babel/runtime-corejs3/core-js-stable/instance/concat";import r from"@babel/runtime-corejs3/core-js-stable/parse-int";import s from"@babel/runtime-corejs3/core-js-stable/instance/for-each";import c from"@babel/runtime-corejs3/core-js-stable/set-timeout";import u from"video.js";import{g as m,p as h}from"./skin-531a4095.js";import{d as p}from"./browser-000da9e7.js";import"@babel/runtime-corejs3/core-js-stable/instance/includes";import"@babel/runtime-corejs3/core-js-stable/date/now";import"core-js/modules/es.regexp.exec.js";import"@babel/runtime-corejs3/core-js-stable/instance/index-of";function v(t){var n=g();return function(){var i,l=a(t);if(n){var d=a(this).constructor;i=e(l,arguments,d)}else i=l.apply(this,arguments);return o(this,i)}}function g(){try{var t=!Boolean.prototype.valueOf.call(e(Boolean,[],(function(){})))}catch(t){}return(g=function(){return!!t})()}var f=u.getComponent("Component"),b=function(e){i(a,f);var o=v(a);function a(e){var n,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t(this,a),(n=o.call(this,e,i)).masterRenditions=[],n.addCustomFont=function(e){var t,i=u.dom.createEl("div",{className:"font hideCustomFonts"}),o=u.dom.createEl("p",{className:"customFontHeading",innerHTML:"Font Size"});u.dom.appendContent(i,o);var a=u.dom.createEl("div",{className:"font-options"});a.style.fontSize="12px",l(t=n.fontSizeOptions).call(t,(function(e,t){var i,o,l,r=u.dom.createEl("div",{className:"options",innerHTML:d(i=d(o=d(l='<div class="radio-item" >\n <input class=opt'.concat(t,' type="radio" id=')).call(l,e,' name="item" />\n <label class="radio-btn-lable" for=')).call(o,e,">")).call(i,e,"pt</label>\n </div>")});r.addEventListener("click",(function(e){var t=e.target.id;n.changeFontSize(t)})),u.dom.appendContent(a,r)})),u.dom.appendContent(i,a),u.dom.appendContent(e,i)},n.resetRenditions=function(){var e,t;l(e=d(t=[]).call(t,document.getElementsByClassName("rendition"))).call(e,(function(e){u.dom.removeClass(e,"selected")}))},n.playerId=null==i?void 0:i.playerId,n.skin=null==i?void 0:i.skin,n.icon=null==i?void 0:i.icon,n.masterRenditions=[],n.fontSizeOptions=[10,12,14],n.createRenditions(i.renditions),window.height=null,n}return n(a,[{key:"toggleContentOnHover",value:function(e,t){var n=u.dom.$(".setting-icon",e);n.addEventListener("mouseover",(function(){u.dom.removeClass(t,"resolution_hidden")})),t.addEventListener("mouseover",(function(){u.dom.removeClass(t,"resolution_hidden")})),n.addEventListener("mouseout",(function(){u.dom.addClass(t,"resolution_hidden")})),t.addEventListener("mouseout",(function(){u.dom.addClass(t,"resolution_hidden")}))}},{key:"changeFontSize",value:function(e){var t=u.dom.$(".renditions",this.contentEl()),n=u.dom.$(".font-options",this.contentEl());t.style.fontSize="".concat(e,"px"),n.style.fontSize="".concat(e,"px")}},{key:"createRenditions",value:function(e){var t=this,n=this.el(),i=u.dom.$(".setting-icon",this.el()),o=h(this.icon);if(i.append(o),"live"===this.skin){var a=document.createTextNode(" Settings");i.appendChild(a)}var s=u.dom.createEl("div",{className:"content resolution_hidden"}),c=u.dom.createEl("div",{innerHTML:"Quality",className:"title"}),m=u.dom.createEl("div",{className:"resolution"});u.dom.appendContent(m,c),this.toggleContentOnHover(n,s);var v=u.dom.createEl("div",{className:"renditions"});this.player_.tech_.vhs?(l(e).call(e,(function(e,n){var i,o,a,l,s,c=u.dom.createEl("div",{className:"relative"}),m=(((null==e||null===(i=e.playlist)||void 0===i?void 0:i.attributes["AVERAGE-BANDWIDTH"])||(null==e||null===(o=e.playlist)||void 0===o?void 0:o.attributes.BANDWIDTH))/1048576).toFixed(1),h=d(a="".concat(e.height,"p ")).call(a,e.height>719&&e.height<1081?"<span>HD</span>":e.height>1081&&e.height<1500?"<span>2K (HD)</span>":e.height>1501?"<span>4K (HD)</span>":"");h=d(l=d(s="".concat(e.height,"p @ ")).call(s,m,"mbps ")).call(l,e.height>719&&e.height<1081?"<span>HD</span>":e.height>1081&&e.height<1500?"<span>2K (HD)</span>":e.height>1501?"<span>4K (HD)</span>":"");var p=u.dom.createEl("p",{innerHTML:h,className:"rendition",res:e.height,bandwidth:e.bandwidth});u.dom.appendContent(c,p),u.dom.appendContent(v,c),p.addEventListener("click",(function(e){window.height===e.target.res&&e.target.bandwidth==window.bandwidth||(t.resetRenditions(),window.height=e.target.res,window.bandwidth=r(e.target.bandwidth),window.selectedVideo=e.target.video,w(t.playerId,e.target),u.dom.addClass(p,"selected"))}))})),this.addAutoRendition("nondrm",v),"Safari"!=p()&&this.addDynamicSwitchIfAuto()):(l(e).call(e,(function(e,n){var i,o,a,l=u.dom.createEl("div",{className:"relative"}),r=(e.bitrate/1e6).toFixed(1),s=d(i="".concat(e.height,"p ")).call(i,e.height>719&&e.height<1081?"<span>HD</span>":e.height>1081&&e.height<1500?"<span>2K (HD)</span>":e.height>1501?"<span>4K (HD)</span>":"");window.enableResolutionsBitrate&&(s=d(o=d(a="".concat(e.height,"p @ ")).call(a,r,"mbps ")).call(o,e.height>719&&e.height<1081?"<span>HD</span>":e.height>1081&&e.height<1500?"<span>2K (HD)</span>":e.height>1501?"<span>4K (HD)</span>":""));var c=u.dom.createEl("p",{innerHTML:s,className:"rendition",res:e.height,qualityIndex:e.qualityIndex});u.dom.appendContent(l,c),u.dom.appendContent(v,l),c.addEventListener("click",(function(e){window.height===e.target.res&&e.target.bandwidth==window.bandwidth||(t.resetRenditions(),window.height=e.target.res,window.selectedVideo=e.target.video,window.qualityIndex=e.target.qualityIndex,w(t.playerId,e.target),u.dom.addClass(c,"selected"))}))})),this.addAutoRendition("drm",v)),u.dom.appendContent(m,v),u.dom.appendContent(s,m),u.dom.appendContent(n,s)}},{key:"addDynamicSwitchIfAuto",value:function(){for(var e,t=this.player_.textTracks(),n=0;n<t.length;n++)"segment-metadata"===t[n].label&&(e=t[n]);var i=null;e&&e.on("cuechange",(function(){var t,n,o=e.activeCues[0];if(console.log((null==o||null===(t=o.value)||void 0===t||null===(n=t.resolution)||void 0===n?void 0:n.height)+"p"),o&&document.querySelector(".auto.selected")){var a,l,d,r,s,c,u,m;if(null!=o&&null!==(a=o.value)&&void 0!==a&&null!==(l=a.resolution)&&void 0!==l&&l.height&&i!==(null==o||null===(d=o.value)||void 0===d||null===(r=d.resolution)||void 0===r?void 0:r.height))document.querySelector(".auto.selected").textContent="Auto ".concat(null==o||null===(u=o.value)||void 0===u||null===(m=u.resolution)||void 0===m?void 0:m.height,"p");i=null==o||null===(s=o.value)||void 0===s||null===(c=s.resolution)||void 0===c?void 0:c.height}}))}},{key:"createEl",value:function(){var e=u.dom.createEl("div",{className:"container"}),t=u.dom.createEl("div",{className:"setting-icon"});return u.dom.appendContent(e,t),e}},{key:"addAutoRendition",value:function(e,t){var n=this;if("nondrm"==e){var i,o,a,l,d=null===(i=this.player_)||void 0===i||null===(o=i.tech_)||void 0===o?void 0:o.vhs.selectPlaylist().attributes.RESOLUTION.height,s=null===(a=this.player_)||void 0===a||null===(l=a.tech_)||void 0===l?void 0:l.vhs.selectPlaylist().attributes.BANDWIDTH,c=u.dom.createEl("div",{className:"relative"}),m=u.dom.createEl("p",{innerHTML:"Auto ".concat(d,"p"),className:"rendition auto selected",bandwidth:s,res:d});m.addEventListener("click",(function(e){window.height!==e.target.res&&(n.resetRenditions(),u.dom.addClass(m,"selected"),window.height=e.target.res,window.bandwidth=r(e.target.bandwidth),window.selectedVideo=e.target.video,w(n.playerId,null,!0))})),u.dom.appendContent(c,m),u.dom.appendContent(t,c)}else{var h=u.dom.createEl("div",{className:"relative"}),p=u.dom.createEl("p",{innerHTML:"Auto",className:"rendition selected",qualityIndex:"auto"});p.addEventListener("click",(function(e){n.resetRenditions(),u.dom.addClass(p,"selected"),window.qualityIndex=e.target.qualityIndex,window.selectedVideo=e.target.video,w(n.playerId,null,!0)})),u.dom.appendContent(h,p),u.dom.appendContent(t,h)}}}]),a}(),w=function(e,t,n){var i,o=m(e),a=null==t?void 0:t.bandwidth;if((null==o||null===(i=o.tech_)||void 0===i?void 0:i.vhs)||!1){var l;s(l=o.tech_.vhs.representations()).call(l,(function(e){n||e.bandwidth===a?e.enabled(!0):e.enabled(!1)})),o.handleTechPlaying_();var d=o.currentTime();o.currentTime(0),c((function(){o.currentTime(d)}),100);var r=u.dom.$(".content");r&&u.dom.addClass(r,"resolution_hidden")}else{var h=null==t?void 0:t.qualityIndex;if(n){var p,v;null==o||null===(p=o.dash)||void 0===p||null===(v=p.mediaPlayer)||void 0===v||v.resetSettings()}else{var g,f,b,w;null==o||null===(g=o.dash)||void 0===g||null===(f=g.mediaPlayer)||void 0===f||f.updateSettings({streaming:{abr:{autoSwitchBitrate:!1}}}),null==o||null===(b=o.dash)||void 0===b||null===(w=b.mediaPlayer)||void 0===w||w.setQualityFor("video",h,!0);var y=o.currentTime();o.currentTime(0),c((function(){o.currentTime(y)}),100);var C=u.dom.$(".content");C&&u.dom.addClass(C,"resolution_hidden")}}};export{b as default,w as playSelectedResolution};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import e from"@babel/runtime-corejs3/core-js-stable/reflect/construct";import s from"@babel/runtime-corejs3/helpers/asyncToGenerator";import r from"@babel/runtime-corejs3/helpers/classCallCheck";import t from"@babel/runtime-corejs3/helpers/createClass";import o from"@babel/runtime-corejs3/helpers/inherits";import i from"@babel/runtime-corejs3/helpers/possibleConstructorReturn";import a from"@babel/runtime-corejs3/helpers/getPrototypeOf";import n from"@babel/runtime-corejs3/regenerator";import c from"@babel/runtime-corejs3/core-js-stable/instance/map";import l from"@babel/runtime-corejs3/core-js-stable/instance/for-each";import d from"@babel/runtime-corejs3/core-js-stable/instance/concat";import"core-js/modules/es.object.to-string.js";import"core-js/modules/es.promise.js";import"core-js/modules/es.array.join.js";import"core-js/modules/es.symbol.js";import"core-js/modules/es.symbol.description.js";import m from"video.js";import{T as p,D as u,G as j,f as v,C as f}from"./generic-0ffb9040.js";import{E as y}from"./icons-68d3a609.js";import{d as b}from"./skin-531a4095.js";import"@babel/runtime-corejs3/core-js-stable/promise";import"@babel/runtime-corejs3/core-js-stable/set-timeout";import"@babel/runtime-corejs3/core-js-stable/instance/filter";import"@babel/runtime-corejs3/core-js-stable/object/assign";import"axios";import"core-js/modules/es.promise.finally.js";import"core-js/modules/es.array.iterator.js";import"core-js/modules/es.typed-array.uint8-array.js";import"core-js/modules/es.typed-array.copy-within.js";import"core-js/modules/es.typed-array.every.js";import"core-js/modules/es.typed-array.fill.js";import"core-js/modules/es.typed-array.filter.js";import"core-js/modules/es.typed-array.find.js";import"core-js/modules/es.typed-array.find-index.js";import"core-js/modules/es.typed-array.for-each.js";import"core-js/modules/es.typed-array.includes.js";import"core-js/modules/es.typed-array.index-of.js";import"core-js/modules/es.typed-array.iterator.js";import"core-js/modules/es.typed-array.join.js";import"core-js/modules/es.typed-array.last-index-of.js";import"core-js/modules/es.typed-array.map.js";import"core-js/modules/es.typed-array.reduce.js";import"core-js/modules/es.typed-array.reduce-right.js";import"core-js/modules/es.typed-array.reverse.js";import"core-js/modules/es.typed-array.set.js";import"core-js/modules/es.typed-array.slice.js";import"core-js/modules/es.typed-array.some.js";import"core-js/modules/es.typed-array.sort.js";import"core-js/modules/es.typed-array.subarray.js";import"core-js/modules/es.typed-array.to-locale-string.js";import"core-js/modules/es.typed-array.to-string.js";import"core-js/modules/es.regexp.exec.js";import"core-js/modules/es.string.replace.js";import"@babel/runtime-corejs3/core-js-stable/instance/includes";import"@babel/runtime-corejs3/core-js-stable/instance/index-of";import"@babel/runtime-corejs3/core-js-stable/instance/slice";import"./browser-000da9e7.js";import"core-js/modules/es.regexp.to-string.js";import"core-js/modules/es.regexp.constructor.js";import"core-js/modules/es.function.name.js";import"@babel/runtime-corejs3/core-js-stable/math/trunc";import"@babel/runtime-corejs3/core-js-stable/instance/find";import"@babel/runtime-corejs3/core-js-stable/date/now";import"@babel/runtime-corejs3/core-js-stable/map";import"js-cookie";import"ua-parser-js";import"@babel/runtime-corejs3/core-js-stable/instance/find-index";import"./captions-0433e46b.js";import"core-js/modules/es.string.match.js";import"core-js/modules/es.number.to-fixed.js";import"@babel/runtime-corejs3/core-js-stable/set-interval";var h=function(e){document.getElementById("".concat(e)).classList.add("vjs-waiting")};function g(s){var r=C();return function(){var t,o=a(s);if(r){var n=a(this).constructor;t=e(o,arguments,n)}else t=o.apply(this,arguments);return i(this,t)}}function C(){try{var s=!Boolean.prototype.valueOf.call(e(Boolean,[],(function(){})))}catch(s){}return(C=function(){return!!s})()}var w,L=m.getComponent("Component"),x=function(e){o(i,L);var s=g(i);function i(e){var t,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};r(this,i),(t=s.call(this,e,o)).seriesData=[],t.seriesData=o.seriesData,w=o.playerId;var a=t.el();return S(a,t.seriesData),t.loadCSS(),t}return t(i,[{key:"createEl",value:function(){var e=document.createElement("div");return e.classList.add("vjs-season-list"),e}},{key:"loadCSS",value:function(){import("./series-041152aa.js").then((function(e){var s=document.createElement("style");s.id="series",s.append("".concat(e.default)),document.head.appendChild(s)}))}}]),i}();function k(){return(k=s(n.mark((function e(s,r,t,o){return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:u(w),h(w),j(w,r).then((function(e){v(e.response),f(w)}));case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function E(e,s,r,t){var o,i=document.getElementById("season-list"),a=document.getElementById("episode-list"),n=document.getElementById("episode-container");e.id;for(var m=c(o=e.episodes).call(o,(function(e,s){var r,t,o,i;return d(r=d(t=d(o=d(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">'.concat(s+1," ")).call(i,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=')).call(o,e.gist.videoImageUrl,' alt="')).call(t,e.title,'\'s cover"></img>\n </div>\n <div class="description-wrapper">')).call(r,e.gist.description,"</div>\n </div>\n </div>\n </div>")})).join("");null!=n&&n.firstChild;)n.removeChild(n.firstChild);for(var u=b(m);null!=u&&u.firstChild;)n.appendChild(u.firstChild);!function(e){p(e).then((function(e){var s=e.data,r=document.querySelectorAll("#progress-div");r&&c(s).call(s,(function(e,s){e&&e.watchedPercentage&&r[s]&&(r[s].style.width=e.watchedPercentage+"px")}))})).catch((function(e){}))}(t),i.classList.toggle("hide-container"),a.classList.toggle("hide-container");var j=document.querySelectorAll(".details-wrapper"),v=document.querySelectorAll("#episode-title"),f=document.querySelectorAll(".meta-details"),y=document.querySelector("#episodes-back-btn"),h=e.id,g=e.episodes;y.addEventListener("click",(function(){return function(e,s){e.classList.remove("hide-container"),s.classList.add("hide-container")}(i,a)}));for(var C=function(s){j[s].addEventListener("click",(function(){return function(e,s,r){var t=s.querySelector(".meta-details");s.classList.toggle("episode-active"),t.classList.toggle("metadetails-active"),l(r).call(r,(function(s,t){t!==e&&(r[t].classList.remove("episode-active"),r[t].querySelector(".meta-details").classList.remove("metadetails-active"))}))}(s,v[s],v)})),f[s].addEventListener("click",(function(){return function(e,s,r,t){return k.apply(this,arguments)}(s,g[s].id,r,v)})),e.episodes[s].id==h&&v[s].classList.add("highlight-active-eps")},w=0;w<j.length;w++)C(w)}function S(e,s){for(var r,t=d(r='<div class="hover-div"></div>\n '.concat(y(),'\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 ')).call(r,function(e){return c(e).call(e,(function(e,s){return'<div\n class="season-title-sdk"\n key='.concat("title-".concat(e.title),'\n > <div class="season-container">\n ',e.title,"\n </div>\n </div>\n ")})).join("")}(s),'\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>');null!=e&&e.firstChild;)e.removeChild(e.firstChild);for(var o=b(t);null!=o&&o.firstChild;)e.appendChild(o.firstChild)}export{S as customSeasonList,E as handleSeasonChange,x as seriesModule};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import e from"@babel/runtime-corejs3/core-js-stable/reflect/construct";import s from"@babel/runtime-corejs3/helpers/classCallCheck";import o from"@babel/runtime-corejs3/helpers/createClass";import t from"@babel/runtime-corejs3/helpers/assertThisInitialized";import r from"@babel/runtime-corejs3/helpers/inherits";import i from"@babel/runtime-corejs3/helpers/possibleConstructorReturn";import n from"@babel/runtime-corejs3/helpers/getPrototypeOf";import"core-js/modules/es.object.to-string.js";import"core-js/modules/es.promise.js";import"core-js/modules/es.symbol.js";import"core-js/modules/es.symbol.description.js";import a from"@babel/runtime-corejs3/core-js-stable/instance/map";import l from"@babel/runtime-corejs3/core-js-stable/instance/slice";import c from"@babel/runtime-corejs3/core-js-stable/instance/concat";import d from"video.js";import{E as m,f as p,B as u}from"./icons-68d3a609.js";import{j,U as v,V as y,b as h,w as b,G as f}from"./generic-0ffb9040.js";import{e as g,p as C,g as x}from"./skin-531a4095.js";import{a as N}from"./autoNextVideo-6f30518f.js";import"@babel/runtime-corejs3/helpers/asyncToGenerator";import"@babel/runtime-corejs3/regenerator";import"@babel/runtime-corejs3/core-js-stable/promise";import"@babel/runtime-corejs3/core-js-stable/set-timeout";import"@babel/runtime-corejs3/core-js-stable/instance/filter";import"@babel/runtime-corejs3/core-js-stable/object/assign";import"axios";import"core-js/modules/es.promise.finally.js";import"core-js/modules/es.array.iterator.js";import"core-js/modules/es.typed-array.uint8-array.js";import"core-js/modules/es.typed-array.copy-within.js";import"core-js/modules/es.typed-array.every.js";import"core-js/modules/es.typed-array.fill.js";import"core-js/modules/es.typed-array.filter.js";import"core-js/modules/es.typed-array.find.js";import"core-js/modules/es.typed-array.find-index.js";import"core-js/modules/es.typed-array.for-each.js";import"core-js/modules/es.typed-array.includes.js";import"core-js/modules/es.typed-array.index-of.js";import"core-js/modules/es.typed-array.iterator.js";import"core-js/modules/es.typed-array.join.js";import"core-js/modules/es.typed-array.last-index-of.js";import"core-js/modules/es.typed-array.map.js";import"core-js/modules/es.typed-array.reduce.js";import"core-js/modules/es.typed-array.reduce-right.js";import"core-js/modules/es.typed-array.reverse.js";import"core-js/modules/es.typed-array.set.js";import"core-js/modules/es.typed-array.slice.js";import"core-js/modules/es.typed-array.some.js";import"core-js/modules/es.typed-array.sort.js";import"core-js/modules/es.typed-array.subarray.js";import"core-js/modules/es.typed-array.to-locale-string.js";import"core-js/modules/es.typed-array.to-string.js";import"core-js/modules/es.regexp.exec.js";import"core-js/modules/es.string.replace.js";import"@babel/runtime-corejs3/core-js-stable/instance/includes";import"@babel/runtime-corejs3/core-js-stable/instance/index-of";import"./browser-000da9e7.js";import"core-js/modules/es.array.join.js";import"core-js/modules/es.regexp.to-string.js";import"core-js/modules/es.regexp.constructor.js";import"core-js/modules/es.function.name.js";import"@babel/runtime-corejs3/core-js-stable/math/trunc";import"@babel/runtime-corejs3/core-js-stable/instance/find";import"@babel/runtime-corejs3/core-js-stable/date/now";import"@babel/runtime-corejs3/core-js-stable/map";import"js-cookie";import"ua-parser-js";import"@babel/runtime-corejs3/core-js-stable/instance/find-index";import"./captions-0433e46b.js";import"core-js/modules/es.string.match.js";import"core-js/modules/es.number.to-fixed.js";import"@babel/runtime-corejs3/core-js-stable/set-interval";import"./util-332cd53f.js";function E(s){var o=k();return function(){var t,r=n(s);if(o){var a=n(this).constructor;t=e(r,arguments,a)}else t=r.apply(this,arguments);return i(this,t)}}function k(){try{var s=!Boolean.prototype.valueOf.call(e(Boolean,[],(function(){})))}catch(s){}return(k=function(){return!!s})()}var S=d.getComponent("Component"),L=function(e){r(n,S);var i=E(n);function n(e){var o,r,l,c,d,m,p=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(s(this,n),(m=i.call(this,e,p)).playerId=p.playerId,m.seriesData=p.sres,m.videos=null==p||null===(o=p.sres)||void 0===o?void 0:o.seasons,m.currentVideoData=p.res,m.initialiseStructure(),m.loadCSS(),m.selectedSeason=0,m.cb=null==p||null===(r=p.series)||void 0===r?void 0:r.cb,m.autoPlayNext=(null==p||null===(l=p.series)||void 0===l?void 0:l.autoPlayNext)||!1,sessionStorage.getItem("token"),m.watchMap=j(),null!==(c=t(m))&&void 0!==c&&c.autoPlayNext&&null!=p&&null!==(d=p.series)&&void 0!==d&&d.enable){var u,h,b,f,g=null==p||null===(u=p.sres)||void 0===u?void 0:u.seasons,C=[];a(g).call(g,(function(e){C.push.apply(C,e.episodes)})),v(C),y(null===(h=m.options_)||void 0===h||null===(b=h.res)||void 0===b||null===(f=b.video)||void 0===f?void 0:f.id),N({playerId:m.playerId,content:C,cb:m.cb,series:null==p?void 0:p.sres})}return m}return o(n,[{key:"createEl",value:function(){var e=d.dom.createEl("div",{className:"series-selection vjs-control vjs-button"});e.style.position="unset";var s=d.dom.createEl("div",{className:"series-selector-icon",innerHTML:"".concat(m())});return d.dom.appendContent(e,s),e}},{key:"loadCSS",value:function(){import("./series-v2-87343239.js").then((function(e){var s=document.createElement("style");s.id="series-v2",s.append("".concat(e.default)),document.head.appendChild(s)}))}},{key:"toggleOpenClose",value:function(e){var s,o=this.el();null!=e&&null!==(s=e.classList)&&void 0!==s&&s.contains("hidden")?(g(),e.classList.remove("hidden"),o.classList.add("open"),e.style.right="0px"):(e.classList.add("hidden"),o.classList.remove("open"),e.style.right="-350px")}},{key:"initialiseStructure",value:function(){var e=this,s=this.el(),o=d.dom.createEl("div",{className:"series-selection-container hidden"});d.dom.$(".series-selector-icon",this.el()).onclick=function(){return e.toggleOpenClose(o)};var t=document.getElementById(this.playerId);if(t){var r=window.getComputedStyle(t,null).getPropertyValue("height"),i=l(r).call(r,0,-2);o.style.height="".concat(i,"px"),d.dom.appendContent(s,o),t.style.overflow="hidden",this.addFunctionality(o)}}},{key:"addFunctionality",value:function(e){var s=this,o=this.el(),t=d.dom.createEl("div",{className:"series-selector-head"}),r=d.dom.createEl("div",{className:"series-selector-cross-icon",innerHTML:"".concat(p())});r.onclick=function(){if("series-selector-cross-icon"===r.className)e.classList.add("hidden"),o.classList.remove("open"),e.style.right="-350px";else if("series-selector-back-icon"===r.className){var t=d.dom.$(".series-selector-content",s.el());for(d.dom.$(".series-selector-cross-icon",s.el()),r.className="series-selector-cross-icon";null!=t&&t.firstChild;)t.removeChild(t.firstChild);var i=s.createSeasonLister();for(d.dom.appendContent(t,i),d.dom.$(".series-selector-title",s.el()).textContent="Seasons";null!=r&&r.firstChild;)r.removeChild(r.firstChild);var n=C(p());r.appendChild(n)}};var i=d.dom.createEl("div",{className:"series-selector-title",innerHTML:"Seasons"}),n=d.dom.createEl("div",{className:"series-selector-content"}),a=this.createSeasonLister();d.dom.appendContent(n,a),d.dom.appendContent(t,r),d.dom.appendContent(t,i),d.dom.appendContent(e,t),d.dom.appendContent(e,n),x(this.playerId).on("fullscreenchange",(function(){var o=document.getElementById(s.playerId);if(o){var t=window.getComputedStyle(o,null).getPropertyValue("height"),r=l(t).call(t,0,-2);e.style.height="".concat(r,"px")}}))}},{key:"createSeasonLister",value:function(){var e=this;x(this.playerId);for(var s=h(),o=d.dom.createEl("div",{className:"season-container"}),t=function(t){var r,i=document.createElement("label");i.className="season-holder",i.setAttribute("for","season-".concat(t));var n=document.createElement("div");n.className="season - ".concat(t),n.textContent=null===(r=s[t])||void 0===r?void 0:r.title;var a=d.dom.createEl("input",{className:"radio - ".concat(t),id:"season-".concat(t),name:"season-radio"});a.setAttribute("type","radio"),e.selectedSeason==t&&(a.checked=!0),a.onclick=function(s){b.set(t),e.showSeasonDetails(t)},d.dom.appendContent(i,a),d.dom.appendContent(i,n),d.dom.appendContent(o,i)},r=0;r<s.length;r++)t(r);return o}},{key:"getSeasonDetailsContainer",value:function(e,s){var o=this;e=a(e).call(e,(function(e){var s,t,r,i,n;return{id:null==e?void 0:e.id,title:null==e?void 0:e.title,description:null==e||null===(s=e.gist)||void 0===s?void 0:s.description,img:null==e||null===(t=e.gist)||void 0===t||null===(r=t.imageGist)||void 0===r?void 0:r.r16x9,watchedPercentage:(null==o||null===(i=o.watchMap)||void 0===i||null===(n=i.get(null==e?void 0:e.id))||void 0===n?void 0:n.p)||0}}));for(var t=function(t){var r,i,n,a,l,m,p,u=d.dom.createEl("div",{className:"series-container"}),j=d.dom.createEl("div",{className:"series-section",index:t}),v=d.dom.createEl("div",{className:"series-title",innerHTML:"".concat((null===(r=e[t])||void 0===r?void 0:r.title)||"")}),h=d.dom.createEl("div",{className:"series-progress-bar",innerHTML:"<div style='width:".concat(e[t].watchedPercentage,"%' class='series-progress-bar-value'></div>")});d.dom.appendContent(j,v),d.dom.appendContent(j,h),d.dom.appendContent(u,j),d.dom.appendContent(s,u);var b=d.dom.createEl("div",{className:"series-section-expanded hidden"}),g=(null===(i=e[t])||void 0===i?void 0:i.description)||"";(null===(n=g)||void 0===n?void 0:n.length)>170&&(g=g.substr(0,170)+"...");var C=d.dom.createEl("div",{className:"series-description",innerHTML:"".concat(g||"")}),x=d.dom.createEl("img",{className:"series-image"});x.src="".concat((null===(a=e[t])||void 0===a?void 0:a.img)||(null===(l=window)||void 0===l||null===(m=l.customData)||void 0===m?void 0:m.fallbackImage)),x.alt="".concat(null===(p=e[t])||void 0===p?void 0:p.title),d.dom.appendContent(b,x),d.dom.appendContent(b,C),d.dom.appendContent(u,b),d.dom.appendContent(s,u),b.onclick=function(s){var r;s.stopPropagation(),y(null===(r=e[t])||void 0===r?void 0:r.id),f(o.playerId,e[t].id).then((function(e){null!=o&&o.cb&&o.cb(e)})).catch((function(e){null!=o&&o.cb&&o.cb(e)}))},j.onclick=function(e){var s,o,t,r,i=document.getElementsByClassName("series-selector-content")[0].childNodes,n=(i=c(s=[]).call(s,i))[e.target.index].getElementsByClassName("series-section-expanded")[0];null!=n&&null!==(o=n.classList)&&void 0!==o&&o.contains("hidden")?(u.style.backgroundColor="#0000007d",null==n||null===(t=n.classList)||void 0===t||t.remove("hidden")):(null==n||null===(r=n.classList)||void 0===r||r.add("hidden"),u.style.backgroundColor="unset")}},r=0;r<e.length;r++)t(r);return parent}},{key:"showSeasonDetails",value:function(e){this.selectedSeason=e;for(var s=d.dom.$(".series-selector-content",this.el());null!=s&&s.firstChild;)s.removeChild(s.firstChild);var o=h()[e].episodes;this.getSeasonDetailsContainer(o,s);var t=d.dom.$(".series-selector-cross-icon",this.el());for(t.className="series-selector-back-icon";null!=t&&t.firstChild;)t.removeChild(t.firstChild);var r=C(u());t.appendChild(r),d.dom.$(".series-selector-title",this.el()).textContent="Season ".concat(e+1)}}]),n}();export{L as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import e from"@babel/runtime-corejs3/core-js-stable/reflect/construct";import s from"@babel/runtime-corejs3/helpers/classCallCheck";import o from"@babel/runtime-corejs3/helpers/createClass";import t from"@babel/runtime-corejs3/helpers/assertThisInitialized";import r from"@babel/runtime-corejs3/helpers/inherits";import i from"@babel/runtime-corejs3/helpers/possibleConstructorReturn";import a from"@babel/runtime-corejs3/helpers/getPrototypeOf";import"core-js/modules/es.object.to-string.js";import"core-js/modules/es.promise.js";import"core-js/modules/es.symbol.js";import"core-js/modules/es.symbol.description.js";import n from"@babel/runtime-corejs3/core-js-stable/instance/map";import l from"@babel/runtime-corejs3/core-js-stable/instance/slice";import c from"@babel/runtime-corejs3/core-js-stable/instance/concat";import d from"video.js";import{e as m,f as p,B as u}from"./icons-68d3a609.js";import{j,U as v,V as y,b,w as h,G as f}from"./generic-0ffb9040.js";import{e as g,s as C,p as N,j as x,g as E,i as k}from"./skin-531a4095.js";import{a as S}from"./autoNextVideo-6f30518f.js";import"@babel/runtime-corejs3/helpers/asyncToGenerator";import"@babel/runtime-corejs3/regenerator";import"@babel/runtime-corejs3/core-js-stable/promise";import"@babel/runtime-corejs3/core-js-stable/set-timeout";import"@babel/runtime-corejs3/core-js-stable/instance/filter";import"@babel/runtime-corejs3/core-js-stable/object/assign";import"axios";import"core-js/modules/es.promise.finally.js";import"core-js/modules/es.array.iterator.js";import"core-js/modules/es.typed-array.uint8-array.js";import"core-js/modules/es.typed-array.copy-within.js";import"core-js/modules/es.typed-array.every.js";import"core-js/modules/es.typed-array.fill.js";import"core-js/modules/es.typed-array.filter.js";import"core-js/modules/es.typed-array.find.js";import"core-js/modules/es.typed-array.find-index.js";import"core-js/modules/es.typed-array.for-each.js";import"core-js/modules/es.typed-array.includes.js";import"core-js/modules/es.typed-array.index-of.js";import"core-js/modules/es.typed-array.iterator.js";import"core-js/modules/es.typed-array.join.js";import"core-js/modules/es.typed-array.last-index-of.js";import"core-js/modules/es.typed-array.map.js";import"core-js/modules/es.typed-array.reduce.js";import"core-js/modules/es.typed-array.reduce-right.js";import"core-js/modules/es.typed-array.reverse.js";import"core-js/modules/es.typed-array.set.js";import"core-js/modules/es.typed-array.slice.js";import"core-js/modules/es.typed-array.some.js";import"core-js/modules/es.typed-array.sort.js";import"core-js/modules/es.typed-array.subarray.js";import"core-js/modules/es.typed-array.to-locale-string.js";import"core-js/modules/es.typed-array.to-string.js";import"core-js/modules/es.regexp.exec.js";import"core-js/modules/es.string.replace.js";import"@babel/runtime-corejs3/core-js-stable/instance/includes";import"@babel/runtime-corejs3/core-js-stable/instance/index-of";import"./browser-000da9e7.js";import"core-js/modules/es.array.join.js";import"core-js/modules/es.regexp.to-string.js";import"core-js/modules/es.regexp.constructor.js";import"core-js/modules/es.function.name.js";import"@babel/runtime-corejs3/core-js-stable/math/trunc";import"@babel/runtime-corejs3/core-js-stable/instance/find";import"@babel/runtime-corejs3/core-js-stable/date/now";import"@babel/runtime-corejs3/core-js-stable/map";import"js-cookie";import"ua-parser-js";import"@babel/runtime-corejs3/core-js-stable/instance/find-index";import"./captions-0433e46b.js";import"core-js/modules/es.string.match.js";import"core-js/modules/es.number.to-fixed.js";import"@babel/runtime-corejs3/core-js-stable/set-interval";import"./util-332cd53f.js";function L(s){var o=w();return function(){var t,r=a(s);if(o){var n=a(this).constructor;t=e(r,arguments,n)}else t=r.apply(this,arguments);return i(this,t)}}function w(){try{var s=!Boolean.prototype.valueOf.call(e(Boolean,[],(function(){})))}catch(s){}return(w=function(){return!!s})()}var I=d.getComponent("Component"),M=function(e){r(a,I);var i=L(a);function a(e){var o,r,l,c,d,m,p=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(s(this,a),(m=i.call(this,e,p)).playerId=p.playerId,m.seriesData=p.sres,m.videos=null==p||null===(o=p.sres)||void 0===o?void 0:o.seasons,m.currentVideoData=p.res,m.initialiseStructure(),m.loadCSS(),m.selectedSeason=0,m.cb=null==p||null===(r=p.series)||void 0===r?void 0:r.cb,m.autoPlayNext=(null==p||null===(l=p.series)||void 0===l?void 0:l.autoPlayNext)||!1,sessionStorage.getItem("token"),m.watchMap=j(),null!==(c=t(m))&&void 0!==c&&c.autoPlayNext&&null!=p&&null!==(d=p.series)&&void 0!==d&&d.enable){var u,b,h,f,g=null==p||null===(u=p.sres)||void 0===u?void 0:u.seasons,C=[];n(g).call(g,(function(e){C.push.apply(C,e.episodes)})),v(C),y(null===(b=m.options_)||void 0===b||null===(h=b.res)||void 0===h||null===(f=h.video)||void 0===f?void 0:f.id),S({playerId:m.playerId,content:C,cb:m.cb,series:null==p?void 0:p.sres})}return m}return o(a,[{key:"createEl",value:function(){var e=d.dom.createEl("div",{className:"series-selection vjs-control vjs-button"});e.style.position="unset";var s=d.dom.createEl("div",{className:"series-selector-icon",innerHTML:"".concat(m())});return d.dom.appendContent(e,s),e}},{key:"loadCSS",value:function(){import("./series-v2-8a8b6f0c.js").then((function(e){var s=document.createElement("style");s.id="series-v2",s.append("".concat(e.default)),document.head.appendChild(s)}))}},{key:"toggleOpenClose",value:function(e){var s,o=this.el();null!=e&&null!==(s=e.classList)&&void 0!==s&&s.contains("hidden")?(g(),e.classList.remove("hidden"),o.classList.add("open"),C(this.playerId,e)):(e.classList.add("hidden"),o.classList.remove("open"))}},{key:"initialiseStructure",value:function(){var e=this,s=this.el(),o=d.dom.createEl("div",{className:"series-selection-container hidden"});d.dom.$(".series-selector-icon",this.el()).onclick=function(){return e.toggleOpenClose(o)};var t=document.getElementById(this.playerId);if(t){var r=window.getComputedStyle(t,null).getPropertyValue("height"),i=l(r).call(r,0,-2);o.style.height="".concat(i,"px"),d.dom.appendContent(s,o),t.style.overflow="hidden",this.addFunctionality(o)}}},{key:"addFunctionality",value:function(e){var s=this,o=this.el(),t=d.dom.createEl("div",{className:"series-selector-head"}),r=d.dom.createEl("div",{className:"series-selector-cross-icon",innerHTML:"".concat(p())});r.onclick=function(){if("series-selector-cross-icon"===r.className)e.classList.add("hidden"),o.classList.remove("open");else if("series-selector-back-icon"===r.className){var t=d.dom.$(".series-selector-content",s.el());for(d.dom.$(".series-selector-cross-icon",s.el()),r.className="series-selector-cross-icon";null!=t&&t.firstChild;)t.removeChild(t.firstChild);var i=s.createSeasonLister();for(d.dom.appendContent(t,i),d.dom.$(".series-selector-title",s.el()).textContent="Seasons";null!=r&&r.firstChild;)r.removeChild(r.firstChild);var a=N(p());r.appendChild(a)}};var i=d.dom.createEl("div",{className:"series-selector-title",innerHTML:"Seasons"}),a=d.dom.createEl("div",{className:"series-selector-content"}),n=this.createSeasonLister();d.dom.appendContent(a,n),d.dom.appendContent(t,r),d.dom.appendContent(t,i),d.dom.appendContent(e,t),d.dom.appendContent(e,a),x(this.playerId,e)}},{key:"createSeasonLister",value:function(){var e=this;E(this.playerId);for(var s=b(),o=d.dom.createEl("div",{className:"season-container"}),t=function(t){var r,i=document.createElement("label");i.className="season-holder",i.setAttribute("for","season-".concat(t));var a=document.createElement("div");a.className="season - ".concat(t),a.textContent=null===(r=s[t])||void 0===r?void 0:r.title;var n=d.dom.createEl("input",{className:"radio - ".concat(t),id:"season-".concat(t),name:"season-radio"});n.setAttribute("type","radio"),e.selectedSeason==t&&(n.checked=!0),n.onclick=function(s){h.set(t),e.showSeasonDetails(t)},d.dom.appendContent(i,n),d.dom.appendContent(i,a),d.dom.appendContent(o,i)},r=0;r<s.length;r++)t(r);return o}},{key:"getSeasonDetailsContainer",value:function(e,s){var o=this;e=n(e).call(e,(function(e){var s,t,r,i,a,n,l,c,d;return{id:null==e?void 0:e.id,title:null==e?void 0:e.title,description:null==e||null===(s=e.gist)||void 0===s?void 0:s.description,img:(null==e||null===(t=e.gist)||void 0===t||null===(r=t.imageGist)||void 0===r?void 0:r.r16x9)||(null===(i=window)||void 0===i||null===(a=i.app_data)||void 0===a||null===(n=a.appcmsMain)||void 0===n||null===(l=n.images)||void 0===l?void 0:l.placeholderCover),watchedPercentage:(null==o||null===(c=o.watchMap)||void 0===c||null===(d=c.get(null==e?void 0:e.id))||void 0===d?void 0:d.p)||0}}));for(var t=function(t){var r,i,a,n,l,m=d.dom.createEl("div",{className:"series-container"}),p=d.dom.createEl("div",{className:"series-section-data",index:t,innerHTML:"".concat((null===(r=e[t])||void 0===r?void 0:r.title)||"")});d.dom.createEl("div",{className:"series-title",innerHTML:"".concat((null===(i=e[t])||void 0===i?void 0:i.title)||"")}),d.dom.createEl("div",{className:"series-progress-bar",innerHTML:"<div style='width:".concat(e[t].watchedPercentage,"%' class='series-progress-bar-value'></div>")});var u=d.dom.createEl("div",{className:"series-section-image"}),j=(null===(a=e[t])||void 0===a?void 0:a.description)||"";(null===(n=j)||void 0===n?void 0:n.length)>170&&(j=j.substr(0,170)+"..."),d.dom.createEl("div",{className:"series-description",innerHTML:"".concat(j||"")});var v=d.dom.createEl("img",{className:"series-image"});v.src="".concat(k(null===(l=e[t])||void 0===l?void 0:l.img)),v.alt="Episode ".concat(t+1),d.dom.appendContent(u,v),d.dom.appendContent(m,u),d.dom.appendContent(m,p),d.dom.appendContent(s,m),m.onclick=function(s){var r;s.stopPropagation(),y(null===(r=e[t])||void 0===r?void 0:r.id),f(o.playerId,e[t].id).then((function(e){null!=o&&o.cb&&o.cb(e)})).catch((function(e){null!=o&&o.cb&&o.cb(e)}))},p.onclick=function(e){var s,o,t,r,i=document.getElementsByClassName("series-selector-content")[0].childNodes,a=(i=c(s=[]).call(s,i))[e.target.index].getElementsByClassName("series-section-expanded")[0];null!=a&&null!==(o=a.classList)&&void 0!==o&&o.contains("hidden")?(m.style.backgroundColor="#0000007d",null==a||null===(t=a.classList)||void 0===t||t.remove("hidden")):(null==a||null===(r=a.classList)||void 0===r||r.add("hidden"),m.style.backgroundColor="unset")}},r=0;r<e.length;r++)t(r);return parent}},{key:"showSeasonDetails",value:function(e){this.selectedSeason=e;for(var s=d.dom.$(".series-selector-content",this.el());null!=s&&s.firstChild;)s.removeChild(s.firstChild);var o=b()[e].episodes;this.getSeasonDetailsContainer(o,s);var t=d.dom.$(".series-selector-cross-icon",this.el());for(t.className="series-selector-back-icon";null!=t&&t.firstChild;)t.removeChild(t.firstChild);var r=N(u());t.appendChild(r),d.dom.$(".series-selector-title",this.el()).textContent="Season ".concat(e+1)}}]),a}();export{M as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import e from"@babel/runtime-corejs3/core-js-stable/reflect/construct";import t from"@babel/runtime-corejs3/helpers/classCallCheck";import a from"@babel/runtime-corejs3/helpers/createClass";import n from"@babel/runtime-corejs3/helpers/inherits";import o from"@babel/runtime-corejs3/helpers/possibleConstructorReturn";import i from"@babel/runtime-corejs3/helpers/getPrototypeOf";import"core-js/modules/es.object.to-string.js";import"core-js/modules/es.promise.js";import r from"@babel/runtime-corejs3/core-js-stable/map";import l from"@babel/runtime-corejs3/core-js-stable/instance/for-each";import s from"@babel/runtime-corejs3/core-js-stable/instance/map";import c from"@babel/runtime-corejs3/core-js-stable/instance/sort";import d from"@babel/runtime-corejs3/core-js-stable/instance/concat";import u from"video.js";import{g as m,f as p,T as v}from"./icons-68d3a609.js";import{e as h,s as f,f as b,j as g,g as y,d as j,p as C}from"./skin-531a4095.js";import{g as E}from"./renditions-3d54d574.js";import{playSelectedResolution as N}from"./resolution-6614556f.js";import{g as k}from"./localisation-0bf399a1.js";import"@babel/runtime-corejs3/core-js-stable/instance/includes";import"@babel/runtime-corejs3/core-js-stable/set-timeout";import"@babel/runtime-corejs3/core-js-stable/date/now";import"core-js/modules/es.number.to-fixed.js";import"@babel/runtime-corejs3/core-js-stable/parse-int";import"./browser-000da9e7.js";import"core-js/modules/es.regexp.exec.js";import"@babel/runtime-corejs3/core-js-stable/instance/index-of";function x(t){var a=L();return function(){var n,r=i(t);if(a){var l=i(this).constructor;n=e(r,arguments,l)}else n=r.apply(this,arguments);return o(this,n)}}function L(){try{var t=!Boolean.prototype.valueOf.call(e(Boolean,[],(function(){})))}catch(t){}return(L=function(){return!!t})()}var B=u.getComponent("Component"),I=function(e){n(i,B);var o=x(i);function i(e){var a,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t(this,i),(a=o.call(this,e,n)).playerId=n.playerId,a.seriesData=n.sres,a.currentVideoData=n.res,a.initialiseStructure(),a.loadCSS(),a.resolutionBitrateMap,a}return a(i,[{key:"fillResolutionBitrateMap",value:function(e){var t=this;this.resolutionBitrateMap=new r,l(e).call(e,(function(e){var a=(null==e?void 0:e.bandwidth)||(null==e?void 0:e.bitrate);if(a){var n=null==t?void 0:t.resolutionBitrateMap.get(null==e?void 0:e.height);t.resolutionBitrateMap.set(null==e?void 0:e.height,Math.min(a,n||1/0))}}))}},{key:"isEnhancedBitrate",value:function(e){var t,a=(null==e?void 0:e.bandwidth)||(null==e?void 0:e.bitrate),n=null==this||null===(t=this.resolutionBitrateMap)||void 0===t?void 0:t.get(null==e?void 0:e.height);return!(!a||!n)&&a>n}},{key:"createEl",value:function(){var e=u.dom.createEl("div",{className:"settings-selection vjs-control vjs-button"});e.style.position="unset";var t=u.dom.createEl("div",{className:"settings-selector-icon",innerHTML:"".concat(m())});return u.dom.appendContent(e,t),e}},{key:"loadCSS",value:function(){import("./settings-icon-1fbc99bc.js").then((function(e){var t=document.createElement("style");t.id="video-captions",t.append("".concat(e.default)),document.head.appendChild(t)}))}},{key:"initialiseStructure",value:function(){var e=this,t=this.el(),a=u.dom.createEl("div",{className:"selection-container hidden"});u.dom.$(".settings-selector-icon",this.el()).onclick=function(){var n;null!==(n=a.classList)&&void 0!==n&&n.contains("hidden")?(h(),a.classList.remove("hidden"),t.classList.add("open"),a.style.right="0px",f(e.playerId,a)):(a.classList.add("hidden"),t.classList.remove("open"),a.style.right="-350px")};var n=document.getElementById(this.playerId);if(n){var o=window.getComputedStyle(n,null).getPropertyValue("height");a.style.height="".concat(o),u.dom.appendContent(t,a),n.style.overflow="hidden",this.addFunctionality(a),b(this.playerId,a)}}},{key:"addFunctionality",value:function(e){var t=this.el(),a=u.dom.createEl("div",{className:"settings-selector-head"}),n=u.dom.createEl("div",{className:"settings-selector-cross-icon",innerHTML:"".concat(p())});n.onclick=function(){e.classList.add("hidden"),t.classList.remove("open"),e.style.right="-350px"};var o=u.dom.createEl("div",{className:"settings-selector-title",innerHTML:k("settingsTitle")||"Settings"}),i=u.dom.createEl("div",{className:"settings-selector-content"}),r=u.dom.createEl("div",{className:"settings-container"}),l=this.createVideoQualityContainer();u.dom.appendContent(r,l);var s=this.createAudioQualityContainer();u.dom.appendContent(r,s),u.dom.appendContent(a,n),u.dom.appendContent(a,o),u.dom.appendContent(e,a),u.dom.appendContent(e,i),u.dom.appendContent(i,r),g(this.playerId,e)}},{key:"createAudioQualityContainer",value:function(){var e=y(this.playerId),t=null==e?void 0:e.audioTracks().tracks_;if(!((null==t?void 0:t.length)<=1)){var a=u.dom.createEl("div",{className:"audio-language-container"}),n=u.dom.createEl("div",{className:"audio-language-container-title",innerHTML:k("audioLanguageText")||"Audio Language"});u.dom.appendContent(a,n);for(var o=function(e){var n,o=document.createElement("label");o.className="audio-language-holder",o.setAttribute("for","language-radio-".concat(e));var i=document.createElement("div");i.className="audio - ".concat(e),i.textContent=null==t||null===(n=t[e])||void 0===n?void 0:n.label;var r=u.dom.createEl("input",{className:"radio - ".concat(e),id:"language-radio-".concat(e),name:"audio-language-radio"});r.setAttribute("type","radio"),1==t[e].enabled&&(r.checked=!0),r.onchange=function(a){s(t).call(t,(function(e){e.enabled=!1})),t[e].enabled=!0},u.dom.appendContent(o,r),u.dom.appendContent(o,i),u.dom.appendContent(a,o)},i=0;i<t.length;i++)o(i);return a}}},{key:"createVideoQualityContainer",value:function(){var e,t,a=this,n=u.dom.createEl("div",{className:"video-quality-container"}),o=u.dom.createEl("div",{className:"video-quality-container-title",innerHTML:k("videoQualityText")||"Video Quality"});u.dom.appendContent(n,o);var i=c(e=d(t=[]).call(t,E(this.playerId),[{height:"Auto"}])).call(e,(function(e,t){return(null==t?void 0:t.qualityIndex)-(null==e?void 0:e.qualityIndex)}));this.fillResolutionBitrateMap(i),N(this.playerId,"raw",!0);for(var r=function(e){var t,o,r,l=document.createElement("label"),s=document.createElement("div"),c=document.createElement("div");c.className="video-quality-bitrate-label",s.className="video-quality-holder",l.className="video-quality-label-container",l.setAttribute("for","quality".concat(e));var d=document.createElement("div");d.className="video-quality - ".concat(e);var m=(null==i||null===(t=i[e])||void 0===t?void 0:t.height)+"".concat("Auto"==(null==i||null===(o=i[e])||void 0===o?void 0:o.height)?"":"p"),p=document.createTextNode(m),h="".concat(a.isEnhancedBitrate(i[e])?k("enhancedBitrateLabel")||"Enhanced Bitrate":""),f=document.createTextNode(h);if(c.appendChild(f),d.appendChild(p),(null==i||null===(r=i[e])||void 0===r?void 0:r.height)>=720)for(var b=j("<span class='hd-rendition'> HD </span>");null!=b&&b.firstChild;)d.appendChild(b.firstChild);var g=u.dom.createEl("input",{className:"radio - ".concat(e," radio-btn"),id:"quality".concat(e),name:"quality-radio",rendata:"".concat(i[e]),checked:"".concat(e==i.length-1)});g.setAttribute("type","radio"),g.onchange=function(t){var n=i[e];"true"=="".concat("Auto"==i[e].height)?N(a.playerId,n,!0):N(a.playerId,n)};var y=document.createElement("span");y.className=h?"check-mark center":"check-mark";var E=C(v());y.appendChild(E),s.appendChild(g),s.appendChild(y),s.appendChild(d),u.dom.appendContent(l,s),l.appendChild(c),u.dom.appendContent(n,l)},l=0;l<i.length;l++)r(l);return n}}]),i}();export{I as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"core-js/modules/es.object.to-string.js";import"core-js/modules/es.promise.js";import{a as e,b as s,c as r,d as o,e as t}from"./features-ad2f7efd.js";import{i}from"./keyboardShortcuts-e7e8e090.js";import{S as a,M as l,a as m,b as n,R as c,N as d}from"./icons-68d3a609.js";import{g as j,b as p}from"./skin-531a4095.js";import{d as u}from"./generic-0ffb9040.js";import"@babel/runtime-corejs3/core-js-stable/reflect/construct";import"@babel/runtime-corejs3/helpers/classCallCheck";import"@babel/runtime-corejs3/helpers/createClass";import"@babel/runtime-corejs3/helpers/inherits";import"@babel/runtime-corejs3/helpers/possibleConstructorReturn";import"@babel/runtime-corejs3/helpers/getPrototypeOf";import"@babel/runtime-corejs3/core-js-stable/object/assign";import"video.js";import"./renditions-3d54d574.js";import"@babel/runtime-corejs3/core-js-stable/instance/sort";import"./localisation-0bf399a1.js";import"@babel/runtime-corejs3/core-js-stable/instance/includes";import"@babel/runtime-corejs3/core-js-stable/instance/concat";import"@babel/runtime-corejs3/core-js-stable/instance/map";import"@babel/runtime-corejs3/core-js-stable/set-timeout";import"@babel/runtime-corejs3/core-js-stable/date/now";import"@babel/runtime-corejs3/helpers/asyncToGenerator";import"core-js/modules/es.symbol.js";import"core-js/modules/es.symbol.description.js";import"@babel/runtime-corejs3/regenerator";import"@babel/runtime-corejs3/core-js-stable/promise";import"@babel/runtime-corejs3/core-js-stable/instance/filter";import"axios";import"core-js/modules/es.promise.finally.js";import"core-js/modules/es.array.iterator.js";import"core-js/modules/es.typed-array.uint8-array.js";import"core-js/modules/es.typed-array.copy-within.js";import"core-js/modules/es.typed-array.every.js";import"core-js/modules/es.typed-array.fill.js";import"core-js/modules/es.typed-array.filter.js";import"core-js/modules/es.typed-array.find.js";import"core-js/modules/es.typed-array.find-index.js";import"core-js/modules/es.typed-array.for-each.js";import"core-js/modules/es.typed-array.includes.js";import"core-js/modules/es.typed-array.index-of.js";import"core-js/modules/es.typed-array.iterator.js";import"core-js/modules/es.typed-array.join.js";import"core-js/modules/es.typed-array.last-index-of.js";import"core-js/modules/es.typed-array.map.js";import"core-js/modules/es.typed-array.reduce.js";import"core-js/modules/es.typed-array.reduce-right.js";import"core-js/modules/es.typed-array.reverse.js";import"core-js/modules/es.typed-array.set.js";import"core-js/modules/es.typed-array.slice.js";import"core-js/modules/es.typed-array.some.js";import"core-js/modules/es.typed-array.sort.js";import"core-js/modules/es.typed-array.subarray.js";import"core-js/modules/es.typed-array.to-locale-string.js";import"core-js/modules/es.typed-array.to-string.js";import"core-js/modules/es.regexp.exec.js";import"core-js/modules/es.string.replace.js";import"@babel/runtime-corejs3/core-js-stable/instance/index-of";import"@babel/runtime-corejs3/core-js-stable/instance/slice";import"./browser-000da9e7.js";import"core-js/modules/es.array.join.js";import"core-js/modules/es.regexp.to-string.js";import"core-js/modules/es.regexp.constructor.js";import"core-js/modules/es.function.name.js";import"@babel/runtime-corejs3/core-js-stable/math/trunc";import"@babel/runtime-corejs3/core-js-stable/instance/find";import"@babel/runtime-corejs3/core-js-stable/map";import"js-cookie";import"ua-parser-js";import"@babel/runtime-corejs3/core-js-stable/instance/find-index";import"./captions-0433e46b.js";import"core-js/modules/es.string.match.js";import"core-js/modules/es.number.to-fixed.js";import"@babel/runtime-corejs3/core-js-stable/set-interval";function b(b,y){j(b).addClass("skin_default"),i(b,y),import("./skin-71be210e.js").then((function(e){var s=document.createElement("style");s.id="def_skin",s.append("".concat(e.default)),document.head.appendChild(s)})),function(e,s){0==s.liveVideo&&0==s.liveui&&o(e,"default",n());(0==s.liveVideo&&0==s.liveui||1==s.liveui)&&t(e,"default",c())}(b,y),function(o,t){var i=j(o),l=(null==t?void 0:t.sres)||null;i.on("loadeddata",(function(){e(o,"default",a()),l&&import("./nextEpisodeButton-46490140.js").then((function(e){e.initaliseFunctionality(t.sres.seasons,u())}))})),i.one("loadedmetadata",(function(){var e;l&&(s(o,null==t||null===(e=t.sres)||void 0===e?void 0:e.seasons,t),r(t.sres,t.res,o))}))}(b,y),function(e,s){var r,o,t,i,a=j(e),n=document.getElementsByClassName("vjs-current-time")[0],c=document.getElementsByClassName("vjs-duration")[0],u=document.getElementsByClassName("vjs-time-divider")[0];s.liveVideo&&(n&&(n.style.display="none"),c&&(c.style.display="none"),u&&(u.style.display="none"));null===(r=a.controlBar.getChild("FullscreenToggle"))||void 0===r||null===(o=r.el())||void 0===o||o.appendChild(p(l(window.controlsColor))),null===(t=a.controlBar.getChild("FullscreenToggle"))||void 0===t||null===(i=t.el())||void 0===i||i.appendChild(p(m(window.controlsColor)));var b=a.controlBar.getChild("SubsCapsButton").el();document.getElementById(e).getElementsByClassName("vjs-subs-caps-button")[1].appendChild(p(d()));var y=document.createElement("div");y.classList.add("caption-header"),b.querySelector(".vjs-menu-content").insertBefore(y,b.querySelector(".vjs-menu-item"))}(b,y)}export{b as initialiseSkin};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import e from"@babel/runtime-corejs3/core-js-stable/instance/includes";import n from"@babel/runtime-corejs3/core-js-stable/instance/concat";import t from"@babel/runtime-corejs3/core-js-stable/instance/map";import i from"@babel/runtime-corejs3/core-js-stable/set-timeout";import o from"@babel/runtime-corejs3/core-js-stable/date/now";import l from"video.js";var r=function(e){return!!l.getPlayer("".concat(e))&&l.getPlayer("".concat(e))},a=["live","carousel","V2","defaultV2","multiplayer","minimalist","VL_ONE"],c=function(n){return!e(a).call(a,n)},u=function(e){var n=(new DOMParser).parseFromString(e,"text/html");return null==n?void 0:n.querySelector("body")},d=function(e){var n=(new DOMParser).parseFromString(e,"image/svg+xml");return null==n?void 0:n.querySelector("svg")},s=function(e){return d(e)},m=function(e,i){var o;if(i){var l,a,c=r(i);if(c&&"function"==typeof c.el&&null!=c&&null!==(l=c.el())&&void 0!==l&&null!==(a=l.classList)&&void 0!==a&&a.contains("skin_defaultv2"))return void v(e)}var u=n(o=[]).call(o,document.querySelectorAll("[video-idx]"));console.log(u),t(u).call(u,(function(n){var t=n.parentNode,i=n.getAttribute("video-idx");t.style.background=i==e?"gray":"none"}))},v=function(e){var i,o=n(i=[]).call(i,document.querySelectorAll("[video-idx]"));t(o).call(o,(function(n){var t=n.getAttribute("video-idx");n.style.border=t==e?"2px solid white":"none"}))},f=function(){var e,i=n(e=[]).call(e,document.getElementsByClassName("vjs-control vjs-button open"));null==i||t(i).call(i,(function(e){var n,t;null==e||null===(n=e.childNodes)||void 0===n||null===(t=n[0])||void 0===t||t.click()}))},w=function(n){return n&&!e(n).call(n,"?impolicy")?n+"?impolicy=resize&w=1920&h=1080":null},p="",y=function(e,n){var t,o=function(){return function(e,n){var t=window.matchMedia("(orientation: portrait)").matches?"potrait":"landscape",i=document.getElementById(e);if(i&&p!==t){var o=window.getComputedStyle(i,null).getPropertyValue("height");n&&(n.style.height="".concat(o)),p=t}}(e,n)};window._orientationChangeHandler=o;window.addEventListener("resize",(function(){clearTimeout(t),t=i((function(){o()}),100)}))},b=function(e,n){var t,o=r(e),l=r(e).el(),a=new ResizeObserver((function(){var o;null!==(o=n.classList)&&void 0!==o&&o.contains("hidden")||(t&&clearTimeout(t),t=i((function(){g(e,n)}),300))}));a.observe(l),o.on("dispose",(function(){a.disconnect()})),o.on("fullscreenchange",(function(){i((function(){g(e,n)}),50)}))},g=function(e,n){var t;if(n){var i=document.getElementById(e),o=null===(t=window.getComputedStyle(i,null))||void 0===t?void 0:t.height;n.style.height!==o&&(n.style.height="".concat(o))}},h=function(){window._orientationChangeHandler&&(window.removeEventListener("resize",window._orientationChangeHandler),delete window._orientationChangeHandler),window._multiplayer_dbClickHandler&&(window.removeEventListener("dblclick",window._multiplayer_dbClickHandler),delete window._multiplayer_dbClickHandler),window._multiplayer_dbTapHandler&&(window.removeEventListener("touchend",window._multiplayer_dbTapHandler),delete window._multiplayer_dbTapHandler)};function _(e,n){var t=null,l=null;return function(){for(var r=this,a=arguments.length,c=new Array(a),u=0;u<a;u++)c[u]=arguments[u];l?(clearTimeout(t),t=i((function(){o()-l>=n&&(e.apply(r,c),l=o())}),n-(o()-l))):(e.apply(this,c),l=o())}}export{c as a,s as b,h as c,u as d,f as e,y as f,r as g,m as h,w as i,b as j,v as k,d as p,g as s,_ as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{h as e,o as r,p as o,q as t}from"./features-ad2f7efd.js";import{g as s,t as n,p as a}from"./skin-531a4095.js";import{a as i,i as l,b as c}from"./index-42df0bbb.js";import{i as d}from"./browser-000da9e7.js";import"videojs-contrib-quality-menu";import m from"video.js";import{k as u,i as p}from"./keyboardShortcuts-e7e8e090.js";import{l as j,S as b,e as v}from"./generic-0ffb9040.js";import"core-js/modules/es.function.name.js";import f from"@babel/runtime-corejs3/core-js-stable/instance/slice";import y from"@babel/runtime-corejs3/core-js-stable/array/from";import h from"@babel/runtime-corejs3/core-js-stable/symbol";import g from"@babel/runtime-corejs3/core-js/get-iterator-method";import k from"@babel/runtime-corejs3/helpers/slicedToArray";import S from"@babel/runtime-corejs3/helpers/asyncToGenerator";import x from"@babel/runtime-corejs3/regenerator";import w from"@babel/runtime-corejs3/core-js-stable/json/stringify";import C from"@babel/runtime-corejs3/core-js-stable/object/assign";import I from"@babel/runtime-corejs3/core-js-stable/url";import T from"@babel/runtime-corejs3/core-js-stable/instance/includes";import M from"@babel/runtime-corejs3/core-js-stable/object/entries";import B from"@babel/runtime-corejs3/core-js-stable/instance/starts-with";import E from"@babel/runtime-corejs3/core-js-stable/instance/map";import A from"@babel/runtime-corejs3/core-js-stable/array/is-array";import N from"@babel/runtime-corejs3/core-js-stable/instance/for-each";import U from"@babel/runtime-corejs3/core-js-stable/map";import R from"@babel/runtime-corejs3/core-js-stable/instance/concat";import O from"@babel/runtime-corejs3/core-js-stable/instance/filter";import P from"@babel/runtime-corejs3/core-js-stable/instance/pad-start";import"core-js/modules/es.regexp.exec.js";import"core-js/modules/es.string.replace.js";import"core-js/modules/es.object.to-string.js";import"core-js/modules/es.promise.js";import"core-js/modules/es.regexp.to-string.js";import{I as D}from"./icons-68d3a609.js";import"@babel/runtime-corejs3/core-js-stable/reflect/construct";import"@babel/runtime-corejs3/helpers/classCallCheck";import"@babel/runtime-corejs3/helpers/createClass";import"@babel/runtime-corejs3/helpers/inherits";import"@babel/runtime-corejs3/helpers/possibleConstructorReturn";import"@babel/runtime-corejs3/helpers/getPrototypeOf";import"./renditions-3d54d574.js";import"@babel/runtime-corejs3/core-js-stable/instance/sort";import"./localisation-0bf399a1.js";import"@babel/runtime-corejs3/core-js-stable/set-timeout";import"@babel/runtime-corejs3/core-js-stable/date/now";import"./autoNextVideo-6f30518f.js";import"./util-332cd53f.js";import"@babel/runtime-corejs3/helpers/typeof";import"core-js/modules/es.string.split.js";import"@babel/runtime-corejs3/core-js-stable/parse-float";import"@babel/runtime-corejs3/core-js-stable/instance/index-of";import"@babel/runtime-corejs3/core-js-stable/instance/last-index-of";import"@babel/runtime-corejs3/helpers/defineProperty";import"core-js/modules/es.string.match.js";import"core-js/modules/es.array.iterator.js";import"core-js/modules/es.string.iterator.js";import"core-js/modules/web.dom-collections.iterator.js";import"core-js/modules/es.array.join.js";import"@babel/runtime-corejs3/core-js-stable/instance/trim";import"@babel/runtime-corejs3/core-js-stable/parse-int";import"@babel/runtime-corejs3/core-js-stable/promise";import"@babel/runtime-corejs3/core-js-stable/instance/flat";import"core-js/modules/es.symbol.js";import"core-js/modules/es.symbol.description.js";import"axios";import"core-js/modules/es.promise.finally.js";import"core-js/modules/es.typed-array.uint8-array.js";import"core-js/modules/es.typed-array.copy-within.js";import"core-js/modules/es.typed-array.every.js";import"core-js/modules/es.typed-array.fill.js";import"core-js/modules/es.typed-array.filter.js";import"core-js/modules/es.typed-array.find.js";import"core-js/modules/es.typed-array.find-index.js";import"core-js/modules/es.typed-array.for-each.js";import"core-js/modules/es.typed-array.includes.js";import"core-js/modules/es.typed-array.index-of.js";import"core-js/modules/es.typed-array.iterator.js";import"core-js/modules/es.typed-array.join.js";import"core-js/modules/es.typed-array.last-index-of.js";import"core-js/modules/es.typed-array.map.js";import"core-js/modules/es.typed-array.reduce.js";import"core-js/modules/es.typed-array.reduce-right.js";import"core-js/modules/es.typed-array.reverse.js";import"core-js/modules/es.typed-array.set.js";import"core-js/modules/es.typed-array.slice.js";import"core-js/modules/es.typed-array.some.js";import"core-js/modules/es.typed-array.sort.js";import"core-js/modules/es.typed-array.subarray.js";import"core-js/modules/es.typed-array.to-locale-string.js";import"core-js/modules/es.typed-array.to-string.js";import"core-js/modules/es.regexp.constructor.js";import"@babel/runtime-corejs3/core-js-stable/math/trunc";import"@babel/runtime-corejs3/core-js-stable/instance/find";import"js-cookie";import"ua-parser-js";import"@babel/runtime-corejs3/core-js-stable/instance/find-index";import"./captions-0433e46b.js";import"core-js/modules/es.number.to-fixed.js";import"@babel/runtime-corejs3/core-js-stable/set-interval";function V(r,o){var t=s(r);t&&(t.on("loadeddata",(function(){var e,t,n,a,c;!function(e){var r=s(e);r&&(null==r||r.qualityMenu,r.qualityMenu({useResolutionLabels:!0}))}(r),!(null!=o&&null!==(e=o.series)&&void 0!==e&&e.enable||null!==(t=window)&&void 0!==t&&null!==(n=t.app_data)&&void 0!==n&&null!==(a=n.appcmsMain)&&void 0!==a&&null!==(c=a.features)&&void 0!==c&&c.auto_play)||null!=o&&o.liveVideo||i(r,o),null!=o&&o.liveVideo||d()||l(r)})),t.one("play",(function(){var o,t,s,n;null!==(o=window)&&void 0!==o&&null!==(t=o.customData)&&void 0!==t&&t.iframeOverlayUrl&&e(r,null===(s=window)||void 0===s||null===(n=s.customData)||void 0===n?void 0:n.iframeOverlayUrl)})))}function _(e,r){var o=void 0!==h&&g(e)||e["@@iterator"];if(!o){if(A(e)||(o=function(e,r){if(e){var o;if("string"==typeof e)return q(e,r);var t=f(o={}.toString.call(e)).call(o,8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?y(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?q(e,r):void 0}}(e))||r&&e&&"number"==typeof e.length){o&&(e=o);var t=0,s=function(){};return{s:s,n:function(){return t>=e.length?{done:!0}:{done:!1,value:e[t++]}},e:function(e){throw e},f:s}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var n,a=!0,i=!1;return{s:function(){o=o.call(e)},n:function(){var e=o.next();return a=e.done,e},e:function(e){i=!0,n=e},f:function(){try{a||null==o.return||o.return()}finally{if(i)throw n}}}}function q(e,r){(null==r||r>e.length)&&(r=e.length);for(var o=0,t=Array(r);o<r;o++)t[o]=e[o];return t}function L(){return L=S(x.mark((function e(r,o){var t,i,l,c,d,m,p,v,f,y,h,g,V,q,L,Q,$,G,F;return x.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return F=function(e,o,t){var n=s(r);Math.floor(n.currentTime());var a,i,l,c,d,m,u,p,j,b,v,f,y,h,g=_(o);try{for(g.s();!(a=g.n()).done;)i=void 0,l=void 0,c=void 0,d=void 0,m=void 0,u=void 0,p=void 0,j=void 0,b=void 0,v=void 0,f=void 0,y=void 0,h=void 0,m=a.value,u=m.eventType,p=m.beaconUrls,j=m.startTimeInSeconds,b=m.startTime,v=m.durationInSeconds,f=Math.round(j),y=p[0],h=(null===(i=window)||void 0===i||null===(l=i.customData)||void 0===l||null===(c=l.ads)||void 0===c?void 0:c.adEventHandler)||null,f!=Math.round(n.currentTime())||G.has(b)||(G.set(b,!0),"function"==typeof h&&h({adsData:{eventType:u,startTimeInSeconds:j,startTime:b,durationInSeconds:v,ad:null==e||null===(d=e.ads)||void 0===d?void 0:d[t],adIndex:t}}),console.log("%c SSAI BEACON ","background: #e25822; color: #fff",u,"Fired:".concat(Math.round(n.currentTime())),"AD_POD:",e),fetch(y))}catch(e){g.e(e)}finally{g.f()}},$=function(e){var r,o,t=Math.floor(e/60),s=Math.floor(e%60);return R(r="".concat(t,":")).call(r,P(o=s.toString()).call(o,2,"0"))},L=function(e){var r={},o=e.split("?")[1];if(!o)return r;var t,s=_(o.split("&"));try{for(s.s();!(t=s.n()).done;){var n=t.value.split("="),a=k(n,2),i=a[0],l=a[1];r[decodeURIComponent(i)]=decodeURIComponent(l||"")}}catch(e){s.e(e)}finally{s.f()}for(var c={},d=0,m=M(r);d<m.length;d++){var u=k(m[d],2),p=u[0],j=u[1];if(B(p).call(p,"ads."))c[p.replace(/^ads\./,"")]=j;else c[p]=j}return c},t=s(r),i=o.replace("dash","session").replace("master","session"),i=b(i,r,{}),l=L(i),i=i.split("?")[0],e.next=10,fetch(i,{method:"POST",headers:{"Content-Type":"application/json"},body:w({adsParams:C({},l)})});case 10:return c=e.sent,e.next=13,c.json();case 13:d=e.sent,m="https://"+new I(i).hostname,p=d.trackingUrl,v=d.manifestUrl,f=m+p,y=m+v,console.log("%c TRACKING URL","background: #bdf369; color: #000",f),null!=o&&T(o).call(o,".mpd")?(g=(null==t||null===(h=t.currentSource())||void 0===h?void 0:h.keySystemOptions)||null,j(r,{src:y,type:"application/x-mpegURL",keySystemOptions:g})):(q=(null==t||null===(V=t.currentSource())||void 0===V?void 0:V.keySystems)||null,j(r,{src:y,type:"application/x-mpegURL",keySystems:q})),t.one("loadeddata",(function(){Q(f)})),Q=function(){var e=S(x.mark((function e(o){var t,i,l,c,d,m,p,j,b,v,f,y,h,g,k,S,w;return x.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch(o);case 2:return i=e.sent,e.next=5,i.json();case 5:l=e.sent,c=l.avails,d=[],m=s(r),p=m.controlBar.progressControl,j=p.seekBar.el(),E(c).call(c,(function(e){var r;A(null==e?void 0:e.ads)&&(null==e||null===(r=e.ads)||void 0===r?void 0:r.length)>0&&d.push({ads:null==e?void 0:e.ads,durationInSeconds:null==e?void 0:e.durationInSeconds,startTimeInSeconds:null==e?void 0:e.startTimeInSeconds,markerPositionInSeconds:Math.floor(null==e?void 0:e.startTimeInSeconds)})})),N(d).call(d,(function(e){var r=e.markerPositionInSeconds,o=m.duration();if(!(r>o)){var t=r/o*100,s=document.createElement("div");s.className="vjs-seekbar-marker",s.style.left="".concat(t,"%"),s.style.position="absolute",s.style.top="0",s.style.bottom="0",s.style.width="2px",s.style.backgroundColor="#fecc09",s.style.left="".concat(t,"%"),s.style.pointerEvents="none",j.appendChild(s)}})),b=new U,v=-1,m.on("timeupdate",n((function(){var e=Math.floor(m.currentTime());if(e!==v){v=e;for(var r=!1,o=function(){var o=s[t],n=o.startTimeInSeconds,a=o.durationInSeconds,i=o.ads,l=Math.floor(n+a);if(e>=n&&e<=l){var c,d;r=!0,b.set(n,!0),u.disable(),p.el().style.visibility="hidden";for(var m=e-n,j=0,v=0,y=0;y<i.length;y++){var h,g=null==i||null===(h=i[y])||void 0===h?void 0:h.durationInSeconds;if(m<j+g){v=y;break}j+=g}var k=i[v],x=m-j,w=Math.max(0,k.durationInSeconds-x),C=Math.round(w);f.style.display="block",S.textContent=R(c=R(d="".concat(v+1," of ")).call(d,i.length," • ")).call(c,$(C));var I=[];return N(i).call(i,(function(e){var r,o=O(r=e.trackingEvents).call(r,(function(e){var r;return T(r=["breakStart","breakEnd","firstQuartile","secondQuartile","thirdQuartile","fourthQuartile","midpoint","impression"]).call(r,e.eventType)}));I.push.apply(I,o)})),F(o,I,v),"break"}},t=0,s=d;t<s.length;t++){if("break"===o())break}r||(f.style.display="none",p.el().style.visibility="visible",u.enable())}}),1e3)),m.on("seeked",(function(){for(var e=null,r=0,o=d;r<o.length;r++){var t=o[r],s=null==m?void 0:m.currentTime(),n=t.startTimeInSeconds,a=t.durationInSeconds;s>Math.floor(n+a)&&!b.has(n)&&(e=n,b.set(n,!0))}e&&(m.currentTime(e),console.log("seeking back to",e),e=null)})),(f=document.createElement("div")).className="ssai-ad-container",(y=document.createElement("div")).className="sponsored-adbox",(h=document.createElement("div")).className="sponsored-text",h.textContent="Sponsored Ad",(g=document.createElement("div")).className="ad-info-icon",k=a(D()),g.appendChild(k),y.append(h),y.append(g),(S=document.createElement("div")).className="ad-counter",document.createElement("div").className="ad-timer",(w=document.createElement("div")).className="ad-visit-advertiser",w.textContent="Visit Advertiser",(null===(t=document.getElementsByClassName("tvProviderImage"))||void 0===t?void 0:t[0])&&(w.style.right="8.6rem"),f.append(y),f.append(S),f.append(w),m.el().appendChild(f);case 43:case"end":return e.stop()}}),e)})));return function(r){return e.apply(this,arguments)}}(),G=new U;case 24:case"end":return e.stop()}}),e)}))),L.apply(this,arguments)}function Q(e,n){s(e).addClass("skin_vlone"),V(e,n),function(e,s){var n,a,i,l,d,m,u=null==s||null===(n=s.res)||void 0===n||null===(a=n.video)||void 0===a?void 0:a.isSSAIEnabled,j=v(null==s?void 0:s.res,e)||{},b=j.src;(null==s||null===(i=s.relatedVideos)||void 0===i||null===(l=i.content)||void 0===l?void 0:l.length)>0&&r(e,null==s?void 0:s.relatedVideos);null!=s&&null!==(d=s.series)&&void 0!==d&&d.enable&&o(e,s);(null==s||null===(m=s.streams)||void 0===m?void 0:m.length)>1&&t(e,null==s?void 0:s.streams);c(e,s),p(e,s),u&&function(e,r){L.apply(this,arguments)}(e,b)}(e,n),$(e,n)}var $=function(e,r){var o,t,n,a,i,l,c,d,u,p,j,b,v=s(e),f=(null==r?void 0:r.theme)||{},y=m.dom.$(".vjs-play-progress"),h=m.dom.$(".video-js .vjs-big-play-button .vjs-icon-placeholder");h&&(h.style.color="".concat(null===(o=window)||void 0===o||null===(t=o.app_data)||void 0===t||null===(n=t.appcmsMain)||void 0===n||null===(a=n.brand)||void 0===a||null===(i=a.cta)||void 0===i||null===(l=i.primary)||void 0===l?void 0:l.backgroundColor)),y&&(y.style.background="".concat(null===(c=window)||void 0===c||null===(d=c.app_data)||void 0===d||null===(u=d.appcmsMain)||void 0===u||null===(p=u.brand)||void 0===p||null===(j=p.cta)||void 0===j||null===(b=j.primary)||void 0===b?void 0:b.backgroundColor));var g=v.getChild("BigPlayButton")||null;(null==f?void 0:f.progressBarColor)&&y&&(y.style.background=f.progressBarColor),(null==f?void 0:f.playButtonBackgroundColor)&&g&&(g.el().style.background=f.playButtonBackgroundColor),(null==f?void 0:f.playButtonColor)&&h&&(h.style.color=f.playButtonColor),(null==f?void 0:f.playButtonType)&&("square"==(null==f?void 0:f.playButtonType)?g.el().style.borderRadius=".3em":g.el().style.borderRadius="1.3em")};export{Q as initialiseSkin};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"core-js/modules/es.object.to-string.js";import"core-js/modules/es.promise.js";import{f as e,g as s,h as r,d as o,e as t,i,j as l,k as a,l as n,m}from"./features-ad2f7efd.js";import{M as c,a as d,c as p,d as u}from"./icons-68d3a609.js";import{g as j,b}from"./skin-531a4095.js";import y from"@babel/runtime-corejs3/core-js-stable/instance/includes";import{g as v}from"./renditions-3d54d574.js";import{g as f}from"./captions-0433e46b.js";import{a as h,i as g,b as x}from"./index-42df0bbb.js";import{i as C,d as w}from"./browser-000da9e7.js";import"@babel/runtime-corejs3/core-js-stable/instance/filter";import"@babel/runtime-corejs3/core-js-stable/instance/map";import"@babel/runtime-corejs3/core-js-stable/reflect/construct";import"@babel/runtime-corejs3/helpers/classCallCheck";import"@babel/runtime-corejs3/helpers/createClass";import"@babel/runtime-corejs3/helpers/inherits";import"@babel/runtime-corejs3/helpers/possibleConstructorReturn";import"@babel/runtime-corejs3/helpers/getPrototypeOf";import"@babel/runtime-corejs3/core-js-stable/object/assign";import"video.js";import"./generic-0ffb9040.js";import"@babel/runtime-corejs3/helpers/asyncToGenerator";import"core-js/modules/es.symbol.js";import"core-js/modules/es.symbol.description.js";import"@babel/runtime-corejs3/regenerator";import"@babel/runtime-corejs3/core-js-stable/promise";import"@babel/runtime-corejs3/core-js-stable/set-timeout";import"@babel/runtime-corejs3/core-js-stable/instance/concat";import"axios";import"core-js/modules/es.promise.finally.js";import"core-js/modules/es.array.iterator.js";import"core-js/modules/es.typed-array.uint8-array.js";import"core-js/modules/es.typed-array.copy-within.js";import"core-js/modules/es.typed-array.every.js";import"core-js/modules/es.typed-array.fill.js";import"core-js/modules/es.typed-array.filter.js";import"core-js/modules/es.typed-array.find.js";import"core-js/modules/es.typed-array.find-index.js";import"core-js/modules/es.typed-array.for-each.js";import"core-js/modules/es.typed-array.includes.js";import"core-js/modules/es.typed-array.index-of.js";import"core-js/modules/es.typed-array.iterator.js";import"core-js/modules/es.typed-array.join.js";import"core-js/modules/es.typed-array.last-index-of.js";import"core-js/modules/es.typed-array.map.js";import"core-js/modules/es.typed-array.reduce.js";import"core-js/modules/es.typed-array.reduce-right.js";import"core-js/modules/es.typed-array.reverse.js";import"core-js/modules/es.typed-array.set.js";import"core-js/modules/es.typed-array.slice.js";import"core-js/modules/es.typed-array.some.js";import"core-js/modules/es.typed-array.sort.js";import"core-js/modules/es.typed-array.subarray.js";import"core-js/modules/es.typed-array.to-locale-string.js";import"core-js/modules/es.typed-array.to-string.js";import"core-js/modules/es.regexp.exec.js";import"core-js/modules/es.string.replace.js";import"@babel/runtime-corejs3/core-js-stable/instance/index-of";import"@babel/runtime-corejs3/core-js-stable/instance/slice";import"core-js/modules/es.array.join.js";import"core-js/modules/es.regexp.to-string.js";import"core-js/modules/es.regexp.constructor.js";import"core-js/modules/es.function.name.js";import"@babel/runtime-corejs3/core-js-stable/math/trunc";import"@babel/runtime-corejs3/core-js-stable/instance/find";import"@babel/runtime-corejs3/core-js-stable/date/now";import"@babel/runtime-corejs3/core-js-stable/map";import"js-cookie";import"ua-parser-js";import"@babel/runtime-corejs3/core-js-stable/instance/find-index";import"core-js/modules/es.string.match.js";import"core-js/modules/es.number.to-fixed.js";import"@babel/runtime-corejs3/core-js-stable/set-interval";import"./localisation-0bf399a1.js";import"@babel/runtime-corejs3/core-js-stable/instance/sort";import"./autoNextVideo-6f30518f.js";import"./util-332cd53f.js";import"@babel/runtime-corejs3/helpers/typeof";import"core-js/modules/es.string.split.js";import"@babel/runtime-corejs3/core-js-stable/parse-float";import"@babel/runtime-corejs3/core-js-stable/instance/last-index-of";import"@babel/runtime-corejs3/helpers/defineProperty";import"@babel/runtime-corejs3/helpers/slicedToArray";import"core-js/modules/es.string.iterator.js";import"core-js/modules/web.dom-collections.iterator.js";import"@babel/runtime-corejs3/core-js-stable/instance/for-each";import"@babel/runtime-corejs3/core-js-stable/instance/trim";import"@babel/runtime-corejs3/core-js-stable/instance/starts-with";import"@babel/runtime-corejs3/core-js-stable/parse-int";import"@babel/runtime-corejs3/core-js-stable/instance/pad-start";import"@babel/runtime-corejs3/core-js-stable/instance/flat";function V(o,t){var i=j(o);i&&(i.on("loadeddata",(function(){var r,l,a,n,m,c,d;(null===(r=v(o))||void 0===r?void 0:r.length)>0&&e(o,t),(null===(l=f(o))||void 0===l?void 0:l.length)>0&&s(o,t),!(null!=t&&null!==(a=t.series)&&void 0!==a&&a.enable||null!==(n=window)&&void 0!==n&&null!==(m=n.app_data)&&void 0!==m&&null!==(c=m.appcmsMain)&&void 0!==c&&null!==(d=c.features)&&void 0!==d&&d.auto_play)||null!=t&&t.liveVideo||h(o,t),function(e,s){var r,o,t=Math.floor(e/60),i=null===(r=document.getElementsByClassName("vjs-progress-holder vjs-slider vjs-slider-horizontal"))||void 0===r?void 0:r[0];i&&(i.style.marginRight=t>60?"56px":"41px");var l=document.getElementsByClassName("vjs-live-control")[0],a=document.getElementsByClassName("vjs-time-control");s&&y(o=l.classList.value).call(o,"vjs-hidden")&&(a[0].style.display="block",i&&(i.style.marginRight="56px"))}(i.duration(),(null==t?void 0:t.liveVideo)||!1),null!=t&&t.liveVideo||C()||g(o)})),i.one("play",(function(){var e,s,t,i;null!==(e=window)&&void 0!==e&&null!==(s=e.customData)&&void 0!==s&&s.iframeOverlayUrl&&r(o,null===(t=window)||void 0===t||null===(i=t.customData)||void 0===i?void 0:i.iframeOverlayUrl)})))}function k(e,s){j(e).addClass("skin_defaultv2"),function(){"Chrome"==w()&&import("./chromett-a3cbb2e1.js").then((function(e){var s=document.createElement("style");s.id="chromett",s.append("".concat(e.default)),document.head.appendChild(s)}));import("./skin-e4b35c14.js").then((function(e){var s=document.createElement("style");s.id="default_v2",s.append("".concat(e.default)),document.head.appendChild(s)}))}(),V(e,s),function(e,s){var r,o,t,i,l,a,n=j(e);null==n||null===(r=n.controlBar)||void 0===r||null===(o=r.getChild("FullscreenToggle"))||void 0===o||null===(t=o.el())||void 0===t||t.appendChild(b(c(window.controlsColor))),null==n||null===(i=n.controlBar)||void 0===i||null===(l=i.getChild("FullscreenToggle"))||void 0===l||null===(a=l.el())||void 0===a||a.appendChild(b(d(window.controlsColor)));var m=document.getElementsByClassName("vjs-time-control");s.liveVideo&&m[0]&&(m[0].style.display="none")}(e,s),function(e,s){var r,c,d,j,b,y;0==(null==s?void 0:s.liveVideo)&&0==(null==s?void 0:s.liveui)&&o(e,"defaultV2",p());(0==(null==s?void 0:s.liveVideo)&&0==(null==s?void 0:s.liveui)||1==(null==s?void 0:s.liveui))&&t(e,"defaultV2",u());s.liveVideo||i(e);(null==s||null===(r=s.relatedVideos)||void 0===r||null===(c=r.content)||void 0===c?void 0:c.length)>0&&l(e,null==s?void 0:s.relatedVideos);(null==s||null===(d=s.streams)||void 0===d?void 0:d.length)>1&&a(e,null==s?void 0:s.streams);(null==s||null===(j=s.playlist)||void 0===j||null===(b=j.content)||void 0===b?void 0:b.length)>0&&n(e,null==s?void 0:s.playlist);null!=s&&null!==(y=s.series)&&void 0!==y&&y.enable&&m(e,s)}(e,s),x(e,s)}export{k as initialiseSkin};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"core-js/modules/es.object.to-string.js";import"core-js/modules/es.promise.js";import{C as e,D as r}from"./generic-0ffb9040.js";import{g as s}from"./skin-531a4095.js";import"@babel/runtime-corejs3/helpers/asyncToGenerator";import"core-js/modules/es.symbol.js";import"core-js/modules/es.symbol.description.js";import"@babel/runtime-corejs3/regenerator";import"@babel/runtime-corejs3/core-js-stable/promise";import"@babel/runtime-corejs3/core-js-stable/set-timeout";import"@babel/runtime-corejs3/core-js-stable/instance/filter";import"@babel/runtime-corejs3/core-js-stable/object/assign";import"video.js";import"@babel/runtime-corejs3/core-js-stable/instance/concat";import"axios";import"core-js/modules/es.promise.finally.js";import"core-js/modules/es.array.iterator.js";import"core-js/modules/es.typed-array.uint8-array.js";import"core-js/modules/es.typed-array.copy-within.js";import"core-js/modules/es.typed-array.every.js";import"core-js/modules/es.typed-array.fill.js";import"core-js/modules/es.typed-array.filter.js";import"core-js/modules/es.typed-array.find.js";import"core-js/modules/es.typed-array.find-index.js";import"core-js/modules/es.typed-array.for-each.js";import"core-js/modules/es.typed-array.includes.js";import"core-js/modules/es.typed-array.index-of.js";import"core-js/modules/es.typed-array.iterator.js";import"core-js/modules/es.typed-array.join.js";import"core-js/modules/es.typed-array.last-index-of.js";import"core-js/modules/es.typed-array.map.js";import"core-js/modules/es.typed-array.reduce.js";import"core-js/modules/es.typed-array.reduce-right.js";import"core-js/modules/es.typed-array.reverse.js";import"core-js/modules/es.typed-array.set.js";import"core-js/modules/es.typed-array.slice.js";import"core-js/modules/es.typed-array.some.js";import"core-js/modules/es.typed-array.sort.js";import"core-js/modules/es.typed-array.subarray.js";import"core-js/modules/es.typed-array.to-locale-string.js";import"core-js/modules/es.typed-array.to-string.js";import"core-js/modules/es.regexp.exec.js";import"core-js/modules/es.string.replace.js";import"@babel/runtime-corejs3/core-js-stable/instance/includes";import"@babel/runtime-corejs3/core-js-stable/instance/index-of";import"@babel/runtime-corejs3/core-js-stable/instance/slice";import"./browser-000da9e7.js";import"core-js/modules/es.array.join.js";import"core-js/modules/es.regexp.to-string.js";import"core-js/modules/es.regexp.constructor.js";import"core-js/modules/es.function.name.js";import"@babel/runtime-corejs3/core-js-stable/instance/map";import"@babel/runtime-corejs3/core-js-stable/math/trunc";import"@babel/runtime-corejs3/core-js-stable/instance/find";import"@babel/runtime-corejs3/core-js-stable/date/now";import"@babel/runtime-corejs3/core-js-stable/map";import"js-cookie";import"ua-parser-js";import"@babel/runtime-corejs3/core-js-stable/instance/find-index";import"./captions-0433e46b.js";import"core-js/modules/es.string.match.js";import"core-js/modules/es.number.to-fixed.js";import"@babel/runtime-corejs3/core-js-stable/set-interval";function o(o){import("./skin-2c638dc1.js").then((function(e){var r=document.createElement("style");r.id="carousel_homepage",r.append("".concat(e.default)),document.head.appendChild(r)})),t(),function(o){var t=document.getElementById("".concat(o)),i=s(o);t&&t.addEventListener("touchstart",(function(){i.paused()?e(o):r(o)}))}(o)}var t=function(){var e=document.getElementsByClassName("vjs-control-bar")[0];e&&(e.style.visibility="hidden")};export{o as initaliseSkin};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{C as e,D as r}from"./generic-0ffb9040.js";import{g as s}from"./skin-531a4095.js";import"@babel/runtime-corejs3/helpers/asyncToGenerator";import"core-js/modules/es.symbol.js";import"core-js/modules/es.symbol.description.js";import"@babel/runtime-corejs3/regenerator";import"@babel/runtime-corejs3/core-js-stable/promise";import"@babel/runtime-corejs3/core-js-stable/set-timeout";import"@babel/runtime-corejs3/core-js-stable/instance/filter";import"@babel/runtime-corejs3/core-js-stable/object/assign";import"video.js";import"@babel/runtime-corejs3/core-js-stable/instance/concat";import"axios";import"core-js/modules/es.object.to-string.js";import"core-js/modules/es.promise.js";import"core-js/modules/es.promise.finally.js";import"core-js/modules/es.array.iterator.js";import"core-js/modules/es.typed-array.uint8-array.js";import"core-js/modules/es.typed-array.copy-within.js";import"core-js/modules/es.typed-array.every.js";import"core-js/modules/es.typed-array.fill.js";import"core-js/modules/es.typed-array.filter.js";import"core-js/modules/es.typed-array.find.js";import"core-js/modules/es.typed-array.find-index.js";import"core-js/modules/es.typed-array.for-each.js";import"core-js/modules/es.typed-array.includes.js";import"core-js/modules/es.typed-array.index-of.js";import"core-js/modules/es.typed-array.iterator.js";import"core-js/modules/es.typed-array.join.js";import"core-js/modules/es.typed-array.last-index-of.js";import"core-js/modules/es.typed-array.map.js";import"core-js/modules/es.typed-array.reduce.js";import"core-js/modules/es.typed-array.reduce-right.js";import"core-js/modules/es.typed-array.reverse.js";import"core-js/modules/es.typed-array.set.js";import"core-js/modules/es.typed-array.slice.js";import"core-js/modules/es.typed-array.some.js";import"core-js/modules/es.typed-array.sort.js";import"core-js/modules/es.typed-array.subarray.js";import"core-js/modules/es.typed-array.to-locale-string.js";import"core-js/modules/es.typed-array.to-string.js";import"core-js/modules/es.regexp.exec.js";import"core-js/modules/es.string.replace.js";import"@babel/runtime-corejs3/core-js-stable/instance/includes";import"@babel/runtime-corejs3/core-js-stable/instance/index-of";import"@babel/runtime-corejs3/core-js-stable/instance/slice";import"./browser-000da9e7.js";import"core-js/modules/es.array.join.js";import"core-js/modules/es.regexp.to-string.js";import"core-js/modules/es.regexp.constructor.js";import"core-js/modules/es.function.name.js";import"@babel/runtime-corejs3/core-js-stable/instance/map";import"@babel/runtime-corejs3/core-js-stable/math/trunc";import"@babel/runtime-corejs3/core-js-stable/instance/find";import"@babel/runtime-corejs3/core-js-stable/date/now";import"@babel/runtime-corejs3/core-js-stable/map";import"js-cookie";import"ua-parser-js";import"@babel/runtime-corejs3/core-js-stable/instance/find-index";import"./captions-0433e46b.js";import"core-js/modules/es.string.match.js";import"core-js/modules/es.number.to-fixed.js";import"@babel/runtime-corejs3/core-js-stable/set-interval";function o(e){i(e),t(e)}var t=function(o){var t=s(o),i=document.getElementById("".concat(o));i&&i.addEventListener("touchstart",(function(){t.paused()?e(o):r(o)}))},i=function(e){var r=s(e);r.requestFullscreen=function(){},r.controlBar.hide()};export{o as initaliseSkin};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"core-js/modules/es.object.to-string.js";import"core-js/modules/es.promise.js";import{g as e}from"./skin-531a4095.js";import{f as r,n as s}from"./features-ad2f7efd.js";import{g as o}from"./renditions-3d54d574.js";import{r as t}from"./captions-0433e46b.js";import"@babel/runtime-corejs3/core-js-stable/instance/includes";import"@babel/runtime-corejs3/core-js-stable/instance/concat";import"@babel/runtime-corejs3/core-js-stable/instance/map";import"@babel/runtime-corejs3/core-js-stable/set-timeout";import"@babel/runtime-corejs3/core-js-stable/date/now";import"video.js";import"@babel/runtime-corejs3/core-js-stable/reflect/construct";import"@babel/runtime-corejs3/helpers/classCallCheck";import"@babel/runtime-corejs3/helpers/createClass";import"@babel/runtime-corejs3/helpers/inherits";import"@babel/runtime-corejs3/helpers/possibleConstructorReturn";import"@babel/runtime-corejs3/helpers/getPrototypeOf";import"@babel/runtime-corejs3/core-js-stable/object/assign";import"./generic-0ffb9040.js";import"@babel/runtime-corejs3/helpers/asyncToGenerator";import"core-js/modules/es.symbol.js";import"core-js/modules/es.symbol.description.js";import"@babel/runtime-corejs3/regenerator";import"@babel/runtime-corejs3/core-js-stable/promise";import"@babel/runtime-corejs3/core-js-stable/instance/filter";import"axios";import"core-js/modules/es.promise.finally.js";import"core-js/modules/es.array.iterator.js";import"core-js/modules/es.typed-array.uint8-array.js";import"core-js/modules/es.typed-array.copy-within.js";import"core-js/modules/es.typed-array.every.js";import"core-js/modules/es.typed-array.fill.js";import"core-js/modules/es.typed-array.filter.js";import"core-js/modules/es.typed-array.find.js";import"core-js/modules/es.typed-array.find-index.js";import"core-js/modules/es.typed-array.for-each.js";import"core-js/modules/es.typed-array.includes.js";import"core-js/modules/es.typed-array.index-of.js";import"core-js/modules/es.typed-array.iterator.js";import"core-js/modules/es.typed-array.join.js";import"core-js/modules/es.typed-array.last-index-of.js";import"core-js/modules/es.typed-array.map.js";import"core-js/modules/es.typed-array.reduce.js";import"core-js/modules/es.typed-array.reduce-right.js";import"core-js/modules/es.typed-array.reverse.js";import"core-js/modules/es.typed-array.set.js";import"core-js/modules/es.typed-array.slice.js";import"core-js/modules/es.typed-array.some.js";import"core-js/modules/es.typed-array.sort.js";import"core-js/modules/es.typed-array.subarray.js";import"core-js/modules/es.typed-array.to-locale-string.js";import"core-js/modules/es.typed-array.to-string.js";import"core-js/modules/es.regexp.exec.js";import"core-js/modules/es.string.replace.js";import"@babel/runtime-corejs3/core-js-stable/instance/index-of";import"@babel/runtime-corejs3/core-js-stable/instance/slice";import"./browser-000da9e7.js";import"core-js/modules/es.array.join.js";import"core-js/modules/es.regexp.to-string.js";import"core-js/modules/es.regexp.constructor.js";import"core-js/modules/es.function.name.js";import"@babel/runtime-corejs3/core-js-stable/math/trunc";import"@babel/runtime-corejs3/core-js-stable/instance/find";import"@babel/runtime-corejs3/core-js-stable/map";import"js-cookie";import"ua-parser-js";import"@babel/runtime-corejs3/core-js-stable/instance/find-index";import"core-js/modules/es.string.match.js";import"core-js/modules/es.number.to-fixed.js";import"@babel/runtime-corejs3/core-js-stable/set-interval";import"./localisation-0bf399a1.js";import"@babel/runtime-corejs3/core-js-stable/instance/sort";function i(i,m){import("./skin-271fa63f.js").then((function(e){var r=document.createElement("style");r.id="multiplayer_css",r.append("".concat(e.default)),document.head.appendChild(r)})),function(s,i){e(s).on("loadeddata",(function(){var e;(null===(e=o(s))||void 0===e?void 0:e.length)>0&&r(s,i),null!=i&&i.disableCaptions&&t(s)}))}(i,m),function(r,o){var t=e(r);t.controls(!1),s(r)}(i)}export{i as initialiseSkin};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{g as t}from"./skin-531a4095.js";var n=function(n,a,r){var e=t(n);e?a>=0&&a<=e.duration()?(r({status:!0,msg:"Successfully seeked to timestamp : ".concat(a)}),e.currentTime(a)):r({status:!1,msg:"Out of bounds, please provide a valid timestamp"}):r("Cannot find player with id: '".concat(n,"'"))},a=function(n,a){var r=t(n);if(!r)return"Cannot find player with id: '".concat(n,"'");try{return r.playbackRate(a),"Playback speed set to ".concat(a,"x")}catch(t){return"Error: ".concat(t)}},r=function(n,a){var r=t(n);r?r.on("timeupdate",(function(){return a(r.currentTime())})):a("Cannot find player with id: '".concat(n,"'"))},e=function(n,a){var r=t(n);r?r.on("ended",(function(){return a(!0)})):a("Cannot find player with id: '".concat(n,"'"))},i=function(n){var a=t(n);return a?a.duration():"Cannot find player with id: '".concat(n,"'")};export{e as a,a as b,i as g,r as o,n as s};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import e from"@babel/runtime-corejs3/core-js-stable/reflect/construct";import o from"@babel/runtime-corejs3/helpers/classCallCheck";import r from"@babel/runtime-corejs3/helpers/createClass";import t from"@babel/runtime-corejs3/helpers/inherits";import s from"@babel/runtime-corejs3/helpers/possibleConstructorReturn";import i from"@babel/runtime-corejs3/helpers/getPrototypeOf";import"core-js/modules/es.object.to-string.js";import"core-js/modules/es.promise.js";import a from"video.js";import{E as n,f as l}from"./icons-68d3a609.js";import{G as c,R as d}from"./generic-0ffb9040.js";import{e as m,s as p,f as u,j,k as y}from"./skin-531a4095.js";import{a as b}from"./autoNextVideo-6f30518f.js";import{g as v}from"./localisation-0bf399a1.js";import"@babel/runtime-corejs3/core-js-stable/instance/concat";import"@babel/runtime-corejs3/helpers/asyncToGenerator";import"core-js/modules/es.symbol.js";import"core-js/modules/es.symbol.description.js";import"@babel/runtime-corejs3/regenerator";import"@babel/runtime-corejs3/core-js-stable/promise";import"@babel/runtime-corejs3/core-js-stable/set-timeout";import"@babel/runtime-corejs3/core-js-stable/instance/filter";import"@babel/runtime-corejs3/core-js-stable/object/assign";import"axios";import"core-js/modules/es.promise.finally.js";import"core-js/modules/es.array.iterator.js";import"core-js/modules/es.typed-array.uint8-array.js";import"core-js/modules/es.typed-array.copy-within.js";import"core-js/modules/es.typed-array.every.js";import"core-js/modules/es.typed-array.fill.js";import"core-js/modules/es.typed-array.filter.js";import"core-js/modules/es.typed-array.find.js";import"core-js/modules/es.typed-array.find-index.js";import"core-js/modules/es.typed-array.for-each.js";import"core-js/modules/es.typed-array.includes.js";import"core-js/modules/es.typed-array.index-of.js";import"core-js/modules/es.typed-array.iterator.js";import"core-js/modules/es.typed-array.join.js";import"core-js/modules/es.typed-array.last-index-of.js";import"core-js/modules/es.typed-array.map.js";import"core-js/modules/es.typed-array.reduce.js";import"core-js/modules/es.typed-array.reduce-right.js";import"core-js/modules/es.typed-array.reverse.js";import"core-js/modules/es.typed-array.set.js";import"core-js/modules/es.typed-array.slice.js";import"core-js/modules/es.typed-array.some.js";import"core-js/modules/es.typed-array.sort.js";import"core-js/modules/es.typed-array.subarray.js";import"core-js/modules/es.typed-array.to-locale-string.js";import"core-js/modules/es.typed-array.to-string.js";import"core-js/modules/es.regexp.exec.js";import"core-js/modules/es.string.replace.js";import"@babel/runtime-corejs3/core-js-stable/instance/includes";import"@babel/runtime-corejs3/core-js-stable/instance/index-of";import"@babel/runtime-corejs3/core-js-stable/instance/slice";import"./browser-000da9e7.js";import"core-js/modules/es.array.join.js";import"core-js/modules/es.regexp.to-string.js";import"core-js/modules/es.regexp.constructor.js";import"core-js/modules/es.function.name.js";import"@babel/runtime-corejs3/core-js-stable/instance/map";import"@babel/runtime-corejs3/core-js-stable/math/trunc";import"@babel/runtime-corejs3/core-js-stable/instance/find";import"@babel/runtime-corejs3/core-js-stable/date/now";import"@babel/runtime-corejs3/core-js-stable/map";import"js-cookie";import"ua-parser-js";import"@babel/runtime-corejs3/core-js-stable/instance/find-index";import"./captions-0433e46b.js";import"core-js/modules/es.string.match.js";import"core-js/modules/es.number.to-fixed.js";import"@babel/runtime-corejs3/core-js-stable/set-interval";import"./util-332cd53f.js";function f(o){var r=h();return function(){var t,a=i(o);if(r){var n=i(this).constructor;t=e(a,arguments,n)}else t=a.apply(this,arguments);return s(this,t)}}function h(){try{var o=!Boolean.prototype.valueOf.call(e(Boolean,[],(function(){})))}catch(o){}return(h=function(){return!!o})()}var g=a.getComponent("Component"),C=function(e){t(i,g);var s=f(i);function i(e){var r,t,a,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return o(this,i),(a=s.call(this,e,n)).playerId=n.playerId,a.seriesData=n.sres,a.videos=n.related.content,a.cb=(null==n||null===(r=n.related)||void 0===r?void 0:r.cb)||null,a.autoNext=(null==n||null===(t=n.related)||void 0===t?void 0:t.autoNext)||!1,a.currentVideoData=n.res,a.initialiseStructure(),a.loadCSS(),a.autoNext&&(d(0),b({playerId:a.playerId,content:a.videos,cb:a.cb})),a}return r(i,[{key:"createEl",value:function(){var e=a.dom.createEl("div",{className:"video-selection vjs-control vjs-button"});e.style.position="unset";var o=a.dom.createEl("div",{className:"video-selector-icon",innerHTML:"".concat(n())});return a.dom.appendContent(e,o),e}},{key:"loadCSS",value:function(){import("./videoSelector-8e258d45.js").then((function(e){var o=document.createElement("style");o.id="video-selection",o.append("".concat(e.default)),document.head.appendChild(o)}))}},{key:"initialiseStructure",value:function(){var e=this,o=this.el(),r=a.dom.createEl("div",{className:"video-selection-container hidden"});a.dom.$(".video-selector-icon",this.el()).onclick=function(){var t;null!==(t=r.classList)&&void 0!==t&&t.contains("hidden")?(m(),r.classList.remove("hidden"),o.classList.add("open"),r.style.right="0px",p(e.playerId,r)):(r.classList.add("hidden"),o.classList.remove("open"),r.style.right="-350px")};var t=document.getElementById(this.playerId);if(t){var s=window.getComputedStyle(t,null).getPropertyValue("height");r.style.height="".concat(s),a.dom.appendContent(o,r),t.style.overflow="hidden",this.addFunctionality(r),u(this.playerId,r)}}},{key:"toggleOpenClose",value:function(){}},{key:"addFunctionality",value:function(e){var o=this,r=this.el(),t=a.dom.createEl("div",{className:"video-selector-head"}),s=a.dom.createEl("div",{className:"video-selector-cross-icon",innerHTML:"".concat(l())});s.onclick=function(){e.classList.add("hidden"),r.classList.remove("open"),e.style.right="-350px"};for(var i=a.dom.createEl("div",{className:"video-selector-title",innerHTML:v("relatedVideoTitle")||"Recommended"}),n=a.dom.createEl("div",{className:"video-selector-content"}),m=a.dom.createEl("div",{className:"video-container"}),p=function(e){var r,t,s,i,l,p=a.dom.createEl("div",{className:"video -".concat(e)}),u=a.dom.createEl("div",{className:"recommended -".concat(e)});u.setAttribute("video-idx",e),u.onclick=function(){d(e+1);for(var r=a.dom.$$(".recommended"),t=0;t<r.length;t++)r[t].style.border="none";y(e),c(o.playerId,o.videos[e].id).then((function(e){o.cb&&o.cb(e)})).catch((function(e){o.cb&&o.cb(e)}))};var j=document.createElement("img");j.className="related-thumbnail-image",j.src="".concat((null==o||null===(r=o.videos)||void 0===r||null===(t=r[e])||void 0===t?void 0:t.img)||(null===(s=window)||void 0===s||null===(i=s.customData)||void 0===i?void 0:i.fallbackImage)),j.alt="No Thumbnail Available",u.append(j);var b=a.dom.createEl("div",{className:"info -".concat(e),innerHTML:"".concat((null==o||null===(l=o.videos[e])||void 0===l?void 0:l.title)||"")});a.dom.appendContent(p,u),a.dom.appendContent(p,b),a.dom.appendContent(m,p),a.dom.appendContent(n,m)},u=0;u<this.videos.length;u++)p(u);a.dom.appendContent(t,s),a.dom.appendContent(t,i),a.dom.appendContent(e,t),a.dom.appendContent(e,n),j(this.playerId,e)}}]),i}();export{C as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import e from"@babel/runtime-corejs3/core-js-stable/reflect/construct";import o from"@babel/runtime-corejs3/helpers/classCallCheck";import r from"@babel/runtime-corejs3/helpers/createClass";import s from"@babel/runtime-corejs3/helpers/inherits";import t from"@babel/runtime-corejs3/helpers/possibleConstructorReturn";import i from"@babel/runtime-corejs3/helpers/getPrototypeOf";import a from"@babel/runtime-corejs3/core-js-stable/instance/slice";import n from"@babel/runtime-corejs3/core-js-stable/instance/trim";import"core-js/modules/es.object.to-string.js";import"core-js/modules/es.promise.js";import"core-js/modules/es.array.join.js";import"core-js/modules/es.regexp.exec.js";import"core-js/modules/es.string.split.js";import l from"video.js";import{e as c,f as d}from"./icons-68d3a609.js";import{G as m,R as p}from"./generic-0ffb9040.js";import{e as u,s as j,f as b,j as v,h as y,i as f}from"./skin-531a4095.js";import{a as h}from"./autoNextVideo-6f30518f.js";import{g}from"./localisation-0bf399a1.js";import"@babel/runtime-corejs3/core-js-stable/instance/concat";import"@babel/runtime-corejs3/helpers/asyncToGenerator";import"core-js/modules/es.symbol.js";import"core-js/modules/es.symbol.description.js";import"@babel/runtime-corejs3/regenerator";import"@babel/runtime-corejs3/core-js-stable/promise";import"@babel/runtime-corejs3/core-js-stable/set-timeout";import"@babel/runtime-corejs3/core-js-stable/instance/filter";import"@babel/runtime-corejs3/core-js-stable/object/assign";import"axios";import"core-js/modules/es.promise.finally.js";import"core-js/modules/es.array.iterator.js";import"core-js/modules/es.typed-array.uint8-array.js";import"core-js/modules/es.typed-array.copy-within.js";import"core-js/modules/es.typed-array.every.js";import"core-js/modules/es.typed-array.fill.js";import"core-js/modules/es.typed-array.filter.js";import"core-js/modules/es.typed-array.find.js";import"core-js/modules/es.typed-array.find-index.js";import"core-js/modules/es.typed-array.for-each.js";import"core-js/modules/es.typed-array.includes.js";import"core-js/modules/es.typed-array.index-of.js";import"core-js/modules/es.typed-array.iterator.js";import"core-js/modules/es.typed-array.join.js";import"core-js/modules/es.typed-array.last-index-of.js";import"core-js/modules/es.typed-array.map.js";import"core-js/modules/es.typed-array.reduce.js";import"core-js/modules/es.typed-array.reduce-right.js";import"core-js/modules/es.typed-array.reverse.js";import"core-js/modules/es.typed-array.set.js";import"core-js/modules/es.typed-array.slice.js";import"core-js/modules/es.typed-array.some.js";import"core-js/modules/es.typed-array.sort.js";import"core-js/modules/es.typed-array.subarray.js";import"core-js/modules/es.typed-array.to-locale-string.js";import"core-js/modules/es.typed-array.to-string.js";import"core-js/modules/es.string.replace.js";import"@babel/runtime-corejs3/core-js-stable/instance/includes";import"@babel/runtime-corejs3/core-js-stable/instance/index-of";import"./browser-000da9e7.js";import"core-js/modules/es.regexp.to-string.js";import"core-js/modules/es.regexp.constructor.js";import"core-js/modules/es.function.name.js";import"@babel/runtime-corejs3/core-js-stable/instance/map";import"@babel/runtime-corejs3/core-js-stable/math/trunc";import"@babel/runtime-corejs3/core-js-stable/instance/find";import"@babel/runtime-corejs3/core-js-stable/date/now";import"@babel/runtime-corejs3/core-js-stable/map";import"js-cookie";import"ua-parser-js";import"@babel/runtime-corejs3/core-js-stable/instance/find-index";import"./captions-0433e46b.js";import"core-js/modules/es.string.match.js";import"core-js/modules/es.number.to-fixed.js";import"@babel/runtime-corejs3/core-js-stable/set-interval";import"./util-332cd53f.js";function C(o){var r=x();return function(){var s,a=i(o);if(r){var n=i(this).constructor;s=e(a,arguments,n)}else s=a.apply(this,arguments);return t(this,s)}}function x(){try{var o=!Boolean.prototype.valueOf.call(e(Boolean,[],(function(){})))}catch(o){}return(x=function(){return!!o})()}var N=l.getComponent("Component"),E=function(e){s(i,N);var t=C(i);function i(e){var r,s,a,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return o(this,i),(a=t.call(this,e,n)).playerId=n.playerId,a.seriesData=n.sres,a.videos=n.related.content,a.cb=(null==n||null===(r=n.related)||void 0===r?void 0:r.cb)||null,a.autoNext=(null==n||null===(s=n.related)||void 0===s?void 0:s.autoNext)||!1,a.currentVideoData=n.res,a.initialiseStructure(),a.loadCSS(),a.autoNext&&(p(0),h({playerId:a.playerId,content:a.videos,cb:a.cb})),a}return r(i,[{key:"createEl",value:function(){var e=l.dom.createEl("div",{className:"video-selection vjs-control vjs-button"});e.style.position="unset";var o=l.dom.createEl("div",{className:"video-selector-icon",innerHTML:"".concat(c())});return l.dom.appendContent(e,o),e}},{key:"loadCSS",value:function(){import("./videoSelector-def99d5e.js").then((function(e){var o=document.createElement("style");o.id="video-selection",o.append("".concat(e.default)),document.head.appendChild(o)}))}},{key:"initialiseStructure",value:function(){var e=this,o=this.el(),r=l.dom.createEl("div",{className:"video-selection-container hidden"});l.dom.$(".video-selector-icon",this.el()).onclick=function(){var s;null!==(s=r.classList)&&void 0!==s&&s.contains("hidden")?(u(),r.classList.remove("hidden"),o.classList.add("open"),j(e.playerId,r)):(r.classList.add("hidden"),o.classList.remove("open"))};var s=document.getElementById(this.playerId);if(s){var t=window.getComputedStyle(s,null).getPropertyValue("height");r.style.height="".concat(t),l.dom.appendContent(o,r),s.style.overflow="hidden",this.addFunctionality(r),b(this.playerId,r)}}},{key:"addFunctionality",value:function(e){var o=this,r=this.el(),s=l.dom.createEl("div",{className:"video-selector-head"}),t=l.dom.createEl("div",{className:"video-selector-cross-icon",innerHTML:"".concat(d())});t.onclick=function(){e.classList.add("hidden"),r.classList.remove("open")};for(var i=l.dom.createEl("div",{className:"video-selector-title",innerHTML:g("relatedVideoTitle")||"Recommended"}),c=l.dom.createEl("div",{className:"video-selector-content"}),u=l.dom.createEl("div",{className:"video-container"}),j=function(e){var r,s,t,i,d,j,b,v,h,g,C=l.dom.createEl("div",{className:"video -".concat(e)}),x=l.dom.createEl("div",{className:"recommended -".concat(e)});x.setAttribute("video-idx",e),x.onclick=function(){p(e+1);for(var r=l.dom.$$(".recommended"),s=0;s<r.length;s++)r[s].style.border="none";y(e),m(o.playerId,o.videos[e].id).then((function(e){o.cb&&o.cb(e)})).catch((function(e){o.cb&&o.cb(e)}))};var N=document.createElement("img");N.className="related-thumbnail-image",N.src="".concat(f(null==o||null===(r=o.videos)||void 0===r||null===(s=r[e])||void 0===s?void 0:s.img)||f(null===(t=window)||void 0===t||null===(i=t.app_data)||void 0===i||null===(d=i.appcmsMain)||void 0===d||null===(j=d.images)||void 0===j?void 0:j.placeholderCover)),N.alt="".concat((null==o||null===(b=o.videos[e])||void 0===b?void 0:a(v=n(h=b.title).call(h).split(/\s+/)).call(v,0,2).join(" "))||""),x.append(N);var E=l.dom.createEl("div",{className:"info -".concat(e),innerHTML:"".concat((null==o||null===(g=o.videos[e])||void 0===g?void 0:g.title)||"")});l.dom.appendContent(C,x),l.dom.appendContent(C,E),l.dom.appendContent(u,C),l.dom.appendContent(c,u)},b=0;b<this.videos.length;b++)j(b);l.dom.appendContent(s,i),l.dom.appendContent(s,t),l.dom.appendContent(e,s),l.dom.appendContent(e,c),v(this.playerId,e)}}]),i}();export{E as default};
|