@viewlift/player-backup 2.0.171-backup → 2.0.173-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-0691ac31.js +1 -0
- package/cjs/bundle.css +199 -1629
- package/cjs/caption-settings-4ca6c759.js +1 -0
- package/cjs/captions-dbc83a75.js +1 -0
- package/cjs/currentVideoInfo-31d70bec.js +1 -0
- package/cjs/features-ac88da31.js +1 -0
- package/cjs/generic-d6029799.js +1 -0
- package/cjs/helper-a50a8ffc.js +1 -0
- package/cjs/{icons-eb807ef0.js → icons-2609dbe4.js} +1 -1
- package/cjs/index-3f0e537b.js +1 -0
- package/cjs/index-9a13f725.js +1 -0
- package/cjs/index-ab269864.js +1 -0
- package/cjs/index.js +1 -1
- package/cjs/multicamv2-d05d7892.js +1 -0
- package/cjs/multicamv2-d5de68ce.js +1 -0
- package/cjs/nextEpisodeButton-83e26e87.js +1 -0
- package/cjs/player_instance-fcf6a8fb.js +1 -0
- package/cjs/playlist-ccb42fd9.js +1 -0
- package/cjs/resolution-f9dcc1b4.js +1 -0
- package/cjs/resolution-v2-e42e0101.js +1 -0
- package/cjs/series-a8cac465.js +1 -0
- package/cjs/series-v2-c706dcff.js +1 -0
- package/cjs/series-v2-f5e9f597.js +1 -0
- package/cjs/settings-icon-a8ec6794.js +1 -0
- package/cjs/skin-09870e37.js +1 -0
- package/cjs/skin-12248e27.js +1 -0
- package/cjs/skin-2eb1a613.js +1 -0
- package/cjs/skin-41c30915.js +1 -0
- package/cjs/skin-516012d7.js +1 -0
- package/cjs/skin-58749a94.js +1 -0
- package/cjs/skin-7bac124a.js +1 -0
- package/cjs/skin-9df1a060.js +1 -0
- package/cjs/skin-c606c027.js +1 -0
- package/cjs/start-begin-btn-5739a6c0.js +1 -0
- package/cjs/util-2704db9b.js +1 -0
- package/cjs/videoSelector-7a72c198.js +1 -0
- package/cjs/videoSelector-c99dbcf4.js +1 -0
- package/cjs/videojs-dash5.es-3854764f.js +1 -0
- package/cjs/watch-live-btn-822534d1.js +1 -0
- package/esm/apis/index.d.ts +11 -0
- package/esm/assets/icons.d.ts +25 -0
- package/esm/autoNextVideo-fc0bc5aa.js +1 -0
- package/esm/bundle.css +199 -1629
- package/esm/caption-settings-34414f59.js +1 -0
- package/esm/captions-f507e8ee.js +1 -0
- package/esm/components/advertisement/advertisement.d.ts +1 -0
- package/esm/components/auto-next-video/autoNextVideo.d.ts +2 -0
- package/esm/components/broadcaster_image/index.d.ts +1 -0
- package/esm/components/caption-settings/caption-settings.d.ts +14 -0
- package/esm/components/dvr-seekbar/index.d.ts +14 -0
- package/esm/components/dvr-startover/helper.d.ts +17 -0
- package/esm/components/dvr-startover/index.d.ts +1 -0
- package/esm/components/dvr-startover/marker.d.ts +3 -0
- package/esm/components/dvr-startover/start-begin-btn.d.ts +6 -0
- package/esm/components/dvr-startover/watch-live-btn.d.ts +6 -0
- package/esm/components/multicam/multicam.d.ts +18 -0
- package/esm/components/multicam-v2/multicamv2.d.ts +13 -0
- package/esm/components/multicam-v2_TEMP/multicamv2.d.ts +13 -0
- package/esm/components/next-ep-preview/next-ep-preview.d.ts +1 -0
- package/esm/components/next-episode/nextEpisodeButton.d.ts +13 -0
- package/esm/components/playlist-tray/playlist.d.ts +15 -0
- package/esm/components/quality-selector/index.d.ts +1 -0
- package/esm/components/resolution/resolution-v2.d.ts +18 -0
- package/esm/components/resolution/resolution.d.ts +20 -0
- package/esm/components/series/series.d.ts +10 -0
- package/esm/components/series-v2/helper.d.ts +3 -0
- package/esm/components/series-v2/series-v2.d.ts +25 -0
- package/esm/components/series-v2_TEMP/helper.d.ts +1 -0
- package/esm/components/series-v2_TEMP/series-v2.d.ts +21 -0
- package/esm/components/settings-icon/settings-icon.d.ts +17 -0
- package/esm/components/trickplay/helper.d.ts +13 -0
- package/esm/components/trickplay/index.d.ts +1 -0
- package/esm/components/trickplay/videojs.thumbnails.d.ts +1 -0
- package/esm/components/video-selector/videoSelector.d.ts +18 -0
- package/esm/components/video-selector_TEMP/videoSelector.d.ts +16 -0
- package/esm/components/watch-history/handleWatchHistory.d.ts +2 -0
- package/esm/contentHandler/content_types/epg.d.ts +4 -0
- package/esm/contentHandler/content_types/external.d.ts +4 -0
- package/esm/contentHandler/content_types/index.d.ts +5 -0
- package/esm/contentHandler/content_types/series.d.ts +4 -0
- package/esm/contentHandler/content_types/vod.d.ts +4 -0
- package/esm/contentHandler/firePlayer.d.ts +4 -0
- package/esm/core/captions.d.ts +10 -0
- package/esm/core/generic.d.ts +48 -0
- package/esm/core/player_instance.d.ts +6 -0
- package/esm/core/renditions.d.ts +6 -0
- package/esm/core/util.d.ts +18 -0
- package/esm/core/volume.d.ts +2 -0
- package/esm/currentVideoInfo-a8a254c2.js +1 -0
- package/esm/dash/dashHandler.d.ts +1 -0
- package/esm/dash/linear_ssai.d.ts +1 -0
- package/esm/dash/sgai.d.ts +14 -0
- package/esm/features-1b0cf2f4.js +1 -0
- package/esm/features.d.ts +32 -0
- package/esm/generic-de51e07b.js +1 -0
- package/esm/globalPlayerEvents.d.ts +8 -0
- package/esm/helper-349e076f.js +1 -0
- package/esm/helpers/browser.d.ts +2 -0
- package/esm/helpers/currentVideoInfo.d.ts +21 -0
- package/esm/helpers/errorHandling.d.ts +2 -0
- package/esm/helpers/loader.d.ts +2 -0
- package/esm/helpers/localisation.d.ts +2 -0
- package/esm/helpers/scriptLoader.d.ts +2 -0
- package/esm/helpers/secondary-switching.d.ts +1 -0
- package/esm/helpers/skin.d.ts +20 -0
- package/esm/helpers/sourceRetriever.d.ts +11 -0
- package/esm/helpers/ssaiEventHandler.d.ts +27 -0
- package/esm/helpers/token.d.ts +9 -0
- package/esm/{icons-699e8cf0.js → icons-37daa6b3.js} +1 -1
- package/esm/index-2264355c.js +1 -0
- package/esm/index-7c7e126d.js +1 -0
- package/esm/index-8e3eab6d.js +1 -0
- package/esm/index.d.ts +43 -0
- package/esm/index.js +1 -1
- package/esm/multicamv2-c9785bd3.js +1 -0
- package/esm/multicamv2-d85783fd.js +1 -0
- package/esm/nextEpisodeButton-b2d14563.js +1 -0
- package/esm/player_instance-34118a5b.js +1 -0
- package/esm/playlist-1a917e76.js +1 -0
- package/esm/plugins/chromecast.d.ts +18 -0
- package/esm/plugins/comscore_dist/index.d.ts +49 -0
- package/esm/plugins/comscore_dist/index.min.d.ts +50 -0
- package/esm/plugins/index.d.ts +2 -0
- package/esm/plugins/library.d.ts +8 -0
- package/esm/plugins/videojs-dash5.es.d.ts +51 -0
- package/esm/plugins/videojs_contrib_dash.d.ts +51 -0
- package/esm/resolution-1c59b0f3.js +1 -0
- package/esm/resolution-v2-9ed4268f.js +1 -0
- package/esm/series-672f57c4.js +1 -0
- package/esm/series-v2-9ef652f1.js +1 -0
- package/esm/series-v2-f1b829f7.js +1 -0
- package/esm/settings-icon-4708c41d.js +1 -0
- package/esm/skin/carousel/skin.d.ts +1 -0
- package/esm/skin/default/events.d.ts +1 -0
- package/esm/skin/default/skin.d.ts +1 -0
- package/esm/skin/defaultV2/events.d.ts +1 -0
- package/esm/skin/defaultV2/skin.d.ts +1 -0
- package/esm/skin/index.d.ts +1 -0
- package/esm/skin/minimalist/skin.d.ts +1 -0
- package/esm/skin/multiplayer/events.d.ts +1 -0
- package/esm/skin/multiplayer/skin.d.ts +1 -0
- package/esm/skin/news/events.d.ts +1 -0
- package/esm/skin/news/skin.d.ts +1 -0
- package/esm/skin/vl_one/events.d.ts +1 -0
- package/esm/skin/vl_one/skin.d.ts +1 -0
- package/esm/skin-60d87514.js +1 -0
- package/esm/skin-621bfc28.js +1 -0
- package/esm/skin-6614e1d7.js +1 -0
- package/esm/skin-9fece9a0.js +1 -0
- package/esm/skin-c480ed3d.js +1 -0
- package/esm/skin-d5091b86.js +1 -0
- package/esm/skin-da5d8933.js +1 -0
- package/esm/skin-da6b8230.js +1 -0
- package/esm/skin-ec4cfea2.js +1 -0
- package/esm/start-begin-btn-1e096fec.js +1 -0
- package/esm/util-22752db1.js +1 -0
- package/esm/utilities/analytics.d.ts +3 -0
- package/esm/utilities/beacon.d.ts +3 -0
- package/esm/utilities/comscore.d.ts +1 -0
- package/esm/utilities/controlsColor.d.ts +1 -0
- package/esm/utilities/conviva.d.ts +5 -0
- package/esm/utilities/keyboardShortcuts.d.ts +5 -0
- package/esm/utilities/replaceMacros.d.ts +1 -0
- package/esm/videoSelector-a331fcfe.js +1 -0
- package/esm/videoSelector-d1c144d5.js +1 -0
- package/esm/videojs-dash5.es-08c7635e.js +1 -0
- package/esm/watch-live-btn-5419f3a7.js +1 -0
- package/package.json +1 -4
- package/cjs/autoNextVideo-cb752411.js +0 -1
- package/cjs/browser-77c57718.js +0 -1
- package/cjs/caption-settings-544fd444.js +0 -1
- package/cjs/captions-80f6eb66.js +0 -1
- package/cjs/features-edddfe52.js +0 -1
- package/cjs/generic-1cd40ce7.js +0 -1
- package/cjs/index-3e202584.js +0 -1
- package/cjs/index-84cce26a.js +0 -1
- package/cjs/index-ea56a722.js +0 -1
- package/cjs/multicamv2-34da1dd9.js +0 -1
- package/cjs/multicamv2-4123ce9f.js +0 -1
- package/cjs/nextEpisodeButton-50409279.js +0 -1
- package/cjs/playlist-6c2a569f.js +0 -1
- package/cjs/renditions-d28715a3.js +0 -1
- package/cjs/resolution-948774b8.js +0 -1
- package/cjs/series-f8b5569f.js +0 -1
- package/cjs/series-v2-82c5971f.js +0 -1
- package/cjs/series-v2-c22087a4.js +0 -1
- package/cjs/settings-icon-7a7e7810.js +0 -1
- package/cjs/skin-096f7e1e.js +0 -1
- package/cjs/skin-18f2afe3.js +0 -1
- package/cjs/skin-1f3d596e.js +0 -1
- package/cjs/skin-1fafb129.js +0 -1
- package/cjs/skin-6a3c867f.js +0 -1
- package/cjs/skin-773b06ba.js +0 -1
- package/cjs/skin-9ff82b30.js +0 -1
- package/cjs/skin-b78dbfb9.js +0 -1
- package/cjs/skin-b848fb03.js +0 -1
- package/cjs/skin-c97f0eea.js +0 -1
- package/cjs/util-a4cd1c47.js +0 -1
- package/cjs/videoSelector-11c9d463.js +0 -1
- package/cjs/videoSelector-16a70639.js +0 -1
- package/cjs/videojs-dash5.es-92e6917a.js +0 -1
- package/esm/autoNextVideo-ab428f6c.js +0 -1
- package/esm/browser-d4613b36.js +0 -1
- package/esm/caption-settings-106547c2.js +0 -1
- package/esm/captions-2b4caf69.js +0 -1
- package/esm/features-a903875f.js +0 -1
- package/esm/generic-6e32d78b.js +0 -1
- package/esm/index-06b388ef.js +0 -1
- package/esm/index-546c367a.js +0 -1
- package/esm/index-5d92eaa3.js +0 -1
- package/esm/multicamv2-74cef77e.js +0 -1
- package/esm/multicamv2-923d51b5.js +0 -1
- package/esm/nextEpisodeButton-9804d2c7.js +0 -1
- package/esm/playlist-f2088630.js +0 -1
- package/esm/renditions-19f0b3a9.js +0 -1
- package/esm/resolution-56c85eaf.js +0 -1
- package/esm/series-c1321abe.js +0 -1
- package/esm/series-v2-ca457317.js +0 -1
- package/esm/series-v2-de1e9162.js +0 -1
- package/esm/settings-icon-2e8d0bdf.js +0 -1
- package/esm/skin-1aa80894.js +0 -1
- package/esm/skin-3461f49d.js +0 -1
- package/esm/skin-4bbbf83a.js +0 -1
- package/esm/skin-4f84b841.js +0 -1
- package/esm/skin-5fe4f257.js +0 -1
- package/esm/skin-666ca192.js +0 -1
- package/esm/skin-77098b29.js +0 -1
- package/esm/skin-8aba1f81.js +0 -1
- package/esm/skin-b8869476.js +0 -1
- package/esm/skin-ca8418c4.js +0 -1
- package/esm/util-b9d1d851.js +0 -1
- package/esm/videoSelector-7cc8a1a5.js +0 -1
- package/esm/videoSelector-f5485b35.js +0 -1
- package/esm/videojs-dash5.es-21d77734.js +0 -1
package/esm/skin-4bbbf83a.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{f as l,d as i,e,j as n,k as o,l as t,m as r}from"./features-a903875f.js";import{f as s}from"./icons-699e8cf0.js";import{g as a,p as u,e as d}from"./skin-4f84b841.js";import{g as C}from"./renditions-19f0b3a9.js";import{a as v,b as c}from"./index-546c367a.js";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/slicedToArray";import"@babel/runtime/helpers/toConsumableArray";import{d as p,Y as h,j as m}from"./generic-6e32d78b.js";import"@babel/runtime/helpers/classCallCheck";import"@babel/runtime/helpers/createClass";import"@babel/runtime/helpers/inherits";import"@babel/runtime/helpers/possibleConstructorReturn";import"@babel/runtime/helpers/getPrototypeOf";import"video.js";import"./localisation-0bf399a1.js";import"./autoNextVideo-ab428f6c.js";import"./util-b9d1d851.js";import"@babel/runtime/helpers/typeof";import"axios";import"./browser-d4613b36.js";import"js-cookie";import"./captions-2b4caf69.js";function f(f,b){a(f).addClass("skin_mini"),function(i,e){var n=a(i);n&&n.on("loadeddata",function(){var n,o,t,r,s,a,u;(null===(n=C(i))||void 0===n?void 0:n.length)>0&&0!=(null==e||null===(o=e.skin_settings)||void 0===o?void 0:o.settingsToggle)&&l(i,e),!(null!=e&&null!==(t=e.series)&&void 0!==t&&t.enable||null!==(r=window)&&void 0!==r&&null!==(s=r.app_data)&&void 0!==s&&null!==(a=s.appcmsMain)&&void 0!==a&&null!==(u=a.features)&&void 0!==u&&u.auto_play)||null!=e&&e.liveVideo||v(i,e)})}(f,b),function(l,i){var e,n,o,t,r,s,C,v,c,p,h,m,f,b,B,y,g,L,j=a(l);null===(e=j.controlBar)||void 0===e||e.removeChild("VolumePanel"),null===(n=j.controlBar)||void 0===n||n.addChild("VolumePanel",{inline:!1},1);var E=null===(o=j.controlBar)||void 0===o?void 0:o.getChild("ProgressControl"),w=document.createElement("div");w.className="custom-spaced-progress-bar",E&&w.append(E.el());null===(t=j.controlBar)||void 0===t||null===(r=t.el())||void 0===r||r.append(w);var V='<svg xmlns="http://www.w3.org/2000/svg" style="display : none">\n <defs>\n <symbol id="vjs-icon-pause" viewBox="0 0 17 16">\n <path d="M6.00138 15.4894C6.02138 15.7494 5.82138 15.9694 5.56138 15.9894C5.54138 15.9894 5.52138 15.9894 5.50138 15.9894H2.50138C2.24138 16.0094 2.02138 15.8094 2.00138 15.5494C2.00138 15.5294 2.00138 15.5094 2.00138 15.4894V0.499411C1.98138 0.239411 2.18138 0.0194107 2.44138 -0.000589337C2.46138 -0.000589337 2.48138 -0.000589337 2.50138 -0.000589337H5.50138C5.76138 -0.0205893 5.98138 0.179411 6.00138 0.439411C6.00138 0.459411 6.00138 0.479411 6.00138 0.499411V15.4894ZM14.0014 0.509411C14.0214 0.249411 13.8214 0.0294105 13.5614 0.00941051C13.5414 0.00941051 13.5214 0.00941051 13.5014 0.00941051H10.5014C10.2414 -0.0105895 10.0214 0.189411 10.0014 0.449411C10.0014 0.469411 10.0014 0.489411 10.0014 0.509411V15.4994C9.98138 15.7594 10.1814 15.9794 10.4414 15.9994C10.4614 15.9994 10.4814 15.9994 10.5014 15.9994H13.5014C13.7614 16.0194 13.9814 15.8194 14.0014 15.5594C14.0014 15.5394 14.0014 15.5194 14.0014 15.4994V0.509411Z" fill="#EBEBEB"/>\n </symbol>\n <symbol id="vjs-icon-play" viewBox="0 0 17 16">\n <path d="M0.38279 15.9526C0.28279 16.0326 0.142791 16.0126 0.0527906 15.9126C0.0127906 15.8626 -0.00720943 15.8026 0.00279057 15.7326V0.262601C-0.0172094 0.132601 0.0727907 0.0226013 0.192791 0.00260128C0.262791 -0.00739872 0.32279 0.0126014 0.38279 0.0426014L15.8528 7.8126C16.0628 7.9226 16.0628 8.0926 15.8528 8.1926L0.38279 15.9526Z" fill="white"/>\n </symbol>\n\n <symbol id="vjs-icon-fullscreen" viewBox="0 0 24 24">\n <path d="M19.8621 5.44209L19.0221 10.4521C18.9821 10.7221 18.7821 10.7821 18.5821 10.5921L17.1421 9.15209L14.3521 11.9421L12.9321 10.5221L15.7221 7.73209L14.2821 6.29209C14.0921 6.10209 14.1521 5.90209 14.4221 5.85209L19.4321 5.01209C19.6121 4.96209 19.7921 5.07209 19.8421 5.25209C19.8821 5.32209 19.8821 5.38209 19.8621 5.44209ZM9.15209 17.1621L11.9421 14.3721L10.5221 12.9521L7.73209 15.7421L6.29209 14.3021C6.10209 14.1121 5.90209 14.1721 5.85209 14.4421L5.01209 19.4521C4.96209 19.6321 5.07209 19.8121 5.25209 19.8621C5.30209 19.8821 5.37209 19.8821 5.42209 19.8621L10.4321 19.0221C10.7021 18.9821 10.7621 18.7821 10.5721 18.5821L9.15209 17.1621Z" fill="#EBEBEB"/>\n </symbol>\n <symbol id="vjs-icon-fullscreen-back" viewBox="0 0 24 24">\n <path d="M10.92 13.49L10.08 18.5C10.04 18.77 9.84001 18.83 9.64001 18.64L8.20001 17.2L5.41001 19.99L3.99001 18.57L6.78001 15.78L5.34001 14.34C5.15001 14.15 5.21001 13.95 5.48001 13.9L10.49 13.06C10.67 13.01 10.85 13.12 10.9 13.3C10.94 13.37 10.94 13.43 10.92 13.49ZM17.21 8.21L20 5.42L18.58 4L15.79 6.79L14.35 5.35C14.16 5.16 13.96 5.22 13.91 5.49L13.07 10.5C13.02 10.68 13.13 10.86 13.31 10.91C13.36 10.93 13.43 10.93 13.48 10.91L18.49 10.07C18.76 10.03 18.82 9.83 18.63 9.63L17.21 8.21Z" fill="#EBEBEB"/>\n </symbol>\n\n <symbol id="vjs-icon-volume1" viewBox="0 0 24 24"> \n <path d="M11.65 4.28V19.72C11.65 20 11.48 20.08 11.27 19.89L5.86 15.09H2.9C2.62 15.09 2.38 14.86 2.38 14.57V9.43C2.38 9.15 2.61 8.91 2.9 8.91H5.86L11.27 4.11C11.48 3.92 11.65 3.99 11.65 4.28Z" fill="#EBEBEB"/>\n <path d="M13.62 16V14C14.73 14 15.62 13.11 15.62 12C15.62 10.89 14.73 10 13.62 10V8C15.83 8 17.62 9.79 17.62 12C17.62 14.21 15.83 16 13.62 16Z" fill="#EBEBEB"/>\n <path d="M21.62 12C21.62 7.58 18.04 4 13.62 4V6C16.93 6 19.62 8.69 19.62 12C19.62 15.31 16.93 18 13.62 18V20C18.04 19.99 21.61 16.41 21.62 12Z" fill="#EBEBEB"/>\n </symbol>\n <symbol id="vjs-icon-volume2" viewBox="0 0 24 24"> \n <path d="M11.65 4.28V19.72C11.65 20 11.48 20.08 11.27 19.89L5.86 15.09H2.9C2.62 15.09 2.38 14.86 2.38 14.57V9.43C2.38 9.15 2.61 8.91 2.9 8.91H5.86L11.27 4.11C11.48 3.92 11.65 3.99 11.65 4.28Z" fill="#EBEBEB"/>\n <path d="M13.62 16V14C14.73 14 15.62 13.11 15.62 12C15.62 10.89 14.73 10 13.62 10V8C15.83 8 17.62 9.79 17.62 12C17.62 14.21 15.83 16 13.62 16Z" fill="#EBEBEB"/>\n <path d="M21.62 12C21.62 7.58 18.04 4 13.62 4V6C16.93 6 19.62 8.69 19.62 12C19.62 15.31 16.93 18 13.62 18V20C18.04 19.99 21.61 16.41 21.62 12Z" fill="#EBEBEB"/>\n </symbol>\n <symbol id="vjs-icon-volume3" viewBox="0 0 24 24">\n <path d="M11.65 4.28V19.72C11.65 20 11.48 20.08 11.27 19.89L5.86 15.09H2.9C2.62 15.09 2.38 14.86 2.38 14.57V9.43C2.38 9.15 2.61 8.91 2.9 8.91H5.86L11.27 4.11C11.48 3.92 11.65 3.99 11.65 4.28Z" fill="#EBEBEB"/>\n <path d="M13.62 16V14C14.73 14 15.62 13.11 15.62 12C15.62 10.89 14.73 10 13.62 10V8C15.83 8 17.62 9.79 17.62 12C17.62 14.21 15.83 16 13.62 16Z" fill="#EBEBEB"/>\n <path d="M21.62 12C21.62 7.58 18.04 4 13.62 4V6C16.93 6 19.62 8.69 19.62 12C19.62 15.31 16.93 18 13.62 18V20C18.04 19.99 21.61 16.41 21.62 12Z" fill="#EBEBEB"/>\n </symbol>\n <symbol id="vjs-icon-mute" viewBox="0 0 24 24"> \n <g clip-path="url(#clip0_19_559)">\n <path d="M11.65 4.28V19.72C11.65 20 11.48 20.08 11.27 19.89L5.86 15.09H2.9C2.62 15.09 2.38 14.86 2.38 14.57V9.43C2.38 9.15 2.61 8.91 2.9 8.91H5.86L11.27 4.11C11.48 3.92 11.65 3.99 11.65 4.28Z" fill="#EBEBEB"/>\n <path d="M19.0909 12.5238L21.2626 14.6955L19.8146 16.1436L17.6429 13.9718L15.4711 16.1436L14.0231 14.6955L16.1948 12.5238L14.0231 10.352L15.4711 8.904L17.6429 11.0757L19.8146 8.904L21.2626 10.352L19.0909 12.5238Z" fill="white"/>\n </g>\n <defs>\n <clipPath id="clip0_19_559">\n <rect width="24" height="24" fill="white"/>\n </clipPath>\n </defs>\n </symbol>\n\n <symbol id="vjs-icon-pip" viewBox="0 0 24 16">\n <rect x="1" y="1" width="22" height="14" rx="1" stroke="white" stroke-width="2"/>\n <rect x="9.33331" y="6.66666" width="10.6667" height="5.33333" rx="1" fill="white"/>\n </symbol>\n\n <symbol id="vjs-icon-captions" viewBox="0 0 29 16">\n <rect x="1" y="1" width="27" height="14" rx="1" fill="white" stroke="white" stroke-width="2"/>\n <path d="M11.9795 5.25488C11.6377 5.25488 11.3317 5.31673 11.0615 5.44043C10.7946 5.56413 10.5684 5.74316 10.3828 5.97754C10.1973 6.20866 10.0557 6.49023 9.95801 6.82227C9.86035 7.15104 9.81152 7.52214 9.81152 7.93555C9.81152 8.48893 9.88965 8.96582 10.0459 9.36621C10.2021 9.76335 10.4398 10.0693 10.7588 10.2842C11.0778 10.4958 11.4814 10.6016 11.9697 10.6016C12.2725 10.6016 12.5671 10.5723 12.8535 10.5137C13.14 10.4551 13.4362 10.3753 13.7422 10.2744V11.2705C13.4525 11.3844 13.1595 11.4674 12.8633 11.5195C12.5671 11.5716 12.2253 11.5977 11.8379 11.5977C11.1087 11.5977 10.5033 11.4463 10.0215 11.1436C9.54297 10.8408 9.1849 10.4144 8.94727 9.86426C8.71289 9.31413 8.5957 8.6696 8.5957 7.93066C8.5957 7.3903 8.67057 6.89551 8.82031 6.44629C8.97005 5.99707 9.18815 5.6097 9.47461 5.28418C9.76107 4.9554 10.1143 4.70312 10.5342 4.52734C10.9574 4.34831 11.4408 4.25879 11.9844 4.25879C12.3424 4.25879 12.694 4.29948 13.0391 4.38086C13.3874 4.45898 13.7096 4.57129 14.0059 4.71777L13.5957 5.68457C13.3483 5.56738 13.0895 5.46647 12.8193 5.38184C12.5492 5.2972 12.2692 5.25488 11.9795 5.25488ZM17.9174 5.25488C17.5756 5.25488 17.2696 5.31673 16.9994 5.44043C16.7325 5.56413 16.5062 5.74316 16.3207 5.97754C16.1352 6.20866 15.9936 6.49023 15.8959 6.82227C15.7982 7.15104 15.7494 7.52214 15.7494 7.93555C15.7494 8.48893 15.8275 8.96582 15.9838 9.36621C16.14 9.76335 16.3777 10.0693 16.6967 10.2842C17.0157 10.4958 17.4193 10.6016 17.9076 10.6016C18.2104 10.6016 18.5049 10.5723 18.7914 10.5137C19.0779 10.4551 19.3741 10.3753 19.6801 10.2744V11.2705C19.3904 11.3844 19.0974 11.4674 18.8012 11.5195C18.5049 11.5716 18.1632 11.5977 17.7758 11.5977C17.0466 11.5977 16.4411 11.4463 15.9594 11.1436C15.4809 10.8408 15.1228 10.4144 14.8852 9.86426C14.6508 9.31413 14.5336 8.6696 14.5336 7.93066C14.5336 7.3903 14.6085 6.89551 14.7582 6.44629C14.9079 5.99707 15.126 5.6097 15.4125 5.28418C15.699 4.9554 16.0521 4.70312 16.4721 4.52734C16.8952 4.34831 17.3786 4.25879 17.9223 4.25879C18.2803 4.25879 18.6319 4.29948 18.977 4.38086C19.3253 4.45898 19.6475 4.57129 19.9437 4.71777L19.5336 5.68457C19.2862 5.56738 19.0274 5.46647 18.7572 5.38184C18.487 5.2972 18.2071 5.25488 17.9174 5.25488Z" fill="#050910"/>\n </symbol>\n\n <symbol id="vjs-icon-captions-off" viewBox="0 0 29 16">\n <rect x="1" y="1" width="27" height="14" rx="1" stroke="white" stroke-width="2"/>\n <path d="M11.9795 5.25488C11.6377 5.25488 11.3317 5.31673 11.0615 5.44043C10.7946 5.56413 10.5684 5.74316 10.3828 5.97754C10.1973 6.20866 10.0557 6.49023 9.95801 6.82227C9.86035 7.15104 9.81152 7.52214 9.81152 7.93555C9.81152 8.48893 9.88965 8.96582 10.0459 9.36621C10.2021 9.76335 10.4398 10.0693 10.7588 10.2842C11.0778 10.4958 11.4814 10.6016 11.9697 10.6016C12.2725 10.6016 12.5671 10.5723 12.8535 10.5137C13.14 10.4551 13.4362 10.3753 13.7422 10.2744V11.2705C13.4525 11.3844 13.1595 11.4674 12.8633 11.5195C12.5671 11.5716 12.2253 11.5977 11.8379 11.5977C11.1087 11.5977 10.5033 11.4463 10.0215 11.1436C9.54297 10.8408 9.1849 10.4144 8.94727 9.86426C8.71289 9.31413 8.5957 8.6696 8.5957 7.93066C8.5957 7.3903 8.67057 6.89551 8.82031 6.44629C8.97005 5.99707 9.18815 5.6097 9.47461 5.28418C9.76107 4.9554 10.1143 4.70312 10.5342 4.52734C10.9574 4.34831 11.4408 4.25879 11.9844 4.25879C12.3424 4.25879 12.694 4.29948 13.0391 4.38086C13.3874 4.45898 13.7096 4.57129 14.0059 4.71777L13.5957 5.68457C13.3483 5.56738 13.0895 5.46647 12.8193 5.38184C12.5492 5.2972 12.2692 5.25488 11.9795 5.25488ZM17.9174 5.25488C17.5756 5.25488 17.2696 5.31673 16.9994 5.44043C16.7325 5.56413 16.5062 5.74316 16.3207 5.97754C16.1352 6.20866 15.9936 6.49023 15.8959 6.82227C15.7982 7.15104 15.7494 7.52214 15.7494 7.93555C15.7494 8.48893 15.8275 8.96582 15.9838 9.36621C16.14 9.76335 16.3777 10.0693 16.6967 10.2842C17.0157 10.4958 17.4193 10.6016 17.9076 10.6016C18.2104 10.6016 18.5049 10.5723 18.7914 10.5137C19.0779 10.4551 19.3741 10.3753 19.6801 10.2744V11.2705C19.3904 11.3844 19.0974 11.4674 18.8012 11.5195C18.5049 11.5716 18.1632 11.5977 17.7758 11.5977C17.0466 11.5977 16.4411 11.4463 15.9594 11.1436C15.4809 10.8408 15.1228 10.4144 14.8852 9.86426C14.6508 9.31413 14.5336 8.6696 14.5336 7.93066C14.5336 7.3903 14.6085 6.89551 14.7582 6.44629C14.9079 5.99707 15.126 5.6097 15.4125 5.28418C15.699 4.9554 16.0521 4.70312 16.4721 4.52734C16.8952 4.34831 17.3786 4.25879 17.9223 4.25879C18.2803 4.25879 18.6319 4.29948 18.977 4.38086C19.3253 4.45898 19.6475 4.57129 19.9437 4.71777L19.5336 5.68457C19.2862 5.56738 19.0274 5.46647 18.7572 5.38184C18.487 5.2972 18.2071 5.25488 17.9174 5.25488Z" fill="white"/>\n </symbol>\n\n </defs>';j.el().insertBefore(u(V),null!==(s=j.el().firstChild)&&void 0!==s?s:null);var x=(null==j||null===(C=j.controlBar)||void 0===C||null===(v=C.getChild("PlayToggle"))||void 0===v||null===(c=v.el())||void 0===c?void 0:c.firstChild)||null;if(x){x.style.height="16px",x.style.width="16px";var M=d(x,j.paused()?"#vjs-icon-play":"#vjs-icon-pause");j.on("pause",function(){return M.setAttributeNS(null,"href","#vjs-icon-play")}),j.on("play",function(){return M.setAttributeNS(null,"href","#vjs-icon-pause")})}var k=(null==j||null===(p=j.controlBar)||void 0===p||null===(h=p.getChild("FullscreenToggle"))||void 0===h||null===(m=h.el())||void 0===m?void 0:m.firstChild)||null;if(k){k.style.height="24px",k.style.width="24px";var S=d(k,"#vjs-icon-fullscreen");j.on("fullscreenchange",function(){var l=j.isFullscreen_;null==S||S.setAttributeNS(null,"href",l?"#vjs-icon-fullscreen-back":"#vjs-icon-fullscreen")})}var Z=(null==j||null===(f=j.controlBar)||void 0===f||null===(b=f.getChild("VolumePanel"))||void 0===b?void 0:b.el())||null;if(Z){var A=Z.querySelector(".vjs-mute-control .vjs-icon-placeholder");A.classList.add("vjs-svg-icon"),A.style.height="24px",A.style.width="24px";var T=d(A,j.muted()?"#vjs-icon-mute":"#vjs-icon-volume1");j.on("volumechange",function(l){var i=j.volume();0==i||j.muted()?T.setAttributeNS(null,"href","#vjs-icon-mute"):i>0&&i<=.3?T.setAttributeNS(null,"href","#vjs-icon-volume1"):i>=.3&&i<=.7?T.setAttributeNS(null,"href","#vjs-icon-volume2"):T.setAttributeNS(null,"href","#vjs-icon-volume3")})}var N=(null==j||null===(B=j.controlBar)||void 0===B||null===(y=B.getChild("PictureInPictureToggle"))||void 0===y?void 0:y.el())||null;if(N){var H=null==N?void 0:N.querySelector(".vjs-icon-placeholder");H.style.height="25px",H.style.width="25px";var P=d(H,"#vjs-icon-pip");j.on("enterpictureinpicture",function(){P.setAttributeNS(null,"href","#vjs-icon-pip")})}var _=(null==j||null===(g=j.controlBar)||void 0===g||null===(L=g.getChild("SubsCapsButton"))||void 0===L?void 0:L.el())||null;if(_){var q=_.querySelector(".vjs-subs-caps-button .vjs-icon-placeholder");q.classList.add("vjs-svg-icon"),q.style.height="29px",q.style.width="29px";var I=d(q,"#vjs-icon-caps");I.setAttributeNS(null,"href","#vjs-icon-captions-off"),j.textTracks().on("change",function(l){for(var i=j.textTracks(),e=!1,n=0;n<i.length;n++){var o=i[n];if(("captions"===o.kind||"subtitles"===o.kind)&&"showing"===o.mode){e=!0;break}}e?I.setAttributeNS(null,"href","#vjs-icon-captions"):I.setAttributeNS(null,"href","#vjs-icon-captions-off")})}j&&null!=i&&i.liveVideo&&null!=i&&i.liveui&&(j.liveTracker.on("liveedgechange",function(){R(j)}),j.on("timeupdate",function(){R(j)}));function O(l){var i=Math.floor(l/3600),e=Math.floor(l%3600/60),n=Math.floor(l%60),o=function(l){return String(l).padStart(2,"0")};return 0===i?"".concat(o(e),":").concat(o(n)):"".concat(o(i),":").concat(o(e),":").concat(o(n))}function D(l){var i=l.seekable();if(i&&i.length>0){var e=i.end(0);return Math.max(0,e-l.currentTime())}return 0}function R(l){var i,e,n=l.liveTracker.atLiveEdge(),o=D(l),t=null==l||null===(i=l.controlBar)||void 0===i||null===(e=i.remainingTimeDisplay)||void 0===e?void 0:e.el();if(t){var r=t.querySelector(".vjs-remaining-time-display");n?t.style.display="none":(t.style.display="flex",r&&(r.innerText=O(o)))}}}(f,b),function(l,a){var u,d,C,v,c,f,b,B,y,g=(null==a||null===(u=a.res)||void 0===u||null===(d=u.video)||void 0===d?void 0:d.isSSAIEnabled)||!1,L=(null==a?void 0:a.skin_settings)||{};null==L||L.slowMoBtn;var j=(null==a||null===(C=a.customData)||void 0===C?void 0:C.ads)||{};null!=L&&L.skipBtn&&0==(null==a?void 0:a.liveVideo)&&0==(null==a?void 0:a.liveui)&&i(l,"VL_ONE",SkipSvgV2());null!=L&&L.rewindBtn&&(0==(null==a?void 0:a.liveVideo)&&0==(null==a?void 0:a.liveui)||1==(null==a?void 0:a.liveui))&&e(l,"VL_ONE",s());(null==a||null===(v=a.relatedVideos)||void 0===v||null===(c=v.content)||void 0===c?void 0:c.length)>0&&n(l,null==a?void 0:a.relatedVideos);(null==a||null===(f=a.streams)||void 0===f?void 0:f.length)>1&&o(l,null==a?void 0:a.streams);(null==a||null===(b=a.playlist)||void 0===b||null===(B=b.content)||void 0===B?void 0:B.length)>0&&t(l,null==a?void 0:a.playlist);null!=a&&null!==(y=a.series)&&void 0!==y&&y.enable&&r(l,a);if("MEDIA_TAILOR"==(null==j?void 0:j.vodAdSticherProvider)&&null!=j&&j.vodAdClientSideTracking&&g){var E,w=null;if(null!=a&&null!==(E=a.series)&&void 0!==E&&E.enable){var V,x,M,k=null===(V=p())||void 0===V||null===(x=V.video)||void 0===x||null===(M=x.gist)||void 0===M?void 0:M.id,S=m(),Z=(null==S?void 0:S.get(k))||{t:0,p:0},A=Z.t;Z.p<95&&(w=A)}else{var T=a.watchHistoryResumeTime;a.watchedPercentage<95&&(w=T)}h(l,w)}}(f,b),c(f,b)}export{f as initialiseSkin};
|
package/esm/skin-4f84b841.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import e from"@babel/runtime/helpers/toConsumableArray";import n from"video.js";var t=function(e){return!!n.getPlayer("".concat(e))&&n.getPlayer("".concat(e))},i=["live","carousel","V2","defaultV2","multiplayer","minimalist","VL_ONE","news","mini","news_live"],o=function(e){return!i.includes(e)},r=function(e){var n=(new DOMParser).parseFromString(e,"text/html");return null==n?void 0:n.querySelector("body")},l=function(e){var n=(new DOMParser).parseFromString(e,"image/svg+xml");return null==n?void 0:n.querySelector("svg")},a="http://www.w3.org/2000/svg";function u(e,n){if(!e)return null;e.classList.add("vjs-svg-icon");var t=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"0 0 48 48",t=document.createElementNS(a,"svg");t.setAttribute("viewBox",n),t.setAttribute("preserveAspectRatio","xMidYMid meet");var i=document.createElementNS(a,"use");return i.setAttributeNS(null,"href",e),t.appendChild(i),{svg:t,use:i}}(n),i=t.svg,o=t.use;return e.appendChild(i),o}var d=function(e){return l(e)},s=function(n,i){if(i){var o,r,l=t(i);if(l&&"function"==typeof l.el&&null!=l&&null!==(o=l.el())&&void 0!==o&&null!==(r=o.classList)&&void 0!==r&&r.contains("skin_defaultv2"))return void c(n)}var a=e(document.querySelectorAll("[video-idx]"));console.log(a),a.map(function(e){var t=e.parentNode,i=e.getAttribute("video-idx");t.style.background=i==n?"gray":"none"})},c=function(n){e(document.querySelectorAll("[video-idx]")).map(function(e){var t=e.getAttribute("video-idx");e.style.border=t==n?"2px solid white":"none"})},v=function(){var n=e(document.getElementsByClassName("vjs-control vjs-button open"));null==n||n.map(function(e){var n,t;null==e||null===(n=e.childNodes)||void 0===n||null===(t=n[0])||void 0===t||t.click()})},m=function(e){return e&&!e.includes("?impolicy")?e+"?impolicy=resize&w=1920&h=1080":null},w="",f=function(e,n){var t,i=function(){return function(e,n){var t=window.matchMedia("(orientation: portrait)").matches?"potrait":"landscape",i=document.getElementById(e);if(i&&w!==t){var o=window.getComputedStyle(i,null).getPropertyValue("height");n&&(n.style.height="".concat(o)),w=t}}(e,n)};window._orientationChangeHandler=i;window.addEventListener("resize",function(){clearTimeout(t),t=setTimeout(function(){i()},100)})},p=function(e,n){var i,o=t(e),r=t(e).el(),l=new ResizeObserver(function(){var t;null!==(t=n.classList)&&void 0!==t&&t.contains("hidden")||(i&&clearTimeout(i),i=setTimeout(function(){g(e,n)},300))});l.observe(r),o.on("dispose",function(){l.disconnect()}),o.on("fullscreenchange",function(){setTimeout(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 y(e,n){var t=null,i=null;return function(){for(var o=this,r=arguments.length,l=new Array(r),a=0;a<r;a++)l[a]=arguments[a];i?(clearTimeout(t),t=setTimeout(function(){Date.now()-i>=n&&(e.apply(o,l),i=Date.now())},n-(Date.now()-i))):(e.apply(this,l),i=Date.now())}}var b=function(e,n){var t;return function(){for(var i=arguments.length,o=new Array(i),r=0;r<i;r++)o[r]=arguments[r];var l=this;clearTimeout(t),t=setTimeout(function(){e.apply(l,o)},n)}};export{o as a,d as b,h as c,b as d,u as e,r as f,t as g,s as h,m as i,v as j,f as k,p as l,c as m,l as p,g as s,y as t};
|
package/esm/skin-5fe4f257.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{h as l,d as o,e as i,o as e,p as n,q as r}from"./features-a903875f.js";import{g as a}from"./skin-4f84b841.js";import{a as t,b as d}from"./index-546c367a.js";import{i as u}from"./index-06b388ef.js";import{i as s}from"./browser-d4613b36.js";import"videojs-contrib-quality-menu";import v from"video.js";import{e as p,T as m,X as c,d as b,Y as y,j as f}from"./generic-6e32d78b.js";import{c as h,d as g}from"./icons-699e8cf0.js";import"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/classCallCheck";import"@babel/runtime/helpers/createClass";import"@babel/runtime/helpers/inherits";import"@babel/runtime/helpers/possibleConstructorReturn";import"@babel/runtime/helpers/getPrototypeOf";import"./renditions-19f0b3a9.js";import"./localisation-0bf399a1.js";import"@babel/runtime/helpers/toConsumableArray";import"./autoNextVideo-ab428f6c.js";import"./util-b9d1d851.js";import"@babel/runtime/helpers/typeof";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"@babel/runtime/helpers/slicedToArray";import"axios";import"js-cookie";import"./captions-2b4caf69.js";function j(o,i){var e,n=a(o),r=(null==i||null===(e=i.res)||void 0===e?void 0:e.siteId)||"";n&&(n.on("loadeddata",function(){var l,e,n,d,v;!function(l){var o=a(l);o&&(null==o||o.qualityMenu,o.qualityMenu({useResolutionLabels:!0}))}(o),!(null!=i&&null!==(l=i.series)&&void 0!==l&&l.enable||null!==(e=window)&&void 0!==e&&null!==(n=e.app_data)&&void 0!==n&&null!==(d=n.appcmsMain)&&void 0!==d&&null!==(v=d.features)&&void 0!==v&&v.auto_play)||null!=i&&i.liveVideo||t(o,i),null!=i&&i.liveVideo||s()||"b13633d9-f778-40c6-a5ea-c330617cdf55"===r||u(o)}),n.one("play",function(){var i,e,n,r;null!==(i=window)&&void 0!==i&&null!==(e=i.customData)&&void 0!==e&&e.iframeOverlayUrl&&l(o,null===(n=window)||void 0===n||null===(r=n.customData)||void 0===r?void 0:r.iframeOverlayUrl)}))}function w(l,t){a(l).addClass("skin_vlone"),j(l,t),function(l,a){var t,u,s,v,j,w,C,k,B=(null==a?void 0:a.liveVideo)||!1,T=(null==a||null===(t=a.res)||void 0===t?void 0:t.contentType)||"video",V=(null==a||null===(u=a.res)||void 0===u||null===(s=u[T])||void 0===s?void 0:s.isSSAIEnabled)||!1,_=p(null==a?void 0:a.res,l)||{};_.src;var A=(null==a?void 0:a.skin_settings)||{},M=(null==a||null===(v=a.customData)||void 0===v?void 0:v.ads)||{};null!=A&&A.skipBtn&&0==(null==a?void 0:a.liveVideo)&&0==(null==a?void 0:a.liveui)&&o(l,"VL_ONE",h());(null!=A&&A.rewindBtn&&0==(null==a?void 0:a.liveVideo)&&0==(null==a?void 0:a.liveui)||1==(null==a?void 0:a.liveui))&&i(l,"VL_ONE",g());(null==a||null===(j=a.relatedVideos)||void 0===j||null===(w=j.content)||void 0===w?void 0:w.length)>0&&e(l,null==a?void 0:a.relatedVideos);null!=a&&null!==(C=a.series)&&void 0!==C&&C.enable&&n(l,a);(null==a||null===(k=a.streams)||void 0===k?void 0:k.length)>1&&r(l,null==a?void 0:a.streams);if(d(l,a),m(l,a),"MEDIA_TAILOR"==(null==M?void 0:M.vodAdSticherProvider)&&null!=M&&M.vodAdClientSideTracking&&V)if(B)c(l);else{var O,R=null;if(null!=a&&null!==(O=a.series)&&void 0!==O&&O.enable){var q,x,D,E,P,I=null===(q=b())||void 0===q||null===(x=q.video)||void 0===x||null===(D=x.gist)||void 0===D?void 0:D.id,L=f(),S=(null==L?void 0:L.get(I))||{t:0,p:0},H=S.t,N=S.p;"function"==typeof(null===(E=window)||void 0===E||null===(P=E.watchHistory)||void 0===P?void 0:P.cb)&&window.watchHistory.cb({watchedTime:H}),N<95&&(R=H)}else{var U=a.watchHistoryResumeTime;a.watchedPercentage<95&&(R=U)}y(l,R)}}(l,t),C(l,t)}var C=function(l,o){var i,e,n,r,t,d,u,s,p,m,c,b,y=a(l),f=(null==o?void 0:o.theme)||{},h=v.dom.$(".vjs-play-progress"),g=v.dom.$(".video-js .vjs-big-play-button .vjs-icon-placeholder");g&&(g.style.color="".concat(null===(i=window)||void 0===i||null===(e=i.app_data)||void 0===e||null===(n=e.appcmsMain)||void 0===n||null===(r=n.brand)||void 0===r||null===(t=r.cta)||void 0===t||null===(d=t.primary)||void 0===d?void 0:d.backgroundColor)),h&&(h.style.background="".concat(null===(u=window)||void 0===u||null===(s=u.app_data)||void 0===s||null===(p=s.appcmsMain)||void 0===p||null===(m=p.brand)||void 0===m||null===(c=m.cta)||void 0===c||null===(b=c.primary)||void 0===b?void 0:b.backgroundColor));var j=y.getChild("BigPlayButton")||null;(null==f?void 0:f.progressBarColor)&&h&&(h.style.background=f.progressBarColor),(null==f?void 0:f.playButtonBackgroundColor)&&j&&(j.el().style.background=f.playButtonBackgroundColor),(null==f?void 0:f.playButtonColor)&&g&&(g.style.color=f.playButtonColor),(null==f?void 0:f.playButtonType)&&("square"==(null==f?void 0:f.playButtonType)?j.el().style.borderRadius=".3em":j.el().style.borderRadius="1.3em")};export{w as initialiseSkin};
|
package/esm/skin-666ca192.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as e,b as t,c as o,d as s,e as i}from"./features-a903875f.js";import{d as n,T as r}from"./generic-6e32d78b.js";import{S as l,M as a,a as d,N as m,b as u,R as p}from"./icons-699e8cf0.js";import{g as c,b}from"./skin-4f84b841.js";import"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/classCallCheck";import"@babel/runtime/helpers/createClass";import"@babel/runtime/helpers/inherits";import"@babel/runtime/helpers/possibleConstructorReturn";import"@babel/runtime/helpers/getPrototypeOf";import"video.js";import"./renditions-19f0b3a9.js";import"./localisation-0bf399a1.js";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"axios";import"./browser-d4613b36.js";import"js-cookie";import"./captions-2b4caf69.js";import"@babel/runtime/helpers/typeof";import"@babel/runtime/helpers/toConsumableArray";import"@babel/runtime/helpers/slicedToArray";function v(v,f){c(v).addClass("skin_default"),r(v,f),import("./skin-71be210e.js").then(function(e){var t=document.createElement("style");t.id="def_skin",t.append("".concat(e.default)),document.head.appendChild(t)}),function(e,t){0==t.liveVideo&&0==t.liveui&&s(e,"default",u());(0==t.liveVideo&&0==t.liveui||1==t.liveui)&&i(e,"default",p())}(v,f),function(s,i){var r=c(s),a=(null==i?void 0:i.sres)||null;r.on("loadeddata",function(){e(s,"default",l()),a&&import("./nextEpisodeButton-9804d2c7.js").then(function(e){e.initaliseFunctionality(i.sres.seasons,n())})}),r.one("loadedmetadata",function(){var e;a&&(t(s,null==i||null===(e=i.sres)||void 0===e?void 0:e.seasons,i),o(i.sres,i.res,s))})}(v,f),function(e,t){var o,s,i,n,r=c(e),l=document.getElementsByClassName("vjs-current-time")[0],u=document.getElementsByClassName("vjs-duration")[0],p=document.getElementsByClassName("vjs-time-divider")[0];t.liveVideo&&(l&&(l.style.display="none"),u&&(u.style.display="none"),p&&(p.style.display="none"));null===(o=r.controlBar.getChild("FullscreenToggle"))||void 0===o||null===(s=o.el())||void 0===s||s.appendChild(b(a(window.controlsColor))),null===(i=r.controlBar.getChild("FullscreenToggle"))||void 0===i||null===(n=i.el())||void 0===n||n.appendChild(b(d(window.controlsColor)));var v=r.controlBar.getChild("SubsCapsButton").el();document.getElementById(e).getElementsByClassName("vjs-subs-caps-button")[1].appendChild(b(m()));var f=document.createElement("div");f.classList.add("caption-header"),v.querySelector(".vjs-menu-content").insertBefore(f,v.querySelector(".vjs-menu-item"))}(v,f)}export{v as initialiseSkin};
|
package/esm/skin-77098b29.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{g as e}from"./skin-4f84b841.js";import{f as r,n as t}from"./features-a903875f.js";import{g as o}from"./renditions-19f0b3a9.js";import{r as i}from"./captions-2b4caf69.js";import"@babel/runtime/helpers/toConsumableArray";import"video.js";import"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/classCallCheck";import"@babel/runtime/helpers/createClass";import"@babel/runtime/helpers/inherits";import"@babel/runtime/helpers/possibleConstructorReturn";import"@babel/runtime/helpers/getPrototypeOf";import"./generic-6e32d78b.js";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"axios";import"./browser-d4613b36.js";import"js-cookie";import"@babel/runtime/helpers/typeof";import"@babel/runtime/helpers/slicedToArray";import"./localisation-0bf399a1.js";function n(n,s){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(t,n){e(t).on("loadeddata",function(){var e;(null===(e=o(t))||void 0===e?void 0:e.length)>0&&r(t,n),null!=n&&n.disableCaptions&&i(t)})}(n,s),function(r){var o=e(r);o.controls(!1),t(r)}(n)}export{n as initialiseSkin};
|
package/esm/skin-8aba1f81.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{f as l,d as i,e,j as n,k as o,l as t,m as r}from"./features-a903875f.js";import{f as s}from"./icons-699e8cf0.js";import{g as a,p as d,e as u}from"./skin-4f84b841.js";import{g as v}from"./renditions-19f0b3a9.js";import{a as C,b as c}from"./index-546c367a.js";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/slicedToArray";import"@babel/runtime/helpers/toConsumableArray";import{X as p,d as h,Y as m,j as f}from"./generic-6e32d78b.js";import"@babel/runtime/helpers/classCallCheck";import"@babel/runtime/helpers/createClass";import"@babel/runtime/helpers/inherits";import"@babel/runtime/helpers/possibleConstructorReturn";import"@babel/runtime/helpers/getPrototypeOf";import"video.js";import"./localisation-0bf399a1.js";import"./autoNextVideo-ab428f6c.js";import"./util-b9d1d851.js";import"@babel/runtime/helpers/typeof";import"axios";import"./browser-d4613b36.js";import"js-cookie";import"./captions-2b4caf69.js";function y(y,b){a(y).addClass("skin_news"),function(i,e){var n=a(i);n&&n.on("loadeddata",function(){var n,o,t,r,s,a,d;(null===(n=v(i))||void 0===n?void 0:n.length)>0&&0!=(null==e||null===(o=e.skin_settings)||void 0===o?void 0:o.settingsToggle)&&l(i,e),!(null!=e&&null!==(t=e.series)&&void 0!==t&&t.enable||null!==(r=window)&&void 0!==r&&null!==(s=r.app_data)&&void 0!==s&&null!==(a=s.appcmsMain)&&void 0!==a&&null!==(d=a.features)&&void 0!==d&&d.auto_play)||null!=e&&e.liveVideo||C(i,e)})}(y,b),function(l,i){var e,n,o,t,r,s,v,C,c,p,h,m,f,y,b,g,B,L,j,w,E=a(l);if(null===(e=E.controlBar)||void 0===e||e.removeChild("VolumePanel"),null===(n=E.controlBar)||void 0===n||n.addChild("VolumePanel",{inline:!1},1),null!=i&&i.liveVideo){var V,x,M,k,S,Z,T=null===(V=E.controlBar)||void 0===V||null===(x=V.getChild("TimeDivider"))||void 0===x?void 0:x.el(),A=null===(M=E.controlBar)||void 0===M||null===(k=M.getChild("CurrentTimeDisplay"))||void 0===k?void 0:k.el(),H=null===(S=E.controlBar)||void 0===S||null===(Z=S.getChild("DurationDisplay"))||void 0===Z?void 0:Z.el();T&&(T.style.display="none"),A&&(A.style.display="none"),H&&(H.style.display="none")}var N=null===(o=E.controlBar)||void 0===o?void 0:o.getChild("ProgressControl"),P=null===(t=E.controlBar)||void 0===t||null===(r=t.getChild("SeekToLive"))||void 0===r?void 0:r.el();P&&(P.onclick=function(){if(E.paused())try{E.play()}catch(l){console.log(l)}});var _=document.createElement("div");_.className="custom-spaced-progress-bar",N&&_.append(N.el());null===(s=E.controlBar)||void 0===s||null===(v=s.el())||void 0===v||v.append(_);var D='<svg xmlns="http://www.w3.org/2000/svg" style="display : none">\n <defs>\n <symbol id="vjs-icon-pause" viewBox="0 0 17 16">\n <path d="M6.00138 15.4894C6.02138 15.7494 5.82138 15.9694 5.56138 15.9894C5.54138 15.9894 5.52138 15.9894 5.50138 15.9894H2.50138C2.24138 16.0094 2.02138 15.8094 2.00138 15.5494C2.00138 15.5294 2.00138 15.5094 2.00138 15.4894V0.499411C1.98138 0.239411 2.18138 0.0194107 2.44138 -0.000589337C2.46138 -0.000589337 2.48138 -0.000589337 2.50138 -0.000589337H5.50138C5.76138 -0.0205893 5.98138 0.179411 6.00138 0.439411C6.00138 0.459411 6.00138 0.479411 6.00138 0.499411V15.4894ZM14.0014 0.509411C14.0214 0.249411 13.8214 0.0294105 13.5614 0.00941051C13.5414 0.00941051 13.5214 0.00941051 13.5014 0.00941051H10.5014C10.2414 -0.0105895 10.0214 0.189411 10.0014 0.449411C10.0014 0.469411 10.0014 0.489411 10.0014 0.509411V15.4994C9.98138 15.7594 10.1814 15.9794 10.4414 15.9994C10.4614 15.9994 10.4814 15.9994 10.5014 15.9994H13.5014C13.7614 16.0194 13.9814 15.8194 14.0014 15.5594C14.0014 15.5394 14.0014 15.5194 14.0014 15.4994V0.509411Z" fill="#EBEBEB"/>\n </symbol>\n <symbol id="vjs-icon-play" viewBox="0 0 17 16">\n <path d="M0.38279 15.9526C0.28279 16.0326 0.142791 16.0126 0.0527906 15.9126C0.0127906 15.8626 -0.00720943 15.8026 0.00279057 15.7326V0.262601C-0.0172094 0.132601 0.0727907 0.0226013 0.192791 0.00260128C0.262791 -0.00739872 0.32279 0.0126014 0.38279 0.0426014L15.8528 7.8126C16.0628 7.9226 16.0628 8.0926 15.8528 8.1926L0.38279 15.9526Z" fill="white"/>\n </symbol>\n\n <symbol id="vjs-icon-fullscreen" viewBox="0 0 24 24">\n <path d="M19.8621 5.44209L19.0221 10.4521C18.9821 10.7221 18.7821 10.7821 18.5821 10.5921L17.1421 9.15209L14.3521 11.9421L12.9321 10.5221L15.7221 7.73209L14.2821 6.29209C14.0921 6.10209 14.1521 5.90209 14.4221 5.85209L19.4321 5.01209C19.6121 4.96209 19.7921 5.07209 19.8421 5.25209C19.8821 5.32209 19.8821 5.38209 19.8621 5.44209ZM9.15209 17.1621L11.9421 14.3721L10.5221 12.9521L7.73209 15.7421L6.29209 14.3021C6.10209 14.1121 5.90209 14.1721 5.85209 14.4421L5.01209 19.4521C4.96209 19.6321 5.07209 19.8121 5.25209 19.8621C5.30209 19.8821 5.37209 19.8821 5.42209 19.8621L10.4321 19.0221C10.7021 18.9821 10.7621 18.7821 10.5721 18.5821L9.15209 17.1621Z" fill="#EBEBEB"/>\n </symbol>\n <symbol id="vjs-icon-fullscreen-back" viewBox="0 0 24 24">\n <path d="M10.92 13.49L10.08 18.5C10.04 18.77 9.84001 18.83 9.64001 18.64L8.20001 17.2L5.41001 19.99L3.99001 18.57L6.78001 15.78L5.34001 14.34C5.15001 14.15 5.21001 13.95 5.48001 13.9L10.49 13.06C10.67 13.01 10.85 13.12 10.9 13.3C10.94 13.37 10.94 13.43 10.92 13.49ZM17.21 8.21L20 5.42L18.58 4L15.79 6.79L14.35 5.35C14.16 5.16 13.96 5.22 13.91 5.49L13.07 10.5C13.02 10.68 13.13 10.86 13.31 10.91C13.36 10.93 13.43 10.93 13.48 10.91L18.49 10.07C18.76 10.03 18.82 9.83 18.63 9.63L17.21 8.21Z" fill="#EBEBEB"/>\n </symbol>\n\n <symbol id="vjs-icon-volume1" viewBox="0 0 24 24"> \n <path d="M11.65 4.28V19.72C11.65 20 11.48 20.08 11.27 19.89L5.86 15.09H2.9C2.62 15.09 2.38 14.86 2.38 14.57V9.43C2.38 9.15 2.61 8.91 2.9 8.91H5.86L11.27 4.11C11.48 3.92 11.65 3.99 11.65 4.28Z" fill="#EBEBEB"/>\n <path d="M13.62 16V14C14.73 14 15.62 13.11 15.62 12C15.62 10.89 14.73 10 13.62 10V8C15.83 8 17.62 9.79 17.62 12C17.62 14.21 15.83 16 13.62 16Z" fill="#EBEBEB"/>\n <path d="M21.62 12C21.62 7.58 18.04 4 13.62 4V6C16.93 6 19.62 8.69 19.62 12C19.62 15.31 16.93 18 13.62 18V20C18.04 19.99 21.61 16.41 21.62 12Z" fill="#EBEBEB"/>\n </symbol>\n <symbol id="vjs-icon-volume2" viewBox="0 0 24 24"> \n <path d="M11.65 4.28V19.72C11.65 20 11.48 20.08 11.27 19.89L5.86 15.09H2.9C2.62 15.09 2.38 14.86 2.38 14.57V9.43C2.38 9.15 2.61 8.91 2.9 8.91H5.86L11.27 4.11C11.48 3.92 11.65 3.99 11.65 4.28Z" fill="#EBEBEB"/>\n <path d="M13.62 16V14C14.73 14 15.62 13.11 15.62 12C15.62 10.89 14.73 10 13.62 10V8C15.83 8 17.62 9.79 17.62 12C17.62 14.21 15.83 16 13.62 16Z" fill="#EBEBEB"/>\n <path d="M21.62 12C21.62 7.58 18.04 4 13.62 4V6C16.93 6 19.62 8.69 19.62 12C19.62 15.31 16.93 18 13.62 18V20C18.04 19.99 21.61 16.41 21.62 12Z" fill="#EBEBEB"/>\n </symbol>\n <symbol id="vjs-icon-volume3" viewBox="0 0 24 24">\n <path d="M11.65 4.28V19.72C11.65 20 11.48 20.08 11.27 19.89L5.86 15.09H2.9C2.62 15.09 2.38 14.86 2.38 14.57V9.43C2.38 9.15 2.61 8.91 2.9 8.91H5.86L11.27 4.11C11.48 3.92 11.65 3.99 11.65 4.28Z" fill="#EBEBEB"/>\n <path d="M13.62 16V14C14.73 14 15.62 13.11 15.62 12C15.62 10.89 14.73 10 13.62 10V8C15.83 8 17.62 9.79 17.62 12C17.62 14.21 15.83 16 13.62 16Z" fill="#EBEBEB"/>\n <path d="M21.62 12C21.62 7.58 18.04 4 13.62 4V6C16.93 6 19.62 8.69 19.62 12C19.62 15.31 16.93 18 13.62 18V20C18.04 19.99 21.61 16.41 21.62 12Z" fill="#EBEBEB"/>\n </symbol>\n <symbol id="vjs-icon-mute" viewBox="0 0 24 24"> \n <g clip-path="url(#clip0_19_559)">\n <path d="M11.65 4.28V19.72C11.65 20 11.48 20.08 11.27 19.89L5.86 15.09H2.9C2.62 15.09 2.38 14.86 2.38 14.57V9.43C2.38 9.15 2.61 8.91 2.9 8.91H5.86L11.27 4.11C11.48 3.92 11.65 3.99 11.65 4.28Z" fill="#EBEBEB"/>\n <path d="M19.0909 12.5238L21.2626 14.6955L19.8146 16.1436L17.6429 13.9718L15.4711 16.1436L14.0231 14.6955L16.1948 12.5238L14.0231 10.352L15.4711 8.904L17.6429 11.0757L19.8146 8.904L21.2626 10.352L19.0909 12.5238Z" fill="white"/>\n </g>\n <defs>\n <clipPath id="clip0_19_559">\n <rect width="24" height="24" fill="white"/>\n </clipPath>\n </defs>\n </symbol>\n\n <symbol id="vjs-icon-pip" viewBox="0 0 24 16">\n <rect x="1" y="1" width="22" height="14" rx="1" stroke="white" stroke-width="2"/>\n <rect x="9.33331" y="6.66666" width="10.6667" height="5.33333" rx="1" fill="white"/>\n </symbol>\n\n <symbol id="vjs-icon-captions" viewBox="0 0 29 16">\n <rect x="1" y="1" width="27" height="14" rx="1" fill="white" stroke="white" stroke-width="2"/>\n <path d="M11.9795 5.25488C11.6377 5.25488 11.3317 5.31673 11.0615 5.44043C10.7946 5.56413 10.5684 5.74316 10.3828 5.97754C10.1973 6.20866 10.0557 6.49023 9.95801 6.82227C9.86035 7.15104 9.81152 7.52214 9.81152 7.93555C9.81152 8.48893 9.88965 8.96582 10.0459 9.36621C10.2021 9.76335 10.4398 10.0693 10.7588 10.2842C11.0778 10.4958 11.4814 10.6016 11.9697 10.6016C12.2725 10.6016 12.5671 10.5723 12.8535 10.5137C13.14 10.4551 13.4362 10.3753 13.7422 10.2744V11.2705C13.4525 11.3844 13.1595 11.4674 12.8633 11.5195C12.5671 11.5716 12.2253 11.5977 11.8379 11.5977C11.1087 11.5977 10.5033 11.4463 10.0215 11.1436C9.54297 10.8408 9.1849 10.4144 8.94727 9.86426C8.71289 9.31413 8.5957 8.6696 8.5957 7.93066C8.5957 7.3903 8.67057 6.89551 8.82031 6.44629C8.97005 5.99707 9.18815 5.6097 9.47461 5.28418C9.76107 4.9554 10.1143 4.70312 10.5342 4.52734C10.9574 4.34831 11.4408 4.25879 11.9844 4.25879C12.3424 4.25879 12.694 4.29948 13.0391 4.38086C13.3874 4.45898 13.7096 4.57129 14.0059 4.71777L13.5957 5.68457C13.3483 5.56738 13.0895 5.46647 12.8193 5.38184C12.5492 5.2972 12.2692 5.25488 11.9795 5.25488ZM17.9174 5.25488C17.5756 5.25488 17.2696 5.31673 16.9994 5.44043C16.7325 5.56413 16.5062 5.74316 16.3207 5.97754C16.1352 6.20866 15.9936 6.49023 15.8959 6.82227C15.7982 7.15104 15.7494 7.52214 15.7494 7.93555C15.7494 8.48893 15.8275 8.96582 15.9838 9.36621C16.14 9.76335 16.3777 10.0693 16.6967 10.2842C17.0157 10.4958 17.4193 10.6016 17.9076 10.6016C18.2104 10.6016 18.5049 10.5723 18.7914 10.5137C19.0779 10.4551 19.3741 10.3753 19.6801 10.2744V11.2705C19.3904 11.3844 19.0974 11.4674 18.8012 11.5195C18.5049 11.5716 18.1632 11.5977 17.7758 11.5977C17.0466 11.5977 16.4411 11.4463 15.9594 11.1436C15.4809 10.8408 15.1228 10.4144 14.8852 9.86426C14.6508 9.31413 14.5336 8.6696 14.5336 7.93066C14.5336 7.3903 14.6085 6.89551 14.7582 6.44629C14.9079 5.99707 15.126 5.6097 15.4125 5.28418C15.699 4.9554 16.0521 4.70312 16.4721 4.52734C16.8952 4.34831 17.3786 4.25879 17.9223 4.25879C18.2803 4.25879 18.6319 4.29948 18.977 4.38086C19.3253 4.45898 19.6475 4.57129 19.9437 4.71777L19.5336 5.68457C19.2862 5.56738 19.0274 5.46647 18.7572 5.38184C18.487 5.2972 18.2071 5.25488 17.9174 5.25488Z" fill="#050910"/>\n </symbol>\n\n <symbol id="vjs-icon-captions-off" viewBox="0 0 29 16">\n <rect x="1" y="1" width="27" height="14" rx="1" stroke="white" stroke-width="2"/>\n <path d="M11.9795 5.25488C11.6377 5.25488 11.3317 5.31673 11.0615 5.44043C10.7946 5.56413 10.5684 5.74316 10.3828 5.97754C10.1973 6.20866 10.0557 6.49023 9.95801 6.82227C9.86035 7.15104 9.81152 7.52214 9.81152 7.93555C9.81152 8.48893 9.88965 8.96582 10.0459 9.36621C10.2021 9.76335 10.4398 10.0693 10.7588 10.2842C11.0778 10.4958 11.4814 10.6016 11.9697 10.6016C12.2725 10.6016 12.5671 10.5723 12.8535 10.5137C13.14 10.4551 13.4362 10.3753 13.7422 10.2744V11.2705C13.4525 11.3844 13.1595 11.4674 12.8633 11.5195C12.5671 11.5716 12.2253 11.5977 11.8379 11.5977C11.1087 11.5977 10.5033 11.4463 10.0215 11.1436C9.54297 10.8408 9.1849 10.4144 8.94727 9.86426C8.71289 9.31413 8.5957 8.6696 8.5957 7.93066C8.5957 7.3903 8.67057 6.89551 8.82031 6.44629C8.97005 5.99707 9.18815 5.6097 9.47461 5.28418C9.76107 4.9554 10.1143 4.70312 10.5342 4.52734C10.9574 4.34831 11.4408 4.25879 11.9844 4.25879C12.3424 4.25879 12.694 4.29948 13.0391 4.38086C13.3874 4.45898 13.7096 4.57129 14.0059 4.71777L13.5957 5.68457C13.3483 5.56738 13.0895 5.46647 12.8193 5.38184C12.5492 5.2972 12.2692 5.25488 11.9795 5.25488ZM17.9174 5.25488C17.5756 5.25488 17.2696 5.31673 16.9994 5.44043C16.7325 5.56413 16.5062 5.74316 16.3207 5.97754C16.1352 6.20866 15.9936 6.49023 15.8959 6.82227C15.7982 7.15104 15.7494 7.52214 15.7494 7.93555C15.7494 8.48893 15.8275 8.96582 15.9838 9.36621C16.14 9.76335 16.3777 10.0693 16.6967 10.2842C17.0157 10.4958 17.4193 10.6016 17.9076 10.6016C18.2104 10.6016 18.5049 10.5723 18.7914 10.5137C19.0779 10.4551 19.3741 10.3753 19.6801 10.2744V11.2705C19.3904 11.3844 19.0974 11.4674 18.8012 11.5195C18.5049 11.5716 18.1632 11.5977 17.7758 11.5977C17.0466 11.5977 16.4411 11.4463 15.9594 11.1436C15.4809 10.8408 15.1228 10.4144 14.8852 9.86426C14.6508 9.31413 14.5336 8.6696 14.5336 7.93066C14.5336 7.3903 14.6085 6.89551 14.7582 6.44629C14.9079 5.99707 15.126 5.6097 15.4125 5.28418C15.699 4.9554 16.0521 4.70312 16.4721 4.52734C16.8952 4.34831 17.3786 4.25879 17.9223 4.25879C18.2803 4.25879 18.6319 4.29948 18.977 4.38086C19.3253 4.45898 19.6475 4.57129 19.9437 4.71777L19.5336 5.68457C19.2862 5.56738 19.0274 5.46647 18.7572 5.38184C18.487 5.2972 18.2071 5.25488 17.9174 5.25488Z" fill="white"/>\n </symbol>\n\n </defs>\n </svg>';E.el().insertBefore(d(D),null!==(C=E.el().firstChild)&&void 0!==C?C:null);var q=(null==E||null===(c=E.controlBar)||void 0===c||null===(p=c.getChild("PlayToggle"))||void 0===p||null===(h=p.el())||void 0===h?void 0:h.firstChild)||null;if(q){q.style.height="18px",q.style.width="18px";var I=u(q,E.paused()?"#vjs-icon-play":"#vjs-icon-pause");E.on("pause",function(){return I.setAttributeNS(null,"href","#vjs-icon-play")}),E.on("play",function(){return I.setAttributeNS(null,"href","#vjs-icon-pause")})}var O=(null==E||null===(m=E.controlBar)||void 0===m||null===(f=m.getChild("FullscreenToggle"))||void 0===f||null===(y=f.el())||void 0===y?void 0:y.firstChild)||null;if(O){O.style.height="24px",O.style.width="24px";var R=u(O,"#vjs-icon-fullscreen");E.on("fullscreenchange",function(){var l=E.isFullscreen_;null==R||R.setAttributeNS(null,"href",l?"#vjs-icon-fullscreen-back":"#vjs-icon-fullscreen")})}var F=(null==E||null===(b=E.controlBar)||void 0===b||null===(g=b.getChild("VolumePanel"))||void 0===g?void 0:g.el())||null;if(F){var G=F.querySelector(".vjs-mute-control .vjs-icon-placeholder");G.classList.add("vjs-svg-icon"),G.style.height="24px",G.style.width="24px";var X=u(G,E.muted()?"#vjs-icon-mute":"#vjs-icon-volume1");E.on("volumechange",function(l){var i=E.volume();console.log(i,E.muted()),0==i||E.muted()?X.setAttributeNS(null,"href","#vjs-icon-mute"):i>0&&i<=.3?X.setAttributeNS(null,"href","#vjs-icon-volume1"):i>=.3&&i<=.7?X.setAttributeNS(null,"href","#vjs-icon-volume2"):X.setAttributeNS(null,"href","#vjs-icon-volume3")})}var Y=(null==E||null===(B=E.controlBar)||void 0===B||null===(L=B.getChild("PictureInPictureToggle"))||void 0===L?void 0:L.el())||null;if(Y){var z=null==Y?void 0:Y.querySelector(".vjs-icon-placeholder");z.style.height="25px",z.style.width="25px";var J=u(z,"#vjs-icon-pip");E.on("enterpictureinpicture",function(){J.setAttributeNS(null,"href","#vjs-icon-pip")})}var K=(null==E||null===(j=E.controlBar)||void 0===j||null===(w=j.getChild("SubsCapsButton"))||void 0===w?void 0:w.el())||null;if(K){var Q=K.querySelector(".vjs-subs-caps-button .vjs-icon-placeholder");Q.classList.add("vjs-svg-icon"),Q.style.height="29px",Q.style.width="29px";var U=u(Q,"#vjs-icon-caps");U.setAttributeNS(null,"href","#vjs-icon-captions-off"),E.textTracks().on("change",function(l){for(var i=E.textTracks(),e=!1,n=0;n<i.length;n++){var o=i[n];if(("captions"===o.kind||"subtitles"===o.kind)&&"showing"===o.mode){e=!0;break}}e?U.setAttributeNS(null,"href","#vjs-icon-captions"):U.setAttributeNS(null,"href","#vjs-icon-captions-off")})}E&&null!=i&&i.liveVideo&&null!=i&&i.liveui&&(E.liveTracker.on("liveedgechange",function(){ll(E)}),E.on("timeupdate",function(){ll(E)}));function W(l){var i=Math.floor(l/3600),e=Math.floor(l%3600/60),n=Math.floor(l%60),o=function(l){return String(l).padStart(2,"0")};return 0===i?"".concat(o(e),":").concat(o(n)):"".concat(o(i),":").concat(o(e),":").concat(o(n))}function $(l){var i=l.seekable();if(i&&i.length>0){var e=i.end(0);return Math.max(0,e-l.currentTime())}return 0}function ll(l){var i,e,n=l.liveTracker.atLiveEdge(),o=$(l),t=null==l||null===(i=l.controlBar)||void 0===i||null===(e=i.remainingTimeDisplay)||void 0===e?void 0:e.el();if(t){var r=t.querySelector(".vjs-remaining-time-display");n?t.style.display="none":(t.style.display="flex",r&&(r.innerText=W(o)))}}}(y,b),function(l,a){var d,u,v,C,c,y,b,g,B,L,j=(null==a?void 0:a.liveVideo)||!1,w=(null==a||null===(d=a.res)||void 0===d?void 0:d.contentType)||"video",E=(null==a||null===(u=a.res)||void 0===u||null===(v=u[w])||void 0===v?void 0:v.isSSAIEnabled)||!1,V=(null==a?void 0:a.skin_settings)||{};null==V||V.slowMoBtn;var x=(null==a||null===(C=a.customData)||void 0===C?void 0:C.ads)||{};null!=V&&V.skipBtn&&0==(null==a?void 0:a.liveVideo)&&0==(null==a?void 0:a.liveui)&&i(l,"VL_ONE",SkipSvgV2());null!=V&&V.rewindBtn&&(0==(null==a?void 0:a.liveVideo)&&0==(null==a?void 0:a.liveui)||1==(null==a?void 0:a.liveui))&&e(l,"VL_ONE",s());(null==a||null===(c=a.relatedVideos)||void 0===c||null===(y=c.content)||void 0===y?void 0:y.length)>0&&n(l,null==a?void 0:a.relatedVideos);(null==a||null===(b=a.streams)||void 0===b?void 0:b.length)>1&&o(l,null==a?void 0:a.streams);(null==a||null===(g=a.playlist)||void 0===g||null===(B=g.content)||void 0===B?void 0:B.length)>0&&t(l,null==a?void 0:a.playlist);null!=a&&null!==(L=a.series)&&void 0!==L&&L.enable&&r(l,a);if("MEDIA_TAILOR"==(null==x?void 0:x.vodAdSticherProvider)&&null!=x&&x.vodAdClientSideTracking&&E)if(j)p(l);else{var M,k=null;if(null!=a&&null!==(M=a.series)&&void 0!==M&&M.enable){var S,Z,T,A,H,N=null===(S=h())||void 0===S||null===(Z=S.video)||void 0===Z||null===(T=Z.gist)||void 0===T?void 0:T.id,P=f(),_=(null==P?void 0:P.get(N))||{t:0,p:0},D=_.t,q=_.p;"function"==typeof(null===(A=window)||void 0===A||null===(H=A.watchHistory)||void 0===H?void 0:H.cb)&&window.watchHistory.cb({watchedTime:D}),q<95&&(k=D)}else{var I=a.watchHistoryResumeTime;a.watchedPercentage<95&&(k=I)}m(l,k)}}(y,b),c(y,b)}export{y as initialiseSkin};
|
package/esm/skin-b8869476.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{E as e,F as t}from"./generic-6e32d78b.js";import{g as r}from"./skin-4f84b841.js";import"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"video.js";import"axios";import"./browser-d4613b36.js";import"js-cookie";import"./captions-2b4caf69.js";import"@babel/runtime/helpers/typeof";import"@babel/runtime/helpers/toConsumableArray";import"@babel/runtime/helpers/slicedToArray";function o(o){import("./skin-2c638dc1.js").then(function(e){var t=document.createElement("style");t.id="carousel_homepage",t.append("".concat(e.default)),document.head.appendChild(t)}),i(),function(o){var i=document.getElementById("".concat(o)),n=r(o);i&&i.addEventListener("touchstart",function(){n.paused()?e(o):t(o)})}(o)}var i=function(){var e=document.getElementsByClassName("vjs-control-bar")[0];e&&(e.style.visibility="hidden")};export{o as initaliseSkin};
|
package/esm/skin-ca8418c4.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{E as e,F as r}from"./generic-6e32d78b.js";import{g as t}from"./skin-4f84b841.js";import"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"video.js";import"axios";import"./browser-d4613b36.js";import"js-cookie";import"./captions-2b4caf69.js";import"@babel/runtime/helpers/typeof";import"@babel/runtime/helpers/toConsumableArray";import"@babel/runtime/helpers/slicedToArray";function o(e){n(e),i(e)}var i=function(o){var i=t(o),n=document.getElementById("".concat(o));n&&n.addEventListener("touchstart",function(){i.paused()?e(o):r(o)})},n=function(e){var r=t(e);r.requestFullscreen=function(){},r.controlBar.hide()};export{o as initaliseSkin};
|
package/esm/util-b9d1d851.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import n from"@babel/runtime/helpers/typeof";import{d as e,v as t,S as o}from"./generic-6e32d78b.js";import{g as i}from"./skin-4f84b841.js";var a=!1,r=function(n,e,t){var o=i(n);o?e>=0&&e<=o.duration()?(t({status:!0,msg:"Successfully seeked to timestamp : ".concat(e)}),o.currentTime(e)):t({status:!1,msg:"Out of bounds, please provide a valid timestamp"}):t("Cannot find player with id: '".concat(n,"'"))},c=function(n,e){var t=i(n);if(!t)return"Cannot find player with id: '".concat(n,"'");try{return t.playbackRate(e),"Playback speed set to ".concat(e,"x")}catch(n){return"Error: ".concat(n)}},u=function(n,r){var c=i(n);c?(c.on("ended",function(){return a=!0}),c.on("timeupdate",function(){if(!c.paused()&&a){var n,i,u=null===(n=e())||void 0===n||null===(i=n.video)||void 0===i?void 0:i.id;t.get(u)?(t.clear(),o.clear(),r(),t.set(u)):(t.clear(),t.set(u)),a=!1}})):r("Cannot find player with id: '".concat(n,"'"))},l=function(n,e){var t=i(n);t?t.on("timeupdate",function(){return e(t.currentTime())}):e("Cannot find player with id: '".concat(n,"'"))},s=function(n,e){var t=i(n);t?t.on("ended",function(){return e(!0)}):e("Cannot find player with id: '".concat(n,"'"))},d=function(n){var e=i(n);return e?e.duration():"Cannot find player with id: '".concat(n,"'")};function f(){var e=function(n,e){var t=i(n);if(!t)throw"Cannot find player with id: '".concat(n,"'");if("function"!=typeof e)throw"Callback function (cb) is missing or not a function";return t};return{onPlay:function(n,t){e(n,t).on("play",function(){return t()})},onPause:function(n,t){e(n,t).on("pause",function(){return t()})},onMute:function(n,t){var o=e(n,t);o.on("volumechange",function(){o.muted()?t({muted:!0}):t({muted:!1})})},onPictureInPictureChange:function(n,t){var o=e(n,t);o.on("enterpictureinpicture",function(){t({pip:!0})}),o.on("leavepictureinpicture",function(){t({pip:!1})})},onFullScreenChange:function(n,t){var o=e(n,t);o.on("fullscreenchange",function(n){o.isFullscreen_?t({isFullscreen:!0}):t({isFullscreen:!1})})},onSetVolume:function(n,t){var o=e(n,t);o.on("volumechange",function(){var n=100*o.volume().toFixed(2);o.muted()?t({vol:0}):t({vol:n})})},onSeeked:function(n,t){var o=e(n,t);o.on("seeked",function(){t({seeked:o.currentTime()})})},onSubtitleEnable:function(n,t){var o=e(n,t);o.textTracks().on("change",function(n){console.log(o.textTracks());var e=o.textTracks().tracks_.filter(function(n){return("subtitles"===n.kind||"captions"===n.kind)&&"showing"===n.mode});e.length>0&&t({enabled:e[0]})})},onDisableSubtitles:function(n,t){var o=e(n,t);o.textTracks().on("change",function(n){var e,i;console.log(o.textTracks()),(null==o||null===(e=o.textTracks())||void 0===e||null===(i=e.tracks_)||void 0===i?void 0:i.every(function(n){return"showing"!=n.mode}))&&t({captions_disabled:!0})})},onSubtitleCueChange:function(t,o){var i=e(t,o);i.on("loadeddata",function(){var e,t,a,r,c,u=i.textTracks();"object"==n(i.dash)&&null!=i.dash&&i.dash.mediaPlayer.on(null===(t=window)||void 0===t||null===(a=t.dashjs)||void 0===a||null===(r=a.MediaPlayer)||void 0===r||null===(c=r.events)||void 0===c?void 0:c.CAPTION_RENDERED,function(n){o(n)});for(var l=0;l<u.length;l++){var s=u[l];"metadata"===s.kind&&(s.mode="hidden",e=s)}e&&e.addEventListener("cuechange",function(){var n=e.activeCues;if(n&&n.length>0)for(var t=0;t<n.length;t++){var i=n[t];o(i)}else console.log("no active cue at this moment")})})},onError:function(n,t){var o=e(n,t);o.on("error",function(){var n,e;t({error:null==o||null===(n=o.error())||void 0===n?void 0:n.code,msg:null==o||null===(e=o.error())||void 0===e?void 0:e.message})})}}}export{s as a,c as b,u as c,d as g,l as o,f as p,r as s};
|
|
@@ -1 +0,0 @@
|
|
|
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{g as l,e as s}from"./icons-699e8cf0.js";import{I as d,W as r}from"./generic-6e32d78b.js";import{j as c,s as m,k as u,h as v,l as p,i as h}from"./skin-4f84b841.js";import{a as b}from"./autoNextVideo-ab428f6c.js";import{g as y}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"./captions-2b4caf69.js";import"@babel/runtime/helpers/typeof";import"@babel/runtime/helpers/toConsumableArray";import"@babel/runtime/helpers/slicedToArray";import"./util-b9d1d851.js";function f(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(f=function(){return!!e})()}var C=a.getComponent("Component"),g=function(){o(N,C);var g,E,I=(g=N,E=f(),function(){var e,t=i(g);if(E){var o=i(this).constructor;e=Reflect.construct(t,arguments,o)}else e=t.apply(this,arguments);return n(this,e)});function N(t){var o,n,i,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e(this,N),(i=I.call(this,t,a)).playerId=a.playerId,i.seriesData=a.sres,i.videos=a.related.content,i.cb=(null==a||null===(o=a.related)||void 0===o?void 0:o.cb)||null,i.autoNext=(null==a||null===(n=a.related)||void 0===n?void 0:n.autoNext)||!1,i.currentVideoData=a.res,i.initialiseStructure(),i.loadCSS(),i.autoNext&&(r(0),b({playerId:i.playerId,content:i.videos,cb:i.cb})),i}return t(N,[{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("button",{className:"video-selector-icon",title:"video selector",innerHTML:"".concat(l())});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;e.handleTabIndexSelector(),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),u(this.playerId,o)}}},{key:"loadVideoAssetById",value:function(e){var t=this;r(e+1);for(var o=a.dom.$$(".recommended"),n=0;n<o.length;n++)o[n].style.border="none";v(e),d(this.playerId,this.videos[e].id).then(function(e){t.cb&&t.cb(e)}).catch(function(e){t.cb&&t.cb(e)})}},{key:"handleTabIndexSelector",value:function(){var e,t,o;null!==(e=document.getElementsByClassName("video-selector-cross-icon"))&&void 0!==e&&e[0]&&(document.getElementsByClassName("video-selector-cross-icon")[0].tabIndex=0);for(var n=document.getElementsByClassName("video-accessibility"),i=(null==n||null===(t=n[0])||void 0===t||null===(o=t.children)||void 0===o?void 0:o.length)||0,a=0;a<i;a++)document.getElementsByClassName("recommended -".concat(a))[0]&&(document.getElementsByClassName("recommended -".concat(a))[0].tabIndex=0)}},{key:"handleCloseTabIndex",value:function(){var e,t,o;null!==(e=document.getElementsByClassName("video-selector-cross-icon"))&&void 0!==e&&e[0]&&(document.getElementsByClassName("video-selector-cross-icon")[0].tabIndex=-1);for(var n=document.getElementsByClassName("video-accessibility"),i=(null==n||null===(t=n[0])||void 0===t||null===(o=t.children)||void 0===o?void 0:o.length)||0,a=0;a<i;a++)document.getElementsByClassName("recommended -".concat(a))&&(document.getElementsByClassName("recommended -".concat(a))[0].tabIndex=-1)}},{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",ariaLabel:"close video selector",tabIndex:-1,innerHTML:"".concat(s())});i.onkeydown=function(n){"Enter"===n.key&&(e.classList.add("hidden"),o.classList.remove("open"),t.handleCloseTabIndex())},i.onclick=function(){e.classList.add("hidden"),o.classList.remove("open"),t.handleCloseTabIndex()};for(var l=a.dom.createEl("div",{className:"video-selector-title",innerHTML:y("relatedVideoTitle")||"Recommended"}),d=a.dom.createEl("div",{className:"video-selector-content",tabIndex:-1}),r=a.dom.createEl("div",{className:"video-container video-accessibility"}),c=function(e){var o,n,i,l,s,c,m,u,v=a.dom.createEl("div",{className:"video -".concat(e)}),p=a.dom.createEl("div",{className:"recommended -".concat(e),ariaLabel:"".concat(t.videos[e].title),type:"button",tabIndex:-1});p.setAttribute("video-idx",e),p.onkeydown=function(o){"Enter"===o.key&&t.loadVideoAssetById(e)},p.onclick=function(){t.loadVideoAssetById(e)};var b=document.createElement("img");b.className="related-thumbnail-image",b.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===(l=i.app_data)||void 0===l||null===(s=l.appcmsMain)||void 0===s||null===(c=s.images)||void 0===c?void 0:c.placeholderCover)),b.alt="".concat((null==t||null===(m=t.videos[e])||void 0===m?void 0:m.title.trim().split(/\s+/).slice(0,2).join(" "))||""),p.append(b);var y=a.dom.createEl("div",{className:"info -".concat(e),innerHTML:"".concat((null==t||null===(u=t.videos[e])||void 0===u?void 0:u.title)||"")});a.dom.appendContent(v,p),a.dom.appendContent(v,y),a.dom.appendContent(r,v),a.dom.appendContent(d,r)},m=0;m<this.videos.length;m++)c(m);a.dom.appendContent(n,l),a.dom.appendContent(n,i),a.dom.appendContent(e,n),a.dom.appendContent(e,d),p(this.playerId,e)}}]),N}();export{g as default};
|
|
@@ -1 +0,0 @@
|
|
|
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,e as l}from"./icons-699e8cf0.js";import{I as s,W as d}from"./generic-6e32d78b.js";import{j as c,s as m,k as p,l as u,m as v}from"./skin-4f84b841.js";import{a as h}from"./autoNextVideo-ab428f6c.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"./captions-2b4caf69.js";import"@babel/runtime/helpers/typeof";import"@babel/runtime/helpers/toConsumableArray";import"@babel/runtime/helpers/slicedToArray";import"./util-b9d1d851.js";function b(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(b=function(){return!!e})()}var y=a.getComponent("Component"),g=function(){o(N,y);var g,C,E=(g=N,C=b(),function(){var e,t=i(g);if(C){var o=i(this).constructor;e=Reflect.construct(t,arguments,o)}else e=t.apply(this,arguments);return n(this,e)});function N(t){var o,n,i,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e(this,N),(i=E.call(this,t,a)).playerId=a.playerId,i.seriesData=a.sres,i.videos=a.related.content,i.cb=(null==a||null===(o=a.related)||void 0===o?void 0:o.cb)||null,i.autoNext=(null==a||null===(n=a.related)||void 0===n?void 0:n.autoNext)||!1,i.currentVideoData=a.res,i.initialiseStructure(),i.loadCSS(),i.autoNext&&(d(0),h({playerId:i.playerId,content:i.videos,cb:i.cb})),i}return t(N,[{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),p(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"}),p=function(e){var o,n,i,r,l,p=a.dom.createEl("div",{className:"video -".concat(e)}),u=a.dom.createEl("div",{className:"recommended -".concat(e)});u.setAttribute("video-idx",e),u.onclick=function(){d(e+1);for(var 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",u.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(p,u),a.dom.appendContent(p,f),a.dom.appendContent(m,p),a.dom.appendContent(c,m)},h=0;h<this.videos.length;h++)p(h);a.dom.appendContent(n,i),a.dom.appendContent(n,r),a.dom.appendContent(e,n),a.dom.appendContent(e,c),u(this.playerId,e)}}]),N}();export{g as default};
|