@viewlift/player-backup 2.0.34-smarttv → 2.0.35-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.
Files changed (127) hide show
  1. package/cjs/autoNextVideo-2ff24f68.js +1 -0
  2. package/cjs/browser-2df57579.js +1 -0
  3. package/cjs/bundle.css +1 -1
  4. package/cjs/caption-settings-e95cca56.js +1 -0
  5. package/cjs/captions-d160e397.js +1 -0
  6. package/cjs/features-d8e95dc9.js +1 -0
  7. package/cjs/generic-294ac08e.js +1 -0
  8. package/cjs/icons-9e9e6364.js +1 -0
  9. package/cjs/index-22c51eee.js +1 -0
  10. package/cjs/index-9210aba0.js +1 -0
  11. package/cjs/index.js +1 -1
  12. package/cjs/keyboardShortcuts-b1e158f8.js +1 -0
  13. package/cjs/multicamv2-141480c4.js +1 -0
  14. package/cjs/multicamv2-41f9696b.js +1 -0
  15. package/cjs/nextEpisodeButton-d938133c.js +1 -0
  16. package/cjs/playlist-01fd8996.js +1 -0
  17. package/cjs/renditions-6ca861f3.js +1 -0
  18. package/cjs/resolution-27153a3f.js +1 -0
  19. package/cjs/series-bb8a15e4.js +1 -0
  20. package/cjs/series-v2-264f1274.js +1 -0
  21. package/cjs/series-v2-d21309ce.js +1 -0
  22. package/cjs/settings-icon-574dc30a.js +1 -0
  23. package/cjs/skin-09425927.js +1 -0
  24. package/cjs/skin-4e236315.js +1 -0
  25. package/cjs/skin-6ed10ade.js +1 -0
  26. package/cjs/skin-99eb3c31.js +1 -0
  27. package/cjs/skin-a7171b70.js +1 -0
  28. package/cjs/skin-b28fa2ec.js +1 -0
  29. package/cjs/skin-d1f05fdb.js +1 -0
  30. package/cjs/{util-d2dab2d7.js → util-1f5115f2.js} +1 -1
  31. package/cjs/videoSelector-68b2ef10.js +1 -0
  32. package/cjs/videoSelector-6fc58bce.js +1 -0
  33. package/cjs/videojs_contrib_dash-9a5f4c2b.js +1 -0
  34. package/esm/autoNextVideo-fc102a98.js +1 -0
  35. package/esm/browser-000da9e7.js +1 -0
  36. package/esm/bundle.css +1 -1
  37. package/esm/caption-settings-b11a19b3.js +1 -0
  38. package/esm/captions-2bcc449f.js +1 -0
  39. package/esm/features-9a77b3ec.js +1 -0
  40. package/esm/generic-979547e7.js +1 -0
  41. package/esm/icons-68d3a609.js +1 -0
  42. package/esm/index-9abdfceb.js +1 -0
  43. package/esm/index-caeb7f58.js +1 -0
  44. package/esm/index.js +1 -1
  45. package/esm/keyboardShortcuts-6443082f.js +1 -0
  46. package/esm/multicamv2-10e8f652.js +1 -0
  47. package/esm/multicamv2-1b6bbad6.js +1 -0
  48. package/esm/nextEpisodeButton-66506110.js +1 -0
  49. package/esm/playlist-606bdc1a.js +1 -0
  50. package/esm/renditions-7724f87c.js +1 -0
  51. package/esm/resolution-de9dd282.js +1 -0
  52. package/esm/series-81680634.js +1 -0
  53. package/esm/series-v2-a9bd9cce.js +1 -0
  54. package/esm/series-v2-e6464c17.js +1 -0
  55. package/esm/settings-icon-51763bdf.js +1 -0
  56. package/esm/skin-31efcd21.js +1 -0
  57. package/esm/skin-3c8134ab.js +1 -0
  58. package/esm/skin-43755201.js +1 -0
  59. package/esm/skin-9c71c31d.js +1 -0
  60. package/esm/skin-bb1155ba.js +1 -0
  61. package/esm/skin-e12e8689.js +1 -0
  62. package/esm/skin-e597a51b.js +1 -0
  63. package/esm/{util-15b06c48.js → util-7ef0c31b.js} +1 -1
  64. package/esm/videoSelector-4c015dd4.js +1 -0
  65. package/esm/videoSelector-c91fa81d.js +1 -0
  66. package/esm/videojs_contrib_dash-d8104535.js +1 -0
  67. package/package.json +1 -1
  68. package/cjs/autoNextVideo-646811db.js +0 -1
  69. package/cjs/browser-4406e987.js +0 -1
  70. package/cjs/caption-settings-f4b56d18.js +0 -1
  71. package/cjs/captions-0bfb1f17.js +0 -1
  72. package/cjs/features-4c40fb30.js +0 -1
  73. package/cjs/generic-77e7dad6.js +0 -1
  74. package/cjs/icons-fb3b77be.js +0 -1
  75. package/cjs/index-517a7251.js +0 -1
  76. package/cjs/index-ff10ae67.js +0 -1
  77. package/cjs/keyboardShortcuts-253d9a90.js +0 -1
  78. package/cjs/multicamv2-21a30164.js +0 -1
  79. package/cjs/multicamv2-ff1ea347.js +0 -1
  80. package/cjs/nextEpisodeButton-10990ff3.js +0 -1
  81. package/cjs/playlist-424537b7.js +0 -1
  82. package/cjs/renditions-f17d8e10.js +0 -1
  83. package/cjs/resolution-fba4b582.js +0 -1
  84. package/cjs/series-47154e16.js +0 -1
  85. package/cjs/series-v2-01db596c.js +0 -1
  86. package/cjs/series-v2-95803907.js +0 -1
  87. package/cjs/settings-icon-79d93313.js +0 -1
  88. package/cjs/skin-49f41de2.js +0 -1
  89. package/cjs/skin-501e5a0c.js +0 -1
  90. package/cjs/skin-b1ac9d37.js +0 -1
  91. package/cjs/skin-b5c3fd0d.js +0 -1
  92. package/cjs/skin-c55863dc.js +0 -1
  93. package/cjs/skin-e4278c76.js +0 -1
  94. package/cjs/skin-ffa26520.js +0 -1
  95. package/cjs/videoSelector-4f4de3ed.js +0 -1
  96. package/cjs/videoSelector-5ff29cf0.js +0 -1
  97. package/cjs/videojs_contrib_dash-a6249357.js +0 -1
  98. package/esm/autoNextVideo-91174189.js +0 -1
  99. package/esm/browser-4d7cb620.js +0 -1
  100. package/esm/caption-settings-8b834ad5.js +0 -1
  101. package/esm/captions-79fcdb9f.js +0 -1
  102. package/esm/features-af98efe7.js +0 -1
  103. package/esm/generic-bd9c636a.js +0 -1
  104. package/esm/icons-96a83bb5.js +0 -1
  105. package/esm/index-0cc87ab8.js +0 -1
  106. package/esm/index-89fa7454.js +0 -1
  107. package/esm/keyboardShortcuts-7352ca34.js +0 -1
  108. package/esm/multicamv2-c671e664.js +0 -1
  109. package/esm/multicamv2-e78823c2.js +0 -1
  110. package/esm/nextEpisodeButton-06829f67.js +0 -1
  111. package/esm/playlist-d3515ea7.js +0 -1
  112. package/esm/renditions-b770df31.js +0 -1
  113. package/esm/resolution-33a5dc11.js +0 -1
  114. package/esm/series-da964407.js +0 -1
  115. package/esm/series-v2-81d8a4aa.js +0 -1
  116. package/esm/series-v2-fc5d9e55.js +0 -1
  117. package/esm/settings-icon-a764910e.js +0 -1
  118. package/esm/skin-1f169372.js +0 -1
  119. package/esm/skin-4db1b116.js +0 -1
  120. package/esm/skin-67e10184.js +0 -1
  121. package/esm/skin-8079b737.js +0 -1
  122. package/esm/skin-87cf4c44.js +0 -1
  123. package/esm/skin-ba596a62.js +0 -1
  124. package/esm/skin-df850373.js +0 -1
  125. package/esm/videoSelector-378774f6.js +0 -1
  126. package/esm/videoSelector-e272bb60.js +0 -1
  127. package/esm/videojs_contrib_dash-848c7068.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 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 c,f as p}from"./generic-979547e7.js";import{d}from"./skin-43755201.js";import"@babel/runtime-corejs3/helpers/defineProperty";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/keys";import"@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols";import"@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor";import"@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors";import"@babel/runtime-corejs3/core-js-stable/object/define-properties";import"@babel/runtime-corejs3/core-js-stable/object/define-property";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-2bcc449f.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"@babel/runtime-corejs3/helpers/toConsumableArray";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}(),f=function(e,r){var o=v(e,r.video.gist.id),s=g(e[o],r.video.gist.id),t=h(e[o],s);x(t.nextEp)},v=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}},g=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},x=function(e){var r,o,s;l.dom.$(".next-eps"),l.dom.$(".play-next").onclick=function(){var r;c("my-player",null==e||null===(r=e.gist)||void 0===r?void 0:r.id).then((function(e){p(e.response)}))};var t=l.dom.$(".next-eps-image"),i=d("<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=d(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,f as initaliseFunctionality};
@@ -0,0 +1 @@
1
+ import e from"@babel/runtime-corejs3/core-js-stable/reflect/construct";import t from"@babel/runtime-corejs3/helpers/toConsumableArray";import o from"@babel/runtime-corejs3/helpers/classCallCheck";import s from"@babel/runtime-corejs3/helpers/createClass";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 l 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"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-979547e7.js";import{a as u}from"./autoNextVideo-fc102a98.js";import{e as j,g as y}from"./skin-43755201.js";import"@babel/runtime-corejs3/core-js-stable/instance/concat";import"@babel/runtime-corejs3/helpers/defineProperty";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/keys";import"@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols";import"@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor";import"@babel/runtime-corejs3/core-js-stable/instance/for-each";import"@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors";import"@babel/runtime-corejs3/core-js-stable/object/define-properties";import"@babel/runtime-corejs3/core-js-stable/object/define-property";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-2bcc449f.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-7ef0c31b.js";function b(t){var o=v();return function(){var s,r=a(t);if(o){var l=a(this).constructor;s=e(r,arguments,l)}else s=r.apply(this,arguments);return i(this,s)}}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){r(a,f);var i=b(a);function a(e){var t,s,r,l,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return o(this,a),(l=i.call(this,e,n)).playerId=n.playerId,l.seriesData=n.sres,l.videos=null==n||null===(t=n.playlist)||void 0===t?void 0:t.content,l.cb=(null==n||null===(s=n.playlist)||void 0===s?void 0:s.cb)||null,l.autoNext=(null==n||null===(r=n.playlist)||void 0===r?void 0:r.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(a,[{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 o;null!==(o=t.classList)&&void 0!==o&&o.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 o=document.getElementById(this.playerId);if(o){var s=window.getComputedStyle(o,null).getPropertyValue("height"),r=l(s).call(s,0,-2);t.style.height="".concat(r,"px"),n.dom.appendContent(e,t),o.style.overflow="hidden",this.addFunctionality(t)}}},{key:"addFunctionality",value:function(e){var o=this,s=this.el(),r=n.dom.createEl("div",{className:"playlist-selector-head"}),i=n.dom.createEl("div",{className:"playlist-selector-cross-icon",innerHTML:"".concat(d())});i.onclick=function(){e.classList.add("hidden"),s.classList.remove("open"),e.style.right="-350px"};for(var a=n.dom.createEl("div",{className:"playlist-selector-title",innerHTML:"Playlist"}),c=n.dom.createEl("div",{className:"playlist-selector-content"}),u=function(e){var s,r,i=n.dom.createEl("div",{className:"playlist-container"}),a=n.dom.createEl("div",{className:"playlist-section",index:e}),l=n.dom.createEl("div",{className:"playlist-title",innerHTML:"".concat((null===(s=o.videos[e])||void 0===s?void 0:s.title)||"")}),d=n.dom.createEl("div",{className:"playlist-progress-bar",innerHTML:"<div style='width:".concat(o.videos[e].watchedPercentage,"%' class='playlist-progress-bar-value'></div>")});n.dom.appendContent(a,l),n.dom.appendContent(a,d),n.dom.appendContent(i,a),n.dom.appendContent(c,i);var u=n.dom.createEl("div",{className:"playlist-section-expanded hidden"}),j=n.dom.createEl("div",{className:"playlist-description",innerHTML:"".concat((null===(r=o.videos[e])||void 0===r?void 0:r.description)||"")}),y=n.dom.createEl("div",{className:"playlist-image"});y.style.backgroundImage="url(".concat(o.videos[e].img,")"),n.dom.appendContent(u,y),n.dom.appendContent(u,j),n.dom.appendContent(i,u),n.dom.appendContent(c,i),u.onclick=function(t){t.stopPropagation(),p(e+1),m(o.playerId,o.videos[e].id).then((function(e){null!=o&&o.cb&&o.cb(e)})).catch((function(e){null!=o&&o.cb&&o.cb(e)}))},a.onclick=function(e){var o,s,r,a=document.getElementsByClassName("playlist-selector-content")[0].childNodes,l=(a=t(a))[e.target.index].getElementsByClassName("playlist-section-expanded")[0];null!=l&&null!==(o=l.classList)&&void 0!==o&&o.contains("hidden")?(i.style.backgroundColor="#0000007d",null==l||null===(s=l.classList)||void 0===s||s.remove("hidden")):(null==l||null===(r=l.classList)||void 0===r||r.add("hidden"),i.style.backgroundColor="unset")}},j=0;j<this.videos.length;j++)u(j);n.dom.appendContent(r,i),n.dom.appendContent(r,a),n.dom.appendContent(e,r),n.dom.appendContent(e,c),y(this.playerId).on("fullscreenchange",(function(){var t=document.getElementById(o.playerId);if(t){var s=window.getComputedStyle(t,null).getPropertyValue("height"),r=l(s).call(s,0,-2);e.style.height="".concat(r,"px")}}))}}]),a}();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-43755201.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/toConsumableArray";import n from"@babel/runtime-corejs3/helpers/classCallCheck";import i from"@babel/runtime-corejs3/helpers/createClass";import o from"@babel/runtime-corejs3/helpers/assertThisInitialized";import a from"@babel/runtime-corejs3/helpers/inherits";import l from"@babel/runtime-corejs3/helpers/possibleConstructorReturn";import r from"@babel/runtime-corejs3/helpers/getPrototypeOf";import d from"@babel/runtime-corejs3/helpers/defineProperty";import"core-js/modules/es.number.to-fixed.js";import s from"@babel/runtime-corejs3/core-js-stable/instance/map";import c from"@babel/runtime-corejs3/core-js-stable/instance/concat";import u from"@babel/runtime-corejs3/core-js-stable/parse-int";import m from"@babel/runtime-corejs3/core-js-stable/instance/for-each";import h from"@babel/runtime-corejs3/core-js-stable/set-timeout";import p from"video.js";import{g as v,p as g}from"./skin-43755201.js";import{d as f}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 b(t){var n=w();return function(){var i,o=r(t);if(n){var a=r(this).constructor;i=e(o,arguments,a)}else i=o.apply(this,arguments);return l(this,i)}}function w(){try{var t=!Boolean.prototype.valueOf.call(e(Boolean,[],(function(){})))}catch(t){}return(w=function(){return!!t})()}var y=p.getComponent("Component"),C=function(e){a(r,y);var l=b(r);function r(e){var i,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return n(this,r),i=l.call(this,e,a),d(o(i),"masterRenditions",[]),d(o(i),"addCustomFont",(function(e){var t,n=p.dom.createEl("div",{className:"font hideCustomFonts"}),o=p.dom.createEl("p",{className:"customFontHeading",innerHTML:"Font Size"});p.dom.appendContent(n,o);var a=p.dom.createEl("div",{className:"font-options"});a.style.fontSize="12px",s(t=i.fontSizeOptions).call(t,(function(e,t){var n,o,l,r=p.dom.createEl("div",{className:"options",innerHTML:c(n=c(o=c(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(n,e,"pt</label>\n </div>")});r.addEventListener("click",(function(e){var t=e.target.id;i.changeFontSize(t)})),p.dom.appendContent(a,r)})),p.dom.appendContent(n,a),p.dom.appendContent(e,n)})),d(o(i),"resetRenditions",(function(){var e;s(e=t(document.getElementsByClassName("rendition"))).call(e,(function(e){p.dom.removeClass(e,"selected")}))})),i.playerId=null==a?void 0:a.playerId,i.skin=null==a?void 0:a.skin,i.icon=null==a?void 0:a.icon,i.masterRenditions=[],i.fontSizeOptions=[10,12,14],i.createRenditions(a.renditions),window.height=null,i}return i(r,[{key:"toggleContentOnHover",value:function(e,t){var n=p.dom.$(".setting-icon",e);n.addEventListener("mouseover",(function(){p.dom.removeClass(t,"resolution_hidden")})),t.addEventListener("mouseover",(function(){p.dom.removeClass(t,"resolution_hidden")})),n.addEventListener("mouseout",(function(){p.dom.addClass(t,"resolution_hidden")})),t.addEventListener("mouseout",(function(){p.dom.addClass(t,"resolution_hidden")}))}},{key:"changeFontSize",value:function(e){var t=p.dom.$(".renditions",this.contentEl()),n=p.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=p.dom.$(".setting-icon",this.el()),o=g(this.icon);if(i.append(o),"live"===this.skin){var a=document.createTextNode(" Settings");i.appendChild(a)}var l=p.dom.createEl("div",{className:"content resolution_hidden"}),r=p.dom.createEl("div",{innerHTML:"Quality",className:"title"}),d=p.dom.createEl("div",{className:"resolution"});p.dom.appendContent(d,r),this.toggleContentOnHover(n,l);var m=p.dom.createEl("div",{className:"renditions"});this.player_.tech_.vhs?(s(e).call(e,(function(e,n){var i,o,a,l,r,d=p.dom.createEl("div",{className:"relative"}),s=(((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=c(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=c(l=c(r="".concat(e.height,"p @ ")).call(r,s,"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 v=p.dom.createEl("p",{innerHTML:h,className:"rendition",res:e.height,bandwidth:e.bandwidth});p.dom.appendContent(d,v),p.dom.appendContent(m,d),v.addEventListener("click",(function(e){window.height===e.target.res&&e.target.bandwidth==window.bandwidth||(t.resetRenditions(),window.height=e.target.res,window.bandwidth=u(e.target.bandwidth),window.selectedVideo=e.target.video,E(t.playerId,e.target),p.dom.addClass(v,"selected"))}))})),this.addAutoRendition("nondrm",m),"Safari"!=f()&&this.addDynamicSwitchIfAuto()):(s(e).call(e,(function(e,n){var i,o,a,l=p.dom.createEl("div",{className:"relative"}),r=(e.bitrate/1e6).toFixed(1),d=c(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&&(d=c(o=c(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 s=p.dom.createEl("p",{innerHTML:d,className:"rendition",res:e.height,qualityIndex:e.qualityIndex});p.dom.appendContent(l,s),p.dom.appendContent(m,l),s.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,E(t.playerId,e.target),p.dom.addClass(s,"selected"))}))})),this.addAutoRendition("drm",m)),p.dom.appendContent(d,m),p.dom.appendContent(l,d),p.dom.appendContent(n,l)}},{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,r,d,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===(r=o.value)||void 0===r||null===(d=r.resolution)||void 0===d?void 0:d.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=p.dom.createEl("div",{className:"container"}),t=p.dom.createEl("div",{className:"setting-icon"});return p.dom.appendContent(e,t),e}},{key:"addAutoRendition",value:function(e,t){var n=this;if("nondrm"==e){var i,o,a,l,r=null===(i=this.player_)||void 0===i||null===(o=i.tech_)||void 0===o?void 0:o.vhs.selectPlaylist().attributes.RESOLUTION.height,d=null===(a=this.player_)||void 0===a||null===(l=a.tech_)||void 0===l?void 0:l.vhs.selectPlaylist().attributes.BANDWIDTH,s=p.dom.createEl("div",{className:"relative"}),c=p.dom.createEl("p",{innerHTML:"Auto ".concat(r,"p"),className:"rendition auto selected",bandwidth:d,res:r});c.addEventListener("click",(function(e){window.height!==e.target.res&&(n.resetRenditions(),p.dom.addClass(c,"selected"),window.height=e.target.res,window.bandwidth=u(e.target.bandwidth),window.selectedVideo=e.target.video,E(n.playerId,null,!0))})),p.dom.appendContent(s,c),p.dom.appendContent(t,s)}else{var m=p.dom.createEl("div",{className:"relative"}),h=p.dom.createEl("p",{innerHTML:"Auto",className:"rendition selected",qualityIndex:"auto"});h.addEventListener("click",(function(e){n.resetRenditions(),p.dom.addClass(h,"selected"),window.qualityIndex=e.target.qualityIndex,window.selectedVideo=e.target.video,E(n.playerId,null,!0)})),p.dom.appendContent(m,h),p.dom.appendContent(t,m)}}}]),r}(),E=function(e,t,n){var i,o=v(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;m(l=o.tech_.vhs.representations()).call(l,(function(e){n||e.bandwidth===a?e.enabled(!0):e.enabled(!1)})),o.handleTechPlaying_();var r=o.currentTime();o.currentTime(0),h((function(){o.currentTime(r)}),100);var d=p.dom.$(".content");d&&p.dom.addClass(d,"resolution_hidden")}else{var s=null==t?void 0:t.qualityIndex;if(n){var c,u;null==o||null===(c=o.dash)||void 0===c||null===(u=c.mediaPlayer)||void 0===u||u.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",s,!0);var y=o.currentTime();o.currentTime(0),h((function(){o.currentTime(y)}),100);var C=p.dom.$(".content");C&&p.dom.addClass(C,"resolution_hidden")}}};export{C as default,E 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/assertThisInitialized";import i from"@babel/runtime-corejs3/helpers/inherits";import a from"@babel/runtime-corejs3/helpers/possibleConstructorReturn";import n from"@babel/runtime-corejs3/helpers/getPrototypeOf";import c from"@babel/runtime-corejs3/helpers/defineProperty";import l from"@babel/runtime-corejs3/regenerator";import d from"@babel/runtime-corejs3/core-js-stable/instance/map";import m from"@babel/runtime-corejs3/core-js-stable/instance/for-each";import p 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 u from"video.js";import{T as j,D as b,G as v,f as y,C as f}from"./generic-979547e7.js";import{E as h}from"./icons-68d3a609.js";import{d as g}from"./skin-43755201.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/keys";import"@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols";import"@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor";import"@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors";import"@babel/runtime-corejs3/core-js-stable/object/define-properties";import"@babel/runtime-corejs3/core-js-stable/object/define-property";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-2bcc449f.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"@babel/runtime-corejs3/helpers/toConsumableArray";var w=function(e){document.getElementById("".concat(e)).classList.add("vjs-waiting")};function C(s){var r=L();return function(){var t,o=n(s);if(r){var i=n(this).constructor;t=e(o,arguments,i)}else t=o.apply(this,arguments);return a(this,t)}}function L(){try{var s=!Boolean.prototype.valueOf.call(e(Boolean,[],(function(){})))}catch(s){}return(L=function(){return!!s})()}var x,k=u.getComponent("Component"),E=function(e){i(a,k);var s=C(a);function a(e){var t,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};r(this,a),t=s.call(this,e,i),c(o(t),"seriesData",[]),t.seriesData=i.seriesData,x=i.playerId;var n=t.el();return B(n,t.seriesData),t.loadCSS(),t}return t(a,[{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)}))}}]),a}();function S(){return(S=s(l.mark((function e(s,r,t,o){return l.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:b(x),w(x),v(x,r).then((function(e){y(e.response),f(x)}));case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function q(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 c=d(o=e.episodes).call(o,(function(e,s){var r,t,o,i;return p(r=p(t=p(o=p(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 l=g(c);null!=l&&l.firstChild;)n.appendChild(l.firstChild);!function(e){j(e).then((function(e){var s=e.data,r=document.querySelectorAll("#progress-div");r&&d(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 u=document.querySelectorAll(".details-wrapper"),b=document.querySelectorAll("#episode-title"),v=document.querySelectorAll(".meta-details"),y=document.querySelector("#episodes-back-btn"),f=e.id,h=e.episodes;y.addEventListener("click",(function(){return function(e,s){e.classList.remove("hide-container"),s.classList.add("hide-container")}(i,a)}));for(var w=function(s){u[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"),m(r).call(r,(function(s,t){t!==e&&(r[t].classList.remove("episode-active"),r[t].querySelector(".meta-details").classList.remove("metadetails-active"))}))}(s,b[s],b)})),v[s].addEventListener("click",(function(){return function(e,s,r,t){return S.apply(this,arguments)}(s,h[s].id,r,b)})),e.episodes[s].id==f&&b[s].classList.add("highlight-active-eps")},C=0;C<u.length;C++)w(C)}function B(e,s){for(var r,t=p(r='<div class="hover-div"></div>\n '.concat(h(),'\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 d(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=g(t);null!=o&&o.firstChild;)e.appendChild(o.firstChild)}export{B as customSeasonList,q as handleSeasonChange,E as seriesModule};
@@ -0,0 +1 @@
1
+ import e from"@babel/runtime-corejs3/core-js-stable/reflect/construct";import s from"@babel/runtime-corejs3/helpers/toConsumableArray";import o from"@babel/runtime-corejs3/helpers/classCallCheck";import t from"@babel/runtime-corejs3/helpers/createClass";import r from"@babel/runtime-corejs3/helpers/assertThisInitialized";import i from"@babel/runtime-corejs3/helpers/inherits";import n 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 l from"@babel/runtime-corejs3/core-js-stable/instance/map";import c from"@babel/runtime-corejs3/core-js-stable/instance/slice";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 b,b as y,w as h,G as f}from"./generic-979547e7.js";import{e as g,p as C,g as x}from"./skin-43755201.js";import{a as N}from"./autoNextVideo-fc102a98.js";import"@babel/runtime-corejs3/core-js-stable/instance/concat";import"@babel/runtime-corejs3/helpers/defineProperty";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/keys";import"@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols";import"@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor";import"@babel/runtime-corejs3/core-js-stable/instance/for-each";import"@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors";import"@babel/runtime-corejs3/core-js-stable/object/define-properties";import"@babel/runtime-corejs3/core-js-stable/object/define-property";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-2bcc449f.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-7ef0c31b.js";function E(s){var o=k();return function(){var t,r=a(s);if(o){var i=a(this).constructor;t=e(r,arguments,i)}else t=r.apply(this,arguments);return n(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"),w=function(e){i(a,S);var n=E(a);function a(e){var t,i,c,d,m,p,u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(o(this,a),(p=n.call(this,e,u)).playerId=u.playerId,p.seriesData=u.sres,p.videos=null==u||null===(t=u.sres)||void 0===t?void 0:t.seasons,p.currentVideoData=u.res,p.initialiseStructure(),p.loadCSS(),p.selectedSeason=0,p.cb=null==u||null===(i=u.series)||void 0===i?void 0:i.cb,p.autoPlayNext=(null==u||null===(c=u.series)||void 0===c?void 0:c.autoPlayNext)||!1,sessionStorage.getItem("token"),p.watchMap=j(),null!==(d=r(p))&&void 0!==d&&d.autoPlayNext&&null!=u&&null!==(m=u.series)&&void 0!==m&&m.enable){var y,h,f,g,C=null==u||null===(y=u.sres)||void 0===y?void 0:y.seasons,x=[];l(C).call(C,(function(e){x.push.apply(x,s(e.episodes))})),v(x),b(null===(h=p.options_)||void 0===h||null===(f=h.res)||void 0===f||null===(g=f.video)||void 0===g?void 0:g.id),N({playerId:p.playerId,content:x,cb:p.cb,series:null==u?void 0:u.sres})}return p}return t(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-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=c(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=c(t).call(t,0,-2);e.style.height="".concat(r,"px")}}))}},{key:"createSeasonLister",value:function(){var e=this;x(this.playerId);for(var s=y(),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){h.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,o){var t=this;e=l(e).call(e,(function(e){var s,o,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===(o=e.gist)||void 0===o||null===(r=o.imageGist)||void 0===r?void 0:r.r16x9,watchedPercentage:(null==t||null===(i=t.watchMap)||void 0===i||null===(n=i.get(null==e?void 0:e.id))||void 0===n?void 0:n.p)||0}}));for(var r=function(r){var i,n,a,l,c,m,p,u=d.dom.createEl("div",{className:"series-container"}),j=d.dom.createEl("div",{className:"series-section",index:r}),v=d.dom.createEl("div",{className:"series-title",innerHTML:"".concat((null===(i=e[r])||void 0===i?void 0:i.title)||"")}),y=d.dom.createEl("div",{className:"series-progress-bar",innerHTML:"<div style='width:".concat(e[r].watchedPercentage,"%' class='series-progress-bar-value'></div>")});d.dom.appendContent(j,v),d.dom.appendContent(j,y),d.dom.appendContent(u,j),d.dom.appendContent(o,u);var h=d.dom.createEl("div",{className:"series-section-expanded hidden"}),g=(null===(n=e[r])||void 0===n?void 0:n.description)||"";(null===(a=g)||void 0===a?void 0:a.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===(l=e[r])||void 0===l?void 0:l.img)||(null===(c=window)||void 0===c||null===(m=c.customData)||void 0===m?void 0:m.fallbackImage)),x.alt="".concat(null===(p=e[r])||void 0===p?void 0:p.title),d.dom.appendContent(h,x),d.dom.appendContent(h,C),d.dom.appendContent(u,h),d.dom.appendContent(o,u),h.onclick=function(s){var o;s.stopPropagation(),b(null===(o=e[r])||void 0===o?void 0:o.id),f(t.playerId,e[r].id).then((function(e){null!=t&&t.cb&&t.cb(e)})).catch((function(e){null!=t&&t.cb&&t.cb(e)}))},j.onclick=function(e){var o,t,r,i=document.getElementsByClassName("series-selector-content")[0].childNodes,n=(i=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")}},i=0;i<e.length;i++)r(i);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=y()[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)}}]),a}();export{w as default};
@@ -0,0 +1 @@
1
+ import e from"@babel/runtime-corejs3/core-js-stable/reflect/construct";import s from"@babel/runtime-corejs3/helpers/toConsumableArray";import o from"@babel/runtime-corejs3/helpers/classCallCheck";import r from"@babel/runtime-corejs3/helpers/createClass";import t from"@babel/runtime-corejs3/helpers/assertThisInitialized";import i from"@babel/runtime-corejs3/helpers/inherits";import a 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 l from"@babel/runtime-corejs3/core-js-stable/instance/map";import c from"@babel/runtime-corejs3/core-js-stable/instance/slice";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 b,b as y,w as h,G as f}from"./generic-979547e7.js";import{e as g,s as C,p as N,j as x,g as E,i as k}from"./skin-43755201.js";import{a as S}from"./autoNextVideo-fc102a98.js";import"@babel/runtime-corejs3/core-js-stable/instance/concat";import"@babel/runtime-corejs3/helpers/defineProperty";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/keys";import"@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols";import"@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor";import"@babel/runtime-corejs3/core-js-stable/instance/for-each";import"@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors";import"@babel/runtime-corejs3/core-js-stable/object/define-properties";import"@babel/runtime-corejs3/core-js-stable/object/define-property";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-2bcc449f.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-7ef0c31b.js";function L(s){var o=w();return function(){var r,t=n(s);if(o){var i=n(this).constructor;r=e(t,arguments,i)}else r=t.apply(this,arguments);return a(this,r)}}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){i(n,I);var a=L(n);function n(e){var r,i,c,d,m,p,u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(o(this,n),(p=a.call(this,e,u)).playerId=u.playerId,p.seriesData=u.sres,p.videos=null==u||null===(r=u.sres)||void 0===r?void 0:r.seasons,p.currentVideoData=u.res,p.initialiseStructure(),p.loadCSS(),p.selectedSeason=0,p.cb=null==u||null===(i=u.series)||void 0===i?void 0:i.cb,p.autoPlayNext=(null==u||null===(c=u.series)||void 0===c?void 0:c.autoPlayNext)||!1,sessionStorage.getItem("token"),p.watchMap=j(),null!==(d=t(p))&&void 0!==d&&d.autoPlayNext&&null!=u&&null!==(m=u.series)&&void 0!==m&&m.enable){var y,h,f,g,C=null==u||null===(y=u.sres)||void 0===y?void 0:y.seasons,N=[];l(C).call(C,(function(e){N.push.apply(N,s(e.episodes))})),v(N),b(null===(h=p.options_)||void 0===h||null===(f=h.res)||void 0===f||null===(g=f.video)||void 0===g?void 0:g.id),S({playerId:p.playerId,content:N,cb:p.cb,series:null==u?void 0:u.sres})}return p}return r(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-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 r=document.getElementById(this.playerId);if(r){var t=window.getComputedStyle(r,null).getPropertyValue("height"),i=c(t).call(t,0,-2);o.style.height="".concat(i,"px"),d.dom.appendContent(s,o),r.style.overflow="hidden",this.addFunctionality(o)}}},{key:"addFunctionality",value:function(e){var s=this,o=this.el(),r=d.dom.createEl("div",{className:"series-selector-head"}),t=d.dom.createEl("div",{className:"series-selector-cross-icon",innerHTML:"".concat(p())});t.onclick=function(){if("series-selector-cross-icon"===t.className)e.classList.add("hidden"),o.classList.remove("open");else if("series-selector-back-icon"===t.className){var r=d.dom.$(".series-selector-content",s.el());for(d.dom.$(".series-selector-cross-icon",s.el()),t.className="series-selector-cross-icon";null!=r&&r.firstChild;)r.removeChild(r.firstChild);var i=s.createSeasonLister();for(d.dom.appendContent(r,i),d.dom.$(".series-selector-title",s.el()).textContent="Seasons";null!=t&&t.firstChild;)t.removeChild(t.firstChild);var a=N(p());t.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(r,t),d.dom.appendContent(r,i),d.dom.appendContent(e,r),d.dom.appendContent(e,a),x(this.playerId,e)}},{key:"createSeasonLister",value:function(){var e=this;E(this.playerId);for(var s=y(),o=d.dom.createEl("div",{className:"season-container"}),r=function(r){var t,i=document.createElement("label");i.className="season-holder",i.setAttribute("for","season-".concat(r));var a=document.createElement("div");a.className="season - ".concat(r),a.textContent=null===(t=s[r])||void 0===t?void 0:t.title;var n=d.dom.createEl("input",{className:"radio - ".concat(r),id:"season-".concat(r),name:"season-radio"});n.setAttribute("type","radio"),e.selectedSeason==r&&(n.checked=!0),n.onclick=function(s){h.set(r),e.showSeasonDetails(r)},d.dom.appendContent(i,n),d.dom.appendContent(i,a),d.dom.appendContent(o,i)},t=0;t<s.length;t++)r(t);return o}},{key:"getSeasonDetailsContainer",value:function(e,o){var r=this;e=l(e).call(e,(function(e){var s,o,t,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===(o=e.gist)||void 0===o||null===(t=o.imageGist)||void 0===t?void 0:t.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==r||null===(c=r.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 i,a,n,l,c,m=d.dom.createEl("div",{className:"series-container"}),p=d.dom.createEl("div",{className:"series-section-data",index:t,innerHTML:"".concat((null===(i=e[t])||void 0===i?void 0:i.title)||"")});d.dom.createEl("div",{className:"series-title",innerHTML:"".concat((null===(a=e[t])||void 0===a?void 0:a.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===(n=e[t])||void 0===n?void 0:n.description)||"";(null===(l=j)||void 0===l?void 0:l.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===(c=e[t])||void 0===c?void 0:c.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(o,m),m.onclick=function(s){var o;s.stopPropagation(),b(null===(o=e[t])||void 0===o?void 0:o.id),f(r.playerId,e[t].id).then((function(e){null!=r&&r.cb&&r.cb(e)})).catch((function(e){null!=r&&r.cb&&r.cb(e)}))},p.onclick=function(e){var o,r,t,i=document.getElementsByClassName("series-selector-content")[0].childNodes,a=(i=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===(r=a.classList)||void 0===r||r.remove("hidden")):(null==a||null===(t=a.classList)||void 0===t||t.add("hidden"),m.style.backgroundColor="unset")}},i=0;i<e.length;i++)t(i);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=y()[e].episodes;this.getSeasonDetailsContainer(o,s);var r=d.dom.$(".series-selector-cross-icon",this.el());for(r.className="series-selector-back-icon";null!=r&&r.firstChild;)r.removeChild(r.firstChild);var t=N(u());r.appendChild(t),d.dom.$(".series-selector-title",this.el()).textContent="Season ".concat(e+1)}}]),n}();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/toConsumableArray";import a from"@babel/runtime-corejs3/helpers/classCallCheck";import n from"@babel/runtime-corejs3/helpers/createClass";import o from"@babel/runtime-corejs3/helpers/inherits";import i from"@babel/runtime-corejs3/helpers/possibleConstructorReturn";import r from"@babel/runtime-corejs3/helpers/getPrototypeOf";import"core-js/modules/es.object.to-string.js";import"core-js/modules/es.promise.js";import l from"@babel/runtime-corejs3/core-js-stable/map";import s from"@babel/runtime-corejs3/core-js-stable/instance/for-each";import c from"@babel/runtime-corejs3/core-js-stable/instance/map";import d from"@babel/runtime-corejs3/core-js-stable/instance/sort";import u from"@babel/runtime-corejs3/core-js-stable/instance/concat";import m from"video.js";import{g as p,f as v,T as h}from"./icons-68d3a609.js";import{e as b,s as f,f as g,j as y,g as j,d as C,p as E}from"./skin-43755201.js";import{g as N}from"./renditions-7724f87c.js";import{playSelectedResolution as k}from"./resolution-de9dd282.js";import{g as x}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"@babel/runtime-corejs3/helpers/assertThisInitialized";import"@babel/runtime-corejs3/helpers/defineProperty";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 I(t){var a=L();return function(){var n,o=r(t);if(a){var l=r(this).constructor;n=e(o,arguments,l)}else n=o.apply(this,arguments);return i(this,n)}}function L(){try{var t=!Boolean.prototype.valueOf.call(e(Boolean,[],(function(){})))}catch(t){}return(L=function(){return!!t})()}var B=m.getComponent("Component"),M=function(e){o(r,B);var i=I(r);function r(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return a(this,r),(t=i.call(this,e,n)).playerId=n.playerId,t.seriesData=n.sres,t.currentVideoData=n.res,t.initialiseStructure(),t.loadCSS(),t.resolutionBitrateMap,t}return n(r,[{key:"fillResolutionBitrateMap",value:function(e){var t=this;this.resolutionBitrateMap=new l,s(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=m.dom.createEl("div",{className:"settings-selection vjs-control vjs-button"});e.style.position="unset";var t=m.dom.createEl("div",{className:"settings-selector-icon",innerHTML:"".concat(p())});return m.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=m.dom.createEl("div",{className:"selection-container hidden"});m.dom.$(".settings-selector-icon",this.el()).onclick=function(){var n;null!==(n=a.classList)&&void 0!==n&&n.contains("hidden")?(b(),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),m.dom.appendContent(t,a),n.style.overflow="hidden",this.addFunctionality(a),g(this.playerId,a)}}},{key:"addFunctionality",value:function(e){var t=this.el(),a=m.dom.createEl("div",{className:"settings-selector-head"}),n=m.dom.createEl("div",{className:"settings-selector-cross-icon",innerHTML:"".concat(v())});n.onclick=function(){e.classList.add("hidden"),t.classList.remove("open"),e.style.right="-350px"};var o=m.dom.createEl("div",{className:"settings-selector-title",innerHTML:x("settingsTitle")||"Settings"}),i=m.dom.createEl("div",{className:"settings-selector-content"}),r=m.dom.createEl("div",{className:"settings-container"}),l=this.createVideoQualityContainer();m.dom.appendContent(r,l);var s=this.createAudioQualityContainer();m.dom.appendContent(r,s),m.dom.appendContent(a,n),m.dom.appendContent(a,o),m.dom.appendContent(e,a),m.dom.appendContent(e,i),m.dom.appendContent(i,r),y(this.playerId,e)}},{key:"createAudioQualityContainer",value:function(){var e=j(this.playerId),t=null==e?void 0:e.audioTracks().tracks_;if(!((null==t?void 0:t.length)<=1)){var a=m.dom.createEl("div",{className:"audio-language-container"}),n=m.dom.createEl("div",{className:"audio-language-container-title",innerHTML:x("audioLanguageText")||"Audio Language"});m.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=m.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){c(t).call(t,(function(e){e.enabled=!1})),t[e].enabled=!0},m.dom.appendContent(o,r),m.dom.appendContent(o,i),m.dom.appendContent(a,o)},i=0;i<t.length;i++)o(i);return a}}},{key:"createVideoQualityContainer",value:function(){var e,a,n=this,o=m.dom.createEl("div",{className:"video-quality-container"}),i=m.dom.createEl("div",{className:"video-quality-container-title",innerHTML:x("videoQualityText")||"Video Quality"});m.dom.appendContent(o,i);var r=d(e=u(a=[]).call(a,t(N(this.playerId)),[{height:"Auto"}])).call(e,(function(e,t){return(null==t?void 0:t.qualityIndex)-(null==e?void 0:e.qualityIndex)}));this.fillResolutionBitrateMap(r),k(this.playerId,"raw",!0);for(var l=function(e){var t,a,i,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 u=(null==r||null===(t=r[e])||void 0===t?void 0:t.height)+"".concat("Auto"==(null==r||null===(a=r[e])||void 0===a?void 0:a.height)?"":"p"),p=document.createTextNode(u),v="".concat(n.isEnhancedBitrate(r[e])?x("enhancedBitrateLabel")||"Enhanced Bitrate":""),b=document.createTextNode(v);if(c.appendChild(b),d.appendChild(p),(null==r||null===(i=r[e])||void 0===i?void 0:i.height)>=720)for(var f=C("<span class='hd-rendition'> HD </span>");null!=f&&f.firstChild;)d.appendChild(f.firstChild);var g=m.dom.createEl("input",{className:"radio - ".concat(e," radio-btn"),id:"quality".concat(e),name:"quality-radio",rendata:"".concat(r[e]),checked:"".concat(e==r.length-1)});g.setAttribute("type","radio"),g.onchange=function(t){var a=r[e];"true"=="".concat("Auto"==r[e].height)?k(n.playerId,a,!0):k(n.playerId,a)};var y=document.createElement("span");y.className=v?"check-mark center":"check-mark";var j=E(h());y.appendChild(j),s.appendChild(g),s.appendChild(y),s.appendChild(d),m.dom.appendContent(l,s),l.appendChild(c),m.dom.appendContent(o,l)},s=0;s<r.length;s++)l(s);return o}}]),r}();export{M as default};
@@ -0,0 +1 @@
1
+ import{h as e,o as r,p as o,q as t}from"./features-9a77b3ec.js";import{g as s,t as n,p as a}from"./skin-43755201.js";import{a as i,i as l,b as c}from"./index-caeb7f58.js";import{i as m}from"./browser-000da9e7.js";import"videojs-contrib-quality-menu";import d from"video.js";import{k as u,i as p}from"./keyboardShortcuts-6443082f.js";import{l as j,S as b,e as v}from"./generic-979547e7.js";import"core-js/modules/es.function.name.js";import f from"@babel/runtime-corejs3/core-js-stable/object/keys";import y from"@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols";import h from"@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor";import g from"@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors";import k from"@babel/runtime-corejs3/core-js-stable/object/define-properties";import S from"@babel/runtime-corejs3/core-js-stable/object/define-property";import w from"@babel/runtime-corejs3/core-js-stable/instance/slice";import x from"@babel/runtime-corejs3/core-js-stable/array/from";import C from"@babel/runtime-corejs3/core-js-stable/symbol";import I from"@babel/runtime-corejs3/core-js/get-iterator-method";import T from"@babel/runtime-corejs3/helpers/toConsumableArray";import M from"@babel/runtime-corejs3/helpers/slicedToArray";import B from"@babel/runtime-corejs3/helpers/defineProperty";import E from"@babel/runtime-corejs3/helpers/asyncToGenerator";import A from"@babel/runtime-corejs3/regenerator";import N from"@babel/runtime-corejs3/core-js-stable/json/stringify";import O from"@babel/runtime-corejs3/core-js-stable/url";import U from"@babel/runtime-corejs3/core-js-stable/instance/includes";import R from"@babel/runtime-corejs3/core-js-stable/object/entries";import P from"@babel/runtime-corejs3/core-js-stable/instance/starts-with";import D from"@babel/runtime-corejs3/core-js-stable/instance/map";import V from"@babel/runtime-corejs3/core-js-stable/array/is-array";import _ from"@babel/runtime-corejs3/core-js-stable/instance/for-each";import q from"@babel/runtime-corejs3/core-js-stable/map";import L from"@babel/runtime-corejs3/core-js-stable/instance/concat";import Q from"@babel/runtime-corejs3/core-js-stable/instance/filter";import $ 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 G}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-7724f87c.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-fc102a98.js";import"./util-7ef0c31b.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"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-2bcc449f.js";import"core-js/modules/es.number.to-fixed.js";import"@babel/runtime-corejs3/core-js-stable/set-interval";function F(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||m()||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 H(e,r){var o=void 0!==C&&I(e)||e["@@iterator"];if(!o){if(V(e)||(o=function(e,r){if(e){var o;if("string"==typeof e)return K(e,r);var t=w(o={}.toString.call(e)).call(o,8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?x(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?K(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 K(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 z(e,r){var o=f(e);if(y){var t=y(e);r&&(t=Q(t).call(t,(function(r){return h(e,r).enumerable}))),o.push.apply(o,t)}return o}function J(e){for(var r=1;r<arguments.length;r++){var o,t,s=null!=arguments[r]?arguments[r]:{};r%2?_(o=z(Object(s),!0)).call(o,(function(r){B(e,r,s[r])})):g?k(e,g(s)):_(t=z(Object(s))).call(t,(function(r){S(e,r,h(s,r))}))}return e}function W(){return W=E(A.mark((function e(r,o){var t,i,l,c,m,d,p,v,f,y,h,g,k,S,w,x,C,I,B;return A.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return B=function(e,o,t){var n=s(r);Math.floor(n.currentTime());var a,i,l,c,m,d,u,p,j,b,v,f,y,h,g=H(o);try{for(g.s();!(a=g.n()).done;)i=void 0,l=void 0,c=void 0,m=void 0,d=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,d=a.value,u=d.eventType,p=d.beaconUrls,j=d.startTimeInSeconds,b=d.startTime,v=d.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())||I.has(b)||(I.set(b,!0),"function"==typeof h&&h({adsData:{eventType:u,startTimeInSeconds:j,startTime:b,durationInSeconds:v,ad:null==e||null===(m=e.ads)||void 0===m?void 0:m[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()}},C=function(e){var r,o,t=Math.floor(e/60),s=Math.floor(e%60);return L(r="".concat(t,":")).call(r,$(o=s.toString()).call(o,2,"0"))},w=function(e){var r={},o=e.split("?")[1];if(!o)return r;var t,s=H(o.split("&"));try{for(s.s();!(t=s.n()).done;){var n=t.value.split("="),a=M(n,2),i=a[0],l=a[1];r[decodeURIComponent(i)]=decodeURIComponent(l||"")}}catch(e){s.e(e)}finally{s.f()}for(var c={},m=0,d=R(r);m<d.length;m++){var u=M(d[m],2),p=u[0],j=u[1];if(P(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=w(i),i=i.split("?")[0],e.next=10,fetch(i,{method:"POST",headers:{"Content-Type":"application/json"},body:N({adsParams:J({},l)})});case 10:return c=e.sent,e.next=13,c.json();case 13:m=e.sent,d="https://"+new O(i).hostname,p=m.trackingUrl,v=m.manifestUrl,f=d+p,y=d+v,console.log("%c TRACKING URL","background: #bdf369; color: #000",f),null!=o&&U(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})):(S=(null==t||null===(k=t.currentSource())||void 0===k?void 0:k.keySystems)||null,j(r,{src:y,type:"application/x-mpegURL",keySystems:S})),t.one("loadeddata",(function(){x(f)})),x=function(){var e=E(A.mark((function e(o){var t,i,l,c,m,d,p,j,b,v,f,y,h,g,k,S,w;return A.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,m=[],d=s(r),p=d.controlBar.progressControl,j=p.seekBar.el(),D(c).call(c,(function(e){var r;V(null==e?void 0:e.ads)&&(null==e||null===(r=e.ads)||void 0===r?void 0:r.length)>0&&m.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)})})),_(m).call(m,(function(e){var r=e.markerPositionInSeconds,o=d.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 q,v=-1,d.on("timeupdate",n((function(){var e=Math.floor(d.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,m;r=!0,b.set(n,!0),u.disable(),p.el().style.visibility="hidden";for(var d=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(d<j+g){v=y;break}j+=g}var k=i[v],w=d-j,x=Math.max(0,k.durationInSeconds-w),I=Math.round(x);f.style.display="block",S.textContent=L(c=L(m="".concat(v+1," of ")).call(m,i.length," • ")).call(c,C(I));var M=[];return _(i).call(i,(function(e){var r,o=Q(r=e.trackingEvents).call(r,(function(e){var r;return U(r=["breakStart","breakEnd","firstQuartile","secondQuartile","thirdQuartile","fourthQuartile","midpoint","impression"]).call(r,e.eventType)}));M.push.apply(M,T(o))})),B(o,M,v),"break"}},t=0,s=m;t<s.length;t++){if("break"===o())break}r||(f.style.display="none",p.el().style.visibility="visible",u.enable())}}),1e3)),d.on("seeked",(function(){for(var e=null,r=0,o=m;r<o.length;r++){var t=o[r],s=null==d?void 0:d.currentTime(),n=t.startTimeInSeconds,a=t.durationInSeconds;s>Math.floor(n+a)&&!b.has(n)&&(e=n,b.set(n,!0))}e&&(d.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(G()),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),d.el().appendChild(f);case 43:case"end":return e.stop()}}),e)})));return function(r){return e.apply(this,arguments)}}(),I=new q;case 24:case"end":return e.stop()}}),e)}))),W.apply(this,arguments)}function X(e,n){s(e).addClass("skin_vlone"),F(e,n),function(e,s){var n,a,i,l,m,d,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!==(m=s.series)&&void 0!==m&&m.enable&&o(e,s);(null==s||null===(d=s.streams)||void 0===d?void 0:d.length)>1&&t(e,null==s?void 0:s.streams);c(e,s),p(e,s),u&&function(e,r){W.apply(this,arguments)}(e,b)}(e,n),Y(e,n)}var Y=function(e,r){var o,t,n,a,i,l,c,m,u,p,j,b,v=s(e),f=(null==r?void 0:r.theme)||{},y=d.dom.$(".vjs-play-progress"),h=d.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===(m=c.app_data)||void 0===m||null===(u=m.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{X 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 r,h as o,d as s,e as t,i,j as l,k as a,l as n,m}from"./features-9a77b3ec.js";import{M as c,a as d,c as p,d as j}from"./icons-68d3a609.js";import{g as u,b}from"./skin-43755201.js";import y from"@babel/runtime-corejs3/core-js-stable/instance/includes";import{g as v}from"./renditions-7724f87c.js";import{g as f}from"./captions-2bcc449f.js";import{a as h,i as g,b as C}from"./index-caeb7f58.js";import{i as w,d as x}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/core-js-stable/object/keys";import"@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols";import"@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor";import"@babel/runtime-corejs3/core-js-stable/instance/for-each";import"@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors";import"@babel/runtime-corejs3/core-js-stable/object/define-properties";import"@babel/runtime-corejs3/core-js-stable/object/define-property";import"@babel/runtime-corejs3/helpers/defineProperty";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"video.js";import"./generic-979547e7.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/helpers/toConsumableArray";import"@babel/runtime-corejs3/core-js-stable/instance/sort";import"./autoNextVideo-fc102a98.js";import"./util-7ef0c31b.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/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/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(s,t){var i=u(s);i&&(i.on("loadeddata",(function(){var o,l,a,n,m,c,d;(null===(o=v(s))||void 0===o?void 0:o.length)>0&&e(s,t),(null===(l=f(s))||void 0===l?void 0:l.length)>0&&r(s,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(s,t),function(e,r){var o,s,t=Math.floor(e/60),i=null===(o=document.getElementsByClassName("vjs-progress-holder vjs-slider vjs-slider-horizontal"))||void 0===o?void 0:o[0];i&&(i.style.marginRight=t>60?"56px":"41px");var l=document.getElementsByClassName("vjs-live-control")[0],a=document.getElementsByClassName("vjs-time-control");r&&y(s=l.classList.value).call(s,"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||w()||g(s)})),i.one("play",(function(){var e,r,t,i;null!==(e=window)&&void 0!==e&&null!==(r=e.customData)&&void 0!==r&&r.iframeOverlayUrl&&o(s,null===(t=window)||void 0===t||null===(i=t.customData)||void 0===i?void 0:i.iframeOverlayUrl)})))}function k(e,r){u(e).addClass("skin_defaultv2"),function(){"Chrome"==x()&&import("./chromett-a3cbb2e1.js").then((function(e){var r=document.createElement("style");r.id="chromett",r.append("".concat(e.default)),document.head.appendChild(r)}));import("./skin-e4b35c14.js").then((function(e){var r=document.createElement("style");r.id="default_v2",r.append("".concat(e.default)),document.head.appendChild(r)}))}(),V(e,r),function(e,r){var o,s,t,i,l,a,n=u(e);null==n||null===(o=n.controlBar)||void 0===o||null===(s=o.getChild("FullscreenToggle"))||void 0===s||null===(t=s.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");r.liveVideo&&m[0]&&(m[0].style.display="none")}(e,r),function(e,r){var o,c,d,u,b,y;0==(null==r?void 0:r.liveVideo)&&0==(null==r?void 0:r.liveui)&&s(e,"defaultV2",p());(0==(null==r?void 0:r.liveVideo)&&0==(null==r?void 0:r.liveui)||1==(null==r?void 0:r.liveui))&&t(e,"defaultV2",j());r.liveVideo||i(e);(null==r||null===(o=r.relatedVideos)||void 0===o||null===(c=o.content)||void 0===c?void 0:c.length)>0&&l(e,null==r?void 0:r.relatedVideos);(null==r||null===(d=r.streams)||void 0===d?void 0:d.length)>1&&a(e,null==r?void 0:r.streams);(null==r||null===(u=r.playlist)||void 0===u||null===(b=u.content)||void 0===b?void 0:b.length)>0&&n(e,null==r?void 0:r.playlist);null!=r&&null!==(y=r.series)&&void 0!==y&&y.enable&&m(e,r)}(e,r),C(e,r)}export{k as initialiseSkin};
@@ -0,0 +1 @@
1
+ import e from"@babel/runtime-corejs3/helpers/toConsumableArray";import n from"@babel/runtime-corejs3/core-js-stable/instance/includes";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 r from"video.js";var l=function(e){return!!r.getPlayer("".concat(e))&&r.getPlayer("".concat(e))},a=["live","carousel","V2","defaultV2","multiplayer","minimalist","VL_ONE"],c=function(e){return!n(a).call(a,e)},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(n,i){if(i){var o,r,a=l(i);if(a&&"function"==typeof a.el&&null!=a&&null!==(o=a.el())&&void 0!==o&&null!==(r=o.classList)&&void 0!==r&&r.contains("skin_defaultv2"))return void v(n)}var c=e(document.querySelectorAll("[video-idx]"));console.log(c),t(c).call(c,(function(e){var t=e.parentNode,i=e.getAttribute("video-idx");t.style.background=i==n?"gray":"none"}))},v=function(n){var i=e(document.querySelectorAll("[video-idx]"));t(i).call(i,(function(e){var t=e.getAttribute("video-idx");e.style.border=t==n?"2px solid white":"none"}))},f=function(){var n=e(document.getElementsByClassName("vjs-control vjs-button open"));null==n||t(n).call(n,(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(e){return e&&!n(e).call(e,"?impolicy")?e+"?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=l(e),r=l(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(r),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,r=null;return function(){for(var l=this,a=arguments.length,c=new Array(a),u=0;u<a;u++)c[u]=arguments[u];r?(clearTimeout(t),t=i((function(){o()-r>=n&&(e.apply(l,c),r=o())}),n-(o()-r))):(e.apply(this,c),r=o())}}export{c as a,s as b,h as c,u as d,f as e,y as f,l 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"core-js/modules/es.object.to-string.js";import"core-js/modules/es.promise.js";import{g as e}from"./skin-43755201.js";import{f as r,n as s}from"./features-9a77b3ec.js";import{g as o}from"./renditions-7724f87c.js";import{r as t}from"./captions-2bcc449f.js";import"@babel/runtime-corejs3/helpers/toConsumableArray";import"@babel/runtime-corejs3/core-js-stable/instance/includes";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/core-js-stable/object/keys";import"@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols";import"@babel/runtime-corejs3/core-js-stable/instance/filter";import"@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor";import"@babel/runtime-corejs3/core-js-stable/instance/for-each";import"@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors";import"@babel/runtime-corejs3/core-js-stable/object/define-properties";import"@babel/runtime-corejs3/core-js-stable/object/define-property";import"@babel/runtime-corejs3/helpers/defineProperty";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"./generic-979547e7.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/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"./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"core-js/modules/es.object.to-string.js";import"core-js/modules/es.promise.js";import{a as e,b as r,c as s,d as o,e as t}from"./features-9a77b3ec.js";import{i}from"./keyboardShortcuts-6443082f.js";import{S as a,M as l,a as m,b as n,R as c,N as p}from"./icons-68d3a609.js";import{g as j,b as d}from"./skin-43755201.js";import{d as u}from"./generic-979547e7.js";import"@babel/runtime-corejs3/core-js-stable/reflect/construct";import"@babel/runtime-corejs3/core-js-stable/object/keys";import"@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols";import"@babel/runtime-corejs3/core-js-stable/instance/filter";import"@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor";import"@babel/runtime-corejs3/core-js-stable/instance/for-each";import"@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors";import"@babel/runtime-corejs3/core-js-stable/object/define-properties";import"@babel/runtime-corejs3/core-js-stable/object/define-property";import"@babel/runtime-corejs3/helpers/defineProperty";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"video.js";import"./renditions-7724f87c.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/helpers/toConsumableArray";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"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-2bcc449f.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 r=document.createElement("style");r.id="def_skin",r.append("".concat(e.default)),document.head.appendChild(r)})),function(e,r){0==r.liveVideo&&0==r.liveui&&o(e,"default",n());(0==r.liveVideo&&0==r.liveui||1==r.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-66506110.js").then((function(e){e.initaliseFunctionality(t.sres.seasons,u())}))})),i.one("loadedmetadata",(function(){var e;l&&(r(o,null==t||null===(e=t.sres)||void 0===e?void 0:e.seasons,t),s(t.sres,t.res,o))}))}(b,y),function(e,r){var s,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];r.liveVideo&&(n&&(n.style.display="none"),c&&(c.style.display="none"),u&&(u.style.display="none"));null===(s=a.controlBar.getChild("FullscreenToggle"))||void 0===s||null===(o=s.el())||void 0===o||o.appendChild(d(l(window.controlsColor))),null===(t=a.controlBar.getChild("FullscreenToggle"))||void 0===t||null===(i=t.el())||void 0===i||i.appendChild(d(m(window.controlsColor)));var b=a.controlBar.getChild("SubsCapsButton").el();document.getElementById(e).getElementsByClassName("vjs-subs-caps-button")[1].appendChild(d(p()));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{C as e,D as r}from"./generic-979547e7.js";import{g as s}from"./skin-43755201.js";import"@babel/runtime-corejs3/helpers/defineProperty";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/keys";import"@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols";import"@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor";import"@babel/runtime-corejs3/core-js-stable/instance/for-each";import"@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors";import"@babel/runtime-corejs3/core-js-stable/object/define-properties";import"@babel/runtime-corejs3/core-js-stable/object/define-property";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-2bcc449f.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"@babel/runtime-corejs3/helpers/toConsumableArray";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{C as e,D as r}from"./generic-979547e7.js";import{g as s}from"./skin-43755201.js";import"@babel/runtime-corejs3/helpers/defineProperty";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/keys";import"@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols";import"@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor";import"@babel/runtime-corejs3/core-js-stable/instance/for-each";import"@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors";import"@babel/runtime-corejs3/core-js-stable/object/define-properties";import"@babel/runtime-corejs3/core-js-stable/object/define-property";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-2bcc449f.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"@babel/runtime-corejs3/helpers/toConsumableArray";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};
@@ -1 +1 @@
1
- import{g as t}from"./skin-1f169372.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};
1
+ import{g as t}from"./skin-43755201.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 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 m}from"./icons-68d3a609.js";import{G as d,R as p}from"./generic-979547e7.js";import{e as u,s as j,f as b,j as y,h as v,i as f}from"./skin-43755201.js";import{a as h}from"./autoNextVideo-fc102a98.js";import{g}from"./localisation-0bf399a1.js";import"@babel/runtime-corejs3/core-js-stable/instance/concat";import"@babel/runtime-corejs3/helpers/defineProperty";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/keys";import"@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols";import"@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor";import"@babel/runtime-corejs3/core-js-stable/instance/for-each";import"@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors";import"@babel/runtime-corejs3/core-js-stable/object/define-properties";import"@babel/runtime-corejs3/core-js-stable/object/define-property";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-2bcc449f.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"@babel/runtime-corejs3/helpers/toConsumableArray";import"./util-7ef0c31b.js";function C(o){var r=x();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 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){t(i,N);var s=C(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&&(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 t;null!==(t=r.classList)&&void 0!==t&&t.contains("hidden")?(u(),r.classList.remove("hidden"),o.classList.add("open"),j(e.playerId,r)):(r.classList.add("hidden"),o.classList.remove("open"))};var t=document.getElementById(this.playerId);if(t){var s=window.getComputedStyle(t,null).getPropertyValue("height");r.style.height="".concat(s),l.dom.appendContent(o,r),t.style.overflow="hidden",this.addFunctionality(r),b(this.playerId,r)}}},{key:"addFunctionality",value:function(e){var o=this,r=this.el(),t=l.dom.createEl("div",{className:"video-selector-head"}),s=l.dom.createEl("div",{className:"video-selector-cross-icon",innerHTML:"".concat(m())});s.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,t,s,i,m,j,b,y,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"),t=0;t<r.length;t++)r[t].style.border="none";v(e),d(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===(t=r[e])||void 0===t?void 0:t.img)||f(null===(s=window)||void 0===s||null===(i=s.app_data)||void 0===i||null===(m=i.appcmsMain)||void 0===m||null===(j=m.images)||void 0===j?void 0:j.placeholderCover)),N.alt="".concat((null==o||null===(b=o.videos[e])||void 0===b?void 0:a(y=n(h=b.title).call(h).split(/\s+/)).call(y,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(t,i),l.dom.appendContent(t,s),l.dom.appendContent(e,t),l.dom.appendContent(e,c),y(this.playerId,e)}}]),i}();export{E 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 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 c}from"./icons-68d3a609.js";import{G as l,R as m}from"./generic-979547e7.js";import{e as d,s as p,f as u,j,k as b}from"./skin-43755201.js";import{a as y}from"./autoNextVideo-fc102a98.js";import{g as v}from"./localisation-0bf399a1.js";import"@babel/runtime-corejs3/core-js-stable/instance/concat";import"@babel/runtime-corejs3/helpers/defineProperty";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/keys";import"@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols";import"@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor";import"@babel/runtime-corejs3/core-js-stable/instance/for-each";import"@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors";import"@babel/runtime-corejs3/core-js-stable/object/define-properties";import"@babel/runtime-corejs3/core-js-stable/object/define-property";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-2bcc449f.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"@babel/runtime-corejs3/helpers/toConsumableArray";import"./util-7ef0c31b.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&&(m(0),y({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")?(d(),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(c())});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"}),d=a.dom.createEl("div",{className:"video-container"}),p=function(e){var r,t,s,i,c,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(){m(e+1);for(var r=a.dom.$$(".recommended"),t=0;t<r.length;t++)r[t].style.border="none";b(e),l(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 y=a.dom.createEl("div",{className:"info -".concat(e),innerHTML:"".concat((null==o||null===(c=o.videos[e])||void 0===c?void 0:c.title)||"")});a.dom.appendContent(p,u),a.dom.appendContent(p,y),a.dom.appendContent(d,p),a.dom.appendContent(n,d)},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};