@viewlift/player-backup 2.0.9-backup → 2.0.11-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.
- package/cjs/{autoNextVideo-67643370.js → autoNextVideo-29eef3b1.js} +1 -1
- package/cjs/bundle.css +74 -74
- package/cjs/{features-29929135.js → features-0a7f4aad.js} +1 -1
- package/cjs/{generic-fa17673c.js → generic-de956683.js} +1 -1
- package/cjs/{index-76878508.js → index-6c2831a2.js} +1 -1
- package/cjs/index.js +1 -1
- package/cjs/{keyboardShortcuts-f6891b63.js → keyboardShortcuts-3c66843e.js} +1 -1
- package/cjs/{multicamv2-c47a0cf5.js → multicamv2-4b0e3030.js} +1 -1
- package/cjs/{multicamv2-941d6607.js → multicamv2-56cbdd14.js} +1 -1
- package/cjs/{nextEpisodeButton-a7b08e1e.js → nextEpisodeButton-72ade955.js} +1 -1
- package/cjs/{playlist-51ea4f44.js → playlist-f13a4c84.js} +1 -1
- package/cjs/{series-2a1743fe.js → series-69a1d552.js} +1 -1
- package/cjs/{series-v2-13b6d6e8.js → series-v2-cc6e26d1.js} +1 -1
- package/cjs/{series-v2-91b4d8b0.js → series-v2-fe7af588.js} +1 -1
- package/cjs/{skin-76379d6c.js → skin-439e4eb3.js} +1 -1
- package/cjs/{skin-7a1d70e1.js → skin-5cb47f83.js} +1 -1
- package/cjs/{skin-12d04dd8.js → skin-a4ab9cf0.js} +1 -1
- package/cjs/{skin-25178702.js → skin-a5871744.js} +1 -1
- package/cjs/{skin-e41d2756.js → skin-a7eea90b.js} +1 -1
- package/cjs/skin-a96f44cb.js +1 -0
- package/cjs/{videoSelector-23a44d1f.js → videoSelector-7edb2c71.js} +1 -1
- package/cjs/{videoSelector-e3fe56e0.js → videoSelector-e4164582.js} +1 -1
- package/cjs/videojs_contrib_dash-5ec0e9bd.js +1 -0
- package/esm/{autoNextVideo-c475592c.js → autoNextVideo-d6b60993.js} +1 -1
- package/esm/bundle.css +74 -74
- package/esm/{features-e4c04012.js → features-15fd081c.js} +1 -1
- package/esm/{generic-919025fc.js → generic-6c2c984a.js} +1 -1
- package/esm/{index-530ca330.js → index-0388518b.js} +1 -1
- package/esm/index.js +1 -1
- package/esm/{keyboardShortcuts-4d65af9c.js → keyboardShortcuts-66f3c994.js} +1 -1
- package/esm/{multicamv2-cb88ce9b.js → multicamv2-a853413e.js} +1 -1
- package/esm/{multicamv2-138f8c2c.js → multicamv2-c0bf4bf4.js} +1 -1
- package/esm/{nextEpisodeButton-3fcdc7ba.js → nextEpisodeButton-73d67a99.js} +1 -1
- package/esm/{playlist-8bd0584c.js → playlist-27b9ed7b.js} +1 -1
- package/esm/{series-cd3984e1.js → series-cfe7baaf.js} +1 -1
- package/esm/{series-v2-69495f60.js → series-v2-332ba620.js} +1 -1
- package/esm/{series-v2-239db351.js → series-v2-c9519185.js} +1 -1
- package/esm/{skin-9ac188b3.js → skin-2cecaca3.js} +1 -1
- package/esm/{skin-0a6417ad.js → skin-529c205a.js} +1 -1
- package/esm/{skin-10acbf01.js → skin-64e0ee25.js} +1 -1
- package/esm/{skin-594228bc.js → skin-a10924f0.js} +1 -1
- package/esm/{skin-d5ae9351.js → skin-c501e7a2.js} +1 -1
- package/esm/{skin-f10cfd51.js → skin-f5e68bf2.js} +1 -1
- package/esm/{videoSelector-6381f90c.js → videoSelector-489acf81.js} +1 -1
- package/esm/{videoSelector-fe244cc0.js → videoSelector-51afa0bf.js} +1 -1
- package/esm/videojs_contrib_dash-5ee2e52c.js +1 -0
- package/package.json +1 -1
- package/cjs/skin-6a709af6.js +0 -1
- package/cjs/videojs_contrib_dash-1ee985c7.js +0 -1
- package/esm/videojs_contrib_dash-3e3eb724.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"@babel/runtime/helpers/classCallCheck";import t from"@babel/runtime/helpers/createClass";import o from"@babel/runtime/helpers/inherits";import n from"@babel/runtime/helpers/possibleConstructorReturn";import i from"@babel/runtime/helpers/getPrototypeOf";import a from"video.js";import{E as r,f as l}from"./icons-3bd3bd8f.js";import{F as s,Q as d}from"./generic-
|
|
1
|
+
import e from"@babel/runtime/helpers/classCallCheck";import t from"@babel/runtime/helpers/createClass";import o from"@babel/runtime/helpers/inherits";import n from"@babel/runtime/helpers/possibleConstructorReturn";import i from"@babel/runtime/helpers/getPrototypeOf";import a from"video.js";import{E as r,f as l}from"./icons-3bd3bd8f.js";import{F as s,Q as d}from"./generic-6c2c984a.js";import{e as c,s as m,f as u,j as p,k as v}from"./skin-b8df984d.js";import{a as h}from"./autoNextVideo-d6b60993.js";import{g as f}from"./localisation-0bf399a1.js";import"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"axios";import"./browser-d4613b36.js";import"js-cookie";import"ua-parser-js";import"./captions-135a6d13.js";import"@babel/runtime/helpers/toConsumableArray";import"./util-1c8c0f16.js";function b(e){var t=y();return function(){var o,a=i(e);if(t){var r=i(this).constructor;o=Reflect.construct(a,arguments,r)}else o=a.apply(this,arguments);return n(this,o)}}function y(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(y=function(){return!!e})()}var g=a.getComponent("Component"),C=function(n){o(y,g);var i=b(y);function y(t){var o,n,a,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e(this,y),(a=i.call(this,t,r)).playerId=r.playerId,a.seriesData=r.sres,a.videos=r.related.content,a.cb=(null==r||null===(o=r.related)||void 0===o?void 0:o.cb)||null,a.autoNext=(null==r||null===(n=r.related)||void 0===n?void 0:n.autoNext)||!1,a.currentVideoData=r.res,a.initialiseStructure(),a.loadCSS(),a.autoNext&&(d(0),h({playerId:a.playerId,content:a.videos,cb:a.cb})),a}return t(y,[{key:"createEl",value:function(){var e=a.dom.createEl("div",{className:"video-selection vjs-control vjs-button"});e.style.position="unset";var t=a.dom.createEl("div",{className:"video-selector-icon",innerHTML:"".concat(r())});return a.dom.appendContent(e,t),e}},{key:"loadCSS",value:function(){import("./videoSelector-8e258d45.js").then((function(e){var t=document.createElement("style");t.id="video-selection",t.append("".concat(e.default)),document.head.appendChild(t)}))}},{key:"initialiseStructure",value:function(){var e=this,t=this.el(),o=a.dom.createEl("div",{className:"video-selection-container hidden"});a.dom.$(".video-selector-icon",this.el()).onclick=function(){var n;null!==(n=o.classList)&&void 0!==n&&n.contains("hidden")?(c(),o.classList.remove("hidden"),t.classList.add("open"),o.style.right="0px",m(e.playerId,o)):(o.classList.add("hidden"),t.classList.remove("open"),o.style.right="-350px")};var n=document.getElementById(this.playerId);if(n){var i=window.getComputedStyle(n,null).getPropertyValue("height");o.style.height="".concat(i),a.dom.appendContent(t,o),n.style.overflow="hidden",this.addFunctionality(o),u(this.playerId,o)}}},{key:"toggleOpenClose",value:function(){}},{key:"addFunctionality",value:function(e){var t=this,o=this.el(),n=a.dom.createEl("div",{className:"video-selector-head"}),i=a.dom.createEl("div",{className:"video-selector-cross-icon",innerHTML:"".concat(l())});i.onclick=function(){e.classList.add("hidden"),o.classList.remove("open"),e.style.right="-350px"};for(var r=a.dom.createEl("div",{className:"video-selector-title",innerHTML:f("relatedVideoTitle")||"Recommended"}),c=a.dom.createEl("div",{className:"video-selector-content"}),m=a.dom.createEl("div",{className:"video-container"}),u=function(e){var o,n,i,r,l,u=a.dom.createEl("div",{className:"video -".concat(e)}),p=a.dom.createEl("div",{className:"recommended -".concat(e)});p.setAttribute("video-idx",e),p.onclick=function(){d(e+1);for(var o=a.dom.$$(".recommended"),n=0;n<o.length;n++)o[n].style.border="none";v(e),s(t.playerId,t.videos[e].id).then((function(e){t.cb&&t.cb(e)})).catch((function(e){t.cb&&t.cb(e)}))};var h=document.createElement("img");h.className="related-thumbnail-image",h.src="".concat((null==t||null===(o=t.videos)||void 0===o||null===(n=o[e])||void 0===n?void 0:n.img)||(null===(i=window)||void 0===i||null===(r=i.customData)||void 0===r?void 0:r.fallbackImage)),h.alt="No Thumbnail Available",p.append(h);var f=a.dom.createEl("div",{className:"info -".concat(e),innerHTML:"".concat((null==t||null===(l=t.videos[e])||void 0===l?void 0:l.title)||"")});a.dom.appendContent(u,p),a.dom.appendContent(u,f),a.dom.appendContent(m,u),a.dom.appendContent(c,m)},h=0;h<this.videos.length;h++)u(h);a.dom.appendContent(n,i),a.dom.appendContent(n,r),a.dom.appendContent(e,n),a.dom.appendContent(e,c),p(this.playerId,e)}}]),y}();export{C as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"@babel/runtime/helpers/classCallCheck";import t from"@babel/runtime/helpers/createClass";import o from"@babel/runtime/helpers/inherits";import n from"@babel/runtime/helpers/possibleConstructorReturn";import i from"@babel/runtime/helpers/getPrototypeOf";import a from"video.js";import{e as r,f as l}from"./icons-3bd3bd8f.js";import{F as s,Q as d}from"./generic-
|
|
1
|
+
import e from"@babel/runtime/helpers/classCallCheck";import t from"@babel/runtime/helpers/createClass";import o from"@babel/runtime/helpers/inherits";import n from"@babel/runtime/helpers/possibleConstructorReturn";import i from"@babel/runtime/helpers/getPrototypeOf";import a from"video.js";import{e as r,f as l}from"./icons-3bd3bd8f.js";import{F as s,Q as d}from"./generic-6c2c984a.js";import{e as c,s as m,f as p,j as u,h as v,i as h}from"./skin-b8df984d.js";import{a as f}from"./autoNextVideo-d6b60993.js";import{g as b}from"./localisation-0bf399a1.js";import"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"axios";import"./browser-d4613b36.js";import"js-cookie";import"ua-parser-js";import"./captions-135a6d13.js";import"@babel/runtime/helpers/toConsumableArray";import"./util-1c8c0f16.js";function y(e){var t=C();return function(){var o,a=i(e);if(t){var r=i(this).constructor;o=Reflect.construct(a,arguments,r)}else o=a.apply(this,arguments);return n(this,o)}}function C(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(C=function(){return!!e})()}var g=a.getComponent("Component"),j=function(n){o(C,g);var i=y(C);function C(t){var o,n,a,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e(this,C),(a=i.call(this,t,r)).playerId=r.playerId,a.seriesData=r.sres,a.videos=r.related.content,a.cb=(null==r||null===(o=r.related)||void 0===o?void 0:o.cb)||null,a.autoNext=(null==r||null===(n=r.related)||void 0===n?void 0:n.autoNext)||!1,a.currentVideoData=r.res,a.initialiseStructure(),a.loadCSS(),a.autoNext&&(d(0),f({playerId:a.playerId,content:a.videos,cb:a.cb})),a}return t(C,[{key:"createEl",value:function(){var e=a.dom.createEl("div",{className:"video-selection vjs-control vjs-button"});e.style.position="unset";var t=a.dom.createEl("div",{className:"video-selector-icon",innerHTML:"".concat(r())});return a.dom.appendContent(e,t),e}},{key:"loadCSS",value:function(){import("./videoSelector-def99d5e.js").then((function(e){var t=document.createElement("style");t.id="video-selection",t.append("".concat(e.default)),document.head.appendChild(t)}))}},{key:"initialiseStructure",value:function(){var e=this,t=this.el(),o=a.dom.createEl("div",{className:"video-selection-container hidden"});a.dom.$(".video-selector-icon",this.el()).onclick=function(){var n;null!==(n=o.classList)&&void 0!==n&&n.contains("hidden")?(c(),o.classList.remove("hidden"),t.classList.add("open"),m(e.playerId,o)):(o.classList.add("hidden"),t.classList.remove("open"))};var n=document.getElementById(this.playerId);if(n){var i=window.getComputedStyle(n,null).getPropertyValue("height");o.style.height="".concat(i),a.dom.appendContent(t,o),n.style.overflow="hidden",this.addFunctionality(o),p(this.playerId,o)}}},{key:"addFunctionality",value:function(e){var t=this,o=this.el(),n=a.dom.createEl("div",{className:"video-selector-head"}),i=a.dom.createEl("div",{className:"video-selector-cross-icon",innerHTML:"".concat(l())});i.onclick=function(){e.classList.add("hidden"),o.classList.remove("open")};for(var r=a.dom.createEl("div",{className:"video-selector-title",innerHTML:b("relatedVideoTitle")||"Recommended"}),c=a.dom.createEl("div",{className:"video-selector-content"}),m=a.dom.createEl("div",{className:"video-container"}),p=function(e){var o,n,i,r,l,p,u,f,b=a.dom.createEl("div",{className:"video -".concat(e)}),y=a.dom.createEl("div",{className:"recommended -".concat(e)});y.setAttribute("video-idx",e),y.onclick=function(){d(e+1);for(var o=a.dom.$$(".recommended"),n=0;n<o.length;n++)o[n].style.border="none";v(e),s(t.playerId,t.videos[e].id).then((function(e){t.cb&&t.cb(e)})).catch((function(e){t.cb&&t.cb(e)}))};var C=document.createElement("img");C.className="related-thumbnail-image",C.src="".concat(h(null==t||null===(o=t.videos)||void 0===o||null===(n=o[e])||void 0===n?void 0:n.img)||h(null===(i=window)||void 0===i||null===(r=i.app_data)||void 0===r||null===(l=r.appcmsMain)||void 0===l||null===(p=l.images)||void 0===p?void 0:p.placeholderCover)),C.alt="".concat((null==t||null===(u=t.videos[e])||void 0===u?void 0:u.title.trim().split(/\s+/).slice(0,2).join(" "))||""),y.append(C);var g=a.dom.createEl("div",{className:"info -".concat(e),innerHTML:"".concat((null==t||null===(f=t.videos[e])||void 0===f?void 0:f.title)||"")});a.dom.appendContent(b,y),a.dom.appendContent(b,g),a.dom.appendContent(m,b),a.dom.appendContent(c,m)},f=0;f<this.videos.length;f++)p(f);a.dom.appendContent(n,r),a.dom.appendContent(n,i),a.dom.appendContent(e,n),a.dom.appendContent(e,c),u(this.playerId,e)}}]),C}();export{j as default};
|