@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/cjs/skin-d1ac763e.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var e=require("./features-8a2e6b7c.js"),t=require("./icons-0ea2e662.js"),r=require("./skin-16742114.js"),n=require("./renditions-442aa808.js"),i=require("./captions-b9061920.js"),l=require("./index-0e009feb.js"),a=require("@babel/runtime/helpers/asyncToGenerator"),u=require("@babel/runtime/regenerator"),o=require("@babel/runtime/helpers/defineProperty"),s=require("@babel/runtime/helpers/slicedToArray"),d=require("./generic-2a47022b.js"),c=require("./browser-77c57718.js");function p(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 v(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?p(Object(r),!0).forEach((function(t){o(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):p(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}require("@babel/runtime/helpers/classCallCheck"),require("@babel/runtime/helpers/createClass"),require("@babel/runtime/helpers/inherits"),require("@babel/runtime/helpers/possibleConstructorReturn"),require("@babel/runtime/helpers/getPrototypeOf"),require("video.js"),require("./localisation-56e0a999.js"),require("@babel/runtime/helpers/toConsumableArray"),require("./autoNextVideo-7754b90c.js"),require("./util-279f489b.js"),require("@babel/runtime/helpers/typeof"),require("axios"),require("js-cookie"),require("ua-parser-js");var m="my-player";function f(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 g(){return(g=a(u.mark((function e(t){var r,n,i,l,a,o,d,c,p,v,m,f,g,h,b,y,x,w,j,E,k,S,q,T;return u.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=s(l,2),o=a[0],d=a[1],c=i.width/d,p=i.height/o,v=[],m=0;m<o;m++)for(f=0;f<d;f++)(g=document.createElement("canvas")).width=c,g.height=p,g.getContext("2d").drawImage(i,f*c,m*p,c,p,0,0,c,p),h=g.toDataURL("image/png"),v.push({uri:h,duration:t.duration}),t._tiles=v;return e.abrupt("return",v);case 20:for(e.prev=20,e.t0=e.catch(2),b=t.layout.split("x").map(Number),y=s(b,2),x=y[0],w=y[1],j=[],E=0;E<x*w;E++)j.push({uri:null===(k=window)||void 0===k||null===(S=k.app_data)||void 0===S||null===(q=S.appcmsMain)||void 0===q||null===(T=q.images)||void 0===T?void 0:T.placeholderCover,duration:t.duration});return e.abrupt("return",j);case 26:case"end":return e.stop()}}),e,null,[[2,20]])})))).apply(this,arguments)}function h(e,t){return b.apply(this,arguments)}function b(){return(b=a(u.mark((function e(t,r){var n,i;return u.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return m=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",f(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 y(e,t,n){var i=document.querySelector(".vjs-progress-holder.vjs-slider.vjs-slider-horizontal"),l=r.getPlayer(m);if(i&&l){var a=i.getBoundingClientRect(),u=(e.clientX-a.left)/a.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),u=t[a];if(u===e)return u;u<e?i=a+1:l=a-1}var o=null!==(r=t[i])&&void 0!==r?r:1/0,s=null!==(n=t[l])&&void 0!==n?n:-1/0;return Math.abs(o-e)<Math.abs(s-e)?o:s}(Math.round(u*l.duration()),n),s=t[o];s&&!s.loading&&(s.loading=!0,function(e){return g.apply(this,arguments)}(s).then((function(e){var t=e[s.tileIndex],r=document.querySelector(".vjs-thumbnail-holder img");r&&t.uri&&(r.src=t.uri),s.loading=!1,s.src=t.uri})))}}function x(e){return w.apply(this,arguments)}function w(){return(w=a(u.mark((function e(t){var n,i,l,a;return u.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n={},t.forEach((function(e,t){for(var r=e.layout.split("x").map(Number),i=s(r,2),l=i[0]*i[1],a=e.duration,u=0;u<l;u++){var d,c=Math.round((t*l+u)*a);n[c]=v(v({},e),{},{duration:e.duration,tileIndex:u,loading:!1,style:(d={left:"-60px",height:"85px",width:"130px"},o(d,"left","-60px"),o(d,"border","1px solid transparent"),o(d,"borderRadius","4px"),d)})}})),i=Object.keys(n).map(Number).sort((function(e,t){return e-t})),null==(l=document.querySelector(".vjs-progress-holder.vjs-slider.vjs-slider-horizontal"))||l.addEventListener("mousemove",r.throttle((function(e){return y(e,n,i)}),500)),null==(a=document.querySelector(".vjs-progress-control.vjs-control"))||a.addEventListener("pointerdown",(function(e){document.addEventListener("pointermove",r.throttle((function(e){return y(e,n,i)}),500))})),e.abrupt("return",n);case 8:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var j=function(){var e=a(u.mark((function e(t,r){var n,i,l,a,o,d,c,p;return u.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,d=0;case 10:if(!(d<(null==l?void 0:l.length))){e.next=27;break}if(!(c=l[d]).startsWith("#EXT-X-TILES")){e.next=19;break}o={resolution:null,duration:null,uri:null,layout:null},p=c.split(":")[1]||"",p.split(",").forEach((function(e){var t=e.split("="),r=s(t,2),n=r[0],i=r[1];n&&i&&(o[n.trim().toLowerCase()]=i.trim())})),e.next=24;break;case 19:if(!c.startsWith("#EXTINF")){e.next=23;break}return e.abrupt("continue",24);case 23:(c.includes("jpg")||c.includes("png")||c.includes("jpeg"))&&(o.uri=c.includes("http")?c:t+c,a.push(o),o=null);case 24:d++,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(e){return e.replace(/AdSegmentFilter\/markers=\(.+?\)\//,"")}function k(e,t){return S.apply(this,arguments)}function S(){return(S=a(u.mark((function e(t,n){var i,l,a,o,c,p,v,f,g,h,b,y,x,w,j,k,S,N,P,A,C,M,O,I,B,V,R,D,L,_,U,$,F,z,X,W,G,H,J,K,Q,Y,Z,ee,te,re,ne,ie,le,ae,ue,oe,se,de,ce,pe,ve,me;return u.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return m=n,i=r.getPlayer(n),l=t.split("/"),a=l.findIndex((function(e){return"dash"===e.toLowerCase()})),o=E(-1!==a?l.slice(0,a+1).join("/"):new URL(t).origin),e.prev=5,e.next=8,fetch(t);case 8:return f=e.sent,e.next=11,f.text();case 11:g=e.sent,h=new DOMParser,b=h.parseFromString(g,"application/xml"),y=(null==i?void 0:i.duration())||(null===(c=d.getCurrentVideo())||void 0===c||null===(p=c.video)||void 0===p?void 0:p.runtime),x=(null==b||null===(v=b.querySelector("MPD > BaseURL"))||void 0===v?void 0:v.textContent)||o+"/",w=b.getElementsByTagName("AdaptationSet"),j=0;case 18:if(!(j<w.length)){e.next=72;break}if(("image"!==(k=w[j]).getAttribute("contentType")||"image/png"!==k.getAttribute("mimeType"))&&"image/jpeg"!==k.getAttribute("mimeType")){e.next=69;break}if(N=k.getElementsByTagName("SegmentTemplate")[0],P=null===(S=N.getElementsByTagName("SegmentTimeline"))||void 0===S?void 0:S[0],!N||!P){e.next=48;break}if(M=P.getElementsByTagName("S"),O=parseInt(null===(A=M[0])||void 0===A?void 0:A.getAttribute("t")),I=parseInt(null===(C=M[0])||void 0===C?void 0:C.getAttribute("d")),B=k.getElementsByTagName("Representation")[0],V=B.getElementsByTagName("EssentialProperty")[0],R=V.getAttribute("value"),D=null==R?void 0:R.split("x"),L=s(D,2),_=L[0],U=L[1],!N){e.next=46;break}if(N.getAttribute("media"),$=N.getAttribute("timescale"),F=($?I/$:I)/(_*U),z=B.getAttribute("id"),X=Math.round(y/F),W=Math.ceil(X/(_*U)),G=N.getAttribute("media"),parseInt(N.getAttribute("startNumber")),!isNaN(parseInt(W))){e.next=43;break}return e.abrupt("return");case 43:for(H=[],j=0;j<W;j++)K="/"==(J=G)[0]?new URL(o).origin:o+"/",H.push({duration:F,layout:R,uri:K+J.replace("$Time$",O+j*I).replace("$RepresentationID$",z)});return e.abrupt("return",H);case 46:e.next=69;break;case 48:if(Q=k.getElementsByTagName("Representation")[0],Y=Q.getElementsByTagName("EssentialProperty")[0],Z=Y.getAttribute("value"),ee=null==Z?void 0:Z.split("x"),te=s(ee,2),re=te[0],ne=te[1],!N){e.next=69;break}if(N.getAttribute("media"),ie=N.getAttribute("duration"),le=N.getAttribute("timescale"),ae=(le?ie/le:ie)/(re*ne),ue=Q.getAttribute("id"),oe=Math.round(y/ae),se=Math.ceil(oe/(re*ne)),de=N.getAttribute("media"),ce=parseInt(N.getAttribute("startNumber"))||0,!isNaN(parseInt(se))){e.next=65;break}return e.abrupt("return");case 65:for(pe=[],ve=q(de),j=0;j<se;j++)me=ve?T(ve,j+ce):de,pe.push({duration:ae,layout:Z,uri:x+me.replace("$Number$",j+ce).replace("$RepresentationID$",ue)});return e.abrupt("return",pe);case 69:j++,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 q(e){var t=e.match(/Thumbnail_\$Number%0\d+d\$\.\w+/);return t?t[0]:null}function T(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 N(){return(N=a(u.mark((function e(t){var n,i,l,a,o,s,d,c,p,v,m,f,g,b,y,w;return u.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(s=r.getPlayer(t),d=s.currentSource(),c=d.src,c=null!==(n=c)&&void 0!==n&&n.includes("blob")?null===(i=window)||void 0===i||null===(l=i.player)||void 0===l?void 0:l.getSource():c,null===(a=c)||void 0===a||!a.includes("m3u8")){e.next=19;break}return e.next=6,h(c,t);case 6:if(!((null==(p=e.sent)?void 0:p.length)>0)){e.next=17;break}return v=(null==p?void 0:p[0])||null,m=v.uri,f=c.substring(0,c.lastIndexOf("/"))+"/",e.next=12,j(f,m);case 12:return g=e.sent,e.next=15,x(g);case 15:b=e.sent,s.thumbnails(b);case 17:e.next=28;break;case 19:if(null===(o=c)||void 0===o||!o.includes("mpd")){e.next=28;break}return e.next=22,k(c,t);case 22:if(!((null==(y=e.sent)?void 0:y.length)>0)){e.next=28;break}return e.next=26,x(y);case 26:w=e.sent,s.thumbnails(w);case 28:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function P(t,a){var u=r.getPlayer(t);u&&(u.on("loadeddata",(function(){var r,o,s,d,p,v,m;(null===(r=n.getRenditions(t))||void 0===r?void 0:r.length)>0&&e.addSettingsButtonV2(t,a),(null===(o=i.getCaptions(t))||void 0===o?void 0:o.length)>0&&e.addCaptionButton(t,a),!(null!=a&&null!==(s=a.series)&&void 0!==s&&s.enable||null!==(d=window)&&void 0!==d&&null!==(p=d.app_data)&&void 0!==p&&null!==(v=p.appcmsMain)&&void 0!==v&&null!==(m=v.features)&&void 0!==m&&m.auto_play)||null!=a&&a.liveVideo||l.addNextEpPreview(t,a),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"))}(u.duration(),(null==a?void 0:a.liveVideo)||!1),null!=a&&a.liveVideo||c.isMobile()||function(e){N.apply(this,arguments)}(t)})),u.one("play",(function(){var r,n,i,l;null!==(r=window)&&void 0!==r&&null!==(n=r.customData)&&void 0!==n&&n.iframeOverlayUrl&&e.addOutputtingOverlay(t,null===(i=window)||void 0===i||null===(l=i.customData)||void 0===l?void 0:l.iframeOverlayUrl)})))}exports.initialiseSkin=function(n,i){r.getPlayer(n).addClass("skin_defaultv2"),function(){"Chrome"==c.detectBrowser()&&Promise.resolve().then((function(){return require("./chromett-f925fb6c.js")})).then((function(e){var t=document.createElement("style");t.id="chromett",t.append("".concat(e.default)),document.head.appendChild(t)}));Promise.resolve().then((function(){return require("./skin-87c06e34.js")})).then((function(e){var t=document.createElement("style");t.id="default_v2",t.append("".concat(e.default)),document.head.appendChild(t)}))}(),P(n,i),function(e,n){var i,l,a,u,o,s,d=r.getPlayer(e);null==d||null===(i=d.controlBar)||void 0===i||null===(l=i.getChild("FullscreenToggle"))||void 0===l||null===(a=l.el())||void 0===a||a.appendChild(r.createIconMarkup(t.MinimizeSvg(window.controlsColor))),null==d||null===(u=d.controlBar)||void 0===u||null===(o=u.getChild("FullscreenToggle"))||void 0===o||null===(s=o.el())||void 0===s||s.appendChild(r.createIconMarkup(t.MaximizeSvg(window.controlsColor)));var c=document.getElementsByClassName("vjs-time-control");n.liveVideo&&c[0]&&(c[0].style.display="none")}(n,i),function(r,n){var i,l,a,u,o,s;0==(null==n?void 0:n.liveVideo)&&0==(null==n?void 0:n.liveui)&&e.addSkipButton(r,"defaultV2",t.SkipSvgV2());(0==(null==n?void 0:n.liveVideo)&&0==(null==n?void 0:n.liveui)||1==(null==n?void 0:n.liveui))&&e.addRewindButton(r,"defaultV2",t.RewindSvgV2());n.liveVideo||e.addSlowMotion(r);(null==n||null===(i=n.relatedVideos)||void 0===i||null===(l=i.content)||void 0===l?void 0:l.length)>0&&e.addVideoSelector_DEFAULTV2_TEMP(r,null==n?void 0:n.relatedVideos);(null==n||null===(a=n.streams)||void 0===a?void 0:a.length)>1&&e.addMulticamSelector_DEFAULTV2_TEMP(r,null==n?void 0:n.streams);(null==n||null===(u=n.playlist)||void 0===u||null===(o=u.content)||void 0===o?void 0:o.length)>0&&e.addPlaylistSelector(r,null==n?void 0:n.playlist);null!=n&&null!==(s=n.series)&&void 0!==s&&s.enable&&e.addSeriesSelectorV2_DEFAULTV2_TEMP(r,n)}(n,i),l.addTVProviderImage(n,i)};
|
package/cjs/util-279f489b.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var t=require("./skin-16742114.js");exports.getVideoDuration=function(e){var n=t.getPlayer(e);return n?n.duration():"Cannot find player with id: '".concat(e,"'")},exports.onTimeUpdate=function(e,n){var a=t.getPlayer(e);a?a.on("timeupdate",(function(){return n(a.currentTime())})):n("Cannot find player with id: '".concat(e,"'"))},exports.onVideoEnded=function(e,n){var a=t.getPlayer(e);a?a.on("ended",(function(){return n(!0)})):n("Cannot find player with id: '".concat(e,"'"))},exports.seekToTimeStamp=function(e,n,a){var r=t.getPlayer(e);r?n>=0&&n<=r.duration()?(a({status:!0,msg:"Successfully seeked to timestamp : ".concat(n)}),r.currentTime(n)):a({status:!1,msg:"Out of bounds, please provide a valid timestamp"}):a("Cannot find player with id: '".concat(e,"'"))},exports.setPlaybackSpeed=function(e,n){var a=t.getPlayer(e);if(!a)return"Cannot find player with id: '".concat(e,"'");try{return a.playbackRate(n),"Playback speed set to ".concat(n,"x")}catch(t){return"Error: ".concat(t)}};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var e=require("@babel/runtime/helpers/classCallCheck"),t=require("@babel/runtime/helpers/createClass"),n=require("@babel/runtime/helpers/inherits"),o=require("@babel/runtime/helpers/possibleConstructorReturn"),i=require("@babel/runtime/helpers/getPrototypeOf"),r=require("video.js"),a=require("./icons-0ea2e662.js"),l=require("./generic-2a47022b.js"),s=require("./skin-16742114.js"),d=require("./autoNextVideo-7754b90c.js"),c=require("./localisation-56e0a999.js");function u(e){var t=v();return function(){var n,r=i(e);if(t){var a=i(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return o(this,n)}}function v(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(v=function(){return!!e})()}require("@babel/runtime/helpers/defineProperty"),require("@babel/runtime/helpers/asyncToGenerator"),require("@babel/runtime/regenerator"),require("axios"),require("./browser-77c57718.js"),require("js-cookie"),require("ua-parser-js"),require("./captions-b9061920.js"),require("@babel/runtime/helpers/toConsumableArray"),require("./util-279f489b.js");var m=r.getComponent("Component"),p=function(o){n(v,m);var i=u(v);function v(t){var n,o,r,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e(this,v),(r=i.call(this,t,a)).playerId=a.playerId,r.seriesData=a.sres,r.videos=a.related.content,r.cb=(null==a||null===(n=a.related)||void 0===n?void 0:n.cb)||null,r.autoNext=(null==a||null===(o=a.related)||void 0===o?void 0:o.autoNext)||!1,r.currentVideoData=a.res,r.initialiseStructure(),r.loadCSS(),r.autoNext&&(l.setVideoIdx(0),d.autoPlayNext({playerId:r.playerId,content:r.videos,cb:r.cb})),r}return t(v,[{key:"createEl",value:function(){var e=r.dom.createEl("div",{className:"video-selection vjs-control vjs-button"});e.style.position="unset";var t=r.dom.createEl("div",{className:"video-selector-icon",innerHTML:"".concat(a.EpisodesSvg())});return r.dom.appendContent(e,t),e}},{key:"loadCSS",value:function(){Promise.resolve().then((function(){return require("./videoSelector-fcdf11eb.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(),n=r.dom.createEl("div",{className:"video-selection-container hidden"});r.dom.$(".video-selector-icon",this.el()).onclick=function(){var o;null!==(o=n.classList)&&void 0!==o&&o.contains("hidden")?(s.closeOpenDrawers(),n.classList.remove("hidden"),t.classList.add("open"),n.style.right="0px",s.setUpdatedElHeight(e.playerId,n)):(n.classList.add("hidden"),t.classList.remove("open"),n.style.right="-350px")};var o=document.getElementById(this.playerId);if(o){var i=window.getComputedStyle(o,null).getPropertyValue("height");n.style.height="".concat(i),r.dom.appendContent(t,n),o.style.overflow="hidden",this.addFunctionality(n),s.detectOrientationChange(this.playerId,n)}}},{key:"toggleOpenClose",value:function(){}},{key:"addFunctionality",value:function(e){var t=this,n=this.el(),o=r.dom.createEl("div",{className:"video-selector-head"}),i=r.dom.createEl("div",{className:"video-selector-cross-icon",innerHTML:"".concat(a.crossIconSvg())});i.onclick=function(){e.classList.add("hidden"),n.classList.remove("open"),e.style.right="-350px"};for(var d=r.dom.createEl("div",{className:"video-selector-title",innerHTML:c.getLocalisation("relatedVideoTitle")||"Recommended"}),u=r.dom.createEl("div",{className:"video-selector-content"}),v=r.dom.createEl("div",{className:"video-container"}),m=function(e){var n,o,i,a,d,c=r.dom.createEl("div",{className:"video -".concat(e)}),m=r.dom.createEl("div",{className:"recommended -".concat(e)});m.setAttribute("video-idx",e),m.onclick=function(){l.setVideoIdx(e+1);for(var n=r.dom.$$(".recommended"),o=0;o<n.length;o++)n[o].style.border="none";s.highlightVideo_DEFAULTV2_TEMP(e),l.load(t.playerId,t.videos[e].id).then((function(e){t.cb&&t.cb(e)})).catch((function(e){t.cb&&t.cb(e)}))};var p=document.createElement("img");p.className="related-thumbnail-image",p.src="".concat((null==t||null===(n=t.videos)||void 0===n||null===(o=n[e])||void 0===o?void 0:o.img)||(null===(i=window)||void 0===i||null===(a=i.customData)||void 0===a?void 0:a.fallbackImage)),p.alt="No Thumbnail Available",m.append(p);var h=r.dom.createEl("div",{className:"info -".concat(e),innerHTML:"".concat((null==t||null===(d=t.videos[e])||void 0===d?void 0:d.title)||"")});r.dom.appendContent(c,m),r.dom.appendContent(c,h),r.dom.appendContent(v,c),r.dom.appendContent(u,v)},p=0;p<this.videos.length;p++)m(p);r.dom.appendContent(o,i),r.dom.appendContent(o,d),r.dom.appendContent(e,o),r.dom.appendContent(e,u),s.handleDrawerResizing(this.playerId,e)}}]),v}();exports.default=p;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var e=require("@babel/runtime/helpers/classCallCheck"),t=require("@babel/runtime/helpers/createClass"),n=require("@babel/runtime/helpers/inherits"),o=require("@babel/runtime/helpers/possibleConstructorReturn"),i=require("@babel/runtime/helpers/getPrototypeOf"),l=require("video.js"),a=require("./icons-0ea2e662.js"),r=require("./generic-2a47022b.js"),d=require("./skin-16742114.js"),s=require("./autoNextVideo-7754b90c.js"),c=require("./localisation-56e0a999.js");function u(e){var t=m();return function(){var n,l=i(e);if(t){var a=i(this).constructor;n=Reflect.construct(l,arguments,a)}else n=l.apply(this,arguments);return o(this,n)}}function m(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(m=function(){return!!e})()}require("@babel/runtime/helpers/defineProperty"),require("@babel/runtime/helpers/asyncToGenerator"),require("@babel/runtime/regenerator"),require("axios"),require("./browser-77c57718.js"),require("js-cookie"),require("ua-parser-js"),require("./captions-b9061920.js"),require("@babel/runtime/helpers/toConsumableArray"),require("./util-279f489b.js");var v=l.getComponent("Component"),p=function(o){n(m,v);var i=u(m);function m(t){var n,o,l,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e(this,m),(l=i.call(this,t,a)).playerId=a.playerId,l.seriesData=a.sres,l.videos=a.related.content,l.cb=(null==a||null===(n=a.related)||void 0===n?void 0:n.cb)||null,l.autoNext=(null==a||null===(o=a.related)||void 0===o?void 0:o.autoNext)||!1,l.currentVideoData=a.res,l.initialiseStructure(),l.loadCSS(),l.autoNext&&(r.setVideoIdx(0),s.autoPlayNext({playerId:l.playerId,content:l.videos,cb:l.cb})),l}return t(m,[{key:"createEl",value:function(){var e=l.dom.createEl("div",{className:"video-selection vjs-control vjs-button"});e.style.position="unset";var t=l.dom.createEl("button",{className:"video-selector-icon",title:"video selector",innerHTML:"".concat(a.PlaylistIcon())});return l.dom.appendContent(e,t),e}},{key:"loadCSS",value:function(){Promise.resolve().then((function(){return require("./videoSelector-b6e03076.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(),n=l.dom.createEl("div",{className:"video-selection-container hidden"});l.dom.$(".video-selector-icon",this.el()).onclick=function(){var o;e.handleTabIndexSelector(),null!==(o=n.classList)&&void 0!==o&&o.contains("hidden")?(d.closeOpenDrawers(),n.classList.remove("hidden"),t.classList.add("open"),d.setUpdatedElHeight(e.playerId,n)):(n.classList.add("hidden"),t.classList.remove("open"))};var o=document.getElementById(this.playerId);if(o){var i=window.getComputedStyle(o,null).getPropertyValue("height");n.style.height="".concat(i),l.dom.appendContent(t,n),o.style.overflow="hidden",this.addFunctionality(n),d.detectOrientationChange(this.playerId,n)}}},{key:"loadVideoAssetById",value:function(e){var t=this;r.setVideoIdx(e+1);for(var n=l.dom.$$(".recommended"),o=0;o<n.length;o++)n[o].style.border="none";d.highlightVideo(e),r.load(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,n;null!==(e=document.getElementsByClassName("video-selector-cross-icon"))&&void 0!==e&&e[0]&&(document.getElementsByClassName("video-selector-cross-icon")[0].tabIndex=0);for(var o=document.getElementsByClassName("video-accessibility"),i=(null==o||null===(t=o[0])||void 0===t||null===(n=t.children)||void 0===n?void 0:n.length)||0,l=0;l<i;l++)document.getElementsByClassName("recommended -".concat(l))[0]&&(document.getElementsByClassName("recommended -".concat(l))[0].tabIndex=0)}},{key:"handleCloseTabIndex",value:function(){var e,t,n;null!==(e=document.getElementsByClassName("video-selector-cross-icon"))&&void 0!==e&&e[0]&&(document.getElementsByClassName("video-selector-cross-icon")[0].tabIndex=-1);for(var o=document.getElementsByClassName("video-accessibility"),i=(null==o||null===(t=o[0])||void 0===t||null===(n=t.children)||void 0===n?void 0:n.length)||0,l=0;l<i;l++)document.getElementsByClassName("recommended -".concat(l))&&(document.getElementsByClassName("recommended -".concat(l))[0].tabIndex=-1)}},{key:"addFunctionality",value:function(e){var t=this,n=this.el(),o=l.dom.createEl("div",{className:"video-selector-head"}),i=l.dom.createEl("div",{className:"video-selector-cross-icon",ariaLabel:"close video selector",tabIndex:-1,innerHTML:"".concat(a.crossIconSvg())});i.onkeydown=function(o){"Enter"===o.key&&(e.classList.add("hidden"),n.classList.remove("open"),t.handleCloseTabIndex())},i.onclick=function(){e.classList.add("hidden"),n.classList.remove("open"),t.handleCloseTabIndex()};for(var r=l.dom.createEl("div",{className:"video-selector-title",innerHTML:c.getLocalisation("relatedVideoTitle")||"Recommended"}),s=l.dom.createEl("div",{className:"video-selector-content",tabIndex:-1}),u=l.dom.createEl("div",{className:"video-container video-accessibility"}),m=function(e){var n,o,i,a,r,c,m,v,p=l.dom.createEl("div",{className:"video -".concat(e)}),h=l.dom.createEl("div",{className:"recommended -".concat(e),ariaLabel:"".concat(t.videos[e].title),type:"button",tabIndex:-1});h.setAttribute("video-idx",e),h.onkeydown=function(n){"Enter"===n.key&&t.loadVideoAssetById(e)},h.onclick=function(){t.loadVideoAssetById(e)};var y=document.createElement("img");y.className="related-thumbnail-image",y.src="".concat(d.impolicy16x9(null==t||null===(n=t.videos)||void 0===n||null===(o=n[e])||void 0===o?void 0:o.img)||d.impolicy16x9(null===(i=window)||void 0===i||null===(a=i.app_data)||void 0===a||null===(r=a.appcmsMain)||void 0===r||null===(c=r.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(" "))||""),h.append(y);var b=l.dom.createEl("div",{className:"info -".concat(e),innerHTML:"".concat((null==t||null===(v=t.videos[e])||void 0===v?void 0:v.title)||"")});l.dom.appendContent(p,h),l.dom.appendContent(p,b),l.dom.appendContent(u,p),l.dom.appendContent(s,u)},v=0;v<this.videos.length;v++)m(v);l.dom.appendContent(o,r),l.dom.appendContent(o,i),l.dom.appendContent(e,o),l.dom.appendContent(e,s),d.handleDrawerResizing(this.playerId,e)}}]),m}();exports.default=p;
|