@viewlift/player-backup 2.0.67-smartTv → 2.0.68-backup

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (139) hide show
  1. package/cjs/autoNextVideo-5ade373a.js +1 -0
  2. package/cjs/browser-77c57718.js +1 -0
  3. package/cjs/bundle.css +725 -1734
  4. package/cjs/caption-settings-be714e97.js +1 -0
  5. package/cjs/captions-07bd3069.js +1 -0
  6. package/cjs/features-df72cbbd.js +1 -0
  7. package/cjs/generic-08be76e1.js +1 -0
  8. package/cjs/icons-1a3febef.js +1 -0
  9. package/cjs/index-61c97699.js +1 -0
  10. package/cjs/index-6a79d3d0.js +1 -0
  11. package/cjs/index-84cce26a.js +1 -0
  12. package/cjs/index.js +1 -1
  13. package/cjs/multicamv2-24ac83fc.js +1 -0
  14. package/cjs/multicamv2-7e5f9622.js +1 -0
  15. package/cjs/nextEpisodeButton-e2b5ab8c.js +1 -0
  16. package/cjs/playlist-20264478.js +1 -0
  17. package/cjs/renditions-fed22c12.js +1 -0
  18. package/cjs/resolution-e46c9615.js +1 -0
  19. package/cjs/series-1eae1783.js +1 -0
  20. package/cjs/series-v2-7afcdd56.js +1 -0
  21. package/cjs/series-v2-ec4f5c62.js +1 -0
  22. package/cjs/settings-icon-70f8857a.js +1 -0
  23. package/cjs/skin-3544db58.js +1 -0
  24. package/cjs/skin-381f7487.js +1 -0
  25. package/cjs/skin-7603ec07.js +1 -0
  26. package/cjs/skin-a0d604c4.js +1 -0
  27. package/cjs/skin-adff5a6d.js +1 -0
  28. package/cjs/skin-bb70fb84.js +1 -0
  29. package/cjs/skin-ecbacc98.js +1 -0
  30. package/cjs/util-ef2cd61e.js +1 -0
  31. package/cjs/videoSelector-2841d5f0.js +1 -0
  32. package/cjs/videoSelector-77a1a832.js +1 -0
  33. package/cjs/videojs_contrib_dash-018c8bde.js +1 -0
  34. package/esm/autoNextVideo-c994dec9.js +1 -0
  35. package/esm/browser-d4613b36.js +1 -0
  36. package/esm/bundle.css +725 -1734
  37. package/esm/caption-settings-4ab479b0.js +1 -0
  38. package/esm/captions-b7fd8308.js +1 -0
  39. package/esm/features-edf9c7f6.js +1 -0
  40. package/esm/generic-e9ae198a.js +1 -0
  41. package/esm/icons-8e47e640.js +1 -0
  42. package/esm/index-5d92eaa3.js +1 -0
  43. package/esm/index-8071a660.js +1 -0
  44. package/esm/index-fcfed9c1.js +1 -0
  45. package/esm/index.js +1 -1
  46. package/esm/multicamv2-853dd85c.js +1 -0
  47. package/esm/multicamv2-d32e890a.js +1 -0
  48. package/esm/nextEpisodeButton-b70baf9b.js +1 -0
  49. package/esm/playlist-63a5a214.js +1 -0
  50. package/esm/renditions-4c09c626.js +1 -0
  51. package/esm/resolution-920515d1.js +1 -0
  52. package/esm/series-164695fe.js +1 -0
  53. package/esm/series-v2-a9afbd40.js +1 -0
  54. package/esm/series-v2-d58fba59.js +1 -0
  55. package/esm/settings-icon-366126fa.js +1 -0
  56. package/esm/skin-20d1587b.js +1 -0
  57. package/esm/skin-3138b8af.js +1 -0
  58. package/esm/skin-53bbe2ba.js +1 -0
  59. package/esm/skin-58b9263c.js +1 -0
  60. package/esm/skin-ac85d695.js +1 -0
  61. package/esm/skin-c126564a.js +1 -0
  62. package/esm/skin-d77e8fa7.js +1 -0
  63. package/esm/util-80257541.js +1 -0
  64. package/esm/videoSelector-0c3cb328.js +1 -0
  65. package/esm/videoSelector-da90e6d0.js +1 -0
  66. package/esm/videojs_contrib_dash-f7d94714.js +1 -0
  67. package/package.json +3 -6
  68. package/cjs/autoNextVideo-54a8a49e.js +0 -1
  69. package/cjs/browser-b4213cb7.js +0 -1
  70. package/cjs/caption-settings-4edadfe5.js +0 -1
  71. package/cjs/captions-393835e9.js +0 -1
  72. package/cjs/features-8ccce5cb.js +0 -1
  73. package/cjs/generic-cf4b06d0.js +0 -1
  74. package/cjs/icons-bacdb330.js +0 -1
  75. package/cjs/index-1cd04c8b.js +0 -1
  76. package/cjs/index-3f0492aa.js +0 -1
  77. package/cjs/index-bf6dde3f.js +0 -1
  78. package/cjs/index-ee4e22d6.js +0 -1
  79. package/cjs/multicamv2-84aa0456.js +0 -1
  80. package/cjs/multicamv2-fb56bab1.js +0 -1
  81. package/cjs/nextEpisodeButton-a2bd48c7.js +0 -1
  82. package/cjs/playlist-ffa59fac.js +0 -1
  83. package/cjs/renditions-17c543e3.js +0 -1
  84. package/cjs/resolution-7e0a2fe4.js +0 -1
  85. package/cjs/series-547835df.js +0 -1
  86. package/cjs/series-v2-214a3bb6.js +0 -1
  87. package/cjs/series-v2-ba70e761.js +0 -1
  88. package/cjs/settings-icon-0cbc8b5f.js +0 -1
  89. package/cjs/skin-079b0930.js +0 -1
  90. package/cjs/skin-08116b1b.js +0 -1
  91. package/cjs/skin-0f88b8d8.js +0 -1
  92. package/cjs/skin-23eda0a7.js +0 -1
  93. package/cjs/skin-3338cc6f.js +0 -1
  94. package/cjs/skin-43ce1430.js +0 -1
  95. package/cjs/skin-4a202e70.js +0 -1
  96. package/cjs/skin-7b9006f8.js +0 -1
  97. package/cjs/skin-b3999029.js +0 -1
  98. package/cjs/skin-deb410a6.js +0 -1
  99. package/cjs/skin-eabf5eb1.js +0 -1
  100. package/cjs/util-2487e498.js +0 -1
  101. package/cjs/videoSelector-d37a3677.js +0 -1
  102. package/cjs/videoSelector-ff9f89e0.js +0 -1
  103. package/cjs/videojs-dash5.es-0d7dcdf9.js +0 -1
  104. package/esm/autoNextVideo-2dae5124.js +0 -1
  105. package/esm/browser-8414342e.js +0 -1
  106. package/esm/caption-settings-b7ccde0e.js +0 -1
  107. package/esm/captions-5dc8f704.js +0 -1
  108. package/esm/features-9d5fdf7e.js +0 -1
  109. package/esm/generic-66d1506b.js +0 -1
  110. package/esm/icons-b212fe63.js +0 -1
  111. package/esm/index-144e82ca.js +0 -1
  112. package/esm/index-236cca97.js +0 -1
  113. package/esm/index-527907c0.js +0 -1
  114. package/esm/index-5e046049.js +0 -1
  115. package/esm/multicamv2-14c2a659.js +0 -1
  116. package/esm/multicamv2-163da219.js +0 -1
  117. package/esm/nextEpisodeButton-fcfc868e.js +0 -1
  118. package/esm/playlist-ec59d28b.js +0 -1
  119. package/esm/renditions-92e03207.js +0 -1
  120. package/esm/resolution-ff76ef38.js +0 -1
  121. package/esm/series-39ee26d4.js +0 -1
  122. package/esm/series-v2-c7ca8aea.js +0 -1
  123. package/esm/series-v2-cfb1e0d9.js +0 -1
  124. package/esm/settings-icon-732bddc8.js +0 -1
  125. package/esm/skin-078dbbbb.js +0 -1
  126. package/esm/skin-0c6cc433.js +0 -1
  127. package/esm/skin-1f7cd934.js +0 -1
  128. package/esm/skin-45eb5003.js +0 -1
  129. package/esm/skin-4b55cb89.js +0 -1
  130. package/esm/skin-57c031df.js +0 -1
  131. package/esm/skin-5c99fa22.js +0 -1
  132. package/esm/skin-8615e53a.js +0 -1
  133. package/esm/skin-8a617b92.js +0 -1
  134. package/esm/skin-bd68eaf1.js +0 -1
  135. package/esm/skin-d8724e3c.js +0 -1
  136. package/esm/util-c4f931f0.js +0 -1
  137. package/esm/videoSelector-9fbd4736.js +0 -1
  138. package/esm/videoSelector-db7d4cb6.js +0 -1
  139. package/esm/videojs-dash5.es-792e6bc2.js +0 -1
@@ -1 +0,0 @@
1
- import"core-js/modules/es.reflect.construct.js";import e from"@babel/runtime/helpers/classCallCheck";import o from"@babel/runtime/helpers/createClass";import s from"@babel/runtime/helpers/possibleConstructorReturn";import t from"@babel/runtime/helpers/getPrototypeOf";import r from"@babel/runtime/helpers/inherits";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.array.slice.js";import"core-js/modules/es.regexp.exec.js";import"core-js/modules/es.string.split.js";import"core-js/modules/es.string.trim.js";import i from"video.js";import{e as a,f as d}from"./icons-b212fe63.js";import{J as n,T as l}from"./generic-66d1506b.js";import{e as c,s as m,f as p,h as u,j,i as y}from"./skin-1f7cd934.js";import{a as v}from"./autoNextVideo-2dae5124.js";import{g as f}from"./localisation-0bf399a1.js";import"core-js/modules/es.array.concat.js";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"core-js/modules/es.array.filter.js";import"core-js/modules/es.object.assign.js";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.array.includes.js";import"core-js/modules/es.string.includes.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.array.index-of.js";import"core-js/modules/es.string.replace.js";import"./browser-8414342e.js";import"core-js/modules/es.array.map.js";import"core-js/modules/es.math.trunc.js";import"core-js/modules/es.array.find.js";import"core-js/modules/es.regexp.to-string.js";import"core-js/modules/es.regexp.constructor.js";import"core-js/modules/es.map.js";import"core-js/modules/es.string.iterator.js";import"core-js/modules/web.dom-collections.iterator.js";import"core-js/modules/es.function.name.js";import"js-cookie";import"ua-parser-js";import"core-js/modules/es.array.find-index.js";import"./captions-5dc8f704.js";import"core-js/modules/es.string.match.js";import"core-js/modules/es.number.to-fixed.js";import"./util-c4f931f0.js";function h(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(h=function(){return!!e})()}var b=i.getComponent("Component"),g=function(){function g(o){var r,i,a,d,n,c,m=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e(this,g),d=this,c=[o,m],n=t(n=g),(a=s(d,h()?Reflect.construct(n,c||[],t(d).constructor):n.apply(d,c))).playerId=m.playerId,a.seriesData=m.sres,a.videos=m.related.content,a.cb=(null==m||null===(r=m.related)||void 0===r?void 0:r.cb)||null,a.autoNext=(null==m||null===(i=m.related)||void 0===i?void 0:i.autoNext)||!1,a.currentVideoData=m.res,a.initialiseStructure(),a.loadCSS(),a.autoNext&&(l(0),v({playerId:a.playerId,content:a.videos,cb:a.cb})),a}return r(g,b),o(g,[{key:"createEl",value:function(){var e=i.dom.createEl("div",{className:"video-selection vjs-control vjs-button"});e.style.position="unset";var o=i.dom.createEl("button",{className:"video-selector-icon",title:"video selector",innerHTML:"".concat(a())});return i.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(),s=i.dom.createEl("div",{className:"video-selection-container hidden"});i.dom.$(".video-selector-icon",this.el()).onclick=function(){var t;e.handleTabIndexSelector(),null!==(t=s.classList)&&void 0!==t&&t.contains("hidden")?(c(),s.classList.remove("hidden"),o.classList.add("open"),m(e.playerId,s)):(s.classList.add("hidden"),o.classList.remove("open"))};var t=document.getElementById(this.playerId);if(t){var r=window.getComputedStyle(t,null).getPropertyValue("height");s.style.height="".concat(r),i.dom.appendContent(o,s),t.style.overflow="hidden",this.addFunctionality(s),p(this.playerId,s)}}},{key:"loadVideoAssetById",value:function(e){var o=this;l(e+1);for(var s=i.dom.$$(".recommended"),t=0;t<s.length;t++)s[t].style.border="none";u(e),n(this.playerId,this.videos[e].id).then(function(e){o.cb&&o.cb(e)}).catch(function(e){o.cb&&o.cb(e)})}},{key:"handleTabIndexSelector",value:function(){var e,o,s;null!==(e=document.getElementsByClassName("video-selector-cross-icon"))&&void 0!==e&&e[0]&&(document.getElementsByClassName("video-selector-cross-icon")[0].tabIndex=0);for(var t=document.getElementsByClassName("video-accessibility"),r=(null==t||null===(o=t[0])||void 0===o||null===(s=o.children)||void 0===s?void 0:s.length)||0,i=0;i<r;i++)document.getElementsByClassName("recommended -".concat(i))[0]&&(document.getElementsByClassName("recommended -".concat(i))[0].tabIndex=0)}},{key:"handleCloseTabIndex",value:function(){var e,o,s;null!==(e=document.getElementsByClassName("video-selector-cross-icon"))&&void 0!==e&&e[0]&&(document.getElementsByClassName("video-selector-cross-icon")[0].tabIndex=-1);for(var t=document.getElementsByClassName("video-accessibility"),r=(null==t||null===(o=t[0])||void 0===o||null===(s=o.children)||void 0===s?void 0:s.length)||0,i=0;i<r;i++)document.getElementsByClassName("recommended -".concat(i))&&(document.getElementsByClassName("recommended -".concat(i))[0].tabIndex=-1)}},{key:"addFunctionality",value:function(e){var o=this,s=this.el(),t=i.dom.createEl("div",{className:"video-selector-head"}),r=i.dom.createEl("div",{className:"video-selector-cross-icon",ariaLabel:"close video selector",tabIndex:-1,innerHTML:"".concat(d())});r.onkeydown=function(t){"Enter"===t.key&&(e.classList.add("hidden"),s.classList.remove("open"),o.handleCloseTabIndex())},r.onclick=function(){e.classList.add("hidden"),s.classList.remove("open"),o.handleCloseTabIndex()};for(var a=i.dom.createEl("div",{className:"video-selector-title",innerHTML:f("relatedVideoTitle")||"Recommended"}),n=i.dom.createEl("div",{className:"video-selector-content",tabIndex:-1}),l=i.dom.createEl("div",{className:"video-container video-accessibility"}),c=function(e){var s,t,r,a,d,c,m,p,u=i.dom.createEl("div",{className:"video -".concat(e)}),j=i.dom.createEl("div",{className:"recommended -".concat(e),ariaLabel:"".concat(o.videos[e].title),type:"button",tabIndex:-1});j.setAttribute("video-idx",e),j.onkeydown=function(s){"Enter"===s.key&&o.loadVideoAssetById(e)},j.onclick=function(){o.loadVideoAssetById(e)};var v=document.createElement("img");v.className="related-thumbnail-image",v.src="".concat(y(null==o||null===(s=o.videos)||void 0===s||null===(t=s[e])||void 0===t?void 0:t.img)||y(null===(r=window)||void 0===r||null===(a=r.app_data)||void 0===a||null===(d=a.appcmsMain)||void 0===d||null===(c=d.images)||void 0===c?void 0:c.placeholderCover)),v.alt="".concat((null==o||null===(m=o.videos[e])||void 0===m?void 0:m.title.trim().split(/\s+/).slice(0,2).join(" "))||""),j.append(v);var f=i.dom.createEl("div",{className:"info -".concat(e),innerHTML:"".concat((null==o||null===(p=o.videos[e])||void 0===p?void 0:p.title)||"")});i.dom.appendContent(u,j),i.dom.appendContent(u,f),i.dom.appendContent(l,u),i.dom.appendContent(n,l)},m=0;m<this.videos.length;m++)c(m);i.dom.appendContent(t,a),i.dom.appendContent(t,r),i.dom.appendContent(e,t),i.dom.appendContent(e,n),j(this.playerId,e)}}])}();export{g as default};
@@ -1 +0,0 @@
1
- import"core-js/modules/es.reflect.construct.js";import e from"@babel/runtime/helpers/classCallCheck";import o from"@babel/runtime/helpers/createClass";import s from"@babel/runtime/helpers/possibleConstructorReturn";import r from"@babel/runtime/helpers/getPrototypeOf";import t from"@babel/runtime/helpers/inherits";import"core-js/modules/es.object.to-string.js";import"core-js/modules/es.promise.js";import i from"video.js";import{E as a,f as d}from"./icons-b212fe63.js";import{J as l,T as n}from"./generic-66d1506b.js";import{e as c,s as m,f as p,j as u,k as j}from"./skin-1f7cd934.js";import{a as y}from"./autoNextVideo-2dae5124.js";import{g as v}from"./localisation-0bf399a1.js";import"core-js/modules/es.array.concat.js";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"core-js/modules/es.array.filter.js";import"core-js/modules/es.object.assign.js";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.array.includes.js";import"core-js/modules/es.string.includes.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.array.index-of.js";import"core-js/modules/es.array.slice.js";import"core-js/modules/es.regexp.exec.js";import"core-js/modules/es.string.replace.js";import"./browser-8414342e.js";import"core-js/modules/es.array.join.js";import"core-js/modules/es.array.map.js";import"core-js/modules/es.math.trunc.js";import"core-js/modules/es.array.find.js";import"core-js/modules/es.regexp.to-string.js";import"core-js/modules/es.regexp.constructor.js";import"core-js/modules/es.map.js";import"core-js/modules/es.string.iterator.js";import"core-js/modules/web.dom-collections.iterator.js";import"core-js/modules/es.function.name.js";import"js-cookie";import"ua-parser-js";import"core-js/modules/es.array.find-index.js";import"./captions-5dc8f704.js";import"core-js/modules/es.string.match.js";import"core-js/modules/es.number.to-fixed.js";import"./util-c4f931f0.js";function f(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(f=function(){return!!e})()}var h=i.getComponent("Component"),b=function(){function b(o){var t,i,a,d,l,c,m=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e(this,b),d=this,c=[o,m],l=r(l=b),(a=s(d,f()?Reflect.construct(l,c||[],r(d).constructor):l.apply(d,c))).playerId=m.playerId,a.seriesData=m.sres,a.videos=m.related.content,a.cb=(null==m||null===(t=m.related)||void 0===t?void 0:t.cb)||null,a.autoNext=(null==m||null===(i=m.related)||void 0===i?void 0:i.autoNext)||!1,a.currentVideoData=m.res,a.initialiseStructure(),a.loadCSS(),a.autoNext&&(n(0),y({playerId:a.playerId,content:a.videos,cb:a.cb})),a}return t(b,h),o(b,[{key:"createEl",value:function(){var e=i.dom.createEl("div",{className:"video-selection vjs-control vjs-button"});e.style.position="unset";var o=i.dom.createEl("div",{className:"video-selector-icon",innerHTML:"".concat(a())});return i.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(),s=i.dom.createEl("div",{className:"video-selection-container hidden"});i.dom.$(".video-selector-icon",this.el()).onclick=function(){var r;null!==(r=s.classList)&&void 0!==r&&r.contains("hidden")?(c(),s.classList.remove("hidden"),o.classList.add("open"),s.style.right="0px",m(e.playerId,s)):(s.classList.add("hidden"),o.classList.remove("open"),s.style.right="-350px")};var r=document.getElementById(this.playerId);if(r){var t=window.getComputedStyle(r,null).getPropertyValue("height");s.style.height="".concat(t),i.dom.appendContent(o,s),r.style.overflow="hidden",this.addFunctionality(s),p(this.playerId,s)}}},{key:"toggleOpenClose",value:function(){}},{key:"addFunctionality",value:function(e){var o=this,s=this.el(),r=i.dom.createEl("div",{className:"video-selector-head"}),t=i.dom.createEl("div",{className:"video-selector-cross-icon",innerHTML:"".concat(d())});t.onclick=function(){e.classList.add("hidden"),s.classList.remove("open"),e.style.right="-350px"};for(var a=i.dom.createEl("div",{className:"video-selector-title",innerHTML:v("relatedVideoTitle")||"Recommended"}),c=i.dom.createEl("div",{className:"video-selector-content"}),m=i.dom.createEl("div",{className:"video-container"}),p=function(e){var s,r,t,a,d,p=i.dom.createEl("div",{className:"video -".concat(e)}),u=i.dom.createEl("div",{className:"recommended -".concat(e)});u.setAttribute("video-idx",e),u.onclick=function(){n(e+1);for(var s=i.dom.$$(".recommended"),r=0;r<s.length;r++)s[r].style.border="none";j(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 y=document.createElement("img");y.className="related-thumbnail-image",y.src="".concat((null==o||null===(s=o.videos)||void 0===s||null===(r=s[e])||void 0===r?void 0:r.img)||(null===(t=window)||void 0===t||null===(a=t.customData)||void 0===a?void 0:a.fallbackImage)),y.alt="No Thumbnail Available",u.append(y);var v=i.dom.createEl("div",{className:"info -".concat(e),innerHTML:"".concat((null==o||null===(d=o.videos[e])||void 0===d?void 0:d.title)||"")});i.dom.appendContent(p,u),i.dom.appendContent(p,v),i.dom.appendContent(m,p),i.dom.appendContent(c,m)},y=0;y<this.videos.length;y++)p(y);i.dom.appendContent(r,t),i.dom.appendContent(r,a),i.dom.appendContent(e,r),i.dom.appendContent(e,c),u(this.playerId,e)}}])}();export{b as default};