@viewlift/player-backup 2.0.92-backup → 2.0.92-smartTv-test
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/@viewlift/player-backup/cjs/autoNextVideo-aad2f808.js +1 -0
- package/@viewlift/player-backup/cjs/browser-38ff3331.js +1 -0
- package/@viewlift/player-backup/cjs/bundle.css +2686 -0
- package/@viewlift/player-backup/cjs/caption-settings-7f7ed041.js +1 -0
- package/@viewlift/player-backup/cjs/captions-afd38b2e.js +1 -0
- package/@viewlift/player-backup/cjs/features-c25f787f.js +1 -0
- package/@viewlift/player-backup/cjs/generic-2e2b89d8.js +1 -0
- package/@viewlift/player-backup/cjs/index-84cce26a.js +1 -0
- package/@viewlift/player-backup/cjs/index-b9af2c5f.js +1 -0
- package/@viewlift/player-backup/cjs/index-eef87d02.js +1 -0
- package/{cjs → @viewlift/player-backup/cjs}/index.js +1 -1
- package/@viewlift/player-backup/cjs/multicamv2-a8ee3140.js +1 -0
- package/@viewlift/player-backup/cjs/multicamv2-db0be9af.js +1 -0
- package/@viewlift/player-backup/cjs/nextEpisodeButton-dfd4c9dc.js +1 -0
- package/@viewlift/player-backup/cjs/playlist-02a1cea7.js +1 -0
- package/@viewlift/player-backup/cjs/renditions-89042a16.js +1 -0
- package/@viewlift/player-backup/cjs/resolution-5e1f1897.js +1 -0
- package/@viewlift/player-backup/cjs/series-f2d50e32.js +1 -0
- package/@viewlift/player-backup/cjs/series-v2-59662c73.js +1 -0
- package/@viewlift/player-backup/cjs/series-v2-b8973aa7.js +1 -0
- package/@viewlift/player-backup/cjs/settings-icon-743e2d7d.js +1 -0
- package/@viewlift/player-backup/cjs/skin-09ae336b.js +1 -0
- package/@viewlift/player-backup/cjs/skin-5f08dbd4.js +1 -0
- package/@viewlift/player-backup/cjs/skin-88c48a92.js +1 -0
- package/@viewlift/player-backup/cjs/skin-88d9f184.js +1 -0
- package/@viewlift/player-backup/cjs/skin-b23ccb4a.js +1 -0
- package/@viewlift/player-backup/cjs/skin-b8bd7187.js +1 -0
- package/@viewlift/player-backup/cjs/skin-df588926.js +1 -0
- package/@viewlift/player-backup/cjs/skin-f87e1c22.js +1 -0
- package/@viewlift/player-backup/cjs/util-47af43d1.js +1 -0
- package/@viewlift/player-backup/cjs/videoSelector-0ff6dda9.js +1 -0
- package/@viewlift/player-backup/cjs/videoSelector-a2f33bd9.js +1 -0
- package/@viewlift/player-backup/cjs/videojs-dash5.es-0c89add5.js +1 -0
- package/@viewlift/player-backup/esm/autoNextVideo-0569fb2e.js +1 -0
- package/@viewlift/player-backup/esm/browser-512cd55a.js +1 -0
- package/@viewlift/player-backup/esm/bundle.css +2686 -0
- package/@viewlift/player-backup/esm/caption-settings-76bbd9ca.js +1 -0
- package/@viewlift/player-backup/esm/captions-0280b028.js +1 -0
- package/@viewlift/player-backup/esm/features-64d23391.js +1 -0
- package/@viewlift/player-backup/esm/generic-1c16ee3a.js +1 -0
- package/{esm/icons-0676e9c7.js → @viewlift/player-backup/esm/icons-79ad4d7d.js} +1 -1
- package/@viewlift/player-backup/esm/index-5d92eaa3.js +1 -0
- package/@viewlift/player-backup/esm/index-8603ba1f.js +1 -0
- package/@viewlift/player-backup/esm/index-b7dc36f4.js +1 -0
- package/{esm → @viewlift/player-backup/esm}/index.js +1 -1
- package/@viewlift/player-backup/esm/multicamv2-2d92c810.js +1 -0
- package/@viewlift/player-backup/esm/multicamv2-a1e0923e.js +1 -0
- package/@viewlift/player-backup/esm/nextEpisodeButton-4addf03a.js +1 -0
- package/@viewlift/player-backup/esm/playlist-f973161f.js +1 -0
- package/@viewlift/player-backup/esm/renditions-7c478ac1.js +1 -0
- package/@viewlift/player-backup/esm/resolution-69172876.js +1 -0
- package/@viewlift/player-backup/esm/series-b5d22690.js +1 -0
- package/@viewlift/player-backup/esm/series-v2-1cf4ace2.js +1 -0
- package/@viewlift/player-backup/esm/series-v2-dbc5cb6a.js +1 -0
- package/@viewlift/player-backup/esm/settings-icon-84529309.js +1 -0
- package/@viewlift/player-backup/esm/skin-23dd7694.js +1 -0
- package/@viewlift/player-backup/esm/skin-2d508a29.js +1 -0
- package/@viewlift/player-backup/esm/skin-81946b34.js +1 -0
- package/@viewlift/player-backup/esm/skin-86e7e2b5.js +1 -0
- package/@viewlift/player-backup/esm/skin-97abe496.js +1 -0
- package/@viewlift/player-backup/esm/skin-b7aed99b.js +1 -0
- package/@viewlift/player-backup/esm/skin-cbbd86da.js +1 -0
- package/@viewlift/player-backup/esm/skin-cc77e897.js +1 -0
- package/@viewlift/player-backup/esm/util-42912ffd.js +1 -0
- package/@viewlift/player-backup/esm/videoSelector-4fad2060.js +1 -0
- package/@viewlift/player-backup/esm/videoSelector-aa6e17bd.js +1 -0
- package/@viewlift/player-backup/esm/videojs-dash5.es-6c1ba1fe.js +1 -0
- package/@viewlift/player-backup/package.json +21 -0
- package/@viewlift/player_legacy/cjs/autoNextVideo-cfad17dd.js +1 -0
- package/{cjs → @viewlift/player_legacy/cjs}/bundle.css +239 -631
- package/@viewlift/player_legacy/cjs/caption-settings-34ca0188.js +1 -0
- package/@viewlift/player_legacy/cjs/caption-settings-3fce88de.js +1 -0
- package/@viewlift/player_legacy/cjs/chromett-f925fb6c.js +1 -0
- package/@viewlift/player_legacy/cjs/dvr_skin-f7f770ae.js +1 -0
- package/@viewlift/player_legacy/cjs/error-26d5a3c3.js +1 -0
- package/@viewlift/player_legacy/cjs/features-e87c6a65.js +1 -0
- package/@viewlift/player_legacy/cjs/generic-84fb46a8.js +1 -0
- package/@viewlift/player_legacy/cjs/icons-515b2da0.js +1 -0
- package/@viewlift/player_legacy/cjs/index.js +1 -0
- package/@viewlift/player_legacy/cjs/keyboardShortcuts-28cca2a0.js +1 -0
- package/@viewlift/player_legacy/cjs/loader-393b838a.js +1 -0
- package/@viewlift/player_legacy/cjs/localisation-56e0a999.js +1 -0
- package/@viewlift/player_legacy/cjs/multicam-7f00370f.js +1 -0
- package/@viewlift/player_legacy/cjs/multicam-a41fe4a6.js +1 -0
- package/@viewlift/player_legacy/cjs/multicamv2-3ae15e48.js +1 -0
- package/@viewlift/player_legacy/cjs/multicamv2-76d8530b.js +1 -0
- package/@viewlift/player_legacy/cjs/mwebPotrait-3c11d7cf.js +1 -0
- package/@viewlift/player_legacy/cjs/mwebPotraitTray-c92e66e9.js +1 -0
- package/@viewlift/player_legacy/cjs/nextEpisodeButton-268f2477.js +1 -0
- package/@viewlift/player_legacy/cjs/nextEpisodeButton-b6e6586f.js +1 -0
- package/@viewlift/player_legacy/cjs/nondvr_skin-ef2cb3b2.js +1 -0
- package/@viewlift/player_legacy/cjs/playlist-791d8514.js +1 -0
- package/@viewlift/player_legacy/cjs/playlist-df87ca90.js +1 -0
- package/@viewlift/player_legacy/cjs/renditions-a3aa797d.js +1 -0
- package/@viewlift/player_legacy/cjs/resolution-0901fbcc.js +1 -0
- package/@viewlift/player_legacy/cjs/series-7d527a16.js +1 -0
- package/@viewlift/player_legacy/cjs/series-9c237975.js +1 -0
- package/@viewlift/player_legacy/cjs/series-v2-7c41e053.js +1 -0
- package/@viewlift/player_legacy/cjs/series-v2-fd7485a5.js +1 -0
- package/@viewlift/player_legacy/cjs/settings-icon-83cee2be.js +1 -0
- package/@viewlift/player_legacy/cjs/settings-icon-8d364c01.js +1 -0
- package/@viewlift/player_legacy/cjs/skin-060b6651.js +1 -0
- package/@viewlift/player_legacy/cjs/skin-192c8f9d.js +1 -0
- package/@viewlift/player_legacy/cjs/skin-225252ff.js +1 -0
- package/@viewlift/player_legacy/cjs/skin-52e32672.js +1 -0
- package/@viewlift/player_legacy/cjs/skin-983a2ea7.js +1 -0
- package/@viewlift/player_legacy/cjs/skin-ae72dffc.js +1 -0
- package/@viewlift/player_legacy/cjs/skin-c66e9b42.js +1 -0
- package/@viewlift/player_legacy/cjs/skin-d792c112.js +1 -0
- package/@viewlift/player_legacy/cjs/skin-fc1e7e52.js +1 -0
- package/@viewlift/player_legacy/cjs/skin-ffc40dfa.js +1 -0
- package/@viewlift/player_legacy/cjs/util-8512730a.js +1 -0
- package/@viewlift/player_legacy/cjs/videoSelector-7cffb7fb.js +1 -0
- package/@viewlift/player_legacy/cjs/videoSelector-fcdf11eb.js +1 -0
- package/@viewlift/player_legacy/esm/autoNextVideo-bdb40d4e.js +1 -0
- package/{esm → @viewlift/player_legacy/esm}/bundle.css +239 -631
- package/@viewlift/player_legacy/esm/caption-settings-5c80dd3a.js +1 -0
- package/@viewlift/player_legacy/esm/caption-settings-cb47408f.js +1 -0
- package/@viewlift/player_legacy/esm/chromett-a3cbb2e1.js +1 -0
- package/@viewlift/player_legacy/esm/dvr_skin-9cc1b144.js +1 -0
- package/@viewlift/player_legacy/esm/error-2395864b.js +1 -0
- package/@viewlift/player_legacy/esm/features-3ea03850.js +1 -0
- package/@viewlift/player_legacy/esm/generic-20c8a769.js +1 -0
- package/@viewlift/player_legacy/esm/icons-3e9a1686.js +1 -0
- package/@viewlift/player_legacy/esm/index.js +1 -0
- package/@viewlift/player_legacy/esm/keyboardShortcuts-c44e3f0d.js +1 -0
- package/@viewlift/player_legacy/esm/loader-580278fe.js +1 -0
- package/@viewlift/player_legacy/esm/localisation-0bf399a1.js +1 -0
- package/@viewlift/player_legacy/esm/multicam-5fe06c4c.js +1 -0
- package/@viewlift/player_legacy/esm/multicam-de741974.js +1 -0
- package/@viewlift/player_legacy/esm/multicamv2-139a0d7b.js +1 -0
- package/@viewlift/player_legacy/esm/multicamv2-d006cffa.js +1 -0
- package/@viewlift/player_legacy/esm/mwebPotrait-3c1805d8.js +1 -0
- package/@viewlift/player_legacy/esm/mwebPotraitTray-30090e99.js +1 -0
- package/@viewlift/player_legacy/esm/nextEpisodeButton-a1556cdf.js +1 -0
- package/@viewlift/player_legacy/esm/nextEpisodeButton-e349ba2b.js +1 -0
- package/@viewlift/player_legacy/esm/nondvr_skin-64be70e5.js +1 -0
- package/@viewlift/player_legacy/esm/playlist-7ecf432a.js +1 -0
- package/@viewlift/player_legacy/esm/playlist-b1f27894.js +1 -0
- package/@viewlift/player_legacy/esm/renditions-85455172.js +1 -0
- package/@viewlift/player_legacy/esm/resolution-c1b8982f.js +1 -0
- package/@viewlift/player_legacy/esm/series-041152aa.js +1 -0
- package/@viewlift/player_legacy/esm/series-dab2e21d.js +1 -0
- package/@viewlift/player_legacy/esm/series-v2-4cdbf9b1.js +1 -0
- package/@viewlift/player_legacy/esm/series-v2-7bfbc3c7.js +1 -0
- package/@viewlift/player_legacy/esm/settings-icon-1fbc99bc.js +1 -0
- package/@viewlift/player_legacy/esm/settings-icon-d7165ee4.js +1 -0
- package/@viewlift/player_legacy/esm/skin-234fba77.js +1 -0
- package/@viewlift/player_legacy/esm/skin-271fa63f.js +1 -0
- package/@viewlift/player_legacy/esm/skin-2b9817ad.js +1 -0
- package/@viewlift/player_legacy/esm/skin-2c638dc1.js +1 -0
- package/@viewlift/player_legacy/esm/skin-2cb990c1.js +1 -0
- package/@viewlift/player_legacy/esm/skin-5122b332.js +1 -0
- package/@viewlift/player_legacy/esm/skin-80650097.js +1 -0
- package/@viewlift/player_legacy/esm/skin-cd537931.js +1 -0
- package/@viewlift/player_legacy/esm/skin-dda3b262.js +1 -0
- package/@viewlift/player_legacy/esm/skin-fbc45594.js +1 -0
- package/@viewlift/player_legacy/esm/util-586fea59.js +1 -0
- package/@viewlift/player_legacy/esm/videoSelector-8e258d45.js +1 -0
- package/@viewlift/player_legacy/esm/videoSelector-c745619c.js +1 -0
- package/@viewlift/player_legacy/package.json +17 -0
- package/@viewlift/web-multiplayer/cjs/bundle.css +68 -0
- package/@viewlift/web-multiplayer/cjs/index.js +1 -0
- package/@viewlift/web-multiplayer/esm/App.js +1 -0
- package/@viewlift/web-multiplayer/esm/bundle.css +68 -0
- package/@viewlift/web-multiplayer/esm/components/Multiplayer.js +1 -0
- package/@viewlift/web-multiplayer/esm/index.js +1 -0
- package/@viewlift/web-multiplayer/esm/reportWebVitals.js +1 -0
- package/@viewlift/web-multiplayer/package.json +38 -0
- package/package.json +54 -17
- package/player-micro-frontend/cjs/index.js +1 -0
- package/player-micro-frontend/esm/index.js +1 -0
- package/player-micro-frontend/package.json +33 -0
- package/cjs/autoNextVideo-7754b90c.js +0 -1
- package/cjs/browser-77c57718.js +0 -1
- package/cjs/caption-settings-10fcc789.js +0 -1
- package/cjs/captions-b9061920.js +0 -1
- package/cjs/features-8a2e6b7c.js +0 -1
- package/cjs/generic-2a47022b.js +0 -1
- package/cjs/index-0e009feb.js +0 -1
- package/cjs/index-1b3a30da.js +0 -1
- package/cjs/index-3f0e537b.js +0 -1
- package/cjs/multicamv2-1b29473e.js +0 -1
- package/cjs/multicamv2-96db5b41.js +0 -1
- package/cjs/nextEpisodeButton-6c987fc1.js +0 -1
- package/cjs/playlist-f63b3e50.js +0 -1
- package/cjs/renditions-442aa808.js +0 -1
- package/cjs/resolution-268783f2.js +0 -1
- package/cjs/series-b7e367c0.js +0 -1
- package/cjs/series-v2-30f03e1e.js +0 -1
- package/cjs/series-v2-94d348ca.js +0 -1
- package/cjs/settings-icon-10d67b6e.js +0 -1
- package/cjs/skin-062b6ce9.js +0 -1
- package/cjs/skin-16742114.js +0 -1
- package/cjs/skin-1f607845.js +0 -1
- package/cjs/skin-48f688d1.js +0 -1
- package/cjs/skin-5f60494b.js +0 -1
- package/cjs/skin-82aea2f8.js +0 -1
- package/cjs/skin-d1ac763e.js +0 -1
- package/cjs/util-279f489b.js +0 -1
- package/cjs/videoSelector-52c77ba8.js +0 -1
- package/cjs/videoSelector-92110855.js +0 -1
- package/cjs/videojs-dash5.es-dc61cac7.js +0 -1
- package/esm/autoNextVideo-9f5be20b.js +0 -1
- package/esm/browser-d4613b36.js +0 -1
- package/esm/caption-settings-402f05f9.js +0 -1
- package/esm/captions-2401a9bd.js +0 -1
- package/esm/features-6776d1bb.js +0 -1
- package/esm/generic-0ed28236.js +0 -1
- package/esm/index-7f3669ca.js +0 -1
- package/esm/index-875ef3c4.js +0 -1
- package/esm/index-8e3eab6d.js +0 -1
- package/esm/multicamv2-895758da.js +0 -1
- package/esm/multicamv2-b48600cd.js +0 -1
- package/esm/nextEpisodeButton-48574f2a.js +0 -1
- package/esm/playlist-795a1de3.js +0 -1
- package/esm/renditions-aa17dd2d.js +0 -1
- package/esm/resolution-28e1d627.js +0 -1
- package/esm/series-701b377b.js +0 -1
- package/esm/series-v2-39ce5ba1.js +0 -1
- package/esm/series-v2-cf687465.js +0 -1
- package/esm/settings-icon-b63603cb.js +0 -1
- package/esm/skin-0243d33a.js +0 -1
- package/esm/skin-33ff22e8.js +0 -1
- package/esm/skin-3ef1de9a.js +0 -1
- package/esm/skin-5ce58c04.js +0 -1
- package/esm/skin-70a1fe4d.js +0 -1
- package/esm/skin-88757661.js +0 -1
- package/esm/skin-9f21d602.js +0 -1
- package/esm/util-7a2dc1fe.js +0 -1
- package/esm/videoSelector-1bfa9454.js +0 -1
- package/esm/videoSelector-d4e0dc2d.js +0 -1
- package/esm/videojs-dash5.es-9b080a34.js +0 -1
- /package/{cjs → @viewlift/player-backup/cjs}/caption-settings-34ca0188.js +0 -0
- /package/{cjs → @viewlift/player-backup/cjs}/chromett-f925fb6c.js +0 -0
- /package/{cjs → @viewlift/player-backup/cjs}/error-26d5a3c3.js +0 -0
- /package/{cjs → @viewlift/player-backup/cjs}/icons-0ea2e662.js +0 -0
- /package/{cjs → @viewlift/player-backup/cjs}/localisation-56e0a999.js +0 -0
- /package/{cjs → @viewlift/player-backup/cjs}/multicamv2-1efdbdb9.js +0 -0
- /package/{cjs → @viewlift/player-backup/cjs}/multicamv2-7a86b517.js +0 -0
- /package/{cjs → @viewlift/player-backup/cjs}/nextEpisodeButton-b6e6586f.js +0 -0
- /package/{cjs → @viewlift/player-backup/cjs}/playlist-df87ca90.js +0 -0
- /package/{cjs → @viewlift/player-backup/cjs}/series-9c237975.js +0 -0
- /package/{cjs → @viewlift/player-backup/cjs}/series-v2-68886cd2.js +0 -0
- /package/{cjs → @viewlift/player-backup/cjs}/series-v2-e037e14e.js +0 -0
- /package/{cjs → @viewlift/player-backup/cjs}/settings-icon-8d364c01.js +0 -0
- /package/{cjs → @viewlift/player-backup/cjs}/skin-225252ff.js +0 -0
- /package/{cjs → @viewlift/player-backup/cjs}/skin-87c06e34.js +0 -0
- /package/{cjs → @viewlift/player-backup/cjs}/skin-ba38afdb.js +0 -0
- /package/{cjs → @viewlift/player-backup/cjs}/skin-fc1e7e52.js +0 -0
- /package/{cjs → @viewlift/player-backup/cjs}/videoSelector-b6e03076.js +0 -0
- /package/{cjs → @viewlift/player-backup/cjs}/videoSelector-fcdf11eb.js +0 -0
- /package/{esm → @viewlift/player-backup/esm}/caption-settings-cb47408f.js +0 -0
- /package/{esm → @viewlift/player-backup/esm}/chromett-a3cbb2e1.js +0 -0
- /package/{esm → @viewlift/player-backup/esm}/error-2395864b.js +0 -0
- /package/{esm → @viewlift/player-backup/esm}/localisation-0bf399a1.js +0 -0
- /package/{esm → @viewlift/player-backup/esm}/multicamv2-1fb5149a.js +0 -0
- /package/{esm → @viewlift/player-backup/esm}/multicamv2-b7cec0cf.js +0 -0
- /package/{esm → @viewlift/player-backup/esm}/nextEpisodeButton-a1556cdf.js +0 -0
- /package/{esm → @viewlift/player-backup/esm}/playlist-7ecf432a.js +0 -0
- /package/{esm → @viewlift/player-backup/esm}/series-041152aa.js +0 -0
- /package/{esm → @viewlift/player-backup/esm}/series-v2-87343239.js +0 -0
- /package/{esm → @viewlift/player-backup/esm}/series-v2-8a8b6f0c.js +0 -0
- /package/{esm → @viewlift/player-backup/esm}/settings-icon-1fbc99bc.js +0 -0
- /package/{esm → @viewlift/player-backup/esm}/skin-271fa63f.js +0 -0
- /package/{esm → @viewlift/player-backup/esm}/skin-2c638dc1.js +0 -0
- /package/{esm → @viewlift/player-backup/esm}/skin-71be210e.js +0 -0
- /package/{esm → @viewlift/player-backup/esm}/skin-e4b35c14.js +0 -0
- /package/{esm → @viewlift/player-backup/esm}/videoSelector-8e258d45.js +0 -0
- /package/{esm → @viewlift/player-backup/esm}/videoSelector-def99d5e.js +0 -0
package/esm/skin-5ce58c04.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{f as e,g as t,h as r,d as n,e as i,i as l,j as a,k as o,l as u,m as s}from"./features-6776d1bb.js";import{M as c,a as d,c as p,d as m}from"./icons-0676e9c7.js";import{t as v,g as f,b as h}from"./skin-88757661.js";import{g as b}from"./renditions-aa17dd2d.js";import{g}from"./captions-2401a9bd.js";import{a as y,b as x}from"./index-875ef3c4.js";import j from"@babel/runtime/helpers/asyncToGenerator";import w from"@babel/runtime/regenerator";import k from"@babel/runtime/helpers/defineProperty";import E from"@babel/runtime/helpers/slicedToArray";import{d as N}from"./generic-0ed28236.js";import{i as A,d as C}from"./browser-d4613b36.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"@babel/runtime/helpers/toConsumableArray";import"./autoNextVideo-9f5be20b.js";import"./util-7a2dc1fe.js";import"@babel/runtime/helpers/typeof";import"axios";import"js-cookie";import"ua-parser-js";function O(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function T(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?O(Object(r),!0).forEach((function(t){k(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):O(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var I="my-player";function S(e){var t=e.split("\n"),r=[];return t.forEach((function(e){if((e=e.trim()).startsWith("#EXT-X-IMAGE-STREAM-INF")){var t=e.split(","),n={resolution:null,uri:null};t.forEach((function(e){e.includes("RESOLUTION")&&(n.resolution=e.split("=")[1]),e.includes("URI")&&(n.uri=e.split("=")[1].replace(/"/g,""))})),r.push(n)}})),r}function M(){return(M=j(w.mark((function e(t){var r,n,i,l,a,o,u,s,c,d,p,m,v,f,h,b,g,y,x,j,k,N,A,C;return w.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t._tiles){e.next=2;break}return e.abrupt("return",t._tiles);case 2:return e.prev=2,e.next=5,fetch(t.uri,{mode:"cors"});case 5:return r=e.sent,e.next=8,r.blob();case 8:return n=e.sent,e.next=11,createImageBitmap(n);case 11:for(i=e.sent,l=t.layout.split("x").map(Number),a=E(l,2),o=a[0],u=a[1],s=i.width/u,c=i.height/o,d=[],p=0;p<o;p++)for(m=0;m<u;m++)(v=document.createElement("canvas")).width=s,v.height=c,v.getContext("2d").drawImage(i,m*s,p*c,s,c,0,0,s,c),f=v.toDataURL("image/png"),d.push({uri:f,duration:t.duration}),t._tiles=d;return e.abrupt("return",d);case 20:for(e.prev=20,e.t0=e.catch(2),h=t.layout.split("x").map(Number),b=E(h,2),g=b[0],y=b[1],x=[],j=0;j<g*y;j++)x.push({uri:null===(k=window)||void 0===k||null===(N=k.app_data)||void 0===N||null===(A=N.appcmsMain)||void 0===A||null===(C=A.images)||void 0===C?void 0:C.placeholderCover,duration:t.duration});return e.abrupt("return",x);case 26:case"end":return e.stop()}}),e,null,[[2,20]])})))).apply(this,arguments)}function B(e,t){return R.apply(this,arguments)}function R(){return(R=j(w.mark((function e(t,r){var n,i;return w.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return I=r,e.prev=1,e.next=4,fetch(t);case 4:return n=e.sent,e.next=7,n.text();case 7:return i=e.sent,e.abrupt("return",S(i));case 11:e.prev=11,e.t0=e.catch(1),console.error("Error fetching the M3U8 manifest:",e.t0);case 14:case"end":return e.stop()}}),e,null,[[1,11]])})))).apply(this,arguments)}function P(e,t,r){var n=document.querySelector(".vjs-progress-holder.vjs-slider.vjs-slider-horizontal"),i=f(I);if(n&&i){var l=n.getBoundingClientRect(),a=(e.clientX-l.left)/l.width,o=function(e,t){var r,n;if(!t||0===t.length)return null;var i=0,l=t.length-1;for(;i<=l;){var a=Math.floor((i+l)/2),o=t[a];if(o===e)return o;o<e?i=a+1:l=a-1}var u=null!==(r=t[i])&&void 0!==r?r:1/0,s=null!==(n=t[l])&&void 0!==n?n:-1/0;return Math.abs(u-e)<Math.abs(s-e)?u:s}(Math.round(a*i.duration()),r),u=t[o];u&&!u.loading&&(u.loading=!0,function(e){return M.apply(this,arguments)}(u).then((function(e){var t=e[u.tileIndex],r=document.querySelector(".vjs-thumbnail-holder img");r&&t.uri&&(r.src=t.uri),u.loading=!1,u.src=t.uri})))}}function D(e){return L.apply(this,arguments)}function L(){return(L=j(w.mark((function e(t){var r,n,i,l;return w.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r={},t.forEach((function(e,t){for(var n=e.layout.split("x").map(Number),i=E(n,2),l=i[0]*i[1],a=e.duration,o=0;o<l;o++){var u,s=Math.round((t*l+o)*a);r[s]=T(T({},e),{},{duration:e.duration,tileIndex:o,loading:!1,style:(u={left:"-60px",height:"85px",width:"130px"},k(u,"left","-60px"),k(u,"border","1px solid transparent"),k(u,"borderRadius","4px"),u)})}})),n=Object.keys(r).map(Number).sort((function(e,t){return e-t})),null==(i=document.querySelector(".vjs-progress-holder.vjs-slider.vjs-slider-horizontal"))||i.addEventListener("mousemove",v((function(e){return P(e,r,n)}),500)),null==(l=document.querySelector(".vjs-progress-control.vjs-control"))||l.addEventListener("pointerdown",(function(e){document.addEventListener("pointermove",v((function(e){return P(e,r,n)}),500))})),e.abrupt("return",r);case 8:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var V=function(){var e=j(w.mark((function e(t,r){var n,i,l,a,o,u,s,c;return w.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch(t+r);case 2:return n=e.sent,e.next=5,n.text();case 5:i=e.sent,l=i.split("\n").map((function(e){return e.trim()})),a=[],o=null,u=0;case 10:if(!(u<(null==l?void 0:l.length))){e.next=27;break}if(!(s=l[u]).startsWith("#EXT-X-TILES")){e.next=19;break}o={resolution:null,duration:null,uri:null,layout:null},c=s.split(":")[1]||"",c.split(",").forEach((function(e){var t=e.split("="),r=E(t,2),n=r[0],i=r[1];n&&i&&(o[n.trim().toLowerCase()]=i.trim())})),e.next=24;break;case 19:if(!s.startsWith("#EXTINF")){e.next=23;break}return e.abrupt("continue",24);case 23:(s.includes("jpg")||s.includes("png")||s.includes("jpeg"))&&(o.uri=s.includes("http")?s:t+s,a.push(o),o=null);case 24:u++,e.next=10;break;case 27:return e.abrupt("return",a);case 28:case"end":return e.stop()}}),e)})));return function(t,r){return e.apply(this,arguments)}}();function $(e){return e.replace(/AdSegmentFilter\/markers=\(.+?\)\//,"")}function U(e,t){return _.apply(this,arguments)}function _(){return(_=j(w.mark((function e(t,r){var n,i,l,a,o,u,s,c,d,p,m,v,h,b,g,y,x,j,k,A,C,O,T,S,M,B,R,P,D,L,V,U,_,q,z,W,G,H,J,K,Q,Y,Z,ee,te,re,ne,ie,le,ae,oe,ue,se,ce,de,pe,me,ve;return w.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return I=r,n=f(r),i=t.split("/"),l=i.findIndex((function(e){return"dash"===e.toLowerCase()})),a=$(-1!==l?i.slice(0,l+1).join("/"):new URL(t).origin),e.prev=5,e.next=8,fetch(t);case 8:return c=e.sent,e.next=11,c.text();case 11:d=e.sent,p=new DOMParser,m=p.parseFromString(d,"application/xml"),v=(null==n?void 0:n.duration())||(null===(o=N())||void 0===o||null===(u=o.video)||void 0===u?void 0:u.runtime),h=(null==m||null===(s=m.querySelector("MPD > BaseURL"))||void 0===s?void 0:s.textContent)||a+"/",b=m.getElementsByTagName("AdaptationSet"),g=0;case 18:if(!(g<b.length)){e.next=72;break}if(("image"!==(y=b[g]).getAttribute("contentType")||"image/png"!==y.getAttribute("mimeType"))&&"image/jpeg"!==y.getAttribute("mimeType")){e.next=69;break}if(j=y.getElementsByTagName("SegmentTemplate")[0],k=null===(x=j.getElementsByTagName("SegmentTimeline"))||void 0===x?void 0:x[0],!j||!k){e.next=48;break}if(O=k.getElementsByTagName("S"),T=parseInt(null===(A=O[0])||void 0===A?void 0:A.getAttribute("t")),S=parseInt(null===(C=O[0])||void 0===C?void 0:C.getAttribute("d")),M=y.getElementsByTagName("Representation")[0],B=M.getElementsByTagName("EssentialProperty")[0],R=B.getAttribute("value"),P=null==R?void 0:R.split("x"),D=E(P,2),L=D[0],V=D[1],!j){e.next=46;break}if(j.getAttribute("media"),U=j.getAttribute("timescale"),_=(U?S/U:S)/(L*V),q=M.getAttribute("id"),z=Math.round(v/_),W=Math.ceil(z/(L*V)),G=j.getAttribute("media"),parseInt(j.getAttribute("startNumber")),!isNaN(parseInt(W))){e.next=43;break}return e.abrupt("return");case 43:for(H=[],g=0;g<W;g++)K="/"==(J=G)[0]?new URL(a).origin:a+"/",H.push({duration:_,layout:R,uri:K+J.replace("$Time$",T+g*S).replace("$RepresentationID$",q)});return e.abrupt("return",H);case 46:e.next=69;break;case 48:if(Q=y.getElementsByTagName("Representation")[0],Y=Q.getElementsByTagName("EssentialProperty")[0],Z=Y.getAttribute("value"),ee=null==Z?void 0:Z.split("x"),te=E(ee,2),re=te[0],ne=te[1],!j){e.next=69;break}if(j.getAttribute("media"),ie=j.getAttribute("duration"),le=j.getAttribute("timescale"),ae=(le?ie/le:ie)/(re*ne),oe=Q.getAttribute("id"),ue=Math.round(v/ae),se=Math.ceil(ue/(re*ne)),ce=j.getAttribute("media"),de=parseInt(j.getAttribute("startNumber"))||0,!isNaN(parseInt(se))){e.next=65;break}return e.abrupt("return");case 65:for(pe=[],me=F(ce),g=0;g<se;g++)ve=me?X(me,g+de):ce,pe.push({duration:ae,layout:Z,uri:h+ve.replace("$Number$",g+de).replace("$RepresentationID$",oe)});return e.abrupt("return",pe);case 69:g++,e.next=18;break;case 72:return console.log("No trickplay segment found."),e.abrupt("return",null);case 76:e.prev=76,e.t0=e.catch(5),console.error("Error fetching or parsing MPD:",e.t0);case 79:case"end":return e.stop()}}),e,null,[[5,76]])})))).apply(this,arguments)}function F(e){var t=e.match(/Thumbnail_\$Number%0\d+d\$\.\w+/);return t?t[0]:null}function X(e,t){var r=e.match(/%0(\d+)d/);if(!r)return e;var n=parseInt(r[1],10),i=String(t).padStart(n,"0");return e.replace(/\$Number%0\d+d\$/,i)}function q(){return(q=j(w.mark((function e(t){var r,n,i,l,a,o,u,s,c,d,p,m,v,h,b,g;return w.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o=f(t),u=o.currentSource(),s=u.src,s=null!==(r=s)&&void 0!==r&&r.includes("blob")?null===(n=window)||void 0===n||null===(i=n.player)||void 0===i?void 0:i.getSource():s,null===(l=s)||void 0===l||!l.includes("m3u8")){e.next=19;break}return e.next=6,B(s,t);case 6:if(!((null==(c=e.sent)?void 0:c.length)>0)){e.next=17;break}return d=(null==c?void 0:c[0])||null,p=d.uri,m=s.substring(0,s.lastIndexOf("/"))+"/",e.next=12,V(m,p);case 12:return v=e.sent,e.next=15,D(v);case 15:h=e.sent,o.thumbnails(h);case 17:e.next=28;break;case 19:if(null===(a=s)||void 0===a||!a.includes("mpd")){e.next=28;break}return e.next=22,U(s,t);case 22:if(!((null==(b=e.sent)?void 0:b.length)>0)){e.next=28;break}return e.next=26,D(b);case 26:g=e.sent,o.thumbnails(g);case 28:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function z(n,i){var l=f(n);l&&(l.on("loadeddata",(function(){var r,a,o,u,s,c,d;(null===(r=b(n))||void 0===r?void 0:r.length)>0&&e(n,i),(null===(a=g(n))||void 0===a?void 0:a.length)>0&&t(n,i),!(null!=i&&null!==(o=i.series)&&void 0!==o&&o.enable||null!==(u=window)&&void 0!==u&&null!==(s=u.app_data)&&void 0!==s&&null!==(c=s.appcmsMain)&&void 0!==c&&null!==(d=c.features)&&void 0!==d&&d.auto_play)||null!=i&&i.liveVideo||y(n,i),function(e,t){var r,n=Math.floor(e/60),i=null===(r=document.getElementsByClassName("vjs-progress-holder vjs-slider vjs-slider-horizontal"))||void 0===r?void 0:r[0];i&&(i.style.marginRight=n>60?"56px":"41px");var l=document.getElementsByClassName("vjs-live-control")[0],a=document.getElementsByClassName("vjs-time-control");t&&l.classList.value.includes("vjs-hidden")&&(a[0].style.display="block",i&&(i.style.marginRight="56px"))}(l.duration(),(null==i?void 0:i.liveVideo)||!1),null!=i&&i.liveVideo||A()||function(e){q.apply(this,arguments)}(n)})),l.one("play",(function(){var e,t,i,l;null!==(e=window)&&void 0!==e&&null!==(t=e.customData)&&void 0!==t&&t.iframeOverlayUrl&&r(n,null===(i=window)||void 0===i||null===(l=i.customData)||void 0===l?void 0:l.iframeOverlayUrl)})))}function W(e,t){f(e).addClass("skin_defaultv2"),function(){"Chrome"==C()&&import("./chromett-a3cbb2e1.js").then((function(e){var t=document.createElement("style");t.id="chromett",t.append("".concat(e.default)),document.head.appendChild(t)}));import("./skin-e4b35c14.js").then((function(e){var t=document.createElement("style");t.id="default_v2",t.append("".concat(e.default)),document.head.appendChild(t)}))}(),z(e,t),function(e,t){var r,n,i,l,a,o,u=f(e);null==u||null===(r=u.controlBar)||void 0===r||null===(n=r.getChild("FullscreenToggle"))||void 0===n||null===(i=n.el())||void 0===i||i.appendChild(h(c(window.controlsColor))),null==u||null===(l=u.controlBar)||void 0===l||null===(a=l.getChild("FullscreenToggle"))||void 0===a||null===(o=a.el())||void 0===o||o.appendChild(h(d(window.controlsColor)));var s=document.getElementsByClassName("vjs-time-control");t.liveVideo&&s[0]&&(s[0].style.display="none")}(e,t),function(e,t){var r,c,d,v,f,h;0==(null==t?void 0:t.liveVideo)&&0==(null==t?void 0:t.liveui)&&n(e,"defaultV2",p());(0==(null==t?void 0:t.liveVideo)&&0==(null==t?void 0:t.liveui)||1==(null==t?void 0:t.liveui))&&i(e,"defaultV2",m());t.liveVideo||l(e);(null==t||null===(r=t.relatedVideos)||void 0===r||null===(c=r.content)||void 0===c?void 0:c.length)>0&&a(e,null==t?void 0:t.relatedVideos);(null==t||null===(d=t.streams)||void 0===d?void 0:d.length)>1&&o(e,null==t?void 0:t.streams);(null==t||null===(v=t.playlist)||void 0===v||null===(f=v.content)||void 0===f?void 0:f.length)>0&&u(e,null==t?void 0:t.playlist);null!=t&&null!==(h=t.series)&&void 0!==h&&h.enable&&s(e,t)}(e,t),x(e,t)}export{W as initialiseSkin};
|
package/esm/skin-70a1fe4d.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{E as r,F as e}from"./generic-0ed28236.js";import{g as t}from"./skin-88757661.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"ua-parser-js";import"./captions-2401a9bd.js";import"@babel/runtime/helpers/toConsumableArray";function o(r){n(r),i(r)}var i=function(o){var i=t(o),n=document.getElementById("".concat(o));n&&n.addEventListener("touchstart",(function(){i.paused()?r(o):e(o)}))},n=function(r){var e=t(r);e.requestFullscreen=function(){},e.controlBar.hide()};export{o as initaliseSkin};
|
package/esm/skin-88757661.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"],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=function(e){return l(e)},u=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 d(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"}))},d=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"}))},c=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()}))},s=function(e){return e&&!e.includes("?impolicy")?e+"?impolicy=resize&w=1920&h=1080":null},m="",v=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&&m!==t){var o=window.getComputedStyle(i,null).getPropertyValue("height");n&&(n.style.height="".concat(o)),m=t}}(e,n)};window._orientationChangeHandler=i;window.addEventListener("resize",(function(){clearTimeout(t),t=setTimeout((function(){i()}),100)}))},w=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(){f(e,n)}),300))}));l.observe(r),o.on("dispose",(function(){l.disconnect()})),o.on("fullscreenchange",(function(){setTimeout((function(){f(e,n)}),50)}))},f=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))}},p=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())}}export{o as a,a as b,p as c,r as d,c as e,v as f,t as g,u as h,s as i,w as j,d as k,l as p,f as s,y as t};
|
package/esm/skin-9f21d602.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{E as e,F as t}from"./generic-0ed28236.js";import{g as r}from"./skin-88757661.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"ua-parser-js";import"./captions-2401a9bd.js";import"@babel/runtime/helpers/toConsumableArray";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)})),n(),function(o){var n=document.getElementById("".concat(o)),i=r(o);n&&n.addEventListener("touchstart",(function(){i.paused()?e(o):t(o)}))}(o)}var n=function(){var e=document.getElementsByClassName("vjs-control-bar")[0];e&&(e.style.visibility="hidden")};export{o as initaliseSkin};
|
package/esm/util-7a2dc1fe.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{g as t}from"./skin-88757661.js";var n=function(n,a,r){var i=t(n);i?a>=0&&a<=i.duration()?(r({status:!0,msg:"Successfully seeked to timestamp : ".concat(a)}),i.currentTime(a)):r({status:!1,msg:"Out of bounds, please provide a valid timestamp"}):r("Cannot find player with id: '".concat(n,"'"))},a=function(n,a){var r=t(n);if(!r)return"Cannot find player with id: '".concat(n,"'");try{return r.playbackRate(a),"Playback speed set to ".concat(a,"x")}catch(t){return"Error: ".concat(t)}},r=function(n,a){var r=t(n);r?r.on("timeupdate",(function(){return a(r.currentTime())})):a("Cannot find player with id: '".concat(n,"'"))},i=function(n,a){var r=t(n);r?r.on("ended",(function(){return a(!0)})):a("Cannot find player with id: '".concat(n,"'"))},o=function(n){var a=t(n);return a?a.duration():"Cannot find player with id: '".concat(n,"'")};export{i as a,a as b,o as g,r as o,n 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{E as r,e as l}from"./icons-0676e9c7.js";import{H as s,S as d}from"./generic-0ed28236.js";import{e as c,s as m,f as u,j as p,k as v}from"./skin-88757661.js";import{a as h}from"./autoNextVideo-9f5be20b.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-2401a9bd.js";import"@babel/runtime/helpers/toConsumableArray";import"./util-7a2dc1fe.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 +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 a from"@babel/runtime/helpers/getPrototypeOf";import i from"video.js";import{f as l,e as s}from"./icons-0676e9c7.js";import{H as d,S as r}from"./generic-0ed28236.js";import{e as c,s as m,f as u,h as v,j as p,i as h}from"./skin-88757661.js";import{a as y}from"./autoNextVideo-9f5be20b.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-2401a9bd.js";import"@babel/runtime/helpers/toConsumableArray";import"./util-7a2dc1fe.js";function f(e){var t=C();return function(){var o,i=a(e);if(t){var l=a(this).constructor;o=Reflect.construct(i,arguments,l)}else o=i.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=i.getComponent("Component"),E=function(n){o(C,g);var a=f(C);function C(t){var o,n,i,l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e(this,C),(i=a.call(this,t,l)).playerId=l.playerId,i.seriesData=l.sres,i.videos=l.related.content,i.cb=(null==l||null===(o=l.related)||void 0===o?void 0:o.cb)||null,i.autoNext=(null==l||null===(n=l.related)||void 0===n?void 0:n.autoNext)||!1,i.currentVideoData=l.res,i.initialiseStructure(),i.loadCSS(),i.autoNext&&(r(0),y({playerId:i.playerId,content:i.videos,cb:i.cb})),i}return t(C,[{key:"createEl",value:function(){var e=i.dom.createEl("div",{className:"video-selection vjs-control vjs-button"});e.style.position="unset";var t=i.dom.createEl("button",{className:"video-selector-icon",title:"video selector",innerHTML:"".concat(l())});return i.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=i.dom.createEl("div",{className:"video-selection-container hidden"});i.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 a=window.getComputedStyle(n,null).getPropertyValue("height");o.style.height="".concat(a),i.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=i.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"),a=(null==n||null===(t=n[0])||void 0===t||null===(o=t.children)||void 0===o?void 0:o.length)||0,i=0;i<a;i++)document.getElementsByClassName("recommended -".concat(i))[0]&&(document.getElementsByClassName("recommended -".concat(i))[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"),a=(null==n||null===(t=n[0])||void 0===t||null===(o=t.children)||void 0===o?void 0:o.length)||0,i=0;i<a;i++)document.getElementsByClassName("recommended -".concat(i))&&(document.getElementsByClassName("recommended -".concat(i))[0].tabIndex=-1)}},{key:"addFunctionality",value:function(e){var t=this,o=this.el(),n=i.dom.createEl("div",{className:"video-selector-head"}),a=i.dom.createEl("div",{className:"video-selector-cross-icon",ariaLabel:"close video selector",tabIndex:-1,innerHTML:"".concat(s())});a.onkeydown=function(n){"Enter"===n.key&&(e.classList.add("hidden"),o.classList.remove("open"),t.handleCloseTabIndex())},a.onclick=function(){e.classList.add("hidden"),o.classList.remove("open"),t.handleCloseTabIndex()};for(var l=i.dom.createEl("div",{className:"video-selector-title",innerHTML:b("relatedVideoTitle")||"Recommended"}),d=i.dom.createEl("div",{className:"video-selector-content",tabIndex:-1}),r=i.dom.createEl("div",{className:"video-container video-accessibility"}),c=function(e){var o,n,a,l,s,c,m,u,v=i.dom.createEl("div",{className:"video -".concat(e)}),p=i.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 y=document.createElement("img");y.className="related-thumbnail-image",y.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===(a=window)||void 0===a||null===(l=a.app_data)||void 0===l||null===(s=l.appcmsMain)||void 0===s||null===(c=s.images)||void 0===c?void 0:c.placeholderCover)),y.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(y);var b=i.dom.createEl("div",{className:"info -".concat(e),innerHTML:"".concat((null==t||null===(u=t.videos[e])||void 0===u?void 0:u.title)||"")});i.dom.appendContent(v,p),i.dom.appendContent(v,b),i.dom.appendContent(r,v),i.dom.appendContent(d,r)},m=0;m<this.videos.length;m++)c(m);i.dom.appendContent(n,l),i.dom.appendContent(n,a),i.dom.appendContent(e,n),i.dom.appendContent(e,d),p(this.playerId,e)}}]),C}();export{E as default};
|