@viewlift/player-backup 2.0.252-backup → 2.0.254-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-1c6abafe.js +1 -0
- package/cjs/autoNextVideo-7423bae2.js +1 -0
- package/cjs/autoNextVideo-7c491841.js +1 -0
- package/cjs/autoNextVideo-cb31894f.js +1 -0
- package/cjs/browser-77c57718.js +1 -0
- package/cjs/bundle.css +409 -409
- package/cjs/caption-settings-25cabfc0.js +1 -0
- package/cjs/caption-settings-be714e97.js +1 -0
- package/cjs/captions-07bd3069.js +1 -0
- package/cjs/captions-68e263dd.js +1 -0
- package/cjs/currentVideoInfo-5802821b.js +1 -0
- package/cjs/features-258a9a64.js +1 -0
- package/cjs/features-25da73a6.js +1 -0
- package/cjs/features-93cd6de4.js +1 -0
- package/cjs/features-b6127bee.js +1 -0
- package/cjs/generic-29d5b2ec.js +1 -0
- package/cjs/generic-743174bb.js +1 -0
- package/cjs/generic-939a3e97.js +1 -0
- package/cjs/generic-f723dacd.js +1 -0
- package/cjs/helper-dbf2fb22.js +1 -0
- package/cjs/icons-1a3febef.js +1 -0
- package/cjs/index-04b27b15.js +1 -0
- package/cjs/index-2b05c277.js +1 -0
- package/cjs/index-4e9d8827.js +1 -0
- package/cjs/index-5b18b394.js +1 -0
- package/cjs/index-64db4d74.js +1 -0
- package/cjs/index-67e8cb8e.js +1 -0
- package/cjs/index-73a1b75f.js +1 -0
- package/cjs/index-7ae433c7.js +1 -0
- package/cjs/index-8047cfe4.js +1 -0
- package/cjs/index-84cce26a.js +1 -0
- package/cjs/index-99c100ab.js +1 -0
- package/cjs/index-afff893e.js +1 -0
- package/cjs/index-c51fccda.js +1 -0
- package/cjs/index-e4393a77.js +1 -0
- package/cjs/index-ff85bd1e.js +1 -0
- package/cjs/index.js +1 -1
- package/cjs/multicamv2-138af789.js +1 -0
- package/cjs/multicamv2-3f9ffd46.js +1 -0
- package/cjs/multicamv2-49af2bae.js +1 -0
- package/cjs/multicamv2-4a67a1c7.js +1 -0
- package/cjs/multicamv2-574b49ad.js +1 -0
- package/cjs/multicamv2-6006b5a5.js +1 -0
- package/cjs/multicamv2-92e2b919.js +1 -0
- package/cjs/multicamv2-ee975960.js +1 -0
- package/cjs/nextEpisodeButton-05a96016.js +1 -0
- package/cjs/nextEpisodeButton-10a8c935.js +1 -0
- package/cjs/nextEpisodeButton-2ba4aa6f.js +1 -0
- package/cjs/nextEpisodeButton-6aebdc8a.js +1 -0
- package/cjs/playlist-2889487d.js +1 -0
- package/cjs/playlist-9710ef70.js +1 -0
- package/cjs/playlist-a6c55be5.js +1 -0
- package/cjs/playlist-d6f8e3b6.js +1 -0
- package/cjs/renditions-fed22c12.js +1 -0
- package/cjs/resolution-9c4872ec.js +1 -0
- package/cjs/resolution-e46c9615.js +1 -0
- package/cjs/resolution-v2-50cbd77b.js +1 -0
- package/cjs/series-4b9888dd.js +1 -0
- package/cjs/series-602d1f2c.js +1 -0
- package/cjs/series-ab2fb794.js +1 -0
- package/cjs/series-c3138dfb.js +1 -0
- package/cjs/series-v2-04bb2f24.js +1 -0
- package/cjs/series-v2-0fe2e1c3.js +1 -0
- package/cjs/series-v2-3578532c.js +1 -0
- package/cjs/series-v2-68886cd2.js +1 -0
- package/cjs/series-v2-693bc5cc.js +1 -0
- package/cjs/series-v2-719c957a.js +1 -0
- package/cjs/series-v2-8694c212.js +1 -0
- package/cjs/series-v2-b7f70c84.js +1 -0
- package/cjs/series-v2-f67606dc.js +1 -0
- package/cjs/settings-icon-70f8857a.js +1 -0
- package/cjs/settings-icon-a419af57.js +1 -0
- package/cjs/skin-02df14d4.js +1 -0
- package/cjs/skin-08a270c1.js +1 -0
- package/cjs/skin-14f83052.js +1 -0
- package/cjs/skin-25191a17.js +1 -0
- package/cjs/skin-29a5361a.js +1 -0
- package/cjs/skin-31d84d3e.js +1 -0
- package/cjs/skin-334830ee.js +1 -0
- package/cjs/skin-3544db58.js +1 -0
- package/cjs/skin-3d6f28e9.js +1 -0
- package/cjs/skin-42117529.js +1 -0
- package/cjs/{skin-c525c48f.js → skin-46d92899.js} +1 -1
- package/cjs/skin-5493ce5f.js +1 -0
- package/cjs/skin-56e72a1b.js +1 -0
- package/cjs/skin-5e4b3ad1.js +1 -0
- package/cjs/skin-6e922e32.js +1 -0
- package/cjs/skin-7e40bdaa.js +1 -0
- package/cjs/skin-84cac674.js +1 -0
- package/cjs/skin-861125f0.js +1 -0
- package/cjs/skin-87c06e34.js +1 -0
- package/cjs/skin-98b66c5d.js +1 -0
- package/cjs/skin-9bfe9316.js +1 -0
- package/cjs/skin-9d420b99.js +1 -0
- package/cjs/skin-ab226d57.js +1 -0
- package/cjs/skin-ae3ca001.js +1 -0
- package/cjs/skin-ae526505.js +1 -0
- package/cjs/skin-af838b06.js +1 -0
- package/cjs/skin-bf73e43b.js +1 -0
- package/cjs/skin-c1400489.js +1 -0
- package/cjs/skin-c2d7c6d3.js +1 -0
- package/cjs/skin-cea29f97.js +1 -0
- package/cjs/skin-cf53c6f8.js +1 -0
- package/cjs/skin-cfa023f1.js +1 -0
- package/cjs/skin-d5a8b61b.js +1 -0
- package/cjs/skin-dbeec98f.js +1 -0
- package/cjs/skin-df2070f9.js +1 -0
- package/cjs/skin-eac05283.js +1 -0
- package/cjs/skin-eeec7a85.js +1 -0
- package/cjs/skin-f55aefe8.js +1 -0
- package/cjs/start-begin-btn-5adfa5b7.js +1 -0
- package/cjs/util-233dec09.js +1 -0
- package/cjs/util-4769ed5b.js +1 -0
- package/cjs/util-ef2cd61e.js +1 -0
- package/cjs/util-fbe3d806.js +1 -0
- package/cjs/videoSelector-29fbaa66.js +1 -0
- package/cjs/videoSelector-2d51c4d2.js +1 -0
- package/cjs/videoSelector-9b5a4625.js +1 -0
- package/cjs/videoSelector-9d841083.js +1 -0
- package/cjs/videoSelector-a122278c.js +1 -0
- package/cjs/videoSelector-dcbb1d54.js +1 -0
- package/cjs/videoSelector-eddf015c.js +1 -0
- package/cjs/videoSelector-f17b0749.js +1 -0
- package/cjs/videojs-dash5.es-75637b78.js +1 -0
- package/cjs/videojs-dash5.es-8bc4e9b4.js +1 -0
- package/cjs/videojs-dash5.es-f9629f7f.js +1 -0
- package/cjs/videojs_contrib_dash-018c8bde.js +1 -0
- package/cjs/watch-live-btn-1c5d2e69.js +1 -0
- package/esm/autoNextVideo-15f76d85.js +1 -0
- package/esm/autoNextVideo-281e802c.js +1 -0
- package/esm/autoNextVideo-d682e36c.js +1 -0
- package/esm/autoNextVideo-f6a502c9.js +1 -0
- package/esm/browser-d4613b36.js +1 -0
- package/esm/bundle.css +409 -409
- package/esm/caption-settings-370d8b1e.js +1 -0
- package/esm/caption-settings-3a5e2e2d.js +1 -0
- package/esm/{captions-f507e8ee.js → captions-78bd2908.js} +1 -1
- package/esm/captions-b7fd8308.js +1 -0
- package/esm/components/timer/index.d.ts +4 -0
- package/esm/{currentVideoInfo-a8a254c2.js → currentVideoInfo-0b234e55.js} +1 -1
- package/esm/features-20d7893f.js +1 -0
- package/esm/features-ab6f492e.js +1 -0
- package/esm/features-c3e53ffd.js +1 -0
- package/esm/features-d7440f39.js +1 -0
- package/esm/generic-1697c09f.js +1 -0
- package/esm/generic-205dfe5c.js +1 -0
- package/esm/generic-2f9efcf1.js +1 -0
- package/esm/generic-715a7738.js +1 -0
- package/esm/helper-d52dff3c.js +1 -0
- package/esm/icons-3bd3bd8f.js +1 -0
- package/esm/index-13b7c455.js +1 -0
- package/esm/index-1d1f438d.js +1 -0
- package/esm/index-2ab55f4b.js +1 -0
- package/esm/index-403dd12e.js +1 -0
- package/esm/index-5d92eaa3.js +1 -0
- package/esm/index-7304e60f.js +1 -0
- package/esm/index-a3bbcba7.js +1 -0
- package/esm/index-a7fcd7f8.js +1 -0
- package/esm/index-b507b376.js +1 -0
- package/esm/index-c880c052.js +1 -0
- package/esm/index-cf927b34.js +1 -0
- package/esm/index-d42cceca.js +1 -0
- package/esm/index-e1345c4e.js +1 -0
- package/esm/index-e796a94f.js +1 -0
- package/esm/index-ebda7269.js +1 -0
- package/esm/index.js +1 -1
- package/esm/multicamv2-051519e5.js +1 -0
- package/esm/multicamv2-1297de0f.js +1 -0
- package/esm/multicamv2-9166cf23.js +1 -0
- package/esm/multicamv2-a8db4d7f.js +1 -0
- package/esm/multicamv2-c6e6cb68.js +1 -0
- package/esm/multicamv2-e247f9b6.js +1 -0
- package/esm/multicamv2-e85ff8d3.js +1 -0
- package/esm/multicamv2-f8c068cb.js +1 -0
- package/esm/nextEpisodeButton-2a75ce5c.js +1 -0
- package/esm/nextEpisodeButton-a6ef9e2a.js +1 -0
- package/esm/nextEpisodeButton-b348d4b4.js +1 -0
- package/esm/nextEpisodeButton-e79ba9ea.js +1 -0
- package/esm/playlist-0c95a577.js +1 -0
- package/esm/playlist-3b568899.js +1 -0
- package/esm/playlist-78ea48cc.js +1 -0
- package/esm/playlist-b9595b14.js +1 -0
- package/esm/renditions-4c09c626.js +1 -0
- package/esm/resolution-62be852a.js +1 -0
- package/esm/resolution-920515d1.js +1 -0
- package/esm/resolution-v2-6446fe47.js +1 -0
- package/esm/series-090e7c85.js +1 -0
- package/esm/series-9dcc32b9.js +1 -0
- package/esm/series-c0b5c787.js +1 -0
- package/esm/series-c73c97f1.js +1 -0
- package/esm/series-v2-10742435.js +1 -0
- package/esm/series-v2-1263db01.js +1 -0
- package/esm/series-v2-52212b58.js +1 -0
- package/esm/series-v2-647dcbf9.js +1 -0
- package/esm/series-v2-81f04cd5.js +1 -0
- package/esm/series-v2-8a8b6f0c.js +1 -0
- package/esm/series-v2-8e5ff7c1.js +1 -0
- package/esm/series-v2-a8491399.js +1 -0
- package/esm/series-v2-b5cece98.js +1 -0
- package/esm/settings-icon-7d9e5221.js +1 -0
- package/esm/settings-icon-a98e5d8b.js +1 -0
- package/esm/skin-017721f3.js +1 -0
- package/esm/skin-01da91f0.js +1 -0
- package/esm/skin-032174d9.js +1 -0
- package/esm/skin-066d481a.js +1 -0
- package/esm/skin-0ca780ee.js +1 -0
- package/esm/skin-0f0bb3f9.js +1 -0
- package/esm/skin-130e5b01.js +1 -0
- package/esm/skin-1a12c6ed.js +1 -0
- package/esm/skin-258904b8.js +1 -0
- package/esm/skin-2f85dae8.js +1 -0
- package/esm/skin-35e4ade3.js +1 -0
- package/esm/skin-3628bdf0.js +1 -0
- package/esm/skin-3e6fd83b.js +1 -0
- package/esm/skin-4ad0fccc.js +1 -0
- package/esm/skin-4cc51263.js +1 -0
- package/esm/skin-508bd0e2.js +1 -0
- package/esm/skin-58b9263c.js +1 -0
- package/esm/skin-5ca6263c.js +1 -0
- package/esm/skin-65765793.js +1 -0
- package/esm/skin-74d07b0b.js +1 -0
- package/esm/skin-76430de3.js +1 -0
- package/esm/skin-7c5ac76d.js +1 -0
- package/esm/skin-b3e77849.js +1 -0
- package/esm/skin-b8e87cdb.js +1 -0
- package/esm/skin-bff9e3fe.js +1 -0
- package/esm/skin-c05be60d.js +1 -0
- package/esm/skin-c4422587.js +1 -0
- package/esm/skin-c906e1c0.js +1 -0
- package/esm/skin-cb4566f3.js +1 -0
- package/esm/skin-cc9878af.js +1 -0
- package/esm/skin-d555b116.js +1 -0
- package/esm/skin-d8ab9efc.js +1 -0
- package/esm/skin-d93bcc9b.js +1 -0
- package/esm/skin-ddd25096.js +1 -0
- package/esm/skin-e4b35c14.js +1 -0
- package/esm/skin-e8919754.js +1 -0
- package/esm/skin-e9914c42.js +1 -0
- package/esm/skin-f5b2d1cc.js +1 -0
- package/esm/start-begin-btn-16534825.js +1 -0
- package/esm/util-5b3b1f9c.js +1 -0
- package/esm/util-80257541.js +1 -0
- package/esm/util-90b9fbc3.js +1 -0
- package/esm/util-b1ec6897.js +1 -0
- package/esm/videoSelector-0c6d2d43.js +1 -0
- package/esm/videoSelector-1cf43fc8.js +1 -0
- package/esm/videoSelector-3c635dc2.js +1 -0
- package/esm/videoSelector-9d611c93.js +1 -0
- package/esm/videoSelector-b8f21092.js +1 -0
- package/esm/videoSelector-c8e01367.js +1 -0
- package/esm/videoSelector-c94910d2.js +1 -0
- package/esm/videoSelector-cf7538bf.js +1 -0
- package/esm/videojs-dash5.es-1a1bf509.js +1 -0
- package/esm/videojs-dash5.es-600b6231.js +1 -0
- package/esm/videojs-dash5.es-bc6f319d.js +1 -0
- package/esm/videojs_contrib_dash-f7d94714.js +1 -0
- package/esm/watch-live-btn-ddcfab89.js +1 -0
- package/package.json +1 -1
- package/cjs/autoNextVideo-e4adc156.js +0 -1
- package/cjs/caption-settings-d1eb3bf6.js +0 -1
- package/cjs/captions-dbc83a75.js +0 -1
- package/cjs/currentVideoInfo-31d70bec.js +0 -1
- package/cjs/features-6e4cf93b.js +0 -1
- package/cjs/generic-7026ef31.js +0 -1
- package/cjs/helper-a50a8ffc.js +0 -1
- package/cjs/index-3f0e537b.js +0 -1
- package/cjs/index-4653a6ca.js +0 -1
- package/cjs/index-4905764c.js +0 -1
- package/cjs/index-8e1c4185.js +0 -1
- package/cjs/index-a7442a3b.js +0 -1
- package/cjs/multicamv2-c83f4b9f.js +0 -1
- package/cjs/multicamv2-ec27500f.js +0 -1
- package/cjs/nextEpisodeButton-c621aa1b.js +0 -1
- package/cjs/playlist-7846eb86.js +0 -1
- package/cjs/resolution-f9dcc1b4.js +0 -1
- package/cjs/resolution-v2-e42e0101.js +0 -1
- package/cjs/series-202f2eab.js +0 -1
- package/cjs/series-v2-aef26843.js +0 -1
- package/cjs/series-v2-e7f46b04.js +0 -1
- package/cjs/settings-icon-b43f4406.js +0 -1
- package/cjs/skin-2326bfb1.js +0 -1
- package/cjs/skin-49cea9b7.js +0 -1
- package/cjs/skin-4b963b72.js +0 -1
- package/cjs/skin-aad52bd4.js +0 -1
- package/cjs/skin-b5d9c65a.js +0 -1
- package/cjs/skin-b70088c4.js +0 -1
- package/cjs/skin-c30da8bf.js +0 -1
- package/cjs/skin-def63fb8.js +0 -1
- package/cjs/skin-f5e18b89.js +0 -1
- package/cjs/start-begin-btn-5739a6c0.js +0 -1
- package/cjs/util-323afdf6.js +0 -1
- package/cjs/videoSelector-286531f3.js +0 -1
- package/cjs/videoSelector-b3a3f24a.js +0 -1
- package/cjs/videojs-dash5.es-78624126.js +0 -1
- package/cjs/watch-live-btn-822534d1.js +0 -1
- package/esm/autoNextVideo-e2bb7e7c.js +0 -1
- package/esm/caption-settings-6001af40.js +0 -1
- package/esm/features-d84afa38.js +0 -1
- package/esm/generic-e669e2d3.js +0 -1
- package/esm/helper-349e076f.js +0 -1
- package/esm/index-4cc8ac6f.js +0 -1
- package/esm/index-6cc0c1b0.js +0 -1
- package/esm/index-8e3eab6d.js +0 -1
- package/esm/index-c8fcf6b4.js +0 -1
- package/esm/index-ee30bfbe.js +0 -1
- package/esm/multicamv2-a0d92b0f.js +0 -1
- package/esm/multicamv2-b06fd2f1.js +0 -1
- package/esm/nextEpisodeButton-f7e68a5b.js +0 -1
- package/esm/playlist-5978780d.js +0 -1
- package/esm/resolution-1c59b0f3.js +0 -1
- package/esm/resolution-v2-705ae275.js +0 -1
- package/esm/series-12e3a09d.js +0 -1
- package/esm/series-v2-4191c526.js +0 -1
- package/esm/series-v2-a7da3285.js +0 -1
- package/esm/settings-icon-1e7b0951.js +0 -1
- package/esm/skin-1fa06f54.js +0 -1
- package/esm/skin-284d2d27.js +0 -1
- package/esm/skin-3dcba1b2.js +0 -1
- package/esm/skin-457f335d.js +0 -1
- package/esm/skin-63746166.js +0 -1
- package/esm/skin-760c1b65.js +0 -1
- package/esm/skin-8ff8466f.js +0 -1
- package/esm/skin-ddc5a4a1.js +0 -1
- package/esm/skin-fa82d95b.js +0 -1
- package/esm/skin-ff6b9d26.js +0 -1
- package/esm/start-begin-btn-1e096fec.js +0 -1
- package/esm/util-ad9e7ccd.js +0 -1
- package/esm/videoSelector-a68c4b41.js +0 -1
- package/esm/videoSelector-cfed60ea.js +0 -1
- package/esm/videojs-dash5.es-defc33ab.js +0 -1
- package/esm/watch-live-btn-5419f3a7.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var e=require("./features-25da73a6.js"),l=require("./player_instance-fcf6a8fb.js"),i=require("./index-67e8cb8e.js"),r=require("./index-2b05c277.js"),n=require("./generic-29d5b2ec.js");require("videojs-contrib-quality-menu");var o=require("./index-99c100ab.js"),t=require("./helper-dbf2fb22.js"),u=require("./currentVideoInfo-5802821b.js"),a=require("video.js"),d=require("./icons-2609dbe4.js");require("@babel/runtime/helpers/defineProperty"),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("./resolution-9c4872ec.js"),require("@babel/runtime/helpers/toConsumableArray"),require("@babel/runtime/helpers/assertThisInitialized"),require("./skin-eeec7a85.js"),require("./localisation-56e0a999.js"),require("./autoNextVideo-7423bae2.js"),require("./util-fbe3d806.js"),require("@babel/runtime/helpers/typeof"),require("@babel/runtime/helpers/asyncToGenerator"),require("@babel/runtime/regenerator"),require("@babel/runtime/helpers/slicedToArray"),require("axios"),require("md5"),require("js-cookie"),require("./captions-68e263dd.js"),require("@viewlift/comscore/index.js"),require("video.js/dist/video-js.min.css"),require("@viewlift/sse");function s(a,d){var s=l.getPlayer(a);s&&(s.on("loadeddata",function(){var e,v,c,p,m,g=t.checkDvrStartOverEnabled(d),b=u.getCurrentEpgPrograms();s.qualityLevels()&&s.qualityLevels().length&&function(e){var i=l.getPlayer(e);i&&(null==i||i.qualityMenu,i.qualityMenu({useResolutionLabels:!0}))}(a),!(null!=d&&null!==(e=d.series)&&void 0!==e&&e.enable||null!==(v=window)&&void 0!==v&&null!==(c=v.app_data)&&void 0!==c&&null!==(p=c.appcmsMain)&&void 0!==p&&null!==(m=p.features)&&void 0!==m&&m.auto_play)||null!=d&&d.liveVideo||i.addNextEpPreview(a,d),null!=d&&d.liveVideo||n.isMobile()||"b13633d9-f778-40c6-a5ea-c330617cdf55"===siteId||"cea398b9-09ab-4331-958f-8c3d6a356b88"===siteId||r.initiateTrickplay(a),g&&b&&b.length?o.initiateMarker(a):o.removeMarkers()}),s.one("play",function(){var l,i,r,n;null!==(l=window)&&void 0!==l&&null!==(i=l.customData)&&void 0!==i&&i.iframeOverlayUrl&&e.addOutputtingOverlay(a,null===(r=window)||void 0===r||null===(n=r.customData)||void 0===n?void 0:n.iframeOverlayUrl)}))}var v=function(e,i){var r,n,o,t,u,d,s,v,c,p,m,g,b=l.getPlayer(e),h=(null==i?void 0:i.theme)||{},y=a.dom.$(".vjs-play-progress"),q=a.dom.$(".video-js .vjs-big-play-button .vjs-icon-placeholder");q&&(q.style.color="".concat(null===(r=window)||void 0===r||null===(n=r.app_data)||void 0===n||null===(o=n.appcmsMain)||void 0===o||null===(t=o.brand)||void 0===t||null===(u=t.cta)||void 0===u||null===(d=u.primary)||void 0===d?void 0:d.backgroundColor)),y&&(y.style.background="".concat(null===(s=window)||void 0===s||null===(v=s.app_data)||void 0===v||null===(c=v.appcmsMain)||void 0===c||null===(p=c.brand)||void 0===p||null===(m=p.cta)||void 0===m||null===(g=m.primary)||void 0===g?void 0:g.backgroundColor));var f=b.getChild("BigPlayButton")||null;(null==h?void 0:h.progressBarColor)&&y&&(y.style.background=h.progressBarColor),(null==h?void 0:h.playButtonBackgroundColor)&&f&&(f.el().style.background=h.playButtonBackgroundColor),(null==h?void 0:h.playButtonColor)&&q&&(q.style.color=h.playButtonColor),(null==h?void 0:h.playButtonType)&&("square"==(null==h?void 0:h.playButtonType)?f.el().style.borderRadius=".3em":f.el().style.borderRadius="1.3em")};exports.initialiseSkin=function(r,o){l.getPlayer(r).addClass("skin_vlone"),s(r,o),function(r,o){var a,s,v,c,p,m,g,b,h,y=l.getPlayer(r),q=(null==o?void 0:o.liveVideo)||!1,f=(null==o||null===(a=o.res)||void 0===a?void 0:a.contentType)||"video",j=(null==o||null===(s=o.res)||void 0===s||null===(v=s[f])||void 0===v?void 0:v.isSSAIEnabled)||!1,k=n.getSource(null==o?void 0:o.res,r)||{};k.src;var w=(null==o?void 0:o.skin_settings)||{},C=(null==o||null===(c=o.customData)||void 0===c?void 0:c.ads)||{};if(t.checkDvrStartOverEnabled(o),q&&!(null!=o&&o.liveui)){var B,S,T=(null==y||null===(B=y.controlBar)||void 0===B||null===(S=B.getChild("LiveDisplay"))||void 0===S?void 0:S.el())||null;T&&(T.onclick=function(){try{var e;null==y||null===(e=y.liveTracker)||void 0===e||e.seekToLiveEdge()}catch(e){console.log(e,"Cannot seek to LE")}})}null!=w&&w.skipBtn&&0==(null==o?void 0:o.liveVideo)&&0==(null==o?void 0:o.liveui)&&e.addSkipButton(r,"VL_ONE",d.SkipSvgV2());(null!=w&&w.rewindBtn&&0==(null==o?void 0:o.liveVideo)&&0==(null==o?void 0:o.liveui)||1==(null==o?void 0:o.liveui))&&e.addRewindButton(r,"VL_ONE",d.RewindSvgV2());(null==o||null===(p=o.relatedVideos)||void 0===p||null===(m=p.content)||void 0===m?void 0:m.length)>0&&e.addVideoSelector(r,null==o?void 0:o.relatedVideos);null!=o&&null!==(g=o.series)&&void 0!==g&&g.enable&&e.addSeriesSelectorV2(r,o);(null==o||null===(b=o.streams)||void 0===b?void 0:b.length)>1&&e.addMulticamSelector(r,null==o?void 0:o.streams);if(i.addTVProviderImage(r,o),n.initialiseKeyboardEvents(r,o),"MEDIA_TAILOR"==(null==C?void 0:C.vodAdSticherProvider)&&null!=C&&C.vodAdClientSideTracking&&j)if(q)n.setupAdvertisementMarkersForLinear(r);else{var L,M=null;if(null!=o&&null!==(L=o.series)&&void 0!==L&&L.enable){var V,E,P,x,A,D=null===(V=u.getCurrentVideo())||void 0===V||null===(E=V.video)||void 0===E||null===(P=E.gist)||void 0===P?void 0:P.id,O=u.getSeriesWatchMap(),_=(null==O?void 0:O.get(D))||{t:0,p:0},I=_.t,R=_.p;"function"==typeof(null===(x=window)||void 0===x||null===(A=x.watchHistory)||void 0===A?void 0:A.cb)&&window.watchHistory.cb({watchedTime:I}),R<95&&(M=I)}else{var N=o.watchHistoryResumeTime;o.watchedPercentage<95&&(M=N)}n.setupAdvertisementMarkers(r,M)}null!=o&&o.isDvrEnabled&&null!=o&&null!==(h=o.dvrConfig)&&void 0!==h&&h.enable&&(e.addStartFromBeginningButton(r,o),e.addWatchLiveButton(r,o))}(r,o),v(r,o),function(e){var i,r,n,o=l.getPlayer(e),t=null;if(!o)return;var u=o.controlBar.getChild("VolumePanel"),a=null===(i=u.getChild("MuteToggle"))||void 0===i?void 0:i.el(),d=null==u||null===(r=u.el())||void 0===r?void 0:r.querySelector(".vjs-volume-bar"),s=null==u||null===(n=u.el())||void 0===n?void 0:n.querySelector(".vjs-volume-level");if(!u||!d||!s)return;function v(e){e.preventDefault(),t&&(clearTimeout(t),t=null),p(m(e.touches[0]))}function c(e){e.preventDefault(),p(m(e.changedTouches[0])),t=setTimeout(function(){u.el().classList.remove("vjs-hover")},2e3)}function p(e){var l=Math.min(Math.max(e,0),100);s.style.height=l+"%",d.setAttribute("aria-valuenow",l),d.setAttribute("aria-valuetext",l+"%"),o.volume(l/100)}function m(e){var l=d.getBoundingClientRect(),i=e.clientY-l.top,r=l.height;return 100-Math.min(Math.max(i/r*100,0),100)}a.addEventListener("touchend",function(){null!=u&&u.el()&&(u.el().classList.toggle("vjs-hover"),o.muted(!1),t&&(clearTimeout(t),t=null),t=setTimeout(function(){u.el().classList.remove("vjs-hover")},2e3))}),d.addEventListener("touchmove",v,{passive:!1}),d.addEventListener("touchstart",v,{passive:!1}),d.addEventListener("touchend",c,{passive:!1})}(r)};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var e=require("./features-93cd6de4.js"),l=require("./skin-3544db58.js"),r=require("./index-ff85bd1e.js"),i=require("./browser-77c57718.js");require("videojs-contrib-quality-menu");var o=require("video.js"),n=require("./index-4e9d8827.js"),a=require("./generic-f723dacd.js");require("@babel/runtime/helpers/defineProperty"),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("./renditions-fed22c12.js"),require("./localisation-56e0a999.js"),require("@babel/runtime/helpers/toConsumableArray"),require("./autoNextVideo-7c491841.js"),require("./util-ef2cd61e.js"),require("@babel/runtime/helpers/typeof"),require("@babel/runtime/helpers/asyncToGenerator"),require("@babel/runtime/regenerator"),require("@babel/runtime/helpers/slicedToArray"),require("video.js/dist/video-js.min.css"),require("./captions-07bd3069.js"),require("./resolution-e46c9615.js"),require("@babel/runtime/helpers/assertThisInitialized"),require("./icons-1a3febef.js"),require("axios"),require("js-cookie"),require("ua-parser-js");function u(o,n){var a=l.getPlayer(o);a&&(a.on("loadeddata",function(){var e,a,u,d,t;!function(e){var r=l.getPlayer(e);r&&(null==r||r.qualityMenu,r.qualityMenu({useResolutionLabels:!0}))}(o),!(null!=n&&null!==(e=n.series)&&void 0!==e&&e.enable||null!==(a=window)&&void 0!==a&&null!==(u=a.app_data)&&void 0!==u&&null!==(d=u.appcmsMain)&&void 0!==d&&null!==(t=d.features)&&void 0!==t&&t.auto_play)||null!=n&&n.liveVideo||r.addNextEpPreview(o,n),null!=n&&n.liveVideo||i.isMobile()||r.initiateTrickplay(o)}),a.one("play",function(){var l,r,i,n;null!==(l=window)&&void 0!==l&&null!==(r=l.customData)&&void 0!==r&&r.iframeOverlayUrl&&e.addOutputtingOverlay(o,null===(i=window)||void 0===i||null===(n=i.customData)||void 0===n?void 0:n.iframeOverlayUrl)}))}var d=function(e,r){var i,n,a,u,d,t,s,v,p,c,b,y,m=l.getPlayer(e),q=(null==r?void 0:r.theme)||{},g=o.dom.$(".vjs-play-progress"),j=o.dom.$(".video-js .vjs-big-play-button .vjs-icon-placeholder");j&&(j.style.color="".concat(null===(i=window)||void 0===i||null===(n=i.app_data)||void 0===n||null===(a=n.appcmsMain)||void 0===a||null===(u=a.brand)||void 0===u||null===(d=u.cta)||void 0===d||null===(t=d.primary)||void 0===t?void 0:t.backgroundColor)),g&&(g.style.background="".concat(null===(s=window)||void 0===s||null===(v=s.app_data)||void 0===v||null===(p=v.appcmsMain)||void 0===p||null===(c=p.brand)||void 0===c||null===(b=c.cta)||void 0===b||null===(y=b.primary)||void 0===y?void 0:y.backgroundColor));var h=m.getChild("BigPlayButton")||null;(null==q?void 0:q.progressBarColor)&&g&&(g.style.background=q.progressBarColor),(null==q?void 0:q.playButtonBackgroundColor)&&h&&(h.el().style.background=q.playButtonBackgroundColor),(null==q?void 0:q.playButtonColor)&&j&&(j.style.color=q.playButtonColor),(null==q?void 0:q.playButtonType)&&("square"==(null==q?void 0:q.playButtonType)?h.el().style.borderRadius=".3em":h.el().style.borderRadius="1.3em")};exports.initialiseSkin=function(i,o){l.getPlayer(i).addClass("skin_vlone"),u(i,o),function(l,i){var o,u,d,t,s,v,p,c,b,y,m,q,g=a.getSource(null==i?void 0:i.res,l)||{},j=g.src;(null==i||null===(o=i.relatedVideos)||void 0===o||null===(u=o.content)||void 0===u?void 0:u.length)>0&&e.addVideoSelector(l,null==i?void 0:i.relatedVideos);null!=i&&null!==(d=i.series)&&void 0!==d&&d.enable&&e.addSeriesSelectorV2(l,i);(null==i||null===(t=i.streams)||void 0===t?void 0:t.length)>1&&e.addMulticamSelector(l,null==i?void 0:i.streams);r.addTVProviderImage(l,i),n.initialiseKeyboardEvents(l,i),"MEDIA_TAILOR"==(null===(s=window)||void 0===s||null===(v=s.app_data)||void 0===v||null===(p=v.appcmsMain)||void 0===p||null===(c=p.adsConfig)||void 0===c?void 0:c.vodAdSticherProvider)&&null!==(b=window)&&void 0!==b&&null!==(y=b.app_data)&&void 0!==y&&null!==(m=y.appcmsMain)&&void 0!==m&&null!==(q=m.adsConfig)&&void 0!==q&&q.vodAdClientSideTracking&&n.setupAdvertisementMarkers(l,j)}(i,o),d(i,o)};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var e=require("./features-b6127bee.js"),l=require("./icons-2609dbe4.js"),i=require("./player_instance-fcf6a8fb.js"),n=require("./skin-eeec7a85.js"),t=require("./resolution-9c4872ec.js"),o=require("./index-5b18b394.js");require("@babel/runtime/helpers/asyncToGenerator"),require("@babel/runtime/regenerator"),require("@babel/runtime/helpers/defineProperty"),require("@babel/runtime/helpers/slicedToArray"),require("@babel/runtime/helpers/toConsumableArray");var r=require("./generic-743174bb.js"),s=require("./currentVideoInfo-5802821b.js");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/assertThisInitialized"),require("./autoNextVideo-1c6abafe.js"),require("./util-233dec09.js"),require("@babel/runtime/helpers/typeof"),require("axios"),require("md5"),require("js-cookie"),require("./captions-68e263dd.js"),require("@viewlift/comscore/index.js"),exports.initialiseSkin=function(u,d){i.getPlayer(u).addClass("skin_news"),function(l,n){var r=i.getPlayer(l);r&&r.on("loadeddata",function(){var i,r,s,u,d,a,v;(null===(i=t.getRenditions(l))||void 0===i?void 0:i.length)>0&&0!=(null==n||null===(r=n.skin_settings)||void 0===r?void 0:r.settingsToggle)&&e.addSettingsButtonV2(l,n),!(null!=n&&null!==(s=n.series)&&void 0!==s&&s.enable||null!==(u=window)&&void 0!==u&&null!==(d=u.app_data)&&void 0!==d&&null!==(a=d.appcmsMain)&&void 0!==a&&null!==(v=a.features)&&void 0!==v&&v.auto_play)||null!=n&&n.liveVideo||o.addNextEpPreview(l,n)})}(u,d),function(e,l){var t,o,r,s,u,d,a,v,C,c,h,p,f,g,y,m,L,b,B=i.getPlayer(e);if(null!=l&&l.liveVideo){var j,V,w,E,x,S,M=null===(j=B.controlBar)||void 0===j||null===(V=j.getChild("TimeDivider"))||void 0===V?void 0:V.el(),q=null===(w=B.controlBar)||void 0===w||null===(E=w.getChild("CurrentTimeDisplay"))||void 0===E?void 0:E.el(),k=null===(x=B.controlBar)||void 0===x||null===(S=x.getChild("DurationDisplay"))||void 0===S?void 0:S.el();M&&(M.style.display="none"),q&&(q.style.display="none"),k&&(k.style.display="none")}var T=null===(t=B.controlBar)||void 0===t?void 0:t.getChild("ProgressControl"),Z=null===(o=B.controlBar)||void 0===o||null===(r=o.getChild("SeekToLive"))||void 0===r?void 0:r.el();Z&&(Z.onclick=function(){if(B.paused())try{B.play()}catch(e){console.log(e)}});var _=document.createElement("div");_.className="custom-spaced-progress-bar",T&&_.append(T.el());null===(s=B.controlBar)||void 0===s||null===(u=s.el())||void 0===u||u.append(_);var A='<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 <symbol id="vjs-icon-big-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="inherit"/>\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="inherit"/>\n </g>\n <defs>\n <clipPath id="clip0_19_559">\n <rect width="24" height="24" fill="inherit"/>\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>';B.el().insertBefore(n.parseSvgString(A),null!==(d=B.el().firstChild)&&void 0!==d?d:null);var P=(null==B||null===(a=B.controlBar)||void 0===a||null===(v=a.getChild("PlayToggle"))||void 0===v||null===(C=v.el())||void 0===C?void 0:C.firstChild)||null;if(P){P.style.height="18px",P.style.width="18px";var H=n.injectSVG(P,B.paused()?"#vjs-icon-play":"#vjs-icon-pause");B.on("pause",function(){return H.setAttributeNS(null,"href","#vjs-icon-play")}),B.on("play",function(){return H.setAttributeNS(null,"href","#vjs-icon-pause")})}var N=(null==B||null===(c=B.controlBar)||void 0===c||null===(h=c.getChild("FullscreenToggle"))||void 0===h||null===(p=h.el())||void 0===p?void 0:p.firstChild)||null;if(N){N.style.height="24px",N.style.width="24px";var D=n.injectSVG(N,"#vjs-icon-fullscreen");B.on("fullscreenchange",function(){var e=B.isFullscreen_;null==D||D.setAttributeNS(null,"href",e?"#vjs-icon-fullscreen-back":"#vjs-icon-fullscreen")})}var I=(null==B||null===(f=B.controlBar)||void 0===f||null===(g=f.getChild("VolumePanel"))||void 0===g?void 0:g.el())||null;if(I){var F=I.querySelector(".vjs-mute-control .vjs-icon-placeholder");F.classList.add("vjs-svg-icon"),F.style.height="24px",F.style.width="24px";var G=n.injectSVG(F,B.muted()?"#vjs-icon-mute":"#vjs-icon-volume1");B.on("volumechange",function(e){var l=B.volume();console.log(l,B.muted()),0==l||B.muted()?G.setAttributeNS(null,"href","#vjs-icon-mute"):l>0&&l<=.3?G.setAttributeNS(null,"href","#vjs-icon-volume1"):l>=.3&&l<=.7?G.setAttributeNS(null,"href","#vjs-icon-volume2"):G.setAttributeNS(null,"href","#vjs-icon-volume3")})}var R=(null==B||null===(y=B.controlBar)||void 0===y||null===(m=y.getChild("PictureInPictureToggle"))||void 0===m?void 0:m.el())||null;if(R){var O=null==R?void 0:R.querySelector(".vjs-icon-placeholder");O.style.height="25px",O.style.width="25px";var U=n.injectSVG(O,"#vjs-icon-pip");B.on("enterpictureinpicture",function(){U.setAttributeNS(null,"href","#vjs-icon-pip")})}var z=(null==B||null===(L=B.controlBar)||void 0===L||null===(b=L.getChild("SubsCapsButton"))||void 0===b?void 0:b.el())||null;if(z){var K=z.querySelector(".vjs-subs-caps-button .vjs-icon-placeholder");K.classList.add("vjs-svg-icon"),K.style.height="29px",K.style.width="29px";var W=n.injectSVG(K,"#vjs-icon-caps");W.setAttributeNS(null,"href","#vjs-icon-captions-off"),B.textTracks().on("change",function(e){for(var l=B.textTracks(),i=!1,n=0;n<l.length;n++){var t=l[n];if(("captions"===t.kind||"subtitles"===t.kind)&&"showing"===t.mode){i=!0;break}}i?W.setAttributeNS(null,"href","#vjs-icon-captions"):W.setAttributeNS(null,"href","#vjs-icon-captions-off")})}B&&null!=l&&l.liveVideo&&null!=l&&l.liveui&&(B.liveTracker.on("liveedgechange",function(){X(B)}),B.on("timeupdate",function(){X(B)}));function J(e){var l=Math.floor(e/3600),i=Math.floor(e%3600/60),n=Math.floor(e%60),t=function(e){return String(e).padStart(2,"0")};return 0===l?"".concat(t(i),":").concat(t(n)):"".concat(t(l),":").concat(t(i),":").concat(t(n))}function Q(e){var l=e.seekable();if(l&&l.length>0){var i=l.end(0);return Math.max(0,i-e.currentTime())}return 0}function X(e){var l,i,n=e.liveTracker.atLiveEdge(),t=Q(e),o=null==e||null===(l=e.controlBar)||void 0===l||null===(i=l.remainingTimeDisplay)||void 0===i?void 0:i.el();if(o){var r=o.querySelector(".vjs-remaining-time-display");n?o.style.display="none":(o.style.display="flex",r&&(r.innerText=J(t)))}}}(u,d),function(i,n){var t,o,u,d,a,v,C,c,h,p,f=(null==n?void 0:n.liveVideo)||!1,g=(null==n||null===(t=n.res)||void 0===t?void 0:t.contentType)||"video",y=(null==n||null===(o=n.res)||void 0===o||null===(u=o[g])||void 0===u?void 0:u.isSSAIEnabled)||!1,m=(null==n?void 0:n.skin_settings)||{};null==m||m.slowMoBtn;var L=(null==n||null===(d=n.customData)||void 0===d?void 0:d.ads)||{};e.addBigMuteButton(i),null!=m&&m.skipBtn&&0==(null==n?void 0:n.liveVideo)&&0==(null==n?void 0:n.liveui)&&e.addSkipButton(i,"VL_ONE",SkipSvgV2());null!=m&&m.rewindBtn&&(0==(null==n?void 0:n.liveVideo)&&0==(null==n?void 0:n.liveui)||1==(null==n?void 0:n.liveui))&&e.addRewindButton(i,"VL_ONE",l.RewindSvgV3());(null==n||null===(a=n.relatedVideos)||void 0===a||null===(v=a.content)||void 0===v?void 0:v.length)>0&&e.addVideoSelector_DEFAULTV2_TEMP(i,null==n?void 0:n.relatedVideos);(null==n||null===(C=n.streams)||void 0===C?void 0:C.length)>1&&e.addMulticamSelector_DEFAULTV2_TEMP(i,null==n?void 0:n.streams);(null==n||null===(c=n.playlist)||void 0===c||null===(h=c.content)||void 0===h?void 0:h.length)>0&&e.addPlaylistSelector(i,null==n?void 0:n.playlist);null!=n&&null!==(p=n.series)&&void 0!==p&&p.enable&&e.addSeriesSelectorV2_DEFAULTV2_TEMP(i,n);if("MEDIA_TAILOR"==(null==L?void 0:L.vodAdSticherProvider)&&null!=L&&L.vodAdClientSideTracking&&y)if(f)r.setupAdvertisementMarkersForLinear(i);else{var b,B=null;if(null!=n&&null!==(b=n.series)&&void 0!==b&&b.enable){var j,V,w,E,x,S=null===(j=s.getCurrentVideo())||void 0===j||null===(V=j.video)||void 0===V||null===(w=V.gist)||void 0===w?void 0:w.id,M=s.getSeriesWatchMap(),q=(null==M?void 0:M.get(S))||{t:0,p:0},k=q.t,T=q.p;"function"==typeof(null===(E=window)||void 0===E||null===(x=E.watchHistory)||void 0===x?void 0:x.cb)&&window.watchHistory.cb({watchedTime:k}),T<95&&(B=k)}else{var Z=n.watchHistoryResumeTime;n.watchedPercentage<95&&(B=Z)}r.setupAdvertisementMarkers(i,B)}}(u,d),o.addTVProviderImage(u,d)};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var e=require("./features-b6127bee.js"),l=require("./icons-2609dbe4.js"),i=require("./player_instance-fcf6a8fb.js"),r=require("./skin-eeec7a85.js"),n=require("./resolution-9c4872ec.js"),o=require("./captions-68e263dd.js"),t=require("./index-5b18b394.js"),d=require("./index-04b27b15.js"),u=require("./generic-743174bb.js");require("@babel/runtime/helpers/defineProperty"),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("@babel/runtime/helpers/assertThisInitialized"),require("./currentVideoInfo-5802821b.js"),require("./autoNextVideo-1c6abafe.js"),require("./util-233dec09.js"),require("@babel/runtime/helpers/typeof"),require("@babel/runtime/helpers/asyncToGenerator"),require("@babel/runtime/regenerator"),require("@babel/runtime/helpers/slicedToArray"),require("axios"),require("md5"),require("js-cookie"),require("@viewlift/comscore/index.js"),exports.initialiseSkin=function(a,s){i.getPlayer(a).addClass("skin_defaultv2"),function(){"Chrome"==u.detectBrowser()&&Promise.resolve().then(function(){return require("./chromett-f925fb6c.js")}).then(function(e){var l=document.createElement("style");l.id="chromett",l.append("".concat(e.default)),document.head.appendChild(l)});Promise.resolve().then(function(){return require("./skin-ac1ab4b6.js")}).then(function(e){var l=document.createElement("style");l.id="default_v2",l.append("".concat(e.default)),document.head.appendChild(l)})}(),function(l,r){var a=i.getPlayer(l);a&&(a.on("loadeddata",function(){var i,a,s,v,c,p,m;(null===(i=n.getRenditions(l))||void 0===i?void 0:i.length)>0&&e.addSettingsButtonV2(l,r),(null===(a=o.getCaptions(l))||void 0===a?void 0:a.length)>0&&e.addCaptionButton(l,r),!(null!=r&&null!==(s=r.series)&&void 0!==s&&s.enable||null!==(v=window)&&void 0!==v&&null!==(c=v.app_data)&&void 0!==c&&null!==(p=c.appcmsMain)&&void 0!==p&&null!==(m=p.features)&&void 0!==m&&m.auto_play)||null!=r&&r.liveVideo||t.addNextEpPreview(l,r),null!=r&&r.liveVideo||u.isMobile()||d.initiateTrickplay(l)}),a.one("play",function(){var i,r,n,o;null!==(i=window)&&void 0!==i&&null!==(r=i.customData)&&void 0!==r&&r.iframeOverlayUrl&&e.addOutputtingOverlay(l,null===(n=window)||void 0===n||null===(o=n.customData)||void 0===o?void 0:o.iframeOverlayUrl)}))}(a,s),function(e,n){var o,t,d,u,a,s,v,c,p,m,h,g,q,b=i.getPlayer(e);null===(o=b.controlBar)||void 0===o||o.removeChild("VolumePanel"),null===(t=b.controlBar)||void 0===t||t.addChild("VolumePanel",{inline:!1},1);var f=null===(d=b.controlBar)||void 0===d?void 0:d.getChild("ProgressControl"),y=null===(u=b.controlBar)||void 0===u?void 0:u.getChild("CurrentTimeDisplay"),C=null===(a=b.controlBar)||void 0===a?void 0:a.getChild("SeekToLive"),V=document.createElement("div");V.className="custom-spaced-progress-bar",f&&y&&C&&V.append(f.el(),y.el(),C.el());null===(s=b.controlBar)||void 0===s||null===(v=s.el())||void 0===v||v.append(V),null==b||null===(c=b.controlBar)||void 0===c||null===(p=c.getChild("FullscreenToggle"))||void 0===p||null===(m=p.el())||void 0===m||m.appendChild(r.createIconMarkup(l.MinimizeSvg(window.controlsColor))),null==b||null===(h=b.controlBar)||void 0===h||null===(g=h.getChild("FullscreenToggle"))||void 0===g||null===(q=g.el())||void 0===q||q.appendChild(r.createIconMarkup(l.MaximizeSvg(window.controlsColor)));var j=document.getElementsByClassName("vjs-time-control");n.liveVideo&&j[0]&&(j[0].style.display="none")}(a,s),function(i,r){var n,o,t,d,u,a,s=(null==r?void 0:r.skin_settings)||{},v=0!=(null==s?void 0:s.slowMoBtn);0==(null==r?void 0:r.liveVideo)&&0==(null==r?void 0:r.liveui)&&e.addSkipButton(i,"defaultV2",l.SkipSvgV2());(0==(null==r?void 0:r.liveVideo)&&0==(null==r?void 0:r.liveui)||1==(null==r?void 0:r.liveui))&&e.addRewindButton(i,"defaultV2",l.RewindSvgV2());!r.liveVideo&&v&&e.addSlowMotion(i);(null==r||null===(n=r.relatedVideos)||void 0===n||null===(o=n.content)||void 0===o?void 0:o.length)>0&&e.addVideoSelector_DEFAULTV2_TEMP(i,null==r?void 0:r.relatedVideos);(null==r||null===(t=r.streams)||void 0===t?void 0:t.length)>1&&e.addMulticamSelector_DEFAULTV2_TEMP(i,null==r?void 0:r.streams);(null==r||null===(d=r.playlist)||void 0===d||null===(u=d.content)||void 0===u?void 0:u.length)>0&&e.addPlaylistSelector(i,null==r?void 0:r.playlist);null!=r&&null!==(a=r.series)&&void 0!==a&&a.enable&&e.addSeriesSelectorV2_DEFAULTV2_TEMP(i,r)}(a,s),t.addTVProviderImage(a,s)};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var e=require("./generic-f723dacd.js"),r=require("./skin-3544db58.js");require("@babel/runtime/helpers/defineProperty"),require("@babel/runtime/helpers/asyncToGenerator"),require("@babel/runtime/regenerator"),require("video.js"),require("axios"),require("./browser-77c57718.js"),require("js-cookie"),require("ua-parser-js"),require("./captions-07bd3069.js"),require("@babel/runtime/helpers/toConsumableArray");var i=function(){var e=document.getElementsByClassName("vjs-control-bar")[0];e&&(e.style.visibility="hidden")};exports.initaliseSkin=function(n){Promise.resolve().then(function(){return require("./skin-225252ff.js")}).then(function(e){var r=document.createElement("style");r.id="carousel_homepage",r.append("".concat(e.default)),document.head.appendChild(r)}),i(),function(i){var n=document.getElementById("".concat(i)),t=r.getPlayer(i);n&&n.addEventListener("touchstart",function(){t.paused()?e.play(i):e.pause(i)})}(n)};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var e=require("./features-25da73a6.js"),l=require("./icons-2609dbe4.js"),i=require("./player_instance-fcf6a8fb.js"),n=require("./skin-eeec7a85.js"),t=require("./resolution-9c4872ec.js"),o=require("./index-67e8cb8e.js");require("@babel/runtime/helpers/asyncToGenerator"),require("@babel/runtime/regenerator"),require("@babel/runtime/helpers/defineProperty"),require("@babel/runtime/helpers/slicedToArray"),require("@babel/runtime/helpers/toConsumableArray");var r=require("./generic-29d5b2ec.js"),s=require("./currentVideoInfo-5802821b.js");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/assertThisInitialized"),require("./autoNextVideo-7423bae2.js"),require("./util-fbe3d806.js"),require("@babel/runtime/helpers/typeof"),require("axios"),require("md5"),require("js-cookie"),require("./captions-68e263dd.js"),require("@viewlift/comscore/index.js"),exports.initialiseSkin=function(u,a){i.getPlayer(u).addClass("skin_mini"),function(l,n){var r=i.getPlayer(l);r&&r.on("loadeddata",function(){var i,r,s,u,a,d,v;(null===(i=t.getRenditions(l))||void 0===i?void 0:i.length)>0&&0!=(null==n||null===(r=n.skin_settings)||void 0===r?void 0:r.settingsToggle)&&e.addSettingsButtonV2(l,n),!(null!=n&&null!==(s=n.series)&&void 0!==s&&s.enable||null!==(u=window)&&void 0!==u&&null!==(a=u.app_data)&&void 0!==a&&null!==(d=a.appcmsMain)&&void 0!==d&&null!==(v=d.features)&&void 0!==v&&v.auto_play)||null!=n&&n.liveVideo||o.addNextEpPreview(l,n)})}(u,a),function(e,l){var t,o,r,s,u,a,d,v,C,c,h,p,f,m,b,g,y,B,L=i.getPlayer(e);null===(t=L.controlBar)||void 0===t||t.removeChild("VolumePanel"),null===(o=L.controlBar)||void 0===o||o.addChild("VolumePanel",{inline:!1},1);var j=null===(r=L.controlBar)||void 0===r?void 0:r.getChild("ProgressControl"),V=document.createElement("div");V.className="custom-spaced-progress-bar",j&&V.append(j.el());null===(s=L.controlBar)||void 0===s||null===(u=s.el())||void 0===u||u.append(V);var E='<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>';L.el().insertBefore(n.parseSvgString(E),null!==(a=L.el().firstChild)&&void 0!==a?a:null);var w=(null==L||null===(d=L.controlBar)||void 0===d||null===(v=d.getChild("PlayToggle"))||void 0===v||null===(C=v.el())||void 0===C?void 0:C.firstChild)||null;if(w){w.style.height="16px",w.style.width="16px";var x=n.injectSVG(w,L.paused()?"#vjs-icon-play":"#vjs-icon-pause");L.on("pause",function(){return x.setAttributeNS(null,"href","#vjs-icon-play")}),L.on("play",function(){return x.setAttributeNS(null,"href","#vjs-icon-pause")})}var S=(null==L||null===(c=L.controlBar)||void 0===c||null===(h=c.getChild("FullscreenToggle"))||void 0===h||null===(p=h.el())||void 0===p?void 0:p.firstChild)||null;if(S){S.style.height="24px",S.style.width="24px";var M=n.injectSVG(S,"#vjs-icon-fullscreen");L.on("fullscreenchange",function(){var e=L.isFullscreen_;null==M||M.setAttributeNS(null,"href",e?"#vjs-icon-fullscreen-back":"#vjs-icon-fullscreen")})}var q=(null==L||null===(f=L.controlBar)||void 0===f||null===(m=f.getChild("VolumePanel"))||void 0===m?void 0:m.el())||null;if(q){var k=q.querySelector(".vjs-mute-control .vjs-icon-placeholder");k.classList.add("vjs-svg-icon"),k.style.height="24px",k.style.width="24px";var T=n.injectSVG(k,L.muted()?"#vjs-icon-mute":"#vjs-icon-volume1");L.on("volumechange",function(e){var l=L.volume();0==l||L.muted()?T.setAttributeNS(null,"href","#vjs-icon-mute"):l>0&&l<=.3?T.setAttributeNS(null,"href","#vjs-icon-volume1"):l>=.3&&l<=.7?T.setAttributeNS(null,"href","#vjs-icon-volume2"):T.setAttributeNS(null,"href","#vjs-icon-volume3")})}var A=(null==L||null===(b=L.controlBar)||void 0===b||null===(g=b.getChild("PictureInPictureToggle"))||void 0===g?void 0:g.el())||null;if(A){var P=null==A?void 0:A.querySelector(".vjs-icon-placeholder");P.style.height="25px",P.style.width="25px";var Z=n.injectSVG(P,"#vjs-icon-pip");L.on("enterpictureinpicture",function(){Z.setAttributeNS(null,"href","#vjs-icon-pip")})}var _=(null==L||null===(y=L.controlBar)||void 0===y||null===(B=y.getChild("SubsCapsButton"))||void 0===B?void 0:B.el())||null;if(_){var N=_.querySelector(".vjs-subs-caps-button .vjs-icon-placeholder");N.classList.add("vjs-svg-icon"),N.style.height="29px",N.style.width="29px";var H=n.injectSVG(N,"#vjs-icon-caps");H.setAttributeNS(null,"href","#vjs-icon-captions-off"),L.textTracks().on("change",function(e){for(var l=L.textTracks(),i=!1,n=0;n<l.length;n++){var t=l[n];if(("captions"===t.kind||"subtitles"===t.kind)&&"showing"===t.mode){i=!0;break}}i?H.setAttributeNS(null,"href","#vjs-icon-captions"):H.setAttributeNS(null,"href","#vjs-icon-captions-off")})}L&&null!=l&&l.liveVideo&&null!=l&&l.liveui&&(L.liveTracker.on("liveedgechange",function(){G(L)}),L.on("timeupdate",function(){G(L)}));function I(e){var l=Math.floor(e/3600),i=Math.floor(e%3600/60),n=Math.floor(e%60),t=function(e){return String(e).padStart(2,"0")};return 0===l?"".concat(t(i),":").concat(t(n)):"".concat(t(l),":").concat(t(i),":").concat(t(n))}function D(e){var l=e.seekable();if(l&&l.length>0){var i=l.end(0);return Math.max(0,i-e.currentTime())}return 0}function G(e){var l,i,n=e.liveTracker.atLiveEdge(),t=D(e),o=null==e||null===(l=e.controlBar)||void 0===l||null===(i=l.remainingTimeDisplay)||void 0===i?void 0:i.el();if(o){var r=o.querySelector(".vjs-remaining-time-display");n?o.style.display="none":(o.style.display="flex",r&&(r.innerText=I(t)))}}}(u,a),function(i,n){var t,o,u,a,d,v,C,c,h,p=(null==n||null===(t=n.res)||void 0===t||null===(o=t.video)||void 0===o?void 0:o.isSSAIEnabled)||!1,f=(null==n?void 0:n.skin_settings)||{};null==f||f.slowMoBtn;var m=(null==n||null===(u=n.customData)||void 0===u?void 0:u.ads)||{};null!=f&&f.skipBtn&&0==(null==n?void 0:n.liveVideo)&&0==(null==n?void 0:n.liveui)&&e.addSkipButton(i,"VL_ONE",SkipSvgV2());null!=f&&f.rewindBtn&&(0==(null==n?void 0:n.liveVideo)&&0==(null==n?void 0:n.liveui)||1==(null==n?void 0:n.liveui))&&e.addRewindButton(i,"VL_ONE",l.RewindSvgV3());(null==n||null===(a=n.relatedVideos)||void 0===a||null===(d=a.content)||void 0===d?void 0:d.length)>0&&e.addVideoSelector_DEFAULTV2_TEMP(i,null==n?void 0:n.relatedVideos);(null==n||null===(v=n.streams)||void 0===v?void 0:v.length)>1&&e.addMulticamSelector_DEFAULTV2_TEMP(i,null==n?void 0:n.streams);(null==n||null===(C=n.playlist)||void 0===C||null===(c=C.content)||void 0===c?void 0:c.length)>0&&e.addPlaylistSelector(i,null==n?void 0:n.playlist);null!=n&&null!==(h=n.series)&&void 0!==h&&h.enable&&e.addSeriesSelectorV2_DEFAULTV2_TEMP(i,n);if("MEDIA_TAILOR"==(null==m?void 0:m.vodAdSticherProvider)&&null!=m&&m.vodAdClientSideTracking&&p){var b,g=null;if(null!=n&&null!==(b=n.series)&&void 0!==b&&b.enable){var y,B,L,j=null===(y=s.getCurrentVideo())||void 0===y||null===(B=y.video)||void 0===B||null===(L=B.gist)||void 0===L?void 0:L.id,V=s.getSeriesWatchMap(),E=(null==V?void 0:V.get(j))||{t:0,p:0},w=E.t;E.p<95&&(g=w)}else{var x=n.watchHistoryResumeTime;n.watchedPercentage<95&&(g=x)}r.setupAdvertisementMarkers(i,g)}}(u,a),o.addTVProviderImage(u,a)};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var e=require("./features-25da73a6.js"),l=require("./player_instance-fcf6a8fb.js"),i=require("./index-67e8cb8e.js"),r=require("./index-2b05c277.js"),n=require("./generic-29d5b2ec.js");require("videojs-contrib-quality-menu");var o=require("./index-64db4d74.js"),t=require("./helper-dbf2fb22.js"),u=require("./currentVideoInfo-5802821b.js"),a=require("video.js"),d=require("./icons-2609dbe4.js");require("@babel/runtime/helpers/defineProperty"),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("./resolution-9c4872ec.js"),require("@babel/runtime/helpers/toConsumableArray"),require("@babel/runtime/helpers/assertThisInitialized"),require("./skin-eeec7a85.js"),require("./localisation-56e0a999.js"),require("./autoNextVideo-7423bae2.js"),require("./util-fbe3d806.js"),require("@babel/runtime/helpers/typeof"),require("@babel/runtime/helpers/asyncToGenerator"),require("@babel/runtime/regenerator"),require("@babel/runtime/helpers/slicedToArray"),require("axios"),require("md5"),require("js-cookie"),require("./captions-68e263dd.js"),require("@viewlift/comscore/index.js"),require("video.js/dist/video-js.min.css"),require("@viewlift/sse");function s(a,d){var s=l.getPlayer(a);s&&(s.on("loadeddata",function(){var e,v,c,p,m,g=t.checkDvrStartOverEnabled(d),b=u.getCurrentEpgPrograms();s.qualityLevels()&&s.qualityLevels().length&&function(e){var i=l.getPlayer(e);i&&(null==i||i.qualityMenu,i.qualityMenu({useResolutionLabels:!0}))}(a),!(null!=d&&null!==(e=d.series)&&void 0!==e&&e.enable||null!==(v=window)&&void 0!==v&&null!==(c=v.app_data)&&void 0!==c&&null!==(p=c.appcmsMain)&&void 0!==p&&null!==(m=p.features)&&void 0!==m&&m.auto_play)||null!=d&&d.liveVideo||i.addNextEpPreview(a,d),null!=d&&d.liveVideo||n.isMobile()||"b13633d9-f778-40c6-a5ea-c330617cdf55"===siteId||"cea398b9-09ab-4331-958f-8c3d6a356b88"===siteId||r.initiateTrickplay(a),g&&b&&b.length?o.initiateMarker(a):o.removeMarkers()}),s.one("play",function(){var l,i,r,n;null!==(l=window)&&void 0!==l&&null!==(i=l.customData)&&void 0!==i&&i.iframeOverlayUrl&&e.addOutputtingOverlay(a,null===(r=window)||void 0===r||null===(n=r.customData)||void 0===n?void 0:n.iframeOverlayUrl)}))}var v=function(e,i){var r,n,o,t,u,d,s,v,c,p,m,g,b=l.getPlayer(e),h=(null==i?void 0:i.theme)||{},y=a.dom.$(".vjs-play-progress"),q=a.dom.$(".video-js .vjs-big-play-button .vjs-icon-placeholder");q&&(q.style.color="".concat(null===(r=window)||void 0===r||null===(n=r.app_data)||void 0===n||null===(o=n.appcmsMain)||void 0===o||null===(t=o.brand)||void 0===t||null===(u=t.cta)||void 0===u||null===(d=u.primary)||void 0===d?void 0:d.backgroundColor)),y&&(y.style.background="".concat(null===(s=window)||void 0===s||null===(v=s.app_data)||void 0===v||null===(c=v.appcmsMain)||void 0===c||null===(p=c.brand)||void 0===p||null===(m=p.cta)||void 0===m||null===(g=m.primary)||void 0===g?void 0:g.backgroundColor));var f=b.getChild("BigPlayButton")||null;(null==h?void 0:h.progressBarColor)&&y&&(y.style.background=h.progressBarColor),(null==h?void 0:h.playButtonBackgroundColor)&&f&&(f.el().style.background=h.playButtonBackgroundColor),(null==h?void 0:h.playButtonColor)&&q&&(q.style.color=h.playButtonColor),(null==h?void 0:h.playButtonType)&&("square"==(null==h?void 0:h.playButtonType)?f.el().style.borderRadius=".3em":f.el().style.borderRadius="1.3em")};exports.initialiseSkin=function(r,o){l.getPlayer(r).addClass("skin_vlone"),s(r,o),function(r,o){var a,s,v,c,p,m,g,b,h,y=l.getPlayer(r),q=(null==o?void 0:o.liveVideo)||!1,f=(null==o||null===(a=o.res)||void 0===a?void 0:a.contentType)||"video",j=(null==o||null===(s=o.res)||void 0===s||null===(v=s[f])||void 0===v?void 0:v.isSSAIEnabled)||!1,k=n.getSource(null==o?void 0:o.res,r)||{};k.src;var w=(null==o?void 0:o.skin_settings)||{},C=(null==o||null===(c=o.customData)||void 0===c?void 0:c.ads)||{};if(t.checkDvrStartOverEnabled(o),q&&!(null!=o&&o.liveui)){var B,S,T=(null==y||null===(B=y.controlBar)||void 0===B||null===(S=B.getChild("LiveDisplay"))||void 0===S?void 0:S.el())||null;T&&(T.onclick=function(){try{var e;null==y||null===(e=y.liveTracker)||void 0===e||e.seekToLiveEdge()}catch(e){console.log(e,"Cannot seek to LE")}})}null!=w&&w.skipBtn&&0==(null==o?void 0:o.liveVideo)&&0==(null==o?void 0:o.liveui)&&e.addSkipButton(r,"VL_ONE",d.SkipSvgV2());(null!=w&&w.rewindBtn&&0==(null==o?void 0:o.liveVideo)&&0==(null==o?void 0:o.liveui)||1==(null==o?void 0:o.liveui))&&e.addRewindButton(r,"VL_ONE",d.RewindSvgV2());(null==o||null===(p=o.relatedVideos)||void 0===p||null===(m=p.content)||void 0===m?void 0:m.length)>0&&e.addVideoSelector(r,null==o?void 0:o.relatedVideos);null!=o&&null!==(g=o.series)&&void 0!==g&&g.enable&&e.addSeriesSelectorV2(r,o);(null==o||null===(b=o.streams)||void 0===b?void 0:b.length)>1&&e.addMulticamSelector(r,null==o?void 0:o.streams);if(i.addTVProviderImage(r,o),n.initialiseKeyboardEvents(r,o),"MEDIA_TAILOR"==(null==C?void 0:C.vodAdSticherProvider)&&null!=C&&C.vodAdClientSideTracking&&j)if(q)n.setupAdvertisementMarkersForLinear(r);else{var L,M=null;if(null!=o&&null!==(L=o.series)&&void 0!==L&&L.enable){var V,E,P,x,A,D=null===(V=u.getCurrentVideo())||void 0===V||null===(E=V.video)||void 0===E||null===(P=E.gist)||void 0===P?void 0:P.id,O=u.getSeriesWatchMap(),_=(null==O?void 0:O.get(D))||{t:0,p:0},I=_.t,R=_.p;"function"==typeof(null===(x=window)||void 0===x||null===(A=x.watchHistory)||void 0===A?void 0:A.cb)&&window.watchHistory.cb({watchedTime:I}),R<95&&(M=I)}else{var N=o.watchHistoryResumeTime;o.watchedPercentage<95&&(M=N)}n.setupAdvertisementMarkers(r,M)}null!=o&&o.isDvrEnabled&&null!=o&&null!==(h=o.dvrConfig)&&void 0!==h&&h.enable&&(e.addStartFromBeginningButton(r,o),e.addWatchLiveButton(r,o))}(r,o),v(r,o),function(e){var i,r,n,o=l.getPlayer(e),t=null;if(!o)return;var u=o.controlBar.getChild("VolumePanel"),a=null===(i=u.getChild("MuteToggle"))||void 0===i?void 0:i.el(),d=null==u||null===(r=u.el())||void 0===r?void 0:r.querySelector(".vjs-volume-bar"),s=null==u||null===(n=u.el())||void 0===n?void 0:n.querySelector(".vjs-volume-level");if(!u||!d||!s)return;function v(e){e.preventDefault(),t&&(clearTimeout(t),t=null),p(m(e.touches[0]))}function c(e){e.preventDefault(),p(m(e.changedTouches[0])),t=setTimeout(function(){u.el().classList.remove("vjs-hover")},2e3)}function p(e){var l=Math.min(Math.max(e,0),100);s.style.height=l+"%",d.setAttribute("aria-valuenow",l),d.setAttribute("aria-valuetext",l+"%"),o.volume(l/100)}function m(e){var l=d.getBoundingClientRect(),i=e.clientY-l.top,r=l.height;return 100-Math.min(Math.max(i/r*100,0),100)}a.addEventListener("touchend",function(){null!=u&&u.el()&&(u.el().classList.toggle("vjs-hover"),o.muted(!1),t&&(clearTimeout(t),t=null),t=setTimeout(function(){u.el().classList.remove("vjs-hover")},2e3))}),d.addEventListener("touchmove",v,{passive:!1}),d.addEventListener("touchstart",v,{passive:!1}),d.addEventListener("touchend",c,{passive:!1})}(r)};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var e=require("./features-258a9a64.js"),l=require("./player_instance-fcf6a8fb.js"),i=require("./index-e4393a77.js"),r=require("./index-c51fccda.js"),n=require("./generic-939a3e97.js");require("videojs-contrib-quality-menu");var o=require("./index-8047cfe4.js"),t=require("./helper-dbf2fb22.js"),u=require("./currentVideoInfo-5802821b.js"),a=require("video.js"),d=require("./icons-2609dbe4.js");require("@babel/runtime/helpers/defineProperty"),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("./resolution-9c4872ec.js"),require("@babel/runtime/helpers/toConsumableArray"),require("@babel/runtime/helpers/assertThisInitialized"),require("./skin-eeec7a85.js"),require("./localisation-56e0a999.js"),require("./autoNextVideo-cb31894f.js"),require("./util-4769ed5b.js"),require("@babel/runtime/helpers/typeof"),require("@babel/runtime/helpers/asyncToGenerator"),require("@babel/runtime/regenerator"),require("@babel/runtime/helpers/slicedToArray"),require("axios"),require("md5"),require("js-cookie"),require("./captions-68e263dd.js"),require("@viewlift/comscore/index.js"),require("video.js/dist/video-js.min.css"),require("@viewlift/sse");function s(a,d){var s=l.getPlayer(a);s&&(s.on("loadeddata",function(){var e,v,c,p,m,g=t.checkDvrStartOverEnabled(d),b=u.getCurrentEpgPrograms();s.qualityLevels()&&s.qualityLevels().length&&function(e){var i=l.getPlayer(e);i&&(null==i||i.qualityMenu,i.qualityMenu({useResolutionLabels:!0}))}(a),!(null!=d&&null!==(e=d.series)&&void 0!==e&&e.enable||null!==(v=window)&&void 0!==v&&null!==(c=v.app_data)&&void 0!==c&&null!==(p=c.appcmsMain)&&void 0!==p&&null!==(m=p.features)&&void 0!==m&&m.auto_play)||null!=d&&d.liveVideo||i.addNextEpPreview(a,d),null!=d&&d.liveVideo||n.isMobile()||"b13633d9-f778-40c6-a5ea-c330617cdf55"===siteId||"cea398b9-09ab-4331-958f-8c3d6a356b88"===siteId||r.initiateTrickplay(a),g&&b&&b.length?o.initiateMarker(a):o.removeMarkers()}),s.one("play",function(){var l,i,r,n;null!==(l=window)&&void 0!==l&&null!==(i=l.customData)&&void 0!==i&&i.iframeOverlayUrl&&e.addOutputtingOverlay(a,null===(r=window)||void 0===r||null===(n=r.customData)||void 0===n?void 0:n.iframeOverlayUrl)}))}var v=function(e,i){var r,n,o,t,u,d,s,v,c,p,m,g,b=l.getPlayer(e),h=(null==i?void 0:i.theme)||{},y=a.dom.$(".vjs-play-progress"),q=a.dom.$(".video-js .vjs-big-play-button .vjs-icon-placeholder");q&&(q.style.color="".concat(null===(r=window)||void 0===r||null===(n=r.app_data)||void 0===n||null===(o=n.appcmsMain)||void 0===o||null===(t=o.brand)||void 0===t||null===(u=t.cta)||void 0===u||null===(d=u.primary)||void 0===d?void 0:d.backgroundColor)),y&&(y.style.background="".concat(null===(s=window)||void 0===s||null===(v=s.app_data)||void 0===v||null===(c=v.appcmsMain)||void 0===c||null===(p=c.brand)||void 0===p||null===(m=p.cta)||void 0===m||null===(g=m.primary)||void 0===g?void 0:g.backgroundColor));var f=b.getChild("BigPlayButton")||null;(null==h?void 0:h.progressBarColor)&&y&&(y.style.background=h.progressBarColor),(null==h?void 0:h.playButtonBackgroundColor)&&f&&(f.el().style.background=h.playButtonBackgroundColor),(null==h?void 0:h.playButtonColor)&&q&&(q.style.color=h.playButtonColor),(null==h?void 0:h.playButtonType)&&("square"==(null==h?void 0:h.playButtonType)?f.el().style.borderRadius=".3em":f.el().style.borderRadius="1.3em")};exports.initialiseSkin=function(r,o){l.getPlayer(r).addClass("skin_vlone"),s(r,o),function(r,o){var a,s,v,c,p,m,g,b,h,y=l.getPlayer(r),q=(null==o?void 0:o.liveVideo)||!1,f=(null==o||null===(a=o.res)||void 0===a?void 0:a.contentType)||"video",j=(null==o||null===(s=o.res)||void 0===s||null===(v=s[f])||void 0===v?void 0:v.isSSAIEnabled)||!1,k=n.getSource(null==o?void 0:o.res,r)||{};k.src;var w=(null==o?void 0:o.skin_settings)||{},C=(null==o||null===(c=o.customData)||void 0===c?void 0:c.ads)||{};if(t.checkDvrStartOverEnabled(o),q&&!(null!=o&&o.liveui)){var B,S,T=(null==y||null===(B=y.controlBar)||void 0===B||null===(S=B.getChild("LiveDisplay"))||void 0===S?void 0:S.el())||null;T&&(T.onclick=function(){try{var e;null==y||null===(e=y.liveTracker)||void 0===e||e.seekToLiveEdge()}catch(e){console.log(e,"Cannot seek to LE")}})}null!=w&&w.skipBtn&&0==(null==o?void 0:o.liveVideo)&&0==(null==o?void 0:o.liveui)&&e.addSkipButton(r,"VL_ONE",d.SkipSvgV2());(null!=w&&w.rewindBtn&&0==(null==o?void 0:o.liveVideo)&&0==(null==o?void 0:o.liveui)||1==(null==o?void 0:o.liveui))&&e.addRewindButton(r,"VL_ONE",d.RewindSvgV2());(null==o||null===(p=o.relatedVideos)||void 0===p||null===(m=p.content)||void 0===m?void 0:m.length)>0&&e.addVideoSelector(r,null==o?void 0:o.relatedVideos);null!=o&&null!==(g=o.series)&&void 0!==g&&g.enable&&e.addSeriesSelectorV2(r,o);(null==o||null===(b=o.streams)||void 0===b?void 0:b.length)>1&&e.addMulticamSelector(r,null==o?void 0:o.streams);if(i.addTVProviderImage(r,o),n.initialiseKeyboardEvents(r,o),"MEDIA_TAILOR"==(null==C?void 0:C.vodAdSticherProvider)&&null!=C&&C.vodAdClientSideTracking&&j)if(q)n.setupAdvertisementMarkersForLinear(r);else{var L,M=null;if(null!=o&&null!==(L=o.series)&&void 0!==L&&L.enable){var V,E,P,x,A,D=null===(V=u.getCurrentVideo())||void 0===V||null===(E=V.video)||void 0===E||null===(P=E.gist)||void 0===P?void 0:P.id,O=u.getSeriesWatchMap(),_=(null==O?void 0:O.get(D))||{t:0,p:0},I=_.t,R=_.p;"function"==typeof(null===(x=window)||void 0===x||null===(A=x.watchHistory)||void 0===A?void 0:A.cb)&&window.watchHistory.cb({watchedTime:I}),R<95&&(M=I)}else{var N=o.watchHistoryResumeTime;o.watchedPercentage<95&&(M=N)}n.setupAdvertisementMarkers(r,M)}null!=o&&o.isDvrEnabled&&null!=o&&null!==(h=o.dvrConfig)&&void 0!==h&&h.enable&&(e.addStartFromBeginningButton(r,o),e.addWatchLiveButton(r,o))}(r,o),v(r,o),function(e){var i,r,n,o=l.getPlayer(e),t=null;if(!o)return;var u=o.controlBar.getChild("VolumePanel"),a=null===(i=u.getChild("MuteToggle"))||void 0===i?void 0:i.el(),d=null==u||null===(r=u.el())||void 0===r?void 0:r.querySelector(".vjs-volume-bar"),s=null==u||null===(n=u.el())||void 0===n?void 0:n.querySelector(".vjs-volume-level");if(!u||!d||!s)return;function v(e){e.preventDefault(),t&&(clearTimeout(t),t=null),p(m(e.touches[0]))}function c(e){e.preventDefault(),p(m(e.changedTouches[0])),t=setTimeout(function(){u.el().classList.remove("vjs-hover")},2e3)}function p(e){var l=Math.min(Math.max(e,0),100);s.style.height=l+"%",d.setAttribute("aria-valuenow",l),d.setAttribute("aria-valuetext",l+"%"),o.volume(l/100)}function m(e){var l=d.getBoundingClientRect(),i=e.clientY-l.top,r=l.height;return 100-Math.min(Math.max(i/r*100,0),100)}a.addEventListener("touchend",function(){null!=u&&u.el()&&(u.el().classList.toggle("vjs-hover"),o.muted(!1),t&&(clearTimeout(t),t=null),t=setTimeout(function(){u.el().classList.remove("vjs-hover")},2e3))}),d.addEventListener("touchmove",v,{passive:!1}),d.addEventListener("touchstart",v,{passive:!1}),d.addEventListener("touchend",c,{passive:!1})}(r)};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var e=require("./skin-3544db58.js"),r=require("./features-93cd6de4.js"),i=require("./renditions-fed22c12.js"),n=require("./captions-07bd3069.js");require("@babel/runtime/helpers/toConsumableArray"),require("video.js"),require("@babel/runtime/helpers/defineProperty"),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("./generic-f723dacd.js"),require("@babel/runtime/helpers/asyncToGenerator"),require("@babel/runtime/regenerator"),require("axios"),require("./browser-77c57718.js"),require("js-cookie"),require("ua-parser-js"),require("./localisation-56e0a999.js"),exports.initialiseSkin=function(t,s){Promise.resolve().then(function(){return require("./skin-fc1e7e52.js")}).then(function(e){var r=document.createElement("style");r.id="multiplayer_css",r.append("".concat(e.default)),document.head.appendChild(r)}),function(t,s){e.getPlayer(t).on("loadeddata",function(){var e;(null===(e=i.getRenditions(t))||void 0===e?void 0:e.length)>0&&r.addSettingsButtonV2(t,s),null!=s&&s.disableCaptions&&n.removeCaptions(t)})}(t,s),function(i){var n=e.getPlayer(i);n.controls(!1),r.addDBClickFullScreen(i)}(t)};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var e=require("./player_instance-fcf6a8fb.js"),r=require("./features-258a9a64.js"),i=require("./resolution-9c4872ec.js"),t=require("./captions-68e263dd.js");require("video.js"),require("@babel/runtime/helpers/defineProperty"),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("./generic-939a3e97.js"),require("@babel/runtime/helpers/asyncToGenerator"),require("@babel/runtime/regenerator"),require("axios"),require("md5"),require("js-cookie"),require("./currentVideoInfo-5802821b.js"),require("@babel/runtime/helpers/typeof"),require("./skin-eeec7a85.js"),require("@babel/runtime/helpers/toConsumableArray"),require("@babel/runtime/helpers/slicedToArray"),require("@viewlift/comscore/index.js"),require("./localisation-56e0a999.js"),require("@babel/runtime/helpers/assertThisInitialized"),exports.initialiseSkin=function(n,s){Promise.resolve().then(function(){return require("./skin-fc1e7e52.js")}).then(function(e){var r=document.createElement("style");r.id="multiplayer_css",r.append("".concat(e.default)),document.head.appendChild(r)}),function(n,s){e.getPlayer(n).on("loadeddata",function(){var e;(null===(e=i.getRenditions(n))||void 0===e?void 0:e.length)>0&&r.addSettingsButtonV2(n,s),null!=s&&s.disableCaptions&&t.removeCaptions(n)})}(n,s),function(i){var t=e.getPlayer(i);t.controls(!1),r.addDBClickFullScreen(i)}(n)};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var e=require("@babel/runtime/helpers/toConsumableArray"),t=require("./player_instance-fcf6a8fb.js"),n=["live","carousel","V2","defaultV2","multiplayer","minimalist","VL_ONE","news","mini","news_live"],i=function(e){var t=(new DOMParser).parseFromString(e,"image/svg+xml");return null==t?void 0:t.querySelector("svg")},r="http://www.w3.org/2000/svg";var o=function(t){e(document.querySelectorAll("[video-idx]")).map(function(e){var n=e.getAttribute("video-idx");e.style.border=n==t?"2px solid white":"none"})},l="",a=function(e,t){var n;if(t){var i=document.getElementById(e),r=null===(n=window.getComputedStyle(i,null))||void 0===n?void 0:n.height;t.style.height!==r&&(t.style.height="".concat(r))}};exports.clearEventListeners=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)},exports.closeOpenDrawers=function(){var t=e(document.getElementsByClassName("vjs-control vjs-button open"));null==t||t.map(function(e){var t,n;null==e||null===(t=e.childNodes)||void 0===t||null===(n=t[0])||void 0===n||n.click()})},exports.createIconMarkup=function(e){return i(e)},exports.debounce=function(e,t){var n;return function(){for(var i=arguments.length,r=new Array(i),o=0;o<i;o++)r[o]=arguments[o];var l=this;clearTimeout(n),n=setTimeout(function(){e.apply(l,r)},t)}},exports.detectOrientationChange=function(e,t){var n,i=function(){return function(e,t){var n=window.matchMedia("(orientation: portrait)").matches?"potrait":"landscape",i=document.getElementById(e);if(i&&l!==n){var r=window.getComputedStyle(i,null).getPropertyValue("height");t&&(t.style.height="".concat(r)),l=n}}(e,t)};window._orientationChangeHandler=i;window.addEventListener("resize",function(){clearTimeout(n),n=setTimeout(function(){i()},100)})},exports.handleDrawerResizing=function(e,n){var i,r=t.getPlayer(e),o=t.getPlayer(e).el(),l=new ResizeObserver(function(){var t;null!==(t=n.classList)&&void 0!==t&&t.contains("hidden")||(i&&clearTimeout(i),i=setTimeout(function(){a(e,n)},300))});l.observe(o),r.on("dispose",function(){l.disconnect()}),r.on("fullscreenchange",function(){setTimeout(function(){a(e,n)},50)})},exports.highlightVideo=function(n,i){if(i){var r,l,a=t.getPlayer(i);if(a&&"function"==typeof a.el&&null!=a&&null!==(r=a.el())&&void 0!==r&&null!==(l=r.classList)&&void 0!==l&&l.contains("skin_defaultv2"))return void o(n)}var u=e(document.querySelectorAll("[video-idx]"));console.log(u),u.map(function(e){var t=e.parentNode,i=e.getAttribute("video-idx");t.style.background=i==n?"gray":"none"})},exports.highlightVideo_DEFAULTV2_TEMP=o,exports.impolicy16x9=function(e){return e&&!e.includes("?impolicy")?e+"?impolicy=resize&w=1920&h=1080":null},exports.injectSVG=function(e,t){if(!e)return null;e.classList.add("vjs-svg-icon");var n=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"0 0 48 48",n=document.createElementNS(r,"svg");n.setAttribute("viewBox",t),n.setAttribute("preserveAspectRatio","xMidYMid meet");var i=document.createElementNS(r,"use");return i.setAttributeNS(null,"href",e),n.appendChild(i),{svg:n,use:i}}(t),i=n.svg,o=n.use;return e.appendChild(i),o},exports.isNotAValidSkin=function(e){return!n.includes(e)},exports.parseHtmlString=function(e){var t=(new DOMParser).parseFromString(e,"text/html");return null==t?void 0:t.querySelector("body")},exports.parseSvgString=i,exports.setUpdatedElHeight=a,exports.throttle=function(e,t){var n=null,i=null;return function(){for(var r=this,o=arguments.length,l=new Array(o),a=0;a<o;a++)l[a]=arguments[a];i?(clearTimeout(n),n=setTimeout(function(){Date.now()-i>=t&&(e.apply(r,l),i=Date.now())},t-(Date.now()-i))):(e.apply(this,l),i=Date.now())}};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var e=require("./generic-29d5b2ec.js"),r=require("./player_instance-fcf6a8fb.js");require("@babel/runtime/helpers/defineProperty"),require("@babel/runtime/helpers/asyncToGenerator"),require("@babel/runtime/regenerator"),require("video.js"),require("axios"),require("md5"),require("js-cookie"),require("./currentVideoInfo-5802821b.js"),require("./captions-68e263dd.js"),require("@babel/runtime/helpers/typeof"),require("./skin-eeec7a85.js"),require("@babel/runtime/helpers/toConsumableArray"),require("@babel/runtime/helpers/slicedToArray"),require("@viewlift/comscore/index.js");var i=function(){var e=document.getElementsByClassName("vjs-control-bar")[0];e&&(e.style.visibility="hidden")};exports.initaliseSkin=function(n){Promise.resolve().then(function(){return require("./skin-225252ff.js")}).then(function(e){var r=document.createElement("style");r.id="carousel_homepage",r.append("".concat(e.default)),document.head.appendChild(r)}),i(),function(i){var n=document.getElementById("".concat(i)),t=r.getPlayer(i);n&&n.addEventListener("touchstart",function(){t.paused()?e.play(i):e.pause(i)})}(n)};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var e=require("@babel/runtime/helpers/classCallCheck"),r=require("@babel/runtime/helpers/createClass"),t=require("@babel/runtime/helpers/inherits"),n=require("@babel/runtime/helpers/possibleConstructorReturn"),i=require("@babel/runtime/helpers/getPrototypeOf"),o=require("video.js"),l=require("./icons-2609dbe4.js"),u=require("./helper-dbf2fb22.js");function a(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(a=function(){return!!e})()}require("./currentVideoInfo-5802821b.js");var s=o.getComponent("Component"),c=function(){t(f,s);var c,b,p=(c=f,b=a(),function(){var e,r=i(c);if(b){var t=i(this).constructor;e=Reflect.construct(r,arguments,t)}else e=r.apply(this,arguments);return n(this,e)});function f(r,t){var n,i;return e(this,f),(i=p.call(this,r,t)).el().innerHTML=l.startLiveIcon(),null==t||null===(n=t.dvrConfig)||void 0===n||n.programs,i.on("click",function(){u.playFromBeginningHandler(r,t)}),i}return r(f,[{key:"createEl",value:function(){return o.dom.createEl("button",{className:"vjs-control vjs-button watch-begin-btn",role:"button",tabIndex:0,title:"Start From Beginning"})}}]),f}();exports.default=c;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var e=require("@babel/runtime/helpers/typeof"),n=require("./generic-743174bb.js"),t=require("./currentVideoInfo-5802821b.js"),o=require("./player_instance-fcf6a8fb.js"),r=!1;exports.getVideoDuration=function(e){var n=o.getPlayer(e);return n?n.duration():"Cannot find player with id: '".concat(e,"'")},exports.onReplay=function(e,i){var a=o.getPlayer(e);a?(a.on("ended",function(){return r=!0}),a.on("timeupdate",function(){if(!a.paused()&&r){var e,o,c=null===(e=t.getCurrentVideo())||void 0===e||null===(o=e.video)||void 0===o?void 0:o.id;t.videoReplayTracker.get(c)?(t.videoReplayTracker.clear(),n.trackMap.clear(),i(),t.videoReplayTracker.set(c)):(t.videoReplayTracker.clear(),t.videoReplayTracker.set(c)),r=!1}})):i("Cannot find player with id: '".concat(e,"'"))},exports.onTimeUpdate=function(e,n){var t=o.getPlayer(e);t?t.on("timeupdate",function(){return n(t.currentTime())}):n("Cannot find player with id: '".concat(e,"'"))},exports.onVideoEnded=function(e,n){var t=o.getPlayer(e);t?t.on("ended",function(){return n(!0)}):n("Cannot find player with id: '".concat(e,"'"))},exports.playerEvents=function(){var n=function(e,n){var t=o.getPlayer(e);if(!t)throw"Cannot find player with id: '".concat(e,"'");if("function"!=typeof n)throw"Callback function (cb) is missing or not a function";return t};return{onPlay:function(e,t){n(e,t).on("play",function(){return t()})},onPause:function(e,t){n(e,t).on("pause",function(){return t()})},onMute:function(e,t){var o=n(e,t);o.on("volumechange",function(){o.muted()?t({muted:!0}):t({muted:!1})})},onPictureInPictureChange:function(e,t){var o=n(e,t);o.on("enterpictureinpicture",function(){t({pip:!0})}),o.on("leavepictureinpicture",function(){t({pip:!1})})},onFullScreenChange:function(e,t){var o=n(e,t);o.on("fullscreenchange",function(e){o.isFullscreen_?t({isFullscreen:!0}):t({isFullscreen:!1})})},onSetVolume:function(e,t){var o=n(e,t);o.on("volumechange",function(){var e=100*o.volume().toFixed(2);o.muted()?t({vol:0}):t({vol:e})})},onSeeked:function(e,t){var o=n(e,t);o.on("seeked",function(){t({seeked:o.currentTime()})})},onSubtitleEnable:function(e,t){var o=n(e,t);o.textTracks().on("change",function(e){console.log(o.textTracks());var n=o.textTracks().tracks_.filter(function(e){return("subtitles"===e.kind||"captions"===e.kind)&&"showing"===e.mode});n.length>0&&t({enabled:n[0]})})},onDisableSubtitles:function(e,t){var o=n(e,t);o.textTracks().on("change",function(e){var n,r;console.log(o.textTracks()),(null==o||null===(n=o.textTracks())||void 0===n||null===(r=n.tracks_)||void 0===r?void 0:r.every(function(e){return"showing"!=e.mode}))&&t({captions_disabled:!0})})},onSubtitleCueChange:function(t,o){var r=n(t,o);r.on("loadeddata",function(){var n,t,i,a,c,u=r.textTracks();"object"==e(r.dash)&&null!=r.dash&&r.dash.mediaPlayer.on(null===(t=window)||void 0===t||null===(i=t.dashjs)||void 0===i||null===(a=i.MediaPlayer)||void 0===a||null===(c=a.events)||void 0===c?void 0:c.CAPTION_RENDERED,function(e){o(e)});for(var l=0;l<u.length;l++){var d=u[l];"metadata"===d.kind&&(d.mode="hidden",n=d)}n&&n.addEventListener("cuechange",function(){var e=n.activeCues;if(e&&e.length>0)for(var t=0;t<e.length;t++){var r=e[t];o(r)}else console.log("no active cue at this moment")})})},onError:function(e,t){var o=n(e,t);o.on("error",function(){var e,n;t({error:null==o||null===(e=o.error())||void 0===e?void 0:e.code,msg:null==o||null===(n=o.error())||void 0===n?void 0:n.message})})}}},exports.seekToTimeStamp=function(e,n,t){var r=o.getPlayer(e);r?n>=0&&n<=r.duration()?(t({status:!0,msg:"Successfully seeked to timestamp : ".concat(n)}),r.currentTime(n)):t({status:!1,msg:"Out of bounds, please provide a valid timestamp"}):t("Cannot find player with id: '".concat(e,"'"))},exports.setPlaybackSpeed=function(e,n){var t=o.getPlayer(e);if(!t)return"Cannot find player with id: '".concat(e,"'");try{return t.playbackRate(n),"Playback speed set to ".concat(n,"x")}catch(e){return"Error: ".concat(e)}};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var e=require("@babel/runtime/helpers/typeof"),n=require("./generic-939a3e97.js"),t=require("./currentVideoInfo-5802821b.js"),o=require("./player_instance-fcf6a8fb.js"),r=!1;exports.getVideoDuration=function(e){var n=o.getPlayer(e);return n?n.duration():"Cannot find player with id: '".concat(e,"'")},exports.onReplay=function(e,i){var a=o.getPlayer(e);a?(a.on("ended",function(){return r=!0}),a.on("timeupdate",function(){if(!a.paused()&&r){var e,o,c=null===(e=t.getCurrentVideo())||void 0===e||null===(o=e.video)||void 0===o?void 0:o.id;t.videoReplayTracker.get(c)?(t.videoReplayTracker.clear(),n.trackMap.clear(),i(),t.videoReplayTracker.set(c)):(t.videoReplayTracker.clear(),t.videoReplayTracker.set(c)),r=!1}})):i("Cannot find player with id: '".concat(e,"'"))},exports.onTimeUpdate=function(e,n){var t=o.getPlayer(e);t?t.on("timeupdate",function(){return n(t.currentTime())}):n("Cannot find player with id: '".concat(e,"'"))},exports.onVideoEnded=function(e,n){var t=o.getPlayer(e);t?t.on("ended",function(){return n(!0)}):n("Cannot find player with id: '".concat(e,"'"))},exports.playerEvents=function(){var n=function(e,n){var t=o.getPlayer(e);if(!t)throw"Cannot find player with id: '".concat(e,"'");if("function"!=typeof n)throw"Callback function (cb) is missing or not a function";return t};return{onPlay:function(e,t){n(e,t).on("play",function(){return t()})},onPause:function(e,t){n(e,t).on("pause",function(){return t()})},onMute:function(e,t){var o=n(e,t);o.on("volumechange",function(){o.muted()?t({muted:!0}):t({muted:!1})})},onPictureInPictureChange:function(e,t){var o=n(e,t);o.on("enterpictureinpicture",function(){t({pip:!0})}),o.on("leavepictureinpicture",function(){t({pip:!1})})},onFullScreenChange:function(e,t){var o=n(e,t);o.on("fullscreenchange",function(e){o.isFullscreen_?t({isFullscreen:!0}):t({isFullscreen:!1})})},onSetVolume:function(e,t){var o=n(e,t);o.on("volumechange",function(){var e=100*o.volume().toFixed(2);o.muted()?t({vol:0}):t({vol:e})})},onSeeked:function(e,t){var o=n(e,t);o.on("seeked",function(){t({seeked:o.currentTime()})})},onSubtitleEnable:function(e,t){var o=n(e,t);o.textTracks().on("change",function(e){console.log(o.textTracks());var n=o.textTracks().tracks_.filter(function(e){return("subtitles"===e.kind||"captions"===e.kind)&&"showing"===e.mode});n.length>0&&t({enabled:n[0]})})},onDisableSubtitles:function(e,t){var o=n(e,t);o.textTracks().on("change",function(e){var n,r;console.log(o.textTracks()),(null==o||null===(n=o.textTracks())||void 0===n||null===(r=n.tracks_)||void 0===r?void 0:r.every(function(e){return"showing"!=e.mode}))&&t({captions_disabled:!0})})},onSubtitleCueChange:function(t,o){var r=n(t,o);r.on("loadeddata",function(){var n,t,i,a,c,u=r.textTracks();"object"==e(r.dash)&&null!=r.dash&&r.dash.mediaPlayer.on(null===(t=window)||void 0===t||null===(i=t.dashjs)||void 0===i||null===(a=i.MediaPlayer)||void 0===a||null===(c=a.events)||void 0===c?void 0:c.CAPTION_RENDERED,function(e){o(e)});for(var l=0;l<u.length;l++){var d=u[l];"metadata"===d.kind&&(d.mode="hidden",n=d)}n&&n.addEventListener("cuechange",function(){var e=n.activeCues;if(e&&e.length>0)for(var t=0;t<e.length;t++){var r=e[t];o(r)}else console.log("no active cue at this moment")})})},onError:function(e,t){var o=n(e,t);o.on("error",function(){var e,n;t({error:null==o||null===(e=o.error())||void 0===e?void 0:e.code,msg:null==o||null===(n=o.error())||void 0===n?void 0:n.message})})}}},exports.seekToTimeStamp=function(e,n,t){var r=o.getPlayer(e);r?n>=0&&n<=r.duration()?(t({status:!0,msg:"Successfully seeked to timestamp : ".concat(n)}),r.currentTime(n)):t({status:!1,msg:"Out of bounds, please provide a valid timestamp"}):t("Cannot find player with id: '".concat(e,"'"))},exports.setPlaybackSpeed=function(e,n){var t=o.getPlayer(e);if(!t)return"Cannot find player with id: '".concat(e,"'");try{return t.playbackRate(n),"Playback speed set to ".concat(n,"x")}catch(e){return"Error: ".concat(e)}};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var t=require("./skin-3544db58.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)}};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var e=require("@babel/runtime/helpers/typeof"),n=require("./generic-29d5b2ec.js"),t=require("./currentVideoInfo-5802821b.js"),o=require("./player_instance-fcf6a8fb.js"),r=!1;exports.getVideoDuration=function(e){var n=o.getPlayer(e);return n?n.duration():"Cannot find player with id: '".concat(e,"'")},exports.onReplay=function(e,i){var a=o.getPlayer(e);a?(a.on("ended",function(){return r=!0}),a.on("timeupdate",function(){if(!a.paused()&&r){var e,o,c=null===(e=t.getCurrentVideo())||void 0===e||null===(o=e.video)||void 0===o?void 0:o.id;t.videoReplayTracker.get(c)?(t.videoReplayTracker.clear(),n.trackMap.clear(),i(),t.videoReplayTracker.set(c)):(t.videoReplayTracker.clear(),t.videoReplayTracker.set(c)),r=!1}})):i("Cannot find player with id: '".concat(e,"'"))},exports.onTimeUpdate=function(e,n){var t=o.getPlayer(e);t?t.on("timeupdate",function(){return n(t.currentTime())}):n("Cannot find player with id: '".concat(e,"'"))},exports.onVideoEnded=function(e,n){var t=o.getPlayer(e);t?t.on("ended",function(){return n(!0)}):n("Cannot find player with id: '".concat(e,"'"))},exports.playerEvents=function(){var n=function(e,n){var t=o.getPlayer(e);if(!t)throw"Cannot find player with id: '".concat(e,"'");if("function"!=typeof n)throw"Callback function (cb) is missing or not a function";return t};return{onPlay:function(e,t){n(e,t).on("play",function(){return t()})},onPause:function(e,t){n(e,t).on("pause",function(){return t()})},onMute:function(e,t){var o=n(e,t);o.on("volumechange",function(){o.muted()?t({muted:!0}):t({muted:!1})})},onPictureInPictureChange:function(e,t){var o=n(e,t);o.on("enterpictureinpicture",function(){t({pip:!0})}),o.on("leavepictureinpicture",function(){t({pip:!1})})},onFullScreenChange:function(e,t){var o=n(e,t);o.on("fullscreenchange",function(e){o.isFullscreen_?t({isFullscreen:!0}):t({isFullscreen:!1})})},onSetVolume:function(e,t){var o=n(e,t);o.on("volumechange",function(){var e=100*o.volume().toFixed(2);o.muted()?t({vol:0}):t({vol:e})})},onSeeked:function(e,t){var o=n(e,t);o.on("seeked",function(){t({seeked:o.currentTime()})})},onSubtitleEnable:function(e,t){var o=n(e,t);o.textTracks().on("change",function(e){console.log(o.textTracks());var n=o.textTracks().tracks_.filter(function(e){return("subtitles"===e.kind||"captions"===e.kind)&&"showing"===e.mode});n.length>0&&t({enabled:n[0]})})},onDisableSubtitles:function(e,t){var o=n(e,t);o.textTracks().on("change",function(e){var n,r;console.log(o.textTracks()),(null==o||null===(n=o.textTracks())||void 0===n||null===(r=n.tracks_)||void 0===r?void 0:r.every(function(e){return"showing"!=e.mode}))&&t({captions_disabled:!0})})},onSubtitleCueChange:function(t,o){var r=n(t,o);r.on("loadeddata",function(){var n,t,i,a,c,u=r.textTracks();"object"==e(r.dash)&&null!=r.dash&&r.dash.mediaPlayer.on(null===(t=window)||void 0===t||null===(i=t.dashjs)||void 0===i||null===(a=i.MediaPlayer)||void 0===a||null===(c=a.events)||void 0===c?void 0:c.CAPTION_RENDERED,function(e){o(e)});for(var l=0;l<u.length;l++){var d=u[l];"metadata"===d.kind&&(d.mode="hidden",n=d)}n&&n.addEventListener("cuechange",function(){var e=n.activeCues;if(e&&e.length>0)for(var t=0;t<e.length;t++){var r=e[t];o(r)}else console.log("no active cue at this moment")})})},onError:function(e,t){var o=n(e,t);o.on("error",function(){var e,n;t({error:null==o||null===(e=o.error())||void 0===e?void 0:e.code,msg:null==o||null===(n=o.error())||void 0===n?void 0:n.message})})}}},exports.seekToTimeStamp=function(e,n,t){var r=o.getPlayer(e);r?n>=0&&n<=r.duration()?(t({status:!0,msg:"Successfully seeked to timestamp : ".concat(n)}),r.currentTime(n)):t({status:!1,msg:"Out of bounds, please provide a valid timestamp"}):t("Cannot find player with id: '".concat(e,"'"))},exports.setPlaybackSpeed=function(e,n){var t=o.getPlayer(e);if(!t)return"Cannot find player with id: '".concat(e,"'");try{return t.playbackRate(n),"Playback speed set to ".concat(n,"x")}catch(e){return"Error: ".concat(e)}};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var e=require("@babel/runtime/helpers/classCallCheck"),t=require("@babel/runtime/helpers/createClass"),i=require("@babel/runtime/helpers/inherits"),n=require("@babel/runtime/helpers/possibleConstructorReturn"),o=require("@babel/runtime/helpers/getPrototypeOf"),r=require("video.js"),a=require("./icons-2609dbe4.js"),l=require("./generic-743174bb.js"),d=require("./currentVideoInfo-5802821b.js"),s=require("./skin-eeec7a85.js"),c=require("./autoNextVideo-1c6abafe.js"),u=require("./localisation-56e0a999.js");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("./player_instance-fcf6a8fb.js"),require("md5"),require("js-cookie"),require("./captions-68e263dd.js"),require("@babel/runtime/helpers/typeof"),require("@babel/runtime/helpers/toConsumableArray"),require("@babel/runtime/helpers/slicedToArray"),require("@viewlift/comscore/index.js"),require("./util-233dec09.js");var m=r.getComponent("Component"),p=function(){i(y,m);var p,h,b=(p=y,h=v(),function(){var e,t=o(p);if(h){var i=o(this).constructor;e=Reflect.construct(t,arguments,i)}else e=t.apply(this,arguments);return n(this,e)});function y(t){var i,n,o,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e(this,y),(o=b.call(this,t,r)).playerId=r.playerId,o.seriesData=r.sres,o.videos=r.related.content,o.cb=(null==r||null===(i=r.related)||void 0===i?void 0:i.cb)||null,o.autoNext=(null==r||null===(n=r.related)||void 0===n?void 0:n.autoNext)||!1,o.currentVideoData=r.res,o.initialiseStructure(),o.loadCSS(),o.autoNext&&(d.setVideoIdx(0),c.autoPlayNext({playerId:o.playerId,content:o.videos,cb:o.cb})),o}return t(y,[{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(),i=r.dom.createEl("div",{className:"video-selection-container hidden"});r.dom.$(".video-selector-icon",this.el()).onclick=function(){var n;null!==(n=i.classList)&&void 0!==n&&n.contains("hidden")?(s.closeOpenDrawers(),i.classList.remove("hidden"),t.classList.add("open"),i.style.right="0px",s.setUpdatedElHeight(e.playerId,i)):(i.classList.add("hidden"),t.classList.remove("open"),i.style.right="-350px")};var n=document.getElementById(this.playerId);if(n){var o=window.getComputedStyle(n,null).getPropertyValue("height");i.style.height="".concat(o),r.dom.appendContent(t,i),n.style.overflow="hidden",this.addFunctionality(i),s.detectOrientationChange(this.playerId,i)}}},{key:"toggleOpenClose",value:function(){}},{key:"addFunctionality",value:function(e){var t=this,i=this.el(),n=r.dom.createEl("div",{className:"video-selector-head"}),o=r.dom.createEl("div",{className:"video-selector-cross-icon",innerHTML:"".concat(a.crossIconSvg())});o.onclick=function(){e.classList.add("hidden"),i.classList.remove("open"),e.style.right="-350px"};for(var c=r.dom.createEl("div",{className:"video-selector-title",innerHTML:u.getLocalisation("relatedVideoTitle")||"Recommended"}),v=r.dom.createEl("div",{className:"video-selector-content"}),m=r.dom.createEl("div",{className:"video-container"}),p=function(e){var i,n,o,a,c,u=r.dom.createEl("div",{className:"video -".concat(e)}),p=r.dom.createEl("div",{className:"recommended -".concat(e)});p.setAttribute("video-idx",e),p.onclick=function(){d.setVideoIdx(e+1);for(var i=r.dom.$$(".recommended"),n=0;n<i.length;n++)i[n].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 h=document.createElement("img");h.className="related-thumbnail-image",h.src="".concat((null==t||null===(i=t.videos)||void 0===i||null===(n=i[e])||void 0===n?void 0:n.img)||(null===(o=window)||void 0===o||null===(a=o.customData)||void 0===a?void 0:a.fallbackImage)),h.alt="No Thumbnail Available",p.append(h);var b=r.dom.createEl("div",{className:"info -".concat(e),innerHTML:"".concat((null==t||null===(c=t.videos[e])||void 0===c?void 0:c.title)||"")});r.dom.appendContent(u,p),r.dom.appendContent(u,b),r.dom.appendContent(m,u),r.dom.appendContent(v,m)},h=0;h<this.videos.length;h++)p(h);r.dom.appendContent(n,o),r.dom.appendContent(n,c),r.dom.appendContent(e,n),r.dom.appendContent(e,v),s.handleDrawerResizing(this.playerId,e)}}]),y}();exports.default=p;
|
|
@@ -0,0 +1 @@
|
|
|
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-2609dbe4.js"),r=require("./generic-939a3e97.js"),d=require("./currentVideoInfo-5802821b.js"),s=require("./skin-eeec7a85.js"),c=require("./autoNextVideo-cb31894f.js"),u=require("./localisation-56e0a999.js");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("./player_instance-fcf6a8fb.js"),require("md5"),require("js-cookie"),require("./captions-68e263dd.js"),require("@babel/runtime/helpers/typeof"),require("@babel/runtime/helpers/toConsumableArray"),require("@babel/runtime/helpers/slicedToArray"),require("@viewlift/comscore/index.js"),require("./util-4769ed5b.js");var v=l.getComponent("Component"),p=function(){n(b,v);var p,h,y=(p=b,h=m(),function(){var e,t=i(p);if(h){var n=i(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return o(this,e)});function b(t){var n,o,i,l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e(this,b),(i=y.call(this,t,l)).playerId=l.playerId,i.seriesData=l.sres,i.videos=l.related.content,i.cb=(null==l||null===(n=l.related)||void 0===n?void 0:n.cb)||null,i.autoNext=(null==l||null===(o=l.related)||void 0===o?void 0:o.autoNext)||!1,i.currentVideoData=l.res,i.initialiseStructure(),i.loadCSS(),i.autoNext&&(d.setVideoIdx(0),c.autoPlayNext({playerId:i.playerId,content:i.videos,cb:i.cb})),i}return t(b,[{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")?(s.closeOpenDrawers(),n.classList.remove("hidden"),t.classList.add("open"),s.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),s.detectOrientationChange(this.playerId,n)}}},{key:"loadVideoAssetById",value:function(e){var t=this;d.setVideoIdx(e+1);for(var n=l.dom.$$(".recommended"),o=0;o<n.length;o++)n[o].style.border="none";s.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:u.getLocalisation("relatedVideoTitle")||"Recommended"}),d=l.dom.createEl("div",{className:"video-selector-content",tabIndex:-1}),c=l.dom.createEl("div",{className:"video-container video-accessibility"}),m=function(e){var n,o,i,a,r,u,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(s.impolicy16x9(null==t||null===(n=t.videos)||void 0===n||null===(o=n[e])||void 0===o?void 0:o.img)||s.impolicy16x9(null===(i=window)||void 0===i||null===(a=i.app_data)||void 0===a||null===(r=a.appcmsMain)||void 0===r||null===(u=r.images)||void 0===u?void 0:u.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(c,p),l.dom.appendContent(d,c)},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,d),s.handleDrawerResizing(this.playerId,e)}}]),b}();exports.default=p;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var e=require("@babel/runtime/helpers/classCallCheck"),t=require("@babel/runtime/helpers/createClass"),n=require("@babel/runtime/helpers/inherits"),i=require("@babel/runtime/helpers/possibleConstructorReturn"),o=require("@babel/runtime/helpers/getPrototypeOf"),r=require("video.js"),a=require("./icons-1a3febef.js"),l=require("./generic-f723dacd.js"),s=require("./skin-3544db58.js"),d=require("./autoNextVideo-7c491841.js"),c=require("./localisation-56e0a999.js");function u(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(u=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-07bd3069.js"),require("@babel/runtime/helpers/toConsumableArray"),require("./util-ef2cd61e.js");var v=r.getComponent("Component"),m=function(){n(b,v);var m,p,h=(m=b,p=u(),function(){var e,t=o(m);if(p){var n=o(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return i(this,e)});function b(t){var n,i,o,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e(this,b),(o=h.call(this,t,r)).playerId=r.playerId,o.seriesData=r.sres,o.videos=r.related.content,o.cb=(null==r||null===(n=r.related)||void 0===n?void 0:n.cb)||null,o.autoNext=(null==r||null===(i=r.related)||void 0===i?void 0:i.autoNext)||!1,o.currentVideoData=r.res,o.initialiseStructure(),o.loadCSS(),o.autoNext&&(l.setVideoIdx(0),d.autoPlayNext({playerId:o.playerId,content:o.videos,cb:o.cb})),o}return t(b,[{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 i;null!==(i=n.classList)&&void 0!==i&&i.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 i=document.getElementById(this.playerId);if(i){var o=window.getComputedStyle(i,null).getPropertyValue("height");n.style.height="".concat(o),r.dom.appendContent(t,n),i.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(),i=r.dom.createEl("div",{className:"video-selector-head"}),o=r.dom.createEl("div",{className:"video-selector-cross-icon",innerHTML:"".concat(a.crossIconSvg())});o.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,i,o,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"),i=0;i<n.length;i++)n[i].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===(i=n[e])||void 0===i?void 0:i.img)||(null===(o=window)||void 0===o||null===(a=o.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(i,o),r.dom.appendContent(i,d),r.dom.appendContent(e,i),r.dom.appendContent(e,u),s.handleDrawerResizing(this.playerId,e)}}]),b}();exports.default=m;
|
|
@@ -0,0 +1 @@
|
|
|
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-2609dbe4.js"),r=require("./generic-743174bb.js"),d=require("./currentVideoInfo-5802821b.js"),s=require("./skin-eeec7a85.js"),c=require("./autoNextVideo-1c6abafe.js"),u=require("./localisation-56e0a999.js");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("./player_instance-fcf6a8fb.js"),require("md5"),require("js-cookie"),require("./captions-68e263dd.js"),require("@babel/runtime/helpers/typeof"),require("@babel/runtime/helpers/toConsumableArray"),require("@babel/runtime/helpers/slicedToArray"),require("@viewlift/comscore/index.js"),require("./util-233dec09.js");var v=l.getComponent("Component"),p=function(){n(b,v);var p,h,y=(p=b,h=m(),function(){var e,t=i(p);if(h){var n=i(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return o(this,e)});function b(t){var n,o,i,l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e(this,b),(i=y.call(this,t,l)).playerId=l.playerId,i.seriesData=l.sres,i.videos=l.related.content,i.cb=(null==l||null===(n=l.related)||void 0===n?void 0:n.cb)||null,i.autoNext=(null==l||null===(o=l.related)||void 0===o?void 0:o.autoNext)||!1,i.currentVideoData=l.res,i.initialiseStructure(),i.loadCSS(),i.autoNext&&(d.setVideoIdx(0),c.autoPlayNext({playerId:i.playerId,content:i.videos,cb:i.cb})),i}return t(b,[{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")?(s.closeOpenDrawers(),n.classList.remove("hidden"),t.classList.add("open"),s.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),s.detectOrientationChange(this.playerId,n)}}},{key:"loadVideoAssetById",value:function(e){var t=this;d.setVideoIdx(e+1);for(var n=l.dom.$$(".recommended"),o=0;o<n.length;o++)n[o].style.border="none";s.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:u.getLocalisation("relatedVideoTitle")||"Recommended"}),d=l.dom.createEl("div",{className:"video-selector-content",tabIndex:-1}),c=l.dom.createEl("div",{className:"video-container video-accessibility"}),m=function(e){var n,o,i,a,r,u,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(s.impolicy16x9(null==t||null===(n=t.videos)||void 0===n||null===(o=n[e])||void 0===o?void 0:o.img)||s.impolicy16x9(null===(i=window)||void 0===i||null===(a=i.app_data)||void 0===a||null===(r=a.appcmsMain)||void 0===r||null===(u=r.images)||void 0===u?void 0:u.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(c,p),l.dom.appendContent(d,c)},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,d),s.handleDrawerResizing(this.playerId,e)}}]),b}();exports.default=p;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var e=require("@babel/runtime/helpers/classCallCheck"),t=require("@babel/runtime/helpers/createClass"),i=require("@babel/runtime/helpers/inherits"),n=require("@babel/runtime/helpers/possibleConstructorReturn"),o=require("@babel/runtime/helpers/getPrototypeOf"),r=require("video.js"),a=require("./icons-2609dbe4.js"),l=require("./generic-939a3e97.js"),d=require("./currentVideoInfo-5802821b.js"),s=require("./skin-eeec7a85.js"),c=require("./autoNextVideo-cb31894f.js"),u=require("./localisation-56e0a999.js");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("./player_instance-fcf6a8fb.js"),require("md5"),require("js-cookie"),require("./captions-68e263dd.js"),require("@babel/runtime/helpers/typeof"),require("@babel/runtime/helpers/toConsumableArray"),require("@babel/runtime/helpers/slicedToArray"),require("@viewlift/comscore/index.js"),require("./util-4769ed5b.js");var m=r.getComponent("Component"),p=function(){i(y,m);var p,h,b=(p=y,h=v(),function(){var e,t=o(p);if(h){var i=o(this).constructor;e=Reflect.construct(t,arguments,i)}else e=t.apply(this,arguments);return n(this,e)});function y(t){var i,n,o,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e(this,y),(o=b.call(this,t,r)).playerId=r.playerId,o.seriesData=r.sres,o.videos=r.related.content,o.cb=(null==r||null===(i=r.related)||void 0===i?void 0:i.cb)||null,o.autoNext=(null==r||null===(n=r.related)||void 0===n?void 0:n.autoNext)||!1,o.currentVideoData=r.res,o.initialiseStructure(),o.loadCSS(),o.autoNext&&(d.setVideoIdx(0),c.autoPlayNext({playerId:o.playerId,content:o.videos,cb:o.cb})),o}return t(y,[{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(),i=r.dom.createEl("div",{className:"video-selection-container hidden"});r.dom.$(".video-selector-icon",this.el()).onclick=function(){var n;null!==(n=i.classList)&&void 0!==n&&n.contains("hidden")?(s.closeOpenDrawers(),i.classList.remove("hidden"),t.classList.add("open"),i.style.right="0px",s.setUpdatedElHeight(e.playerId,i)):(i.classList.add("hidden"),t.classList.remove("open"),i.style.right="-350px")};var n=document.getElementById(this.playerId);if(n){var o=window.getComputedStyle(n,null).getPropertyValue("height");i.style.height="".concat(o),r.dom.appendContent(t,i),n.style.overflow="hidden",this.addFunctionality(i),s.detectOrientationChange(this.playerId,i)}}},{key:"toggleOpenClose",value:function(){}},{key:"addFunctionality",value:function(e){var t=this,i=this.el(),n=r.dom.createEl("div",{className:"video-selector-head"}),o=r.dom.createEl("div",{className:"video-selector-cross-icon",innerHTML:"".concat(a.crossIconSvg())});o.onclick=function(){e.classList.add("hidden"),i.classList.remove("open"),e.style.right="-350px"};for(var c=r.dom.createEl("div",{className:"video-selector-title",innerHTML:u.getLocalisation("relatedVideoTitle")||"Recommended"}),v=r.dom.createEl("div",{className:"video-selector-content"}),m=r.dom.createEl("div",{className:"video-container"}),p=function(e){var i,n,o,a,c,u=r.dom.createEl("div",{className:"video -".concat(e)}),p=r.dom.createEl("div",{className:"recommended -".concat(e)});p.setAttribute("video-idx",e),p.onclick=function(){d.setVideoIdx(e+1);for(var i=r.dom.$$(".recommended"),n=0;n<i.length;n++)i[n].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 h=document.createElement("img");h.className="related-thumbnail-image",h.src="".concat((null==t||null===(i=t.videos)||void 0===i||null===(n=i[e])||void 0===n?void 0:n.img)||(null===(o=window)||void 0===o||null===(a=o.customData)||void 0===a?void 0:a.fallbackImage)),h.alt="No Thumbnail Available",p.append(h);var b=r.dom.createEl("div",{className:"info -".concat(e),innerHTML:"".concat((null==t||null===(c=t.videos[e])||void 0===c?void 0:c.title)||"")});r.dom.appendContent(u,p),r.dom.appendContent(u,b),r.dom.appendContent(m,u),r.dom.appendContent(v,m)},h=0;h<this.videos.length;h++)p(h);r.dom.appendContent(n,o),r.dom.appendContent(n,c),r.dom.appendContent(e,n),r.dom.appendContent(e,v),s.handleDrawerResizing(this.playerId,e)}}]),y}();exports.default=p;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var e=require("@babel/runtime/helpers/classCallCheck"),t=require("@babel/runtime/helpers/createClass"),i=require("@babel/runtime/helpers/inherits"),n=require("@babel/runtime/helpers/possibleConstructorReturn"),o=require("@babel/runtime/helpers/getPrototypeOf"),r=require("video.js"),a=require("./icons-2609dbe4.js"),l=require("./generic-29d5b2ec.js"),d=require("./currentVideoInfo-5802821b.js"),s=require("./skin-eeec7a85.js"),c=require("./autoNextVideo-7423bae2.js"),u=require("./localisation-56e0a999.js");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("./player_instance-fcf6a8fb.js"),require("md5"),require("js-cookie"),require("./captions-68e263dd.js"),require("@babel/runtime/helpers/typeof"),require("@babel/runtime/helpers/toConsumableArray"),require("@babel/runtime/helpers/slicedToArray"),require("@viewlift/comscore/index.js"),require("./util-fbe3d806.js");var m=r.getComponent("Component"),p=function(){i(y,m);var p,h,b=(p=y,h=v(),function(){var e,t=o(p);if(h){var i=o(this).constructor;e=Reflect.construct(t,arguments,i)}else e=t.apply(this,arguments);return n(this,e)});function y(t){var i,n,o,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e(this,y),(o=b.call(this,t,r)).playerId=r.playerId,o.seriesData=r.sres,o.videos=r.related.content,o.cb=(null==r||null===(i=r.related)||void 0===i?void 0:i.cb)||null,o.autoNext=(null==r||null===(n=r.related)||void 0===n?void 0:n.autoNext)||!1,o.currentVideoData=r.res,o.initialiseStructure(),o.loadCSS(),o.autoNext&&(d.setVideoIdx(0),c.autoPlayNext({playerId:o.playerId,content:o.videos,cb:o.cb})),o}return t(y,[{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(),i=r.dom.createEl("div",{className:"video-selection-container hidden"});r.dom.$(".video-selector-icon",this.el()).onclick=function(){var n;null!==(n=i.classList)&&void 0!==n&&n.contains("hidden")?(s.closeOpenDrawers(),i.classList.remove("hidden"),t.classList.add("open"),i.style.right="0px",s.setUpdatedElHeight(e.playerId,i)):(i.classList.add("hidden"),t.classList.remove("open"),i.style.right="-350px")};var n=document.getElementById(this.playerId);if(n){var o=window.getComputedStyle(n,null).getPropertyValue("height");i.style.height="".concat(o),r.dom.appendContent(t,i),n.style.overflow="hidden",this.addFunctionality(i),s.detectOrientationChange(this.playerId,i)}}},{key:"toggleOpenClose",value:function(){}},{key:"addFunctionality",value:function(e){var t=this,i=this.el(),n=r.dom.createEl("div",{className:"video-selector-head"}),o=r.dom.createEl("div",{className:"video-selector-cross-icon",innerHTML:"".concat(a.crossIconSvg())});o.onclick=function(){e.classList.add("hidden"),i.classList.remove("open"),e.style.right="-350px"};for(var c=r.dom.createEl("div",{className:"video-selector-title",innerHTML:u.getLocalisation("relatedVideoTitle")||"Recommended"}),v=r.dom.createEl("div",{className:"video-selector-content"}),m=r.dom.createEl("div",{className:"video-container"}),p=function(e){var i,n,o,a,c,u=r.dom.createEl("div",{className:"video -".concat(e)}),p=r.dom.createEl("div",{className:"recommended -".concat(e)});p.setAttribute("video-idx",e),p.onclick=function(){d.setVideoIdx(e+1);for(var i=r.dom.$$(".recommended"),n=0;n<i.length;n++)i[n].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 h=document.createElement("img");h.className="related-thumbnail-image",h.src="".concat((null==t||null===(i=t.videos)||void 0===i||null===(n=i[e])||void 0===n?void 0:n.img)||(null===(o=window)||void 0===o||null===(a=o.customData)||void 0===a?void 0:a.fallbackImage)),h.alt="No Thumbnail Available",p.append(h);var b=r.dom.createEl("div",{className:"info -".concat(e),innerHTML:"".concat((null==t||null===(c=t.videos[e])||void 0===c?void 0:c.title)||"")});r.dom.appendContent(u,p),r.dom.appendContent(u,b),r.dom.appendContent(m,u),r.dom.appendContent(v,m)},h=0;h<this.videos.length;h++)p(h);r.dom.appendContent(n,o),r.dom.appendContent(n,c),r.dom.appendContent(e,n),r.dom.appendContent(e,v),s.handleDrawerResizing(this.playerId,e)}}]),y}();exports.default=p;
|
|
@@ -0,0 +1 @@
|
|
|
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-2609dbe4.js"),r=require("./generic-29d5b2ec.js"),d=require("./currentVideoInfo-5802821b.js"),s=require("./skin-eeec7a85.js"),c=require("./autoNextVideo-7423bae2.js"),u=require("./localisation-56e0a999.js");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("./player_instance-fcf6a8fb.js"),require("md5"),require("js-cookie"),require("./captions-68e263dd.js"),require("@babel/runtime/helpers/typeof"),require("@babel/runtime/helpers/toConsumableArray"),require("@babel/runtime/helpers/slicedToArray"),require("@viewlift/comscore/index.js"),require("./util-fbe3d806.js");var v=l.getComponent("Component"),p=function(){n(b,v);var p,h,y=(p=b,h=m(),function(){var e,t=i(p);if(h){var n=i(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return o(this,e)});function b(t){var n,o,i,l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e(this,b),(i=y.call(this,t,l)).playerId=l.playerId,i.seriesData=l.sres,i.videos=l.related.content,i.cb=(null==l||null===(n=l.related)||void 0===n?void 0:n.cb)||null,i.autoNext=(null==l||null===(o=l.related)||void 0===o?void 0:o.autoNext)||!1,i.currentVideoData=l.res,i.initialiseStructure(),i.loadCSS(),i.autoNext&&(d.setVideoIdx(0),c.autoPlayNext({playerId:i.playerId,content:i.videos,cb:i.cb})),i}return t(b,[{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")?(s.closeOpenDrawers(),n.classList.remove("hidden"),t.classList.add("open"),s.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),s.detectOrientationChange(this.playerId,n)}}},{key:"loadVideoAssetById",value:function(e){var t=this;d.setVideoIdx(e+1);for(var n=l.dom.$$(".recommended"),o=0;o<n.length;o++)n[o].style.border="none";s.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:u.getLocalisation("relatedVideoTitle")||"Recommended"}),d=l.dom.createEl("div",{className:"video-selector-content",tabIndex:-1}),c=l.dom.createEl("div",{className:"video-container video-accessibility"}),m=function(e){var n,o,i,a,r,u,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(s.impolicy16x9(null==t||null===(n=t.videos)||void 0===n||null===(o=n[e])||void 0===o?void 0:o.img)||s.impolicy16x9(null===(i=window)||void 0===i||null===(a=i.app_data)||void 0===a||null===(r=a.appcmsMain)||void 0===r||null===(u=r.images)||void 0===u?void 0:u.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(c,p),l.dom.appendContent(d,c)},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,d),s.handleDrawerResizing(this.playerId,e)}}]),b}();exports.default=p;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var e=require("@babel/runtime/helpers/classCallCheck"),t=require("@babel/runtime/helpers/createClass"),i=require("@babel/runtime/helpers/inherits"),n=require("@babel/runtime/helpers/possibleConstructorReturn"),o=require("@babel/runtime/helpers/getPrototypeOf"),r=require("video.js"),a=require("./icons-1a3febef.js"),l=require("./generic-f723dacd.js"),d=require("./skin-3544db58.js"),s=require("./autoNextVideo-7c491841.js"),c=require("./localisation-56e0a999.js");function u(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(u=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-07bd3069.js"),require("@babel/runtime/helpers/toConsumableArray"),require("./util-ef2cd61e.js");var v=r.getComponent("Component"),m=function(){i(b,v);var m,p,h=(m=b,p=u(),function(){var e,t=o(m);if(p){var i=o(this).constructor;e=Reflect.construct(t,arguments,i)}else e=t.apply(this,arguments);return n(this,e)});function b(t){var i,n,o,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e(this,b),(o=h.call(this,t,r)).playerId=r.playerId,o.seriesData=r.sres,o.videos=r.related.content,o.cb=(null==r||null===(i=r.related)||void 0===i?void 0:i.cb)||null,o.autoNext=(null==r||null===(n=r.related)||void 0===n?void 0:n.autoNext)||!1,o.currentVideoData=r.res,o.initialiseStructure(),o.loadCSS(),o.autoNext&&(l.setVideoIdx(0),s.autoPlayNext({playerId:o.playerId,content:o.videos,cb:o.cb})),o}return t(b,[{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.PlaylistIcon())});return r.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(),i=r.dom.createEl("div",{className:"video-selection-container hidden"});r.dom.$(".video-selector-icon",this.el()).onclick=function(){var n;null!==(n=i.classList)&&void 0!==n&&n.contains("hidden")?(d.closeOpenDrawers(),i.classList.remove("hidden"),t.classList.add("open"),d.setUpdatedElHeight(e.playerId,i)):(i.classList.add("hidden"),t.classList.remove("open"))};var n=document.getElementById(this.playerId);if(n){var o=window.getComputedStyle(n,null).getPropertyValue("height");i.style.height="".concat(o),r.dom.appendContent(t,i),n.style.overflow="hidden",this.addFunctionality(i),d.detectOrientationChange(this.playerId,i)}}},{key:"addFunctionality",value:function(e){var t=this,i=this.el(),n=r.dom.createEl("div",{className:"video-selector-head"}),o=r.dom.createEl("div",{className:"video-selector-cross-icon",innerHTML:"".concat(a.crossIconSvg())});o.onclick=function(){e.classList.add("hidden"),i.classList.remove("open")};for(var s=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 i,n,o,a,s,c,m,p,h=r.dom.createEl("div",{className:"video -".concat(e)}),b=r.dom.createEl("div",{className:"recommended -".concat(e)});b.setAttribute("video-idx",e),b.onclick=function(){l.setVideoIdx(e+1);for(var i=r.dom.$$(".recommended"),n=0;n<i.length;n++)i[n].style.border="none";d.highlightVideo(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 y=document.createElement("img");y.className="related-thumbnail-image",y.src="".concat(d.impolicy16x9(null==t||null===(i=t.videos)||void 0===i||null===(n=i[e])||void 0===n?void 0:n.img)||d.impolicy16x9(null===(o=window)||void 0===o||null===(a=o.app_data)||void 0===a||null===(s=a.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(" "))||""),b.append(y);var f=r.dom.createEl("div",{className:"info -".concat(e),innerHTML:"".concat((null==t||null===(p=t.videos[e])||void 0===p?void 0:p.title)||"")});r.dom.appendContent(h,b),r.dom.appendContent(h,f),r.dom.appendContent(v,h),r.dom.appendContent(u,v)},p=0;p<this.videos.length;p++)m(p);r.dom.appendContent(n,s),r.dom.appendContent(n,o),r.dom.appendContent(e,n),r.dom.appendContent(e,u),d.handleDrawerResizing(this.playerId,e)}}]),b}();exports.default=m;
|