@viewlift/player-backup 2.0.143-backup → 2.0.144-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-92f6e1a1.js +1 -0
- package/cjs/bundle.css +129 -976
- package/cjs/caption-settings-d2d5e85a.js +1 -0
- package/cjs/captions-68e263dd.js +1 -0
- package/cjs/currentVideoInfo-701b6888.js +1 -0
- package/cjs/features-4fc83252.js +1 -0
- package/cjs/generic-2a1f9a8b.js +1 -0
- package/cjs/helper-f5c238fa.js +1 -0
- package/cjs/{icons-eb807ef0.js → icons-2609dbe4.js} +1 -1
- package/cjs/index-84cce26a.js +1 -0
- package/cjs/index-ab47df07.js +1 -0
- package/cjs/index-c53dbd8e.js +1 -0
- package/cjs/index.js +1 -1
- package/cjs/multicamv2-84bee493.js +1 -0
- package/cjs/multicamv2-fc53b4ac.js +1 -0
- package/cjs/nextEpisodeButton-a01f5767.js +1 -0
- package/cjs/player_instance-fcf6a8fb.js +1 -0
- package/cjs/playlist-b6b69ca8.js +1 -0
- package/cjs/resolution-9c4872ec.js +1 -0
- package/cjs/resolution-v2-50cbd77b.js +1 -0
- package/cjs/series-bb3d3860.js +1 -0
- package/cjs/series-v2-51460f31.js +1 -0
- package/cjs/series-v2-7f7daa7e.js +1 -0
- package/cjs/settings-icon-9d3d7007.js +1 -0
- package/cjs/skin-12248e27.js +1 -0
- package/cjs/skin-12fb10da.js +1 -0
- package/cjs/skin-356f0596.js +1 -0
- package/cjs/skin-3abcf9f2.js +1 -0
- package/cjs/skin-71b7d779.js +1 -0
- package/cjs/skin-8fbed638.js +1 -0
- package/cjs/skin-ab9d3f59.js +1 -0
- package/cjs/skin-f68a156a.js +1 -0
- package/cjs/skin-fc3ed8c4.js +1 -0
- package/cjs/start-begin-btn-a41a373b.js +1 -0
- package/cjs/util-a3ed1133.js +1 -0
- package/cjs/videoSelector-8d5c8b75.js +1 -0
- package/cjs/videoSelector-e446b0f6.js +1 -0
- package/cjs/videojs-dash5.es-ced4b564.js +1 -0
- package/cjs/watch-live-btn-62a1ea99.js +1 -0
- package/esm/apis/index.d.ts +4 -4
- package/esm/assets/icons.d.ts +3 -0
- package/esm/autoNextVideo-b9d1e578.js +1 -0
- package/esm/bundle.css +129 -976
- package/esm/caption-settings-e7da6b4f.js +1 -0
- package/esm/captions-78bd2908.js +1 -0
- package/esm/components/dvr-startover/helper.d.ts +17 -0
- package/esm/components/dvr-startover/index.d.ts +1 -0
- package/esm/components/dvr-startover/marker.d.ts +3 -0
- package/esm/components/dvr-startover/start-begin-btn.d.ts +6 -0
- package/esm/components/dvr-startover/watch-live-btn.d.ts +6 -0
- package/esm/components/resolution/resolution-v2.d.ts +18 -0
- package/esm/components/resolution/resolution.d.ts +1 -0
- package/esm/core/util.d.ts +0 -1
- package/esm/currentVideoInfo-876f931f.js +1 -0
- package/esm/dash/linear_ssai.d.ts +1 -0
- package/esm/dash/sgai.d.ts +8 -0
- package/esm/features-6b8cac3a.js +1 -0
- package/esm/features.d.ts +2 -0
- package/esm/generic-5ad7e4b1.js +1 -0
- package/esm/helper-5b8543f8.js +1 -0
- package/esm/helpers/currentVideoInfo.d.ts +2 -5
- package/esm/helpers/token.d.ts +1 -1
- package/esm/{icons-699e8cf0.js → icons-37daa6b3.js} +1 -1
- package/esm/index-415347e6.js +1 -0
- package/esm/index-5d92eaa3.js +1 -0
- package/esm/index-dec898b0.js +1 -0
- package/esm/index.d.ts +5 -2
- package/esm/index.js +1 -1
- package/esm/multicamv2-a9da4df6.js +1 -0
- package/esm/multicamv2-ec09734e.js +1 -0
- package/esm/nextEpisodeButton-090c20d3.js +1 -0
- package/esm/player_instance-34118a5b.js +1 -0
- package/esm/playlist-1eb90403.js +1 -0
- package/esm/resolution-62be852a.js +1 -0
- package/esm/resolution-v2-6446fe47.js +1 -0
- package/esm/series-e9da779a.js +1 -0
- package/esm/series-v2-aead4281.js +1 -0
- package/esm/series-v2-b188f309.js +1 -0
- package/esm/settings-icon-bccd9e44.js +1 -0
- package/esm/skin-1d47c799.js +1 -0
- package/esm/skin-2a673f06.js +1 -0
- package/esm/skin-8925cc0a.js +1 -0
- package/esm/skin-9fece9a0.js +1 -0
- package/esm/skin-a9091282.js +1 -0
- package/esm/skin-abe5c289.js +1 -0
- package/esm/skin-bb6bccb5.js +1 -0
- package/esm/skin-e96c1083.js +1 -0
- package/esm/skin-eed161b7.js +1 -0
- package/esm/start-begin-btn-1c8ea964.js +1 -0
- package/esm/util-28923483.js +1 -0
- package/esm/utilities/beacon.d.ts +1 -1
- package/esm/videoSelector-100bc346.js +1 -0
- package/esm/videoSelector-366858ef.js +1 -0
- package/esm/videojs-dash5.es-2dcf13b7.js +1 -0
- package/esm/watch-live-btn-5ac0e12a.js +1 -0
- package/package.json +1 -1
- package/cjs/autoNextVideo-d850ee4e.js +0 -1
- package/cjs/browser-77c57718.js +0 -1
- package/cjs/caption-settings-097ff979.js +0 -1
- package/cjs/captions-72ec7e00.js +0 -1
- package/cjs/features-ba93a89c.js +0 -1
- package/cjs/generic-0991f3f4.js +0 -1
- package/cjs/index-3f0e537b.js +0 -1
- package/cjs/index-48cd83eb.js +0 -1
- package/cjs/index-edb14fce.js +0 -1
- package/cjs/multicamv2-d19fe295.js +0 -1
- package/cjs/multicamv2-e411dad6.js +0 -1
- package/cjs/nextEpisodeButton-55805da7.js +0 -1
- package/cjs/playlist-edd31cf2.js +0 -1
- package/cjs/renditions-aa9afb62.js +0 -1
- package/cjs/resolution-6bc4f52e.js +0 -1
- package/cjs/series-58e247c5.js +0 -1
- package/cjs/series-v2-359e101d.js +0 -1
- package/cjs/series-v2-dd1ab066.js +0 -1
- package/cjs/settings-icon-0617fef9.js +0 -1
- package/cjs/skin-0271d221.js +0 -1
- package/cjs/skin-03cd1be6.js +0 -1
- package/cjs/skin-0566fd3c.js +0 -1
- package/cjs/skin-292f29df.js +0 -1
- package/cjs/skin-5271b7d9.js +0 -1
- package/cjs/skin-b74beee5.js +0 -1
- package/cjs/skin-c52c7e46.js +0 -1
- package/cjs/skin-cb598572.js +0 -1
- package/cjs/skin-ecbe4359.js +0 -1
- package/cjs/util-9873783c.js +0 -1
- package/cjs/videoSelector-278007b2.js +0 -1
- package/cjs/videoSelector-e8cfb5bd.js +0 -1
- package/cjs/videojs-dash5.es-3854764f.js +0 -1
- package/esm/autoNextVideo-5a2b0157.js +0 -1
- package/esm/browser-d4613b36.js +0 -1
- package/esm/caption-settings-896d4b1e.js +0 -1
- package/esm/captions-c93ac538.js +0 -1
- package/esm/features-5e51d5de.js +0 -1
- package/esm/generic-3de3fe10.js +0 -1
- package/esm/index-7e2e5b17.js +0 -1
- package/esm/index-85ea3fd1.js +0 -1
- package/esm/index-8e3eab6d.js +0 -1
- package/esm/multicamv2-85d6075d.js +0 -1
- package/esm/multicamv2-df2f24d9.js +0 -1
- package/esm/nextEpisodeButton-362d6098.js +0 -1
- package/esm/playlist-5ade20d5.js +0 -1
- package/esm/renditions-18d9b04b.js +0 -1
- package/esm/resolution-62626802.js +0 -1
- package/esm/series-9b0857a9.js +0 -1
- package/esm/series-v2-683e0bb4.js +0 -1
- package/esm/series-v2-78cdef74.js +0 -1
- package/esm/settings-icon-c2a6e1bc.js +0 -1
- package/esm/skin/mini/events.d.ts +0 -1
- package/esm/skin/mini/skin.d.ts +0 -1
- package/esm/skin-0c68ec44.js +0 -1
- package/esm/skin-7194ddf8.js +0 -1
- package/esm/skin-8379a437.js +0 -1
- package/esm/skin-8915abea.js +0 -1
- package/esm/skin-96ea65f7.js +0 -1
- package/esm/skin-9d1cd41d.js +0 -1
- package/esm/skin-aac48b88.js +0 -1
- package/esm/skin-b979ec23.js +0 -1
- package/esm/skin-c4f16045.js +0 -1
- package/esm/util-431d94d8.js +0 -1
- package/esm/videoSelector-1d3c9609.js +0 -1
- package/esm/videoSelector-ecf5c473.js +0 -1
- package/esm/videojs-dash5.es-08c7635e.js +0 -1
package/esm/skin-9d1cd41d.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{f as l,d as e,e as i,j as n,k as o,l as t,m as s}from"./features-5e51d5de.js";import{f as r}from"./icons-699e8cf0.js";import{g as a,p as u,e as d}from"./skin-96ea65f7.js";import{g as C}from"./renditions-18d9b04b.js";import{a as v,b as c}from"./index-85ea3fd1.js";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/slicedToArray";import"@babel/runtime/helpers/toConsumableArray";import{d as p}from"./browser-d4613b36.js";import{d as h,W as m,j as f}from"./generic-3de3fe10.js";import"@babel/runtime/helpers/classCallCheck";import"@babel/runtime/helpers/createClass";import"@babel/runtime/helpers/inherits";import"@babel/runtime/helpers/possibleConstructorReturn";import"@babel/runtime/helpers/getPrototypeOf";import"video.js";import"./localisation-0bf399a1.js";import"./autoNextVideo-5a2b0157.js";import"./util-431d94d8.js";import"@babel/runtime/helpers/typeof";import"axios";import"js-cookie";import"./captions-c93ac538.js";function b(b,B){a(b).addClass("skin_mini"),"Chrome"==p()&&import("./chromett-a3cbb2e1.js").then((function(l){var e=document.createElement("style");e.id="chromett",e.append("".concat(l.default)),document.head.appendChild(e)})),function(e,i){var n=a(e);n&&n.on("loadeddata",(function(){var n,o,t,s,r,a,u;(null===(n=C(e))||void 0===n?void 0:n.length)>0&&0!=(null==i||null===(o=i.skin_settings)||void 0===o?void 0:o.settingsToggle)&&l(e,i),!(null!=i&&null!==(t=i.series)&&void 0!==t&&t.enable||null!==(s=window)&&void 0!==s&&null!==(r=s.app_data)&&void 0!==r&&null!==(a=r.appcmsMain)&&void 0!==a&&null!==(u=a.features)&&void 0!==u&&u.auto_play)||null!=i&&i.liveVideo||v(e,i)}))}(b,B),function(l,e){var i,n,o,t,s,r,C,v,c,p,h,m,f,b,B,y,g,L,j=a(l);null===(i=j.controlBar)||void 0===i||i.removeChild("VolumePanel"),null===(n=j.controlBar)||void 0===n||n.addChild("VolumePanel",{inline:!1},1);var E=null===(o=j.controlBar)||void 0===o?void 0:o.getChild("ProgressControl"),w=document.createElement("div");w.className="custom-spaced-progress-bar",E&&w.append(E.el());null===(t=j.controlBar)||void 0===t||null===(s=t.el())||void 0===s||s.append(w);var V='<svg xmlns="http://www.w3.org/2000/svg" style="display : none">\n <defs>\n <symbol id="vjs-icon-pause" viewBox="0 0 17 16">\n <path d="M6.00138 15.4894C6.02138 15.7494 5.82138 15.9694 5.56138 15.9894C5.54138 15.9894 5.52138 15.9894 5.50138 15.9894H2.50138C2.24138 16.0094 2.02138 15.8094 2.00138 15.5494C2.00138 15.5294 2.00138 15.5094 2.00138 15.4894V0.499411C1.98138 0.239411 2.18138 0.0194107 2.44138 -0.000589337C2.46138 -0.000589337 2.48138 -0.000589337 2.50138 -0.000589337H5.50138C5.76138 -0.0205893 5.98138 0.179411 6.00138 0.439411C6.00138 0.459411 6.00138 0.479411 6.00138 0.499411V15.4894ZM14.0014 0.509411C14.0214 0.249411 13.8214 0.0294105 13.5614 0.00941051C13.5414 0.00941051 13.5214 0.00941051 13.5014 0.00941051H10.5014C10.2414 -0.0105895 10.0214 0.189411 10.0014 0.449411C10.0014 0.469411 10.0014 0.489411 10.0014 0.509411V15.4994C9.98138 15.7594 10.1814 15.9794 10.4414 15.9994C10.4614 15.9994 10.4814 15.9994 10.5014 15.9994H13.5014C13.7614 16.0194 13.9814 15.8194 14.0014 15.5594C14.0014 15.5394 14.0014 15.5194 14.0014 15.4994V0.509411Z" fill="#EBEBEB"/>\n </symbol>\n <symbol id="vjs-icon-play" viewBox="0 0 17 16">\n <path d="M0.38279 15.9526C0.28279 16.0326 0.142791 16.0126 0.0527906 15.9126C0.0127906 15.8626 -0.00720943 15.8026 0.00279057 15.7326V0.262601C-0.0172094 0.132601 0.0727907 0.0226013 0.192791 0.00260128C0.262791 -0.00739872 0.32279 0.0126014 0.38279 0.0426014L15.8528 7.8126C16.0628 7.9226 16.0628 8.0926 15.8528 8.1926L0.38279 15.9526Z" fill="white"/>\n </symbol>\n\n <symbol id="vjs-icon-fullscreen" viewBox="0 0 24 24">\n <path d="M19.8621 5.44209L19.0221 10.4521C18.9821 10.7221 18.7821 10.7821 18.5821 10.5921L17.1421 9.15209L14.3521 11.9421L12.9321 10.5221L15.7221 7.73209L14.2821 6.29209C14.0921 6.10209 14.1521 5.90209 14.4221 5.85209L19.4321 5.01209C19.6121 4.96209 19.7921 5.07209 19.8421 5.25209C19.8821 5.32209 19.8821 5.38209 19.8621 5.44209ZM9.15209 17.1621L11.9421 14.3721L10.5221 12.9521L7.73209 15.7421L6.29209 14.3021C6.10209 14.1121 5.90209 14.1721 5.85209 14.4421L5.01209 19.4521C4.96209 19.6321 5.07209 19.8121 5.25209 19.8621C5.30209 19.8821 5.37209 19.8821 5.42209 19.8621L10.4321 19.0221C10.7021 18.9821 10.7621 18.7821 10.5721 18.5821L9.15209 17.1621Z" fill="#EBEBEB"/>\n </symbol>\n <symbol id="vjs-icon-fullscreen-back" viewBox="0 0 24 24">\n <path d="M10.92 13.49L10.08 18.5C10.04 18.77 9.84001 18.83 9.64001 18.64L8.20001 17.2L5.41001 19.99L3.99001 18.57L6.78001 15.78L5.34001 14.34C5.15001 14.15 5.21001 13.95 5.48001 13.9L10.49 13.06C10.67 13.01 10.85 13.12 10.9 13.3C10.94 13.37 10.94 13.43 10.92 13.49ZM17.21 8.21L20 5.42L18.58 4L15.79 6.79L14.35 5.35C14.16 5.16 13.96 5.22 13.91 5.49L13.07 10.5C13.02 10.68 13.13 10.86 13.31 10.91C13.36 10.93 13.43 10.93 13.48 10.91L18.49 10.07C18.76 10.03 18.82 9.83 18.63 9.63L17.21 8.21Z" fill="#EBEBEB"/>\n </symbol>\n\n <symbol id="vjs-icon-volume1" viewBox="0 0 24 24"> \n <path d="M11.65 4.28V19.72C11.65 20 11.48 20.08 11.27 19.89L5.86 15.09H2.9C2.62 15.09 2.38 14.86 2.38 14.57V9.43C2.38 9.15 2.61 8.91 2.9 8.91H5.86L11.27 4.11C11.48 3.92 11.65 3.99 11.65 4.28Z" fill="#EBEBEB"/>\n <path d="M13.62 16V14C14.73 14 15.62 13.11 15.62 12C15.62 10.89 14.73 10 13.62 10V8C15.83 8 17.62 9.79 17.62 12C17.62 14.21 15.83 16 13.62 16Z" fill="#EBEBEB"/>\n <path d="M21.62 12C21.62 7.58 18.04 4 13.62 4V6C16.93 6 19.62 8.69 19.62 12C19.62 15.31 16.93 18 13.62 18V20C18.04 19.99 21.61 16.41 21.62 12Z" fill="#EBEBEB"/>\n </symbol>\n <symbol id="vjs-icon-volume2" viewBox="0 0 24 24"> \n <path d="M11.65 4.28V19.72C11.65 20 11.48 20.08 11.27 19.89L5.86 15.09H2.9C2.62 15.09 2.38 14.86 2.38 14.57V9.43C2.38 9.15 2.61 8.91 2.9 8.91H5.86L11.27 4.11C11.48 3.92 11.65 3.99 11.65 4.28Z" fill="#EBEBEB"/>\n <path d="M13.62 16V14C14.73 14 15.62 13.11 15.62 12C15.62 10.89 14.73 10 13.62 10V8C15.83 8 17.62 9.79 17.62 12C17.62 14.21 15.83 16 13.62 16Z" fill="#EBEBEB"/>\n <path d="M21.62 12C21.62 7.58 18.04 4 13.62 4V6C16.93 6 19.62 8.69 19.62 12C19.62 15.31 16.93 18 13.62 18V20C18.04 19.99 21.61 16.41 21.62 12Z" fill="#EBEBEB"/>\n </symbol>\n <symbol id="vjs-icon-volume3" viewBox="0 0 24 24">\n <path d="M11.65 4.28V19.72C11.65 20 11.48 20.08 11.27 19.89L5.86 15.09H2.9C2.62 15.09 2.38 14.86 2.38 14.57V9.43C2.38 9.15 2.61 8.91 2.9 8.91H5.86L11.27 4.11C11.48 3.92 11.65 3.99 11.65 4.28Z" fill="#EBEBEB"/>\n <path d="M13.62 16V14C14.73 14 15.62 13.11 15.62 12C15.62 10.89 14.73 10 13.62 10V8C15.83 8 17.62 9.79 17.62 12C17.62 14.21 15.83 16 13.62 16Z" fill="#EBEBEB"/>\n <path d="M21.62 12C21.62 7.58 18.04 4 13.62 4V6C16.93 6 19.62 8.69 19.62 12C19.62 15.31 16.93 18 13.62 18V20C18.04 19.99 21.61 16.41 21.62 12Z" fill="#EBEBEB"/>\n </symbol>\n <symbol id="vjs-icon-mute" viewBox="0 0 24 24"> \n <g clip-path="url(#clip0_19_559)">\n <path d="M11.65 4.28V19.72C11.65 20 11.48 20.08 11.27 19.89L5.86 15.09H2.9C2.62 15.09 2.38 14.86 2.38 14.57V9.43C2.38 9.15 2.61 8.91 2.9 8.91H5.86L11.27 4.11C11.48 3.92 11.65 3.99 11.65 4.28Z" fill="#EBEBEB"/>\n <path d="M19.0909 12.5238L21.2626 14.6955L19.8146 16.1436L17.6429 13.9718L15.4711 16.1436L14.0231 14.6955L16.1948 12.5238L14.0231 10.352L15.4711 8.904L17.6429 11.0757L19.8146 8.904L21.2626 10.352L19.0909 12.5238Z" fill="white"/>\n </g>\n <defs>\n <clipPath id="clip0_19_559">\n <rect width="24" height="24" fill="white"/>\n </clipPath>\n </defs>\n </symbol>\n\n <symbol id="vjs-icon-pip" viewBox="0 0 24 16">\n <rect x="1" y="1" width="22" height="14" rx="1" stroke="white" stroke-width="2"/>\n <rect x="9.33331" y="6.66666" width="10.6667" height="5.33333" rx="1" fill="white"/>\n </symbol>\n\n <symbol id="vjs-icon-captions" viewBox="0 0 29 16">\n <rect x="1" y="1" width="27" height="14" rx="1" fill="white" stroke="white" stroke-width="2"/>\n <path d="M11.9795 5.25488C11.6377 5.25488 11.3317 5.31673 11.0615 5.44043C10.7946 5.56413 10.5684 5.74316 10.3828 5.97754C10.1973 6.20866 10.0557 6.49023 9.95801 6.82227C9.86035 7.15104 9.81152 7.52214 9.81152 7.93555C9.81152 8.48893 9.88965 8.96582 10.0459 9.36621C10.2021 9.76335 10.4398 10.0693 10.7588 10.2842C11.0778 10.4958 11.4814 10.6016 11.9697 10.6016C12.2725 10.6016 12.5671 10.5723 12.8535 10.5137C13.14 10.4551 13.4362 10.3753 13.7422 10.2744V11.2705C13.4525 11.3844 13.1595 11.4674 12.8633 11.5195C12.5671 11.5716 12.2253 11.5977 11.8379 11.5977C11.1087 11.5977 10.5033 11.4463 10.0215 11.1436C9.54297 10.8408 9.1849 10.4144 8.94727 9.86426C8.71289 9.31413 8.5957 8.6696 8.5957 7.93066C8.5957 7.3903 8.67057 6.89551 8.82031 6.44629C8.97005 5.99707 9.18815 5.6097 9.47461 5.28418C9.76107 4.9554 10.1143 4.70312 10.5342 4.52734C10.9574 4.34831 11.4408 4.25879 11.9844 4.25879C12.3424 4.25879 12.694 4.29948 13.0391 4.38086C13.3874 4.45898 13.7096 4.57129 14.0059 4.71777L13.5957 5.68457C13.3483 5.56738 13.0895 5.46647 12.8193 5.38184C12.5492 5.2972 12.2692 5.25488 11.9795 5.25488ZM17.9174 5.25488C17.5756 5.25488 17.2696 5.31673 16.9994 5.44043C16.7325 5.56413 16.5062 5.74316 16.3207 5.97754C16.1352 6.20866 15.9936 6.49023 15.8959 6.82227C15.7982 7.15104 15.7494 7.52214 15.7494 7.93555C15.7494 8.48893 15.8275 8.96582 15.9838 9.36621C16.14 9.76335 16.3777 10.0693 16.6967 10.2842C17.0157 10.4958 17.4193 10.6016 17.9076 10.6016C18.2104 10.6016 18.5049 10.5723 18.7914 10.5137C19.0779 10.4551 19.3741 10.3753 19.6801 10.2744V11.2705C19.3904 11.3844 19.0974 11.4674 18.8012 11.5195C18.5049 11.5716 18.1632 11.5977 17.7758 11.5977C17.0466 11.5977 16.4411 11.4463 15.9594 11.1436C15.4809 10.8408 15.1228 10.4144 14.8852 9.86426C14.6508 9.31413 14.5336 8.6696 14.5336 7.93066C14.5336 7.3903 14.6085 6.89551 14.7582 6.44629C14.9079 5.99707 15.126 5.6097 15.4125 5.28418C15.699 4.9554 16.0521 4.70312 16.4721 4.52734C16.8952 4.34831 17.3786 4.25879 17.9223 4.25879C18.2803 4.25879 18.6319 4.29948 18.977 4.38086C19.3253 4.45898 19.6475 4.57129 19.9437 4.71777L19.5336 5.68457C19.2862 5.56738 19.0274 5.46647 18.7572 5.38184C18.487 5.2972 18.2071 5.25488 17.9174 5.25488Z" fill="#050910"/>\n </symbol>\n\n <symbol id="vjs-icon-captions-off" viewBox="0 0 29 16">\n <rect x="1" y="1" width="27" height="14" rx="1" stroke="white" stroke-width="2"/>\n <path d="M11.9795 5.25488C11.6377 5.25488 11.3317 5.31673 11.0615 5.44043C10.7946 5.56413 10.5684 5.74316 10.3828 5.97754C10.1973 6.20866 10.0557 6.49023 9.95801 6.82227C9.86035 7.15104 9.81152 7.52214 9.81152 7.93555C9.81152 8.48893 9.88965 8.96582 10.0459 9.36621C10.2021 9.76335 10.4398 10.0693 10.7588 10.2842C11.0778 10.4958 11.4814 10.6016 11.9697 10.6016C12.2725 10.6016 12.5671 10.5723 12.8535 10.5137C13.14 10.4551 13.4362 10.3753 13.7422 10.2744V11.2705C13.4525 11.3844 13.1595 11.4674 12.8633 11.5195C12.5671 11.5716 12.2253 11.5977 11.8379 11.5977C11.1087 11.5977 10.5033 11.4463 10.0215 11.1436C9.54297 10.8408 9.1849 10.4144 8.94727 9.86426C8.71289 9.31413 8.5957 8.6696 8.5957 7.93066C8.5957 7.3903 8.67057 6.89551 8.82031 6.44629C8.97005 5.99707 9.18815 5.6097 9.47461 5.28418C9.76107 4.9554 10.1143 4.70312 10.5342 4.52734C10.9574 4.34831 11.4408 4.25879 11.9844 4.25879C12.3424 4.25879 12.694 4.29948 13.0391 4.38086C13.3874 4.45898 13.7096 4.57129 14.0059 4.71777L13.5957 5.68457C13.3483 5.56738 13.0895 5.46647 12.8193 5.38184C12.5492 5.2972 12.2692 5.25488 11.9795 5.25488ZM17.9174 5.25488C17.5756 5.25488 17.2696 5.31673 16.9994 5.44043C16.7325 5.56413 16.5062 5.74316 16.3207 5.97754C16.1352 6.20866 15.9936 6.49023 15.8959 6.82227C15.7982 7.15104 15.7494 7.52214 15.7494 7.93555C15.7494 8.48893 15.8275 8.96582 15.9838 9.36621C16.14 9.76335 16.3777 10.0693 16.6967 10.2842C17.0157 10.4958 17.4193 10.6016 17.9076 10.6016C18.2104 10.6016 18.5049 10.5723 18.7914 10.5137C19.0779 10.4551 19.3741 10.3753 19.6801 10.2744V11.2705C19.3904 11.3844 19.0974 11.4674 18.8012 11.5195C18.5049 11.5716 18.1632 11.5977 17.7758 11.5977C17.0466 11.5977 16.4411 11.4463 15.9594 11.1436C15.4809 10.8408 15.1228 10.4144 14.8852 9.86426C14.6508 9.31413 14.5336 8.6696 14.5336 7.93066C14.5336 7.3903 14.6085 6.89551 14.7582 6.44629C14.9079 5.99707 15.126 5.6097 15.4125 5.28418C15.699 4.9554 16.0521 4.70312 16.4721 4.52734C16.8952 4.34831 17.3786 4.25879 17.9223 4.25879C18.2803 4.25879 18.6319 4.29948 18.977 4.38086C19.3253 4.45898 19.6475 4.57129 19.9437 4.71777L19.5336 5.68457C19.2862 5.56738 19.0274 5.46647 18.7572 5.38184C18.487 5.2972 18.2071 5.25488 17.9174 5.25488Z" fill="white"/>\n </symbol>\n\n </defs>';j.el().insertBefore(u(V),null!==(r=j.el().firstChild)&&void 0!==r?r:null);var x=(null==j||null===(C=j.controlBar)||void 0===C||null===(v=C.getChild("PlayToggle"))||void 0===v||null===(c=v.el())||void 0===c?void 0:c.firstChild)||null;if(x){x.style.height="16px",x.style.width="16px";var M=d(x,j.paused()?"#vjs-icon-play":"#vjs-icon-pause");j.on("pause",(function(){return M.setAttributeNS(null,"href","#vjs-icon-play")})),j.on("play",(function(){return M.setAttributeNS(null,"href","#vjs-icon-pause")}))}var k=(null==j||null===(p=j.controlBar)||void 0===p||null===(h=p.getChild("FullscreenToggle"))||void 0===h||null===(m=h.el())||void 0===m?void 0:m.firstChild)||null;if(k){k.style.height="24px",k.style.width="24px";var S=d(k,"#vjs-icon-fullscreen");j.on("fullscreenchange",(function(){var l=j.isFullscreen_;null==S||S.setAttributeNS(null,"href",l?"#vjs-icon-fullscreen-back":"#vjs-icon-fullscreen")}))}var Z=(null==j||null===(f=j.controlBar)||void 0===f||null===(b=f.getChild("VolumePanel"))||void 0===b?void 0:b.el())||null;if(Z){var A=Z.querySelector(".vjs-mute-control .vjs-icon-placeholder");A.classList.add("vjs-svg-icon"),A.style.height="24px",A.style.width="24px";var T=d(A,j.muted()?"#vjs-icon-mute":"#vjs-icon-volume1");j.on("volumechange",(function(l){var e=j.volume();0==e||j.muted()?T.setAttributeNS(null,"href","#vjs-icon-mute"):e>0&&e<=.3?T.setAttributeNS(null,"href","#vjs-icon-volume1"):e>=.3&&e<=.7?T.setAttributeNS(null,"href","#vjs-icon-volume2"):T.setAttributeNS(null,"href","#vjs-icon-volume3")}))}var N=(null==j||null===(B=j.controlBar)||void 0===B||null===(y=B.getChild("PictureInPictureToggle"))||void 0===y?void 0:y.el())||null;if(N){var H=null==N?void 0:N.querySelector(".vjs-icon-placeholder");H.style.height="25px",H.style.width="25px";var P=d(H,"#vjs-icon-pip");j.on("enterpictureinpicture",(function(){P.setAttributeNS(null,"href","#vjs-icon-pip")}))}var _=(null==j||null===(g=j.controlBar)||void 0===g||null===(L=g.getChild("SubsCapsButton"))||void 0===L?void 0:L.el())||null;if(_){var q=_.querySelector(".vjs-subs-caps-button .vjs-icon-placeholder");q.classList.add("vjs-svg-icon"),q.style.height="29px",q.style.width="29px";var D=d(q,"#vjs-icon-caps");D.setAttributeNS(null,"href","#vjs-icon-captions-off"),j.textTracks().on("change",(function(l){for(var e=j.textTracks(),i=!1,n=0;n<e.length;n++){var o=e[n];if(("captions"===o.kind||"subtitles"===o.kind)&&"showing"===o.mode){i=!0;break}}i?D.setAttributeNS(null,"href","#vjs-icon-captions"):D.setAttributeNS(null,"href","#vjs-icon-captions-off")}))}j&&null!=e&&e.liveVideo&&null!=e&&e.liveui&&(j.liveTracker.on("liveedgechange",(function(){R(j)})),j.on("timeupdate",(function(){R(j)})));function I(l){var e=Math.floor(l/60),i=Math.floor(l%60);return"".concat(e,":").concat(i<10?"0":"").concat(i)}function O(l){var e=l.seekable();if(e&&e.length>0){var i=e.end(0);return Math.max(0,i-l.currentTime())}return 0}function R(l){var e,i,n=l.liveTracker.atLiveEdge(),o=O(l),t=null==l||null===(e=l.controlBar)||void 0===e||null===(i=e.remainingTimeDisplay)||void 0===i?void 0:i.el();if(t){var s=t.querySelector(".vjs-remaining-time-display");n?t.style.display="none":(t.style.display="flex",s&&(s.innerText=I(o)))}}}(b,B),function(l,a){var u,d,C,v,c,p,b,B,y,g=(null==a||null===(u=a.res)||void 0===u||null===(d=u.video)||void 0===d?void 0:d.isSSAIEnabled)||!1,L=(null==a?void 0:a.skin_settings)||{};null==L||L.slowMoBtn;var j=(null==a||null===(C=a.customData)||void 0===C?void 0:C.ads)||{};null!=L&&L.skipBtn&&0==(null==a?void 0:a.liveVideo)&&0==(null==a?void 0:a.liveui)&&e(l,"VL_ONE",SkipSvgV2());null!=L&&L.rewindBtn&&(0==(null==a?void 0:a.liveVideo)&&0==(null==a?void 0:a.liveui)||1==(null==a?void 0:a.liveui))&&i(l,"VL_ONE",r());(null==a||null===(v=a.relatedVideos)||void 0===v||null===(c=v.content)||void 0===c?void 0:c.length)>0&&n(l,null==a?void 0:a.relatedVideos);(null==a||null===(p=a.streams)||void 0===p?void 0:p.length)>1&&o(l,null==a?void 0:a.streams);(null==a||null===(b=a.playlist)||void 0===b||null===(B=b.content)||void 0===B?void 0:B.length)>0&&t(l,null==a?void 0:a.playlist);null!=a&&null!==(y=a.series)&&void 0!==y&&y.enable&&s(l,a);if("MEDIA_TAILOR"==(null==j?void 0:j.vodAdSticherProvider)&&null!=j&&j.vodAdClientSideTracking&&g){var E,w=null;if(null!=a&&null!==(E=a.series)&&void 0!==E&&E.enable){var V,x,M,k=null===(V=h())||void 0===V||null===(x=V.video)||void 0===x||null===(M=x.gist)||void 0===M?void 0:M.id,S=f(),Z=(null==S?void 0:S.get(k))||{t:0,p:0},A=Z.t;Z.p<95&&(w=A)}else{var T=a.watchHistoryResumeTime;a.watchedPercentage<95&&(w=T)}m(l,w)}}(b,B),c(b,B)}export{b as initialiseSkin};
|
package/esm/skin-aac48b88.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{g as e}from"./skin-96ea65f7.js";import{f as r,n as t}from"./features-5e51d5de.js";import{g as o}from"./renditions-18d9b04b.js";import{r as i}from"./captions-c93ac538.js";import"@babel/runtime/helpers/toConsumableArray";import"video.js";import"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/classCallCheck";import"@babel/runtime/helpers/createClass";import"@babel/runtime/helpers/inherits";import"@babel/runtime/helpers/possibleConstructorReturn";import"@babel/runtime/helpers/getPrototypeOf";import"./generic-3de3fe10.js";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"axios";import"./browser-d4613b36.js";import"js-cookie";import"@babel/runtime/helpers/slicedToArray";import"./localisation-0bf399a1.js";function n(n,s){import("./skin-271fa63f.js").then((function(e){var r=document.createElement("style");r.id="multiplayer_css",r.append("".concat(e.default)),document.head.appendChild(r)})),function(t,n){e(t).on("loadeddata",(function(){var e;(null===(e=o(t))||void 0===e?void 0:e.length)>0&&r(t,n),null!=n&&n.disableCaptions&&i(t)}))}(n,s),function(r,o){var i=e(r);i.controls(!1),t(r)}(n)}export{n as initialiseSkin};
|
package/esm/skin-b979ec23.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{f as l,g as e,h as o,d as i,e as n,i as t,j as r,k as a,l as d,m as s}from"./features-5e51d5de.js";import{M as u,a as m,c as v,d as p}from"./icons-699e8cf0.js";import{g as c,b as h}from"./skin-96ea65f7.js";import{g as b}from"./renditions-18d9b04b.js";import{g as f}from"./captions-c93ac538.js";import{a as g,b as C}from"./index-85ea3fd1.js";import{i as j}from"./index-7e2e5b17.js";import{i as y,d as V}from"./browser-d4613b36.js";import"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/classCallCheck";import"@babel/runtime/helpers/createClass";import"@babel/runtime/helpers/inherits";import"@babel/runtime/helpers/possibleConstructorReturn";import"@babel/runtime/helpers/getPrototypeOf";import"video.js";import"./generic-3de3fe10.js";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"axios";import"js-cookie";import"@babel/runtime/helpers/toConsumableArray";import"@babel/runtime/helpers/slicedToArray";import"./localisation-0bf399a1.js";import"./autoNextVideo-5a2b0157.js";import"./util-431d94d8.js";import"@babel/runtime/helpers/typeof";function w(w,B){c(w).addClass("skin_defaultv2"),function(){"Chrome"==V()&&import("./chromett-a3cbb2e1.js").then((function(l){var e=document.createElement("style");e.id="chromett",e.append("".concat(l.default)),document.head.appendChild(e)}));import("./skin-fbab87d5.js").then((function(l){var e=document.createElement("style");e.id="default_v2",e.append("".concat(l.default)),document.head.appendChild(e)}))}(),function(i,n){var t=c(i);t&&(t.on("loadeddata",(function(){var o,t,r,a,d,s,u;(null===(o=b(i))||void 0===o?void 0:o.length)>0&&l(i,n),(null===(t=f(i))||void 0===t?void 0:t.length)>0&&e(i,n),!(null!=n&&null!==(r=n.series)&&void 0!==r&&r.enable||null!==(a=window)&&void 0!==a&&null!==(d=a.app_data)&&void 0!==d&&null!==(s=d.appcmsMain)&&void 0!==s&&null!==(u=s.features)&&void 0!==u&&u.auto_play)||null!=n&&n.liveVideo||g(i,n),null!=n&&n.liveVideo||y()||j(i)})),t.one("play",(function(){var l,e,n,t;null!==(l=window)&&void 0!==l&&null!==(e=l.customData)&&void 0!==e&&e.iframeOverlayUrl&&o(i,null===(n=window)||void 0===n||null===(t=n.customData)||void 0===t?void 0:t.iframeOverlayUrl)})))}(w,B),function(l,e){var o,i,n,t,r,a,d,s,v,p,b,f,g,C=c(l);null===(o=C.controlBar)||void 0===o||o.removeChild("VolumePanel"),null===(i=C.controlBar)||void 0===i||i.addChild("VolumePanel",{inline:!1},1);var j=null===(n=C.controlBar)||void 0===n?void 0:n.getChild("ProgressControl"),y=null===(t=C.controlBar)||void 0===t?void 0:t.getChild("CurrentTimeDisplay"),V=null===(r=C.controlBar)||void 0===r?void 0:r.getChild("SeekToLive"),w=document.createElement("div");w.className="custom-spaced-progress-bar",j&&y&&V&&w.append(j.el(),y.el(),V.el());null===(a=C.controlBar)||void 0===a||null===(d=a.el())||void 0===d||d.append(w),null==C||null===(s=C.controlBar)||void 0===s||null===(v=s.getChild("FullscreenToggle"))||void 0===v||null===(p=v.el())||void 0===p||p.appendChild(h(u(window.controlsColor))),null==C||null===(b=C.controlBar)||void 0===b||null===(f=b.getChild("FullscreenToggle"))||void 0===f||null===(g=f.el())||void 0===g||g.appendChild(h(m(window.controlsColor)));var B=document.getElementsByClassName("vjs-time-control");e.liveVideo&&B[0]&&(B[0].style.display="none")}(w,B),function(l,e){var o,u,m,c,h,b,f=(null==e?void 0:e.skin_settings)||{},g=0!=(null==f?void 0:f.slowMoBtn);0==(null==e?void 0:e.liveVideo)&&0==(null==e?void 0:e.liveui)&&i(l,"defaultV2",v());(0==(null==e?void 0:e.liveVideo)&&0==(null==e?void 0:e.liveui)||1==(null==e?void 0:e.liveui))&&n(l,"defaultV2",p());!e.liveVideo&&g&&t(l);(null==e||null===(o=e.relatedVideos)||void 0===o||null===(u=o.content)||void 0===u?void 0:u.length)>0&&r(l,null==e?void 0:e.relatedVideos);(null==e||null===(m=e.streams)||void 0===m?void 0:m.length)>1&&a(l,null==e?void 0:e.streams);(null==e||null===(c=e.playlist)||void 0===c||null===(h=c.content)||void 0===h?void 0:h.length)>0&&d(l,null==e?void 0:e.playlist);null!=e&&null!==(b=e.series)&&void 0!==b&&b.enable&&s(l,e)}(w,B),C(w,B)}export{w as initialiseSkin};
|
package/esm/skin-c4f16045.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{E as e,F as r}from"./generic-3de3fe10.js";import{g as t}from"./skin-96ea65f7.js";import"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"video.js";import"axios";import"./browser-d4613b36.js";import"js-cookie";import"./captions-c93ac538.js";import"@babel/runtime/helpers/toConsumableArray";import"@babel/runtime/helpers/slicedToArray";function o(e){n(e),i(e)}var i=function(o){var i=t(o),n=document.getElementById("".concat(o));n&&n.addEventListener("touchstart",(function(){i.paused()?e(o):r(o)}))},n=function(e){var r=t(e);r.requestFullscreen=function(){},r.controlBar.hide()};export{o as initaliseSkin};
|
package/esm/util-431d94d8.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import n from"@babel/runtime/helpers/typeof";import{d as t,v as e}from"./generic-3de3fe10.js";import{g as o}from"./skin-96ea65f7.js";var i=!1,a=function(n,t,e){var i=o(n);i?t>=0&&t<=i.duration()?(e({status:!0,msg:"Successfully seeked to timestamp : ".concat(t)}),i.currentTime(t)):e({status:!1,msg:"Out of bounds, please provide a valid timestamp"}):e("Cannot find player with id: '".concat(n,"'"))},r=function(n,t){var e=o(n);if(!e)return"Cannot find player with id: '".concat(n,"'");try{return e.playbackRate(t),"Playback speed set to ".concat(t,"x")}catch(n){return"Error: ".concat(n)}},c=function(n,a){var r=o(n);r?(r.on("ended",(function(){return i=!0})),r.on("timeupdate",(function(){if(i){var n,o,r=null===(n=t())||void 0===n||null===(o=n.video)||void 0===o?void 0:o.id;e.get(r)&&(e.clear(),a(),e.set(r)),i=!1}}))):a("Cannot find player with id: '".concat(n,"'"))},u=function(n,t){var e=o(n);e?e.on("timeupdate",(function(){return t(e.currentTime())})):t("Cannot find player with id: '".concat(n,"'"))},l=function(n,t){var e=o(n);e?e.on("ended",(function(){return t(!0)})):t("Cannot find player with id: '".concat(n,"'"))},s=function(n){var t=o(n);return t?t.duration():"Cannot find player with id: '".concat(n,"'")};function d(){var t=function(n,t){var e=o(n);if(!e)throw"Cannot find player with id: '".concat(n,"'");if("function"!=typeof t)throw"Callback function (cb) is missing or not a function";return e};return{onPlay:function(n,e){t(n,e).on("play",(function(){return e()}))},onPause:function(n,e){t(n,e).on("pause",(function(){return e()}))},onMute:function(n,e){var o=t(n,e);o.on("volumechange",(function(){o.muted()?e({muted:!0}):e({muted:!1})}))},onPictureInPictureChange:function(n,e){var o=t(n,e);o.on("enterpictureinpicture",(function(){e({pip:!0})})),o.on("leavepictureinpicture",(function(){e({pip:!1})}))},onFullScreenChange:function(n,e){var o=t(n,e);o.on("fullscreenchange",(function(n){o.isFullscreen_?e({isFullscreen:!0}):e({isFullscreen:!1})}))},onSetVolume:function(n,e){var o=t(n,e);o.on("volumechange",(function(){var n=100*o.volume().toFixed(2);o.muted()?e({vol:0}):e({vol:n})}))},onSeeked:function(n,e){var o=t(n,e);o.on("seeked",(function(){e({seeked:o.currentTime()})}))},onSubtitleEnable:function(n,e){var o=t(n,e);o.textTracks().on("change",(function(n){console.log(o.textTracks());var t=o.textTracks().tracks_.filter((function(n){return("subtitles"===n.kind||"captions"===n.kind)&&"showing"===n.mode}));t.length>0&&e({enabled:t[0]})}))},onDisableSubtitles:function(n,e){var o=t(n,e);o.textTracks().on("change",(function(n){var t,i;console.log(o.textTracks()),(null==o||null===(t=o.textTracks())||void 0===t||null===(i=t.tracks_)||void 0===i?void 0:i.every((function(n){return"showing"!=n.mode})))&&e({captions_disabled:!0})}))},onSubtitleCueChange:function(e,o){var i=t(e,o);i.on("loadeddata",(function(){var t,e,a,r,c,u=i.textTracks();"object"==n(i.dash)&&null!=i.dash&&i.dash.mediaPlayer.on(null===(e=window)||void 0===e||null===(a=e.dashjs)||void 0===a||null===(r=a.MediaPlayer)||void 0===r||null===(c=r.events)||void 0===c?void 0:c.CAPTION_RENDERED,(function(n){o(n)}));for(var l=0;l<u.length;l++){var s=u[l];"metadata"===s.kind&&(s.mode="hidden",t=s)}t&&t.addEventListener("cuechange",(function(){var n=t.activeCues;if(n&&n.length>0)for(var e=0;e<n.length;e++){var i=n[e];o(i)}else console.log("no active cue at this moment")}))}))}}}export{l as a,r as b,c,s as g,u as o,d as p,a as s};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import e from"@babel/runtime/helpers/classCallCheck";import t from"@babel/runtime/helpers/createClass";import o from"@babel/runtime/helpers/inherits";import n from"@babel/runtime/helpers/possibleConstructorReturn";import i from"@babel/runtime/helpers/getPrototypeOf";import a from"video.js";import{g as l,e as s}from"./icons-699e8cf0.js";import{I as d,V as r}from"./generic-3de3fe10.js";import{j as c,s as m,k as u,h as v,l as p,i as h}from"./skin-96ea65f7.js";import{a as b}from"./autoNextVideo-5a2b0157.js";import{g as y}from"./localisation-0bf399a1.js";import"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"axios";import"./browser-d4613b36.js";import"js-cookie";import"./captions-c93ac538.js";import"@babel/runtime/helpers/toConsumableArray";import"@babel/runtime/helpers/slicedToArray";import"./util-431d94d8.js";import"@babel/runtime/helpers/typeof";function f(e){var t=C();return function(){var o,a=i(e);if(t){var l=i(this).constructor;o=Reflect.construct(a,arguments,l)}else o=a.apply(this,arguments);return n(this,o)}}function C(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(C=function(){return!!e})()}var g=a.getComponent("Component"),E=function(n){o(C,g);var i=f(C);function C(t){var o,n,a,l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e(this,C),(a=i.call(this,t,l)).playerId=l.playerId,a.seriesData=l.sres,a.videos=l.related.content,a.cb=(null==l||null===(o=l.related)||void 0===o?void 0:o.cb)||null,a.autoNext=(null==l||null===(n=l.related)||void 0===n?void 0:n.autoNext)||!1,a.currentVideoData=l.res,a.initialiseStructure(),a.loadCSS(),a.autoNext&&(r(0),b({playerId:a.playerId,content:a.videos,cb:a.cb})),a}return t(C,[{key:"createEl",value:function(){var e=a.dom.createEl("div",{className:"video-selection vjs-control vjs-button"});e.style.position="unset";var t=a.dom.createEl("button",{className:"video-selector-icon",title:"video selector",innerHTML:"".concat(l())});return a.dom.appendContent(e,t),e}},{key:"loadCSS",value:function(){import("./videoSelector-def99d5e.js").then((function(e){var t=document.createElement("style");t.id="video-selection",t.append("".concat(e.default)),document.head.appendChild(t)}))}},{key:"initialiseStructure",value:function(){var e=this,t=this.el(),o=a.dom.createEl("div",{className:"video-selection-container hidden"});a.dom.$(".video-selector-icon",this.el()).onclick=function(){var n;e.handleTabIndexSelector(),null!==(n=o.classList)&&void 0!==n&&n.contains("hidden")?(c(),o.classList.remove("hidden"),t.classList.add("open"),m(e.playerId,o)):(o.classList.add("hidden"),t.classList.remove("open"))};var n=document.getElementById(this.playerId);if(n){var i=window.getComputedStyle(n,null).getPropertyValue("height");o.style.height="".concat(i),a.dom.appendContent(t,o),n.style.overflow="hidden",this.addFunctionality(o),u(this.playerId,o)}}},{key:"loadVideoAssetById",value:function(e){var t=this;r(e+1);for(var o=a.dom.$$(".recommended"),n=0;n<o.length;n++)o[n].style.border="none";v(e),d(this.playerId,this.videos[e].id).then((function(e){t.cb&&t.cb(e)})).catch((function(e){t.cb&&t.cb(e)}))}},{key:"handleTabIndexSelector",value:function(){var e,t,o;null!==(e=document.getElementsByClassName("video-selector-cross-icon"))&&void 0!==e&&e[0]&&(document.getElementsByClassName("video-selector-cross-icon")[0].tabIndex=0);for(var n=document.getElementsByClassName("video-accessibility"),i=(null==n||null===(t=n[0])||void 0===t||null===(o=t.children)||void 0===o?void 0:o.length)||0,a=0;a<i;a++)document.getElementsByClassName("recommended -".concat(a))[0]&&(document.getElementsByClassName("recommended -".concat(a))[0].tabIndex=0)}},{key:"handleCloseTabIndex",value:function(){var e,t,o;null!==(e=document.getElementsByClassName("video-selector-cross-icon"))&&void 0!==e&&e[0]&&(document.getElementsByClassName("video-selector-cross-icon")[0].tabIndex=-1);for(var n=document.getElementsByClassName("video-accessibility"),i=(null==n||null===(t=n[0])||void 0===t||null===(o=t.children)||void 0===o?void 0:o.length)||0,a=0;a<i;a++)document.getElementsByClassName("recommended -".concat(a))&&(document.getElementsByClassName("recommended -".concat(a))[0].tabIndex=-1)}},{key:"addFunctionality",value:function(e){var t=this,o=this.el(),n=a.dom.createEl("div",{className:"video-selector-head"}),i=a.dom.createEl("div",{className:"video-selector-cross-icon",ariaLabel:"close video selector",tabIndex:-1,innerHTML:"".concat(s())});i.onkeydown=function(n){"Enter"===n.key&&(e.classList.add("hidden"),o.classList.remove("open"),t.handleCloseTabIndex())},i.onclick=function(){e.classList.add("hidden"),o.classList.remove("open"),t.handleCloseTabIndex()};for(var l=a.dom.createEl("div",{className:"video-selector-title",innerHTML:y("relatedVideoTitle")||"Recommended"}),d=a.dom.createEl("div",{className:"video-selector-content",tabIndex:-1}),r=a.dom.createEl("div",{className:"video-container video-accessibility"}),c=function(e){var o,n,i,l,s,c,m,u,v=a.dom.createEl("div",{className:"video -".concat(e)}),p=a.dom.createEl("div",{className:"recommended -".concat(e),ariaLabel:"".concat(t.videos[e].title),type:"button",tabIndex:-1});p.setAttribute("video-idx",e),p.onkeydown=function(o){"Enter"===o.key&&t.loadVideoAssetById(e)},p.onclick=function(){t.loadVideoAssetById(e)};var b=document.createElement("img");b.className="related-thumbnail-image",b.src="".concat(h(null==t||null===(o=t.videos)||void 0===o||null===(n=o[e])||void 0===n?void 0:n.img)||h(null===(i=window)||void 0===i||null===(l=i.app_data)||void 0===l||null===(s=l.appcmsMain)||void 0===s||null===(c=s.images)||void 0===c?void 0:c.placeholderCover)),b.alt="".concat((null==t||null===(m=t.videos[e])||void 0===m?void 0:m.title.trim().split(/\s+/).slice(0,2).join(" "))||""),p.append(b);var y=a.dom.createEl("div",{className:"info -".concat(e),innerHTML:"".concat((null==t||null===(u=t.videos[e])||void 0===u?void 0:u.title)||"")});a.dom.appendContent(v,p),a.dom.appendContent(v,y),a.dom.appendContent(r,v),a.dom.appendContent(d,r)},m=0;m<this.videos.length;m++)c(m);a.dom.appendContent(n,l),a.dom.appendContent(n,i),a.dom.appendContent(e,n),a.dom.appendContent(e,d),p(this.playerId,e)}}]),C}();export{E as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import e from"@babel/runtime/helpers/classCallCheck";import t from"@babel/runtime/helpers/createClass";import o from"@babel/runtime/helpers/inherits";import n from"@babel/runtime/helpers/possibleConstructorReturn";import i from"@babel/runtime/helpers/getPrototypeOf";import a from"video.js";import{E as r,e as l}from"./icons-699e8cf0.js";import{I as s,V as d}from"./generic-3de3fe10.js";import{j as c,s as m,k as p,l as u,m as v}from"./skin-96ea65f7.js";import{a as h}from"./autoNextVideo-5a2b0157.js";import{g as f}from"./localisation-0bf399a1.js";import"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"axios";import"./browser-d4613b36.js";import"js-cookie";import"./captions-c93ac538.js";import"@babel/runtime/helpers/toConsumableArray";import"@babel/runtime/helpers/slicedToArray";import"./util-431d94d8.js";import"@babel/runtime/helpers/typeof";function b(e){var t=y();return function(){var o,a=i(e);if(t){var r=i(this).constructor;o=Reflect.construct(a,arguments,r)}else o=a.apply(this,arguments);return n(this,o)}}function y(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(y=function(){return!!e})()}var g=a.getComponent("Component"),C=function(n){o(y,g);var i=b(y);function y(t){var o,n,a,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e(this,y),(a=i.call(this,t,r)).playerId=r.playerId,a.seriesData=r.sres,a.videos=r.related.content,a.cb=(null==r||null===(o=r.related)||void 0===o?void 0:o.cb)||null,a.autoNext=(null==r||null===(n=r.related)||void 0===n?void 0:n.autoNext)||!1,a.currentVideoData=r.res,a.initialiseStructure(),a.loadCSS(),a.autoNext&&(d(0),h({playerId:a.playerId,content:a.videos,cb:a.cb})),a}return t(y,[{key:"createEl",value:function(){var e=a.dom.createEl("div",{className:"video-selection vjs-control vjs-button"});e.style.position="unset";var t=a.dom.createEl("div",{className:"video-selector-icon",innerHTML:"".concat(r())});return a.dom.appendContent(e,t),e}},{key:"loadCSS",value:function(){import("./videoSelector-8e258d45.js").then((function(e){var t=document.createElement("style");t.id="video-selection",t.append("".concat(e.default)),document.head.appendChild(t)}))}},{key:"initialiseStructure",value:function(){var e=this,t=this.el(),o=a.dom.createEl("div",{className:"video-selection-container hidden"});a.dom.$(".video-selector-icon",this.el()).onclick=function(){var n;null!==(n=o.classList)&&void 0!==n&&n.contains("hidden")?(c(),o.classList.remove("hidden"),t.classList.add("open"),o.style.right="0px",m(e.playerId,o)):(o.classList.add("hidden"),t.classList.remove("open"),o.style.right="-350px")};var n=document.getElementById(this.playerId);if(n){var i=window.getComputedStyle(n,null).getPropertyValue("height");o.style.height="".concat(i),a.dom.appendContent(t,o),n.style.overflow="hidden",this.addFunctionality(o),p(this.playerId,o)}}},{key:"toggleOpenClose",value:function(){}},{key:"addFunctionality",value:function(e){var t=this,o=this.el(),n=a.dom.createEl("div",{className:"video-selector-head"}),i=a.dom.createEl("div",{className:"video-selector-cross-icon",innerHTML:"".concat(l())});i.onclick=function(){e.classList.add("hidden"),o.classList.remove("open"),e.style.right="-350px"};for(var r=a.dom.createEl("div",{className:"video-selector-title",innerHTML:f("relatedVideoTitle")||"Recommended"}),c=a.dom.createEl("div",{className:"video-selector-content"}),m=a.dom.createEl("div",{className:"video-container"}),p=function(e){var o,n,i,r,l,p=a.dom.createEl("div",{className:"video -".concat(e)}),u=a.dom.createEl("div",{className:"recommended -".concat(e)});u.setAttribute("video-idx",e),u.onclick=function(){d(e+1);for(var o=a.dom.$$(".recommended"),n=0;n<o.length;n++)o[n].style.border="none";v(e),s(t.playerId,t.videos[e].id).then((function(e){t.cb&&t.cb(e)})).catch((function(e){t.cb&&t.cb(e)}))};var h=document.createElement("img");h.className="related-thumbnail-image",h.src="".concat((null==t||null===(o=t.videos)||void 0===o||null===(n=o[e])||void 0===n?void 0:n.img)||(null===(i=window)||void 0===i||null===(r=i.customData)||void 0===r?void 0:r.fallbackImage)),h.alt="No Thumbnail Available",u.append(h);var f=a.dom.createEl("div",{className:"info -".concat(e),innerHTML:"".concat((null==t||null===(l=t.videos[e])||void 0===l?void 0:l.title)||"")});a.dom.appendContent(p,u),a.dom.appendContent(p,f),a.dom.appendContent(m,p),a.dom.appendContent(c,m)},h=0;h<this.videos.length;h++)p(h);a.dom.appendContent(n,i),a.dom.appendContent(n,r),a.dom.appendContent(e,n),a.dom.appendContent(e,c),u(this.playerId,e)}}]),y}();export{C as default};
|