@viewlift/player-backup 2.0.121-backup → 2.0.123-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.
Files changed (101) hide show
  1. package/cjs/{autoNextVideo-30f8c89c.js → autoNextVideo-bf75ce72.js} +1 -1
  2. package/cjs/bundle.css +108 -107
  3. package/cjs/{caption-settings-3835231a.js → caption-settings-a3939365.js} +1 -1
  4. package/cjs/{features-e3fdf1e7.js → features-1948bd33.js} +1 -1
  5. package/cjs/generic-adf27555.js +1 -0
  6. package/cjs/icons-2609dbe4.js +1 -0
  7. package/cjs/{index-a5c150cc.js → index-0b0e69a1.js} +1 -1
  8. package/cjs/{index-de801167.js → index-3825262b.js} +1 -1
  9. package/cjs/index.js +1 -1
  10. package/cjs/multicamv2-84959d9f.js +1 -0
  11. package/cjs/multicamv2-86fc2c98.js +1 -0
  12. package/cjs/nextEpisodeButton-d3a4230d.js +1 -0
  13. package/cjs/playlist-e614b574.js +1 -0
  14. package/cjs/series-ff885888.js +1 -0
  15. package/cjs/series-v2-093961e8.js +1 -0
  16. package/cjs/series-v2-5023ef80.js +1 -0
  17. package/cjs/{settings-icon-7384b65d.js → settings-icon-341b6115.js} +1 -1
  18. package/cjs/skin-0d4790b3.js +1 -0
  19. package/cjs/{skin-e6d5161d.js → skin-391fe49c.js} +1 -1
  20. package/cjs/skin-41508f0d.js +1 -0
  21. package/cjs/skin-41c6a18e.js +1 -0
  22. package/cjs/skin-63ae6607.js +1 -0
  23. package/cjs/skin-93d77c5e.js +1 -0
  24. package/cjs/skin-b1bfde8c.js +1 -0
  25. package/cjs/skin-f0c3354a.js +1 -0
  26. package/cjs/skin-f6442d47.js +1 -0
  27. package/cjs/{start-begin-btn-d17055ca.js → start-begin-btn-bcb78add.js} +1 -1
  28. package/cjs/videoSelector-43f6ac8d.js +1 -0
  29. package/cjs/videoSelector-a3a8b9fa.js +1 -0
  30. package/cjs/{watch-live-btn-8a160941.js → watch-live-btn-3e7b1708.js} +1 -1
  31. package/esm/assets/icons.d.ts +4 -3
  32. package/esm/{autoNextVideo-068e496c.js → autoNextVideo-2e736edd.js} +1 -1
  33. package/esm/bundle.css +108 -107
  34. package/esm/{caption-settings-c9b18ef8.js → caption-settings-85f54d85.js} +1 -1
  35. package/esm/{features-96af00c0.js → features-f5e1f6d8.js} +1 -1
  36. package/esm/generic-93db3bbb.js +1 -0
  37. package/esm/helpers/skin.d.ts +5 -0
  38. package/esm/{icons-c139587c.js → icons-37daa6b3.js} +1 -1
  39. package/esm/{index-8bf8b43f.js → index-11b0bf34.js} +1 -1
  40. package/esm/{index-a012aae4.js → index-96a53c44.js} +1 -1
  41. package/esm/index.js +1 -1
  42. package/esm/multicamv2-0fed2b37.js +1 -0
  43. package/esm/multicamv2-93598643.js +1 -0
  44. package/esm/nextEpisodeButton-5954075c.js +1 -0
  45. package/esm/playlist-50110784.js +1 -0
  46. package/esm/series-f4732ee4.js +1 -0
  47. package/esm/series-v2-49bf1379.js +1 -0
  48. package/esm/series-v2-f376e2c7.js +1 -0
  49. package/esm/settings-icon-336390f5.js +1 -0
  50. package/esm/skin/news/events.d.ts +1 -0
  51. package/esm/skin/news/skin.d.ts +1 -0
  52. package/esm/{skin-f2e99bd5.js → skin-088df88e.js} +1 -1
  53. package/esm/skin-0f689204.js +1 -0
  54. package/esm/skin-2799020a.js +1 -0
  55. package/esm/skin-42981ba7.js +1 -0
  56. package/esm/skin-5356247b.js +1 -0
  57. package/esm/skin-7c0c3e8f.js +1 -0
  58. package/esm/skin-88fcb96a.js +1 -0
  59. package/esm/skin-bf4a77d7.js +1 -0
  60. package/esm/skin-e024d9b3.js +1 -0
  61. package/esm/{start-begin-btn-ff036cfe.js → start-begin-btn-0afa2def.js} +1 -1
  62. package/esm/videoSelector-12a6dc79.js +1 -0
  63. package/esm/videoSelector-f2197644.js +1 -0
  64. package/esm/{watch-live-btn-d4d27011.js → watch-live-btn-85cd433b.js} +1 -1
  65. package/package.json +1 -1
  66. package/cjs/generic-bfd81e0e.js +0 -1
  67. package/cjs/icons-79591410.js +0 -1
  68. package/cjs/index-12c927ad.js +0 -1
  69. package/cjs/multicamv2-6f471fb0.js +0 -1
  70. package/cjs/multicamv2-83af7dc3.js +0 -1
  71. package/cjs/nextEpisodeButton-f7d4f8e9.js +0 -1
  72. package/cjs/playlist-a6555cdd.js +0 -1
  73. package/cjs/series-72eca3c2.js +0 -1
  74. package/cjs/series-v2-4d51cc69.js +0 -1
  75. package/cjs/series-v2-add2a53f.js +0 -1
  76. package/cjs/skin-19f5ee87.js +0 -1
  77. package/cjs/skin-34064485.js +0 -1
  78. package/cjs/skin-4849e82b.js +0 -1
  79. package/cjs/skin-5b2feda8.js +0 -1
  80. package/cjs/skin-9e714900.js +0 -1
  81. package/cjs/skin-a4d456a2.js +0 -1
  82. package/cjs/videoSelector-7599aaf6.js +0 -1
  83. package/cjs/videoSelector-8834cfd9.js +0 -1
  84. package/esm/generic-dd89c778.js +0 -1
  85. package/esm/index-6861b023.js +0 -1
  86. package/esm/multicamv2-7fe85e6a.js +0 -1
  87. package/esm/multicamv2-8e508c51.js +0 -1
  88. package/esm/nextEpisodeButton-591509b7.js +0 -1
  89. package/esm/playlist-4c796e1f.js +0 -1
  90. package/esm/series-d46535b8.js +0 -1
  91. package/esm/series-v2-730cd221.js +0 -1
  92. package/esm/series-v2-cb05c6df.js +0 -1
  93. package/esm/settings-icon-e8ed293a.js +0 -1
  94. package/esm/skin-095e2bb8.js +0 -1
  95. package/esm/skin-16f83185.js +0 -1
  96. package/esm/skin-520efc38.js +0 -1
  97. package/esm/skin-70cec92b.js +0 -1
  98. package/esm/skin-a9816629.js +0 -1
  99. package/esm/skin-fa5461e2.js +0 -1
  100. package/esm/videoSelector-48609307.js +0 -1
  101. package/esm/videoSelector-da42dc2c.js +0 -1
@@ -0,0 +1 @@
1
+ "use strict";var e=require("./features-1948bd33.js"),l=require("./icons-2609dbe4.js"),i=require("./player_instance-fcf6a8fb.js"),n=require("./skin-63ae6607.js"),t=require("./resolution-9c4872ec.js"),o=require("./index-0b0e69a1.js"),r=require("./generic-adf27555.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("./autoNextVideo-bf75ce72.js"),require("./util-a3ed1133.js"),require("@babel/runtime/helpers/typeof"),require("@babel/runtime/helpers/asyncToGenerator"),require("@babel/runtime/regenerator"),require("@babel/runtime/helpers/slicedToArray"),require("axios"),require("js-cookie"),require("ua-parser-js"),require("./captions-bf891620.js"),exports.initialiseSkin=function(s,u){i.getPlayer(s).addClass("skin_news"),function(){"Chrome"==r.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-41508f0d.js")}).then(function(e){var l=document.createElement("style");l.id="default_v2",l.append("".concat(e.default)),document.head.appendChild(l)})}(),function(l,n){var s=i.getPlayer(l);s&&s.on("loadeddata",function(){var i,s,u,d,a,C;(null===(i=t.getRenditions(l))||void 0===i?void 0:i.length)>0&&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!==(C=a.features)&&void 0!==C&&C.auto_play)||null!=n&&n.liveVideo||o.addNextEpPreview(l,n),null!=n&&n.liveVideo||r.isMobile()||o.initiateTrickplay(l)})}(s,u),function(e){var l,t,o,r,s,u,d,a,C,v,c,h,p,f,m,b,B,y,L=i.getPlayer(e);null===(l=L.controlBar)||void 0===l||l.removeChild("VolumePanel"),null===(t=L.controlBar)||void 0===t||t.addChild("VolumePanel",{inline:!1},1);var j=null===(o=L.controlBar)||void 0===o?void 0:o.getChild("ProgressControl"),g=document.createElement("div");g.className="custom-spaced-progress-bar",j&&g.append(j.el());null===(r=L.controlBar)||void 0===r||null===(s=r.el())||void 0===s||s.append(g);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>';L.el().insertBefore(n.parseSvgString(V),null!==(u=L.el().firstChild)&&void 0!==u?u:null);var E=(null==L||null===(d=L.controlBar)||void 0===d||null===(a=d.getChild("PlayToggle"))||void 0===a||null===(C=a.el())||void 0===C?void 0:C.firstChild)||null;if(E){E.style.height="15px",E.style.width="15px";var w=n.injectSVG(E,L.paused()?"#vjs-icon-play":"#vjs-icon-pause");L.on("pause",function(){return w.setAttributeNS(null,"href","#vjs-icon-play")}),L.on("play",function(){return w.setAttributeNS(null,"href","#vjs-icon-pause")})}var x=(null==L||null===(v=L.controlBar)||void 0===v||null===(c=v.getChild("FullscreenToggle"))||void 0===c||null===(h=c.el())||void 0===h?void 0:h.firstChild)||null;if(x){x.style.height="20px",x.style.width="20px";var S=n.injectSVG(x,"#vjs-icon-fullscreen");L.on("fullscreenchange",function(){var e=L.isFullscreen_;null==S||S.setAttributeNS(null,"href",e?"#vjs-icon-fullscreen-back":"#vjs-icon-fullscreen")})}var q=(null==L||null===(p=L.controlBar)||void 0===p||null===(f=p.getChild("VolumePanel"))||void 0===f?void 0:f.el())||null;if(q){var M=q.querySelector(".vjs-mute-control .vjs-icon-placeholder");M.classList.add("vjs-svg-icon"),M.style.height="20px",M.style.width="20px";var k=n.injectSVG(M,L.muted()?"#vjs-icon-mute":"#vjs-icon-volume1");L.on("volumechange",function(e){var l=L.volume();console.log(l,L.muted()),0==l||L.muted()?k.setAttributeNS(null,"href","#vjs-icon-mute"):l>0&&l<=.3?k.setAttributeNS(null,"href","#vjs-icon-volume1"):l>=.3&&l<=.7?k.setAttributeNS(null,"href","#vjs-icon-volume2"):k.setAttributeNS(null,"href","#vjs-icon-volume3")})}var P=(null==L||null===(m=L.controlBar)||void 0===m||null===(b=m.getChild("PictureInPictureToggle"))||void 0===b?void 0:b.el())||null;if(P){var Z=null==P?void 0:P.querySelector(".vjs-icon-placeholder");Z.style.height="20px",Z.style.width="20px";var _=n.injectSVG(Z,"#vjs-icon-pip");L.on("enterpictureinpicture",function(){_.setAttributeNS(null,"href","#vjs-icon-pip")})}var A=(null==L||null===(B=L.controlBar)||void 0===B||null===(y=B.getChild("SubsCapsButton"))||void 0===y?void 0:y.el())||null;if(A){var N=A.querySelector(".vjs-subs-caps-button .vjs-icon-placeholder");N.classList.add("vjs-svg-icon"),N.style.height="25px",N.style.width="25px";var T=n.injectSVG(N,"#vjs-icon-caps");T.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?T.setAttributeNS(null,"href","#vjs-icon-captions"):T.setAttributeNS(null,"href","#vjs-icon-captions-off")})}}(s),function(i,n){var t,o,r,s,u,d,a=(null==n?void 0:n.skin_settings)||{};null==a||a.slowMoBtn,null!=a&&a.skipBtn&&0==(null==n?void 0:n.liveVideo)&&0==(null==n?void 0:n.liveui)&&e.addSkipButton(i,"VL_ONE",SkipSvgV2());(null!=a&&a.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===(t=n.relatedVideos)||void 0===t||null===(o=t.content)||void 0===o?void 0:o.length)>0&&e.addVideoSelector_DEFAULTV2_TEMP(i,null==n?void 0:n.relatedVideos);(null==n||null===(r=n.streams)||void 0===r?void 0:r.length)>1&&e.addMulticamSelector_DEFAULTV2_TEMP(i,null==n?void 0:n.streams);(null==n||null===(s=n.playlist)||void 0===s||null===(u=s.content)||void 0===u?void 0:u.length)>0&&e.addPlaylistSelector(i,null==n?void 0:n.playlist);null!=n&&null!==(d=n.series)&&void 0!==d&&d.enable&&e.addSeriesSelectorV2_DEFAULTV2_TEMP(i,n)}(s,u),o.addTVProviderImage(s,u)};
@@ -1 +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"),l=require("video.js"),o=require("./icons-79591410.js"),u=require("./index-de801167.js");function a(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(a=function(){return!!e})()}require("./player_instance-fcf6a8fb.js");var s=l.getComponent("Component"),c=function(){t(p,s);var c,v,b=(c=p,v=a(),function(){var e,r=i(c);if(v){var t=i(this).constructor;e=Reflect.construct(r,arguments,t)}else e=r.apply(this,arguments);return n(this,e)});function p(r,t){var n,i;e(this,p),(i=b.call(this,r,t)).el().innerHTML=o.startLiveIcon();var l=(null==t||null===(n=t.dvrConfig)||void 0===n?void 0:n.programs)||[];return i.on("click",function(){var e=null==r?void 0:r.seekable();if(e&&e.length>0){var t=u.getProgramStartTime(l,e);r.currentTime(t),r.play()}}),i}return r(p,[{key:"createEl",value:function(){return l.dom.createEl("button",{className:"vjs-control vjs-button watch-begin-btn",role:"button",tabIndex:0,title:"Start From Beginning"})}}]),p}();exports.default=c;
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"),l=require("video.js"),o=require("./icons-2609dbe4.js"),u=require("./index-3825262b.js");function a(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(a=function(){return!!e})()}require("./player_instance-fcf6a8fb.js");var s=l.getComponent("Component"),c=function(){t(p,s);var c,v,b=(c=p,v=a(),function(){var e,r=i(c);if(v){var t=i(this).constructor;e=Reflect.construct(r,arguments,t)}else e=r.apply(this,arguments);return n(this,e)});function p(r,t){var n,i;e(this,p),(i=b.call(this,r,t)).el().innerHTML=o.startLiveIcon();var l=(null==t||null===(n=t.dvrConfig)||void 0===n?void 0:n.programs)||[];return i.on("click",function(){var e=null==r?void 0:r.seekable();if(e&&e.length>0){var t=u.getProgramStartTime(l,e);r.currentTime(t),r.play()}}),i}return r(p,[{key:"createEl",value:function(){return l.dom.createEl("button",{className:"vjs-control vjs-button watch-begin-btn",role:"button",tabIndex:0,title:"Start From Beginning"})}}]),p}();exports.default=c;
@@ -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-adf27555.js"),d=require("./skin-63ae6607.js"),s=require("./autoNextVideo-bf75ce72.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("./player_instance-fcf6a8fb.js"),require("js-cookie"),require("ua-parser-js"),require("./captions-bf891620.js"),require("@babel/runtime/helpers/toConsumableArray"),require("@babel/runtime/helpers/slicedToArray"),require("./util-a3ed1133.js"),require("@babel/runtime/helpers/typeof");var m=l.getComponent("Component"),v=function(){n(y,m);var v,p,h=(v=y,p=u(),function(){var e,t=i(v);if(p){var n=i(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return o(this,e)});function y(t){var n,o,i,l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e(this,y),(i=h.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&&(r.setVideoIdx(0),s.autoPlayNext({playerId:i.playerId,content:i.videos,cb:i.cb})),i}return t(y,[{key:"createEl",value:function(){var e=l.dom.createEl("div",{className:"video-selection vjs-control vjs-button"});e.style.position="unset";var t=l.dom.createEl("button",{className:"video-selector-icon",title:"video selector",innerHTML:"".concat(a.PlaylistIcon())});return l.dom.appendContent(e,t),e}},{key:"loadCSS",value:function(){Promise.resolve().then(function(){return require("./videoSelector-b6e03076.js")}).then(function(e){var t=document.createElement("style");t.id="video-selection",t.append("".concat(e.default)),document.head.appendChild(t)})}},{key:"initialiseStructure",value:function(){var e=this,t=this.el(),n=l.dom.createEl("div",{className:"video-selection-container hidden"});l.dom.$(".video-selector-icon",this.el()).onclick=function(){var o;e.handleTabIndexSelector(),null!==(o=n.classList)&&void 0!==o&&o.contains("hidden")?(d.closeOpenDrawers(),n.classList.remove("hidden"),t.classList.add("open"),d.setUpdatedElHeight(e.playerId,n)):(n.classList.add("hidden"),t.classList.remove("open"))};var o=document.getElementById(this.playerId);if(o){var i=window.getComputedStyle(o,null).getPropertyValue("height");n.style.height="".concat(i),l.dom.appendContent(t,n),o.style.overflow="hidden",this.addFunctionality(n),d.detectOrientationChange(this.playerId,n)}}},{key:"loadVideoAssetById",value:function(e){var t=this;r.setVideoIdx(e+1);for(var n=l.dom.$$(".recommended"),o=0;o<n.length;o++)n[o].style.border="none";d.highlightVideo(e),r.load(this.playerId,this.videos[e].id).then(function(e){t.cb&&t.cb(e)}).catch(function(e){t.cb&&t.cb(e)})}},{key:"handleTabIndexSelector",value:function(){var e,t,n;null!==(e=document.getElementsByClassName("video-selector-cross-icon"))&&void 0!==e&&e[0]&&(document.getElementsByClassName("video-selector-cross-icon")[0].tabIndex=0);for(var o=document.getElementsByClassName("video-accessibility"),i=(null==o||null===(t=o[0])||void 0===t||null===(n=t.children)||void 0===n?void 0:n.length)||0,l=0;l<i;l++)document.getElementsByClassName("recommended -".concat(l))[0]&&(document.getElementsByClassName("recommended -".concat(l))[0].tabIndex=0)}},{key:"handleCloseTabIndex",value:function(){var e,t,n;null!==(e=document.getElementsByClassName("video-selector-cross-icon"))&&void 0!==e&&e[0]&&(document.getElementsByClassName("video-selector-cross-icon")[0].tabIndex=-1);for(var o=document.getElementsByClassName("video-accessibility"),i=(null==o||null===(t=o[0])||void 0===t||null===(n=t.children)||void 0===n?void 0:n.length)||0,l=0;l<i;l++)document.getElementsByClassName("recommended -".concat(l))&&(document.getElementsByClassName("recommended -".concat(l))[0].tabIndex=-1)}},{key:"addFunctionality",value:function(e){var t=this,n=this.el(),o=l.dom.createEl("div",{className:"video-selector-head"}),i=l.dom.createEl("div",{className:"video-selector-cross-icon",ariaLabel:"close video selector",tabIndex:-1,innerHTML:"".concat(a.crossIconSvg())});i.onkeydown=function(o){"Enter"===o.key&&(e.classList.add("hidden"),n.classList.remove("open"),t.handleCloseTabIndex())},i.onclick=function(){e.classList.add("hidden"),n.classList.remove("open"),t.handleCloseTabIndex()};for(var r=l.dom.createEl("div",{className:"video-selector-title",innerHTML:c.getLocalisation("relatedVideoTitle")||"Recommended"}),s=l.dom.createEl("div",{className:"video-selector-content",tabIndex:-1}),u=l.dom.createEl("div",{className:"video-container video-accessibility"}),m=function(e){var n,o,i,a,r,c,m,v,p=l.dom.createEl("div",{className:"video -".concat(e)}),h=l.dom.createEl("div",{className:"recommended -".concat(e),ariaLabel:"".concat(t.videos[e].title),type:"button",tabIndex:-1});h.setAttribute("video-idx",e),h.onkeydown=function(n){"Enter"===n.key&&t.loadVideoAssetById(e)},h.onclick=function(){t.loadVideoAssetById(e)};var y=document.createElement("img");y.className="related-thumbnail-image",y.src="".concat(d.impolicy16x9(null==t||null===(n=t.videos)||void 0===n||null===(o=n[e])||void 0===o?void 0:o.img)||d.impolicy16x9(null===(i=window)||void 0===i||null===(a=i.app_data)||void 0===a||null===(r=a.appcmsMain)||void 0===r||null===(c=r.images)||void 0===c?void 0:c.placeholderCover)),y.alt="".concat((null==t||null===(m=t.videos[e])||void 0===m?void 0:m.title.trim().split(/\s+/).slice(0,2).join(" "))||""),h.append(y);var b=l.dom.createEl("div",{className:"info -".concat(e),innerHTML:"".concat((null==t||null===(v=t.videos[e])||void 0===v?void 0:v.title)||"")});l.dom.appendContent(p,h),l.dom.appendContent(p,b),l.dom.appendContent(u,p),l.dom.appendContent(s,u)},v=0;v<this.videos.length;v++)m(v);l.dom.appendContent(o,r),l.dom.appendContent(o,i),l.dom.appendContent(e,o),l.dom.appendContent(e,s),d.handleDrawerResizing(this.playerId,e)}}]),y}();exports.default=v;
@@ -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-2609dbe4.js"),l=require("./generic-adf27555.js"),s=require("./skin-63ae6607.js"),d=require("./autoNextVideo-bf75ce72.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("./player_instance-fcf6a8fb.js"),require("js-cookie"),require("ua-parser-js"),require("./captions-bf891620.js"),require("@babel/runtime/helpers/toConsumableArray"),require("@babel/runtime/helpers/slicedToArray"),require("./util-a3ed1133.js"),require("@babel/runtime/helpers/typeof");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;
@@ -1 +1 @@
1
- "use strict";var e=require("@babel/runtime/helpers/classCallCheck"),t=require("@babel/runtime/helpers/createClass"),r=require("@babel/runtime/helpers/inherits"),n=require("@babel/runtime/helpers/possibleConstructorReturn"),i=require("@babel/runtime/helpers/getPrototypeOf"),l=require("video.js"),u=require("./icons-79591410.js");function o(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(o=function(){return!!e})()}var c=l.getComponent("Component"),a=function(){r(h,c);var a,s,b=(a=h,s=o(),function(){var e,t=i(a);if(s){var r=i(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return n(this,e)});function h(t,r){var n;return e(this,h),n=b.call(this,t,r),r.userId,r.siteOwner,n.el().innerHTML=u.watchLiveIcon(),n.on("click",function(){t&&t.seekable()&&(t.currentTime(t.seekable().end(0)),t.play())}),n}return t(h,[{key:"createEl",value:function(){return l.dom.createEl("button",{className:"vjs-control vjs-button dvr-watch-live-btn",role:"button",tabIndex:0,title:"Watch Live"})}}]),h}();exports.default=a;
1
+ "use strict";var e=require("@babel/runtime/helpers/classCallCheck"),t=require("@babel/runtime/helpers/createClass"),r=require("@babel/runtime/helpers/inherits"),n=require("@babel/runtime/helpers/possibleConstructorReturn"),i=require("@babel/runtime/helpers/getPrototypeOf"),l=require("video.js"),u=require("./icons-2609dbe4.js");function o(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(o=function(){return!!e})()}var c=l.getComponent("Component"),a=function(){r(h,c);var a,s,b=(a=h,s=o(),function(){var e,t=i(a);if(s){var r=i(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return n(this,e)});function h(t,r){var n;return e(this,h),n=b.call(this,t,r),r.userId,r.siteOwner,n.el().innerHTML=u.watchLiveIcon(),n.on("click",function(){t&&t.seekable()&&(t.currentTime(t.seekable().end(0)),t.play())}),n}return t(h,[{key:"createEl",value:function(){return l.dom.createEl("button",{className:"vjs-control vjs-button dvr-watch-live-btn",role:"button",tabIndex:0,title:"Watch Live"})}}]),h}();exports.default=a;
@@ -1,3 +1,7 @@
1
+ export function watchLiveIcon(): string;
2
+ export function watchLiveIcon2(): string;
3
+ export function startLiveIcon(): string;
4
+ export function RewindSvgV3(): string;
1
5
  export function InfoIcon(): string;
2
6
  export function PlaylistIcon(): string;
3
7
  export function WidgetSelector(): string;
@@ -19,6 +23,3 @@ export function SettingsSvgV2(): string;
19
23
  export function CaptionsSvgV2(): string;
20
24
  export function BackIcon(): string;
21
25
  export function TickMarkIcon(): string;
22
- export function watchLiveIcon(): string;
23
- export function startLiveIcon(): string;
24
- export function watchLiveIcon2(): string;
@@ -1 +1 @@
1
- import{I as n,j as t,T as i,S as o,U as a}from"./generic-dd89c778.js";import{a as e}from"./util-28923483.js";import{h as c}from"./skin-16f83185.js";import{g as s}from"./player_instance-34118a5b.js";var r,u=0,f=0,l=function(l){clearTimeout(u);var h=null==l?void 0:l.content;r=null==l?void 0:l.cb;var v=l.playerId;e(v,function(){var e=s(v);0!==(null==e?void 0:e.currentTime())&&((f=o())>h.length-1||(a(f+1),n(v,h[f].id).then(function(n){c(f,v),t(n.response),f++,p(n)}).catch(function(n){p(n),c(f,v),f++,u=setTimeout(function(){i(v)&&m(f,v,h)},5e3)})))})},m=function t(i,o,e,s){f=i,i>e.length-1||(a(f+1),n(o,e[i].id).then(function(n){c(f,o),f++,p(n)}).catch(function(n){p(n),setTimeout(function(){c(f,o),f++,t(f,o,e)},5e3)}))},p=function(n){r&&r(n)};export{l as a,m as s};
1
+ import{I as n,j as t,W as i,V as o,X as a}from"./generic-93db3bbb.js";import{a as e}from"./util-28923483.js";import{h as c}from"./skin-0f689204.js";import{g as s}from"./player_instance-34118a5b.js";var r,u=0,f=0,l=function(l){clearTimeout(u);var h=null==l?void 0:l.content;r=null==l?void 0:l.cb;var v=l.playerId;e(v,function(){var e=s(v);0!==(null==e?void 0:e.currentTime())&&((f=o())>h.length-1||(a(f+1),n(v,h[f].id).then(function(n){c(f,v),t(n.response),f++,p(n)}).catch(function(n){p(n),c(f,v),f++,u=setTimeout(function(){i(v)&&m(f,v,h)},5e3)})))})},m=function t(i,o,e,s){f=i,i>e.length-1||(a(f+1),n(o,e[i].id).then(function(n){c(f,o),f++,p(n)}).catch(function(n){p(n),setTimeout(function(){c(f,o),f++,t(f,o,e)},5e3)}))},p=function(n){r&&r(n)};export{l as a,m as s};
package/esm/bundle.css CHANGED
@@ -217,6 +217,7 @@
217
217
  }
218
218
 
219
219
 
220
+
220
221
  /* CSS for videojs-dvr-seekbar */
221
222
 
222
223
  .video-js.vjs-dvr-seekbar {
@@ -390,6 +391,7 @@
390
391
 
391
392
 
392
393
 
394
+
393
395
  .video-js .multicamera-parent.default{
394
396
  height: 345px;
395
397
  position: absolute;
@@ -472,7 +474,6 @@
472
474
 
473
475
 
474
476
 
475
-
476
477
  /* nextep */
477
478
  .next-ep-preview{
478
479
  position: absolute;
@@ -580,56 +581,6 @@
580
581
  opacity: 0;
581
582
  }
582
583
 
583
- .vjs-marker {
584
- position: absolute;
585
- left: 0;
586
- bottom: 0em;
587
- opacity: 1;
588
- height: 100%;
589
- transition: opacity .2s ease;
590
- -webkit-transition: opacity .2s ease;
591
- -moz-transition: opacity .2s ease;
592
- z-index: 100;
593
- }
594
- .vjs-marker:hover {
595
- cursor: pointer;
596
- -webkit-transform: scale(1.3, 1.3);
597
- -moz-transform: scale(1.3, 1.3);
598
- -o-transform: scale(1.3, 1.3);
599
- -ms-transform: scale(1.3, 1.3);
600
- transform: scale(1.3, 1.3);
601
- }
602
- .vjs-tip {
603
- visibility: hidden;
604
- display: block;
605
- opacity: 0.8;
606
- padding: 5px;
607
- font-size: 10px;
608
- position: absolute;
609
- bottom: 14px;
610
- z-index: 100000;
611
- }
612
- .vjs-tip .vjs-tip-arrow {
613
- background: url(data:image/gif;base64,R0lGODlhCQAJAIABAAAAAAAAACH5BAEAAAEALAAAAAAJAAkAAAIRjAOnwIrcDJxvwkplPtchVQAAOw==) no-repeat top left;
614
- bottom: 0;
615
- left: 50%;
616
- margin-left: -4px;
617
- background-position: bottom left;
618
- position: absolute;
619
- width: 9px;
620
- height: 5px;
621
- }
622
- .vjs-tip .vjs-tip-inner {
623
- border-radius: 3px;
624
- -moz-border-radius: 3px;
625
- -webkit-border-radius: 3px;
626
- padding: 5px 8px 4px 8px;
627
- background-color: black;
628
- color: white;
629
- max-width: 200px;
630
- text-align: center;
631
- }
632
-
633
584
  .video-js.vjs-quality-menu {
634
585
  display: block;
635
586
  }
@@ -700,6 +651,56 @@
700
651
  -webkit-animation: vjs-spinner-spin 1.1s cubic-bezier(0.6, 0.2, 0, 0.8) infinite;
701
652
  animation: vjs-spinner-spin 1.1s cubic-bezier(0.6, 0.2, 0, 0.8) infinite;
702
653
  }
654
+ .vjs-marker {
655
+ position: absolute;
656
+ left: 0;
657
+ bottom: 0em;
658
+ opacity: 1;
659
+ height: 100%;
660
+ transition: opacity .2s ease;
661
+ -webkit-transition: opacity .2s ease;
662
+ -moz-transition: opacity .2s ease;
663
+ z-index: 100;
664
+ }
665
+ .vjs-marker:hover {
666
+ cursor: pointer;
667
+ -webkit-transform: scale(1.3, 1.3);
668
+ -moz-transform: scale(1.3, 1.3);
669
+ -o-transform: scale(1.3, 1.3);
670
+ -ms-transform: scale(1.3, 1.3);
671
+ transform: scale(1.3, 1.3);
672
+ }
673
+ .vjs-tip {
674
+ visibility: hidden;
675
+ display: block;
676
+ opacity: 0.8;
677
+ padding: 5px;
678
+ font-size: 10px;
679
+ position: absolute;
680
+ bottom: 14px;
681
+ z-index: 100000;
682
+ }
683
+ .vjs-tip .vjs-tip-arrow {
684
+ background: url(data:image/gif;base64,R0lGODlhCQAJAIABAAAAAAAAACH5BAEAAAEALAAAAAAJAAkAAAIRjAOnwIrcDJxvwkplPtchVQAAOw==) no-repeat top left;
685
+ bottom: 0;
686
+ left: 50%;
687
+ margin-left: -4px;
688
+ background-position: bottom left;
689
+ position: absolute;
690
+ width: 9px;
691
+ height: 5px;
692
+ }
693
+ .vjs-tip .vjs-tip-inner {
694
+ border-radius: 3px;
695
+ -moz-border-radius: 3px;
696
+ -webkit-border-radius: 3px;
697
+ padding: 5px 8px 4px 8px;
698
+ background-color: black;
699
+ color: white;
700
+ max-width: 200px;
701
+ text-align: center;
702
+ }
703
+
703
704
  .vjs-poster {
704
705
  display: inline-block;
705
706
  vertical-align: middle;
@@ -886,6 +887,62 @@
886
887
  .video-js.vjs-playing .bumpable-ima-ad-container {
887
888
  margin-top: -4em;
888
889
  }
890
+ .ssai-ad-container{
891
+ display: none;
892
+ }
893
+ .ssai-ad-container .ad-counter{
894
+ position: absolute;
895
+ bottom: 3rem;
896
+ left: 6.5rem;
897
+ color: white;
898
+ padding: 3.6px 10px;
899
+ font-size: 12px;
900
+ border-radius: 4px;
901
+ overflow: hidden;
902
+ text-overflow: ellipsis;
903
+ font-family: sans-serif;
904
+ white-space: nowrap;
905
+ -webkit-user-select: none;
906
+ -moz-user-select: none;
907
+ font-weight: 700;
908
+ text-shadow: 0 0 4px rgba(0, 0, 0, .75);
909
+ user-select: none;
910
+ }
911
+ .ad-info-icon:hover {
912
+ cursor: pointer;
913
+ }
914
+
915
+ .ssai-ad-container .sponsored-adbox{
916
+ position: absolute;
917
+ bottom: 3rem;
918
+ font-family: sans-serif;
919
+ left: 0.8rem;
920
+ padding: 3.6px 0;
921
+ display: flex;
922
+ align-items: center;
923
+ color: white;
924
+ font-size: 12px;
925
+ border-radius: 4px;
926
+ overflow: hidden;
927
+ text-overflow: ellipsis;
928
+ white-space: nowrap;
929
+ -webkit-user-select: none;
930
+ -moz-user-select: none;
931
+ font-weight: 700;
932
+ text-shadow: 0 0 4px rgba(0, 0, 0, .75);
933
+ user-select: none;
934
+ }
935
+ .ssai-ad-container .sponsored-adbox .sponsored-text{
936
+ margin-right: 0.4rem;
937
+ }
938
+
939
+ @media (max-width:600px){
940
+ .ssai-ad-container .ad-info-title{
941
+ max-width: 190px;
942
+ }
943
+ }
944
+
945
+
889
946
  /* Resolution Module */
890
947
 
891
948
  .video-js .container {
@@ -1207,62 +1264,6 @@
1207
1264
  }
1208
1265
 
1209
1266
  /* Airplay end */
1210
- .ssai-ad-container{
1211
- display: none;
1212
- }
1213
- .ssai-ad-container .ad-counter{
1214
- position: absolute;
1215
- bottom: 3rem;
1216
- left: 6.5rem;
1217
- color: white;
1218
- padding: 3.6px 10px;
1219
- font-size: 12px;
1220
- border-radius: 4px;
1221
- overflow: hidden;
1222
- text-overflow: ellipsis;
1223
- font-family: sans-serif;
1224
- white-space: nowrap;
1225
- -webkit-user-select: none;
1226
- -moz-user-select: none;
1227
- font-weight: 700;
1228
- text-shadow: 0 0 4px rgba(0, 0, 0, .75);
1229
- user-select: none;
1230
- }
1231
- .ad-info-icon:hover {
1232
- cursor: pointer;
1233
- }
1234
-
1235
- .ssai-ad-container .sponsored-adbox{
1236
- position: absolute;
1237
- bottom: 3rem;
1238
- font-family: sans-serif;
1239
- left: 0.8rem;
1240
- padding: 3.6px 0;
1241
- display: flex;
1242
- align-items: center;
1243
- color: white;
1244
- font-size: 12px;
1245
- border-radius: 4px;
1246
- overflow: hidden;
1247
- text-overflow: ellipsis;
1248
- white-space: nowrap;
1249
- -webkit-user-select: none;
1250
- -moz-user-select: none;
1251
- font-weight: 700;
1252
- text-shadow: 0 0 4px rgba(0, 0, 0, .75);
1253
- user-select: none;
1254
- }
1255
- .ssai-ad-container .sponsored-adbox .sponsored-text{
1256
- margin-right: 0.4rem;
1257
- }
1258
-
1259
- @media (max-width:600px){
1260
- .ssai-ad-container .ad-info-title{
1261
- max-width: 190px;
1262
- }
1263
- }
1264
-
1265
-
1266
1267
  .vjs-dvr-btn-overlay {
1267
1268
  position: absolute;
1268
1269
  display: flex;
@@ -1 +1 @@
1
- import e from"@babel/runtime/helpers/classCallCheck";import t from"@babel/runtime/helpers/createClass";import n from"@babel/runtime/helpers/inherits";import a from"@babel/runtime/helpers/possibleConstructorReturn";import o from"@babel/runtime/helpers/getPrototypeOf";import i from"video.js";import{C as r,e as c}from"./icons-c139587c.js";import{g as l,d as s,e as d}from"./captions-b619441b.js";import{e as p,s as m,f as u,g as v}from"./skin-16f83185.js";import"./player_instance-34118a5b.js";import"@babel/runtime/helpers/toConsumableArray";function f(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(f=function(){return!!e})()}var h=i.getComponent("Component"),y=function(){n(E,h);var y,g,C=(y=E,g=f(),function(){var e,t=o(y);if(g){var n=o(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return a(this,e)});function E(t){var n,a,o,i,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e(this,E),(i=C.call(this,t,r)).playerId=r.playerId,i.seriesData=r.sres,i.currentVideoData=r.res,i.initialiseStructure(),i.loadCSS(),null===(n=document.getElementsByClassName("vjs-text-track-display-ttml"))||void 0===n||null===(a=n[0])||void 0===a||null===(o=a.style)||void 0===o||o.setProperty("display","none","important"),i}return t(E,[{key:"createEl",value:function(){var e=i.dom.createEl("div",{className:"caption-selection vjs-control vjs-button"});e.style.position="unset";var t=i.dom.createEl("div",{className:"caption-selector-icon",innerHTML:"".concat(r())});return i.dom.appendContent(e,t),e}},{key:"loadCSS",value:function(){import("./caption-settings-cb47408f.js").then(function(e){var t=document.createElement("style");t.id="video-captions",t.append("".concat(e.default)),document.head.appendChild(t)})}},{key:"initialiseStructure",value:function(){var e=this,t=l(this.playerId);null==t||t.map(function(t){return s(e.playerId,t.id)});var n=this.el(),a=i.dom.createEl("div",{className:"caption-selection-container hidden"});i.dom.$(".caption-selector-icon",this.el()).onclick=function(){var t;null!==(t=a.classList)&&void 0!==t&&t.contains("hidden")?(p(),a.classList.remove("hidden"),n.classList.add("open"),a.style.right="0px",m(e.playerId,a)):(a.classList.add("hidden"),n.classList.remove("open"),a.style.right="-350px")};var o=document.getElementById(this.playerId);if(o){var r=window.getComputedStyle(o,null).getPropertyValue("height");a.style.height="".concat(r),i.dom.appendContent(n,a),o.style.overflow="hidden",this.addFunctionality(a),u(this.playerId,a)}}},{key:"addFunctionality",value:function(e){var t=this.el(),n=i.dom.createEl("div",{className:"caption-selector-head"}),a=i.dom.createEl("div",{className:"caption-selector-cross-icon",innerHTML:"".concat(c())});a.onclick=function(){e.classList.add("hidden"),t.classList.remove("open"),e.style.right="-350px"};var o=i.dom.createEl("div",{className:"caption-selector-title",innerHTML:"Captions"}),r=i.dom.createEl("div",{className:"caption-selector-content"}),l=i.dom.createEl("div",{className:"caption-container"}),s=this.createLanguageContanier();i.dom.appendContent(l,s),i.dom.appendContent(n,a),i.dom.appendContent(n,o),i.dom.appendContent(e,n),i.dom.appendContent(e,r),i.dom.appendContent(r,l),v(this.playerId,e)}},{key:"createLanguageContanier",value:function(){var e=this,t=i.dom.createEl("div",{className:"caption-language-container"}),n=i.dom.createEl("div",{className:"caption-language-container-title",innerHTML:"Language"});i.dom.appendContent(t,n);var a=document.createElement("label");a.setAttribute("for","radio-off"),a.className="caption-language-holder";var o=document.createElement("div");o.className="caption",o.innerHTML="Off";var r=i.dom.createEl("input",{className:"radio - off",id:"radio-off",name:"language-radio",checked:"true"});r.setAttribute("type","radio"),r.onchange=function(t){var n,a,o;document.getElementsByClassName("vjs-text-track-display-ttml")&&(null===(n=document.getElementsByClassName("vjs-text-track-display-ttml"))||void 0===n||null===(a=n[0])||void 0===a||null===(o=a.style)||void 0===o||o.setProperty("display","none","important")),l(e.playerId).map(function(t){return s(e.playerId,t.id)})},i.dom.appendContent(a,r),i.dom.appendContent(a,o),i.dom.appendContent(t,a);for(var c=l(this.playerId),p=function(n){var a,o=document.createElement("label");o.className="caption-language-holder",o.setAttribute("for","language-radio-".concat(n));var r=document.createElement("div");r.className="caption - ".concat(n),r.textContent=null==c||null===(a=c[n])||void 0===a?void 0:a.label;var l=i.dom.createEl("input",{className:"radio - ".concat(n),id:"language-radio-".concat(n),name:"language-radio"});l.onchange=function(t){d(e.playerId,c[n].id)},l.setAttribute("type","radio"),i.dom.appendContent(o,l),i.dom.appendContent(o,r),i.dom.appendContent(t,o)},m=0;m<c.length;m++)p(m);return t}},{key:"createFontSizeContainer",value:function(){var e=i.dom.createEl("div",{className:"caption-font-container"}),t=i.dom.createEl("div",{className:"caption-font-container-title",innerHTML:"Font Size"});i.dom.appendContent(e,t);for(var n=[{size:14},{size:18},{size:24}],a=0;a<n.length;a++){var o,r=document.createElement("label");r.className="caption-font-holder",r.setAttribute("for","font".concat(a));var c=document.createElement("div");c.className="fontsize - ".concat(a),c.textContent=(null==n||null===(o=n[a])||void 0===o?void 0:o.size)+"pt";var l=i.dom.createEl("input",{className:"radio - ".concat(a),id:"font".concat(a),name:"font-size-radio",size:"".concat(n[a].size),checked:"".concat(a==n.length-1)});l.setAttribute("type","radio"),l.onchange=function(e){var t=e.target.size;if(document.getElementById("caption-size")){document.getElementById("caption-size").textContent=".vjs-text-track-cue{font-size:".concat(t,"px !important}")}else{var n=document.createElement("style");n.textContent=".vjs-text-track-cue{font-size:".concat(t,"px !important}"),n.id="caption-size",document.head.append(n)}},i.dom.appendContent(r,l),i.dom.appendContent(r,c),i.dom.appendContent(e,r)}return e}}]),E}();export{y as default};
1
+ import e from"@babel/runtime/helpers/classCallCheck";import t from"@babel/runtime/helpers/createClass";import n from"@babel/runtime/helpers/inherits";import a from"@babel/runtime/helpers/possibleConstructorReturn";import o from"@babel/runtime/helpers/getPrototypeOf";import i from"video.js";import{C as r,e as c}from"./icons-37daa6b3.js";import{g as l,d as s,e as d}from"./captions-b619441b.js";import{f as p,s as m,g as u,j as v}from"./skin-0f689204.js";import"./player_instance-34118a5b.js";import"@babel/runtime/helpers/toConsumableArray";function f(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(f=function(){return!!e})()}var h=i.getComponent("Component"),y=function(){n(E,h);var y,g,C=(y=E,g=f(),function(){var e,t=o(y);if(g){var n=o(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return a(this,e)});function E(t){var n,a,o,i,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e(this,E),(i=C.call(this,t,r)).playerId=r.playerId,i.seriesData=r.sres,i.currentVideoData=r.res,i.initialiseStructure(),i.loadCSS(),null===(n=document.getElementsByClassName("vjs-text-track-display-ttml"))||void 0===n||null===(a=n[0])||void 0===a||null===(o=a.style)||void 0===o||o.setProperty("display","none","important"),i}return t(E,[{key:"createEl",value:function(){var e=i.dom.createEl("div",{className:"caption-selection vjs-control vjs-button"});e.style.position="unset";var t=i.dom.createEl("div",{className:"caption-selector-icon",innerHTML:"".concat(r())});return i.dom.appendContent(e,t),e}},{key:"loadCSS",value:function(){import("./caption-settings-cb47408f.js").then(function(e){var t=document.createElement("style");t.id="video-captions",t.append("".concat(e.default)),document.head.appendChild(t)})}},{key:"initialiseStructure",value:function(){var e=this,t=l(this.playerId);null==t||t.map(function(t){return s(e.playerId,t.id)});var n=this.el(),a=i.dom.createEl("div",{className:"caption-selection-container hidden"});i.dom.$(".caption-selector-icon",this.el()).onclick=function(){var t;null!==(t=a.classList)&&void 0!==t&&t.contains("hidden")?(p(),a.classList.remove("hidden"),n.classList.add("open"),a.style.right="0px",m(e.playerId,a)):(a.classList.add("hidden"),n.classList.remove("open"),a.style.right="-350px")};var o=document.getElementById(this.playerId);if(o){var r=window.getComputedStyle(o,null).getPropertyValue("height");a.style.height="".concat(r),i.dom.appendContent(n,a),o.style.overflow="hidden",this.addFunctionality(a),u(this.playerId,a)}}},{key:"addFunctionality",value:function(e){var t=this.el(),n=i.dom.createEl("div",{className:"caption-selector-head"}),a=i.dom.createEl("div",{className:"caption-selector-cross-icon",innerHTML:"".concat(c())});a.onclick=function(){e.classList.add("hidden"),t.classList.remove("open"),e.style.right="-350px"};var o=i.dom.createEl("div",{className:"caption-selector-title",innerHTML:"Captions"}),r=i.dom.createEl("div",{className:"caption-selector-content"}),l=i.dom.createEl("div",{className:"caption-container"}),s=this.createLanguageContanier();i.dom.appendContent(l,s),i.dom.appendContent(n,a),i.dom.appendContent(n,o),i.dom.appendContent(e,n),i.dom.appendContent(e,r),i.dom.appendContent(r,l),v(this.playerId,e)}},{key:"createLanguageContanier",value:function(){var e=this,t=i.dom.createEl("div",{className:"caption-language-container"}),n=i.dom.createEl("div",{className:"caption-language-container-title",innerHTML:"Language"});i.dom.appendContent(t,n);var a=document.createElement("label");a.setAttribute("for","radio-off"),a.className="caption-language-holder";var o=document.createElement("div");o.className="caption",o.innerHTML="Off";var r=i.dom.createEl("input",{className:"radio - off",id:"radio-off",name:"language-radio",checked:"true"});r.setAttribute("type","radio"),r.onchange=function(t){var n,a,o;document.getElementsByClassName("vjs-text-track-display-ttml")&&(null===(n=document.getElementsByClassName("vjs-text-track-display-ttml"))||void 0===n||null===(a=n[0])||void 0===a||null===(o=a.style)||void 0===o||o.setProperty("display","none","important")),l(e.playerId).map(function(t){return s(e.playerId,t.id)})},i.dom.appendContent(a,r),i.dom.appendContent(a,o),i.dom.appendContent(t,a);for(var c=l(this.playerId),p=function(n){var a,o=document.createElement("label");o.className="caption-language-holder",o.setAttribute("for","language-radio-".concat(n));var r=document.createElement("div");r.className="caption - ".concat(n),r.textContent=null==c||null===(a=c[n])||void 0===a?void 0:a.label;var l=i.dom.createEl("input",{className:"radio - ".concat(n),id:"language-radio-".concat(n),name:"language-radio"});l.onchange=function(t){d(e.playerId,c[n].id)},l.setAttribute("type","radio"),i.dom.appendContent(o,l),i.dom.appendContent(o,r),i.dom.appendContent(t,o)},m=0;m<c.length;m++)p(m);return t}},{key:"createFontSizeContainer",value:function(){var e=i.dom.createEl("div",{className:"caption-font-container"}),t=i.dom.createEl("div",{className:"caption-font-container-title",innerHTML:"Font Size"});i.dom.appendContent(e,t);for(var n=[{size:14},{size:18},{size:24}],a=0;a<n.length;a++){var o,r=document.createElement("label");r.className="caption-font-holder",r.setAttribute("for","font".concat(a));var c=document.createElement("div");c.className="fontsize - ".concat(a),c.textContent=(null==n||null===(o=n[a])||void 0===o?void 0:o.size)+"pt";var l=i.dom.createEl("input",{className:"radio - ".concat(a),id:"font".concat(a),name:"font-size-radio",size:"".concat(n[a].size),checked:"".concat(a==n.length-1)});l.setAttribute("type","radio"),l.onchange=function(e){var t=e.target.size;if(document.getElementById("caption-size")){document.getElementById("caption-size").textContent=".vjs-text-track-cue{font-size:".concat(t,"px !important}")}else{var n=document.createElement("style");n.textContent=".vjs-text-track-cue{font-size:".concat(t,"px !important}"),n.id="caption-size",document.head.append(n)}},i.dom.appendContent(r,l),i.dom.appendContent(r,c),i.dom.appendContent(e,r)}return e}}]),E}();export{y as default};
@@ -1 +1 @@
1
- import e from"@babel/runtime/helpers/defineProperty";import t from"@babel/runtime/helpers/classCallCheck";import n from"@babel/runtime/helpers/createClass";import r from"@babel/runtime/helpers/inherits";import o from"@babel/runtime/helpers/possibleConstructorReturn";import l from"@babel/runtime/helpers/getPrototypeOf";import i from"video.js";import{r as a,m as s}from"./generic-dd89c778.js";import{g as c}from"./resolution-62be852a.js";import{p as d}from"./skin-16f83185.js";import{g as u}from"./localisation-0bf399a1.js";import{g as m}from"./player_instance-34118a5b.js";function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function h(t){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?p(Object(r),!0).forEach(function(n){e(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):p(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function f(e){var t=v();return function(){var n,r=l(e);if(t){var i=l(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return o(this,n)}}function v(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(v=function(){return!!e})()}var g=function(e){var o=function(e){r(i,e);var o=f(i);function i(e,n){var r;t(this,i);var l=(r=o.call(this,e,n)).el_;return l.classList.add("vjs-slowmo-button"),l.textContent=u("slowMoText")||"Slow Mo",r}return n(i,[{key:"handleClick",value:function(){1==l.playbackRate()?(l.playbackRate(.5),this.el().style.background="darkgray"):(l.playbackRate(1),this.el().style.background="none")}}]),i}(i.getComponent("Button"));i.registerComponent("MyButton",o);var l=i(e);l.getChild("controlBar").addChild("myButton",{},2)},C=function(e,o,l){var s=function(o){r(s,o);var i=f(s);function s(e,n){var r;t(this,s);var o=(r=i.call(this,e,n)).el_;o.classList.add("vjs-rewind-button");var a=d(l);return o.append(a),r}return n(s,[{key:"handleClick",value:function(){a(e,10)}}]),s}(i.getComponent("Button"));i.registerComponent("MyButton",s),i(e).getChild("controlBar").addChild("myButton",{},1)},y=function(e,o,l){var a=function(o){r(a,o);var i=f(a);function a(e,n){var r;t(this,a);var o=(r=i.call(this,e,n)).el_;o.classList.add("vjs-skip-button");var s=d(l);return o.append(s),r}return n(a,[{key:"handleClick",value:function(){s(e,10)}}]),a}(i.getComponent("Button"));i.registerComponent("MyButton",a),i(e).getChild("controlBar").addChild("myButton",{},1)},B=function(e,t,n){import("./resolution-v2-6446fe47.js").then(function(r){var o=r.default;document.getElementById(e).getElementsByClassName("container")[0]&&document.getElementById(e).getElementsByClassName("container")[0].remove();var l=m(e),a=c(e);(null==a?void 0:a.length)>0&&(i.registerComponent("resolutionModule",o),l.getChild("controlBar").addChild("resolutionModule",{playerId:e,skin:t,icon:n,renditions:a},l.controlBar.children().length-4))})},b=function(e,t,n){import("./nextEpisodeButton-591509b7.js").then(function(r){var o=r.default,l=m(n);i.registerComponent("nextEpisodeButtonModule",o),l.getChild("controlBar").addChild("nextEpisodeButtonModule",{playerId:n,sres:e,res:t},l.controlBar.children().length-5)})},j=function(e,t,n){import("./series-d46535b8.js").then(function(r){var o=r.seriesModule,l=m(e);i.registerComponent("seriesModule",o),l.getChild("controlBar").addChild("seriesModule",{playerId:e,seriesData:t},l.controlBar.children().length-4);for(var a=document.querySelectorAll(".season-title-sdk"),s=function(e){a[e].addEventListener("click",function(){t[e]&&r.handleSeasonChange(t[e],e,l,n)})},c=0;c<a.length;c++)s(c)})},k=function(e,t){import("./videoSelector-48609307.js").then(function(n){var r=n.default,o=m(e);i.registerComponent("videoSelector",r),o.getChild("controlBar").addChild("videoSelector",{playerId:e,related:t},o.controlBar.children().length-3)})},S=function(e,t){import("./caption-settings-c9b18ef8.js").then(function(n){var r,o,l,a,s=n.default,c=m(e);i.registerComponent("captionSelector",s),null===(r=document)||void 0===r||null===(o=r.getElementById(e))||void 0===o||null===(l=o.getElementsByClassName("caption-selection vjs-control vjs-button"))||void 0===l||null===(a=l[0])||void 0===a||a.remove(),c&&c.getChild("controlBar").addChild("captionSelector",{playerId:e,options:t},c.controlBar.children().length-3)})},w=function(e,t){import("./settings-icon-e8ed293a.js").then(function(n){var r,o,l,a,s=n.default,c=m(e);i.registerComponent("settingsSelector",s),null===(r=document)||void 0===r||null===(o=r.getElementById(e))||void 0===o||null===(l=o.getElementsByClassName("settings-selection vjs-control vjs-button"))||void 0===l||null===(a=l[0])||void 0===a||a.remove(),c&&c.getChild("controlBar").addChild("settingsSelector",{playerId:e,options:t},c.controlBar.children().length-3)})},I=function(e,t){import("./playlist-4c796e1f.js").then(function(n){var r=n.default,o=m(e);i.registerComponent("playlistSelector",r),o.getChild("controlBar").addChild("playlistSelector",{playerId:e,playlist:t},o.controlBar.children().length-3)})},E=function(e,t){import("./series-v2-cb05c6df.js").then(function(n){var r=n.default,o=m(e);i.registerComponent("seriesV2",r),o.getChild("controlBar").addChild("seriesV2",h({playerId:e},t),o.controlBar.children().length-3)})},O=function(e,t){import("./multicamv2-8e508c51.js").then(function(n){var r=n.default,o=m(e);i.registerComponent("streamSelector",r),o.getChild("controlBar").addChild("streamSelector",{playerId:e,streams:t},o.controlBar.children().length-4)})},M=function(e,t){var n=m(e).el(),r=i.dom.createEl("div",{className:"output-overlay",innerHTML:'<iframe frameBorder="0" src='.concat(t,"></iframe>")});n.append(r)},P=function(e){var t=m(e).el(),n=0,r=m(e);r.addChild("fullscreenToggle");var o=function(){var e,n=null==t||null===(e=t.getElementsByClassName("vjs-fullscreen-control"))||void 0===e?void 0:e[0];n&&n.click()};r.el().addEventListener("dblclick",o),window._multiplayer_dbClickHandler=o;r.el().addEventListener("touchend",function(){var e=(new Date).getTime(),r=e-n;if(r<300&&r>0){var o,l=null==t||null===(o=t.getElementsByClassName("vjs-fullscreen-control"))||void 0===o?void 0:o[0];l&&l.click()}n=e}),window._multiplayer_dbTapHandler=o},L=function(e,t){import("./videoSelector-da42dc2c.js").then(function(n){var r=n.default,o=m(e);i.registerComponent("videoSelector",r),o.getChild("controlBar").addChild("videoSelector",{playerId:e,related:t},o.controlBar.children().length-3)})},_=function(e,t){import("./series-v2-730cd221.js").then(function(n){var r=n.default,o=m(e);i.registerComponent("seriesV2",r),o.getChild("controlBar").addChild("seriesV2",h({playerId:e},t),o.controlBar.children().length-3)})},x=function(e,t){import("./multicamv2-7fe85e6a.js").then(function(n){var r=n.default,o=m(e);i.registerComponent("streamSelector",r),o.getChild("controlBar").addChild("streamSelector",{playerId:e,streams:t},o.controlBar.children().length-4)})},N=function(e,t){import("./start-begin-btn-ff036cfe.js").then(function(n){var r=n.default,o=m(e);i.registerComponent("startFromBeginingButton",r);var l=o.getChild("controlBar").addChild("startFromBeginingButton",h({playerId:e},t),o.controlBar.children().findIndex(function(e){return"PlayToggle"===e.name_}));o.startFromBeginningButton=l})},T=function(e,t){import("./watch-live-btn-d4d27011.js").then(function(n){var r=n.default,o=m(e);i.registerComponent("watchLiveButton",r);var l=o.getChild("controlBar").addChild("watchLiveButton",h({playerId:e},t),o.controlBar.children().findIndex(function(e){return"PlayToggle"===e.name_})+1);o.watchLiveButton=l})};export{B as a,j as b,b as c,y as d,C as e,w as f,S as g,M as h,g as i,L as j,x as k,I as l,_ as m,P as n,k as o,E as p,O as q,N as r,T as s};
1
+ import e from"@babel/runtime/helpers/defineProperty";import t from"@babel/runtime/helpers/classCallCheck";import n from"@babel/runtime/helpers/createClass";import r from"@babel/runtime/helpers/inherits";import o from"@babel/runtime/helpers/possibleConstructorReturn";import l from"@babel/runtime/helpers/getPrototypeOf";import i from"video.js";import{G as a,D as s}from"./generic-93db3bbb.js";import{g as c}from"./resolution-62be852a.js";import{p as d}from"./skin-0f689204.js";import{g as u}from"./localisation-0bf399a1.js";import{g as p}from"./player_instance-34118a5b.js";function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function h(t){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?m(Object(r),!0).forEach(function(n){e(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):m(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function f(e){var t=v();return function(){var n,r=l(e);if(t){var i=l(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return o(this,n)}}function v(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(v=function(){return!!e})()}var g=function(e){var o=function(e){r(i,e);var o=f(i);function i(e,n){var r;t(this,i);var l=(r=o.call(this,e,n)).el_;return l.classList.add("vjs-slowmo-button"),l.textContent=u("slowMoText")||"Slow Mo",r}return n(i,[{key:"handleClick",value:function(){1==l.playbackRate()?(l.playbackRate(.5),this.el().style.background="darkgray"):(l.playbackRate(1),this.el().style.background="none")}}]),i}(i.getComponent("Button"));i.registerComponent("MyButton",o);var l=i(e);l.getChild("controlBar").addChild("myButton",{},2)},C=function(e,o,l){var s=function(o){r(s,o);var i=f(s);function s(e,n){var r;t(this,s);var o=(r=i.call(this,e,n)).el_;o.classList.add("vjs-rewind-button");var a=d(l);return o.append(a),r}return n(s,[{key:"handleClick",value:function(){a(e,10)}}]),s}(i.getComponent("Button"));i.registerComponent("MyButton",s),i(e).getChild("controlBar").addChild("myButton",{},1)},y=function(e,o,l){var a=function(o){r(a,o);var i=f(a);function a(e,n){var r;t(this,a);var o=(r=i.call(this,e,n)).el_;o.classList.add("vjs-skip-button");var s=d(l);return o.append(s),r}return n(a,[{key:"handleClick",value:function(){s(e,10)}}]),a}(i.getComponent("Button"));i.registerComponent("MyButton",a),i(e).getChild("controlBar").addChild("myButton",{},1)},B=function(e,t,n){import("./resolution-v2-6446fe47.js").then(function(r){var o=r.default;document.getElementById(e).getElementsByClassName("container")[0]&&document.getElementById(e).getElementsByClassName("container")[0].remove();var l=p(e),a=c(e);(null==a?void 0:a.length)>0&&(i.registerComponent("resolutionModule",o),l.getChild("controlBar").addChild("resolutionModule",{playerId:e,skin:t,icon:n,renditions:a},l.controlBar.children().length-4))})},b=function(e,t,n){import("./nextEpisodeButton-5954075c.js").then(function(r){var o=r.default,l=p(n);i.registerComponent("nextEpisodeButtonModule",o),l.getChild("controlBar").addChild("nextEpisodeButtonModule",{playerId:n,sres:e,res:t},l.controlBar.children().length-5)})},j=function(e,t,n){import("./series-f4732ee4.js").then(function(r){var o=r.seriesModule,l=p(e);i.registerComponent("seriesModule",o),l.getChild("controlBar").addChild("seriesModule",{playerId:e,seriesData:t},l.controlBar.children().length-4);for(var a=document.querySelectorAll(".season-title-sdk"),s=function(e){a[e].addEventListener("click",function(){t[e]&&r.handleSeasonChange(t[e],e,l,n)})},c=0;c<a.length;c++)s(c)})},k=function(e,t){import("./videoSelector-12a6dc79.js").then(function(n){var r=n.default,o=p(e);i.registerComponent("videoSelector",r),o.getChild("controlBar").addChild("videoSelector",{playerId:e,related:t},o.controlBar.children().length-3)})},S=function(e,t){import("./caption-settings-85f54d85.js").then(function(n){var r,o,l,a,s=n.default,c=p(e);i.registerComponent("captionSelector",s),null===(r=document)||void 0===r||null===(o=r.getElementById(e))||void 0===o||null===(l=o.getElementsByClassName("caption-selection vjs-control vjs-button"))||void 0===l||null===(a=l[0])||void 0===a||a.remove(),c&&c.getChild("controlBar").addChild("captionSelector",{playerId:e,options:t},c.controlBar.children().length-3)})},w=function(e,t){import("./settings-icon-336390f5.js").then(function(n){var r,o,l,a,s=n.default,c=p(e);i.registerComponent("settingsSelector",s),null===(r=document)||void 0===r||null===(o=r.getElementById(e))||void 0===o||null===(l=o.getElementsByClassName("settings-selection vjs-control vjs-button"))||void 0===l||null===(a=l[0])||void 0===a||a.remove(),c&&c.getChild("controlBar").addChild("settingsSelector",{playerId:e,options:t},c.controlBar.children().length-3)})},I=function(e,t){import("./playlist-50110784.js").then(function(n){var r=n.default,o=p(e);i.registerComponent("playlistSelector",r),o.getChild("controlBar").addChild("playlistSelector",{playerId:e,playlist:t},o.controlBar.children().length-3)})},E=function(e,t){import("./series-v2-f376e2c7.js").then(function(n){var r=n.default,o=p(e);i.registerComponent("seriesV2",r),o.getChild("controlBar").addChild("seriesV2",h({playerId:e},t),o.controlBar.children().length-3)})},O=function(e,t){import("./multicamv2-0fed2b37.js").then(function(n){var r=n.default,o=p(e);i.registerComponent("streamSelector",r),o.getChild("controlBar").addChild("streamSelector",{playerId:e,streams:t},o.controlBar.children().length-4)})},M=function(e,t){var n=p(e).el(),r=i.dom.createEl("div",{className:"output-overlay",innerHTML:'<iframe frameBorder="0" src='.concat(t,"></iframe>")});n.append(r)},P=function(e){var t=p(e).el(),n=0,r=p(e);r.addChild("fullscreenToggle");var o=function(){var e,n=null==t||null===(e=t.getElementsByClassName("vjs-fullscreen-control"))||void 0===e?void 0:e[0];n&&n.click()};r.el().addEventListener("dblclick",o),window._multiplayer_dbClickHandler=o;r.el().addEventListener("touchend",function(){var e=(new Date).getTime(),r=e-n;if(r<300&&r>0){var o,l=null==t||null===(o=t.getElementsByClassName("vjs-fullscreen-control"))||void 0===o?void 0:o[0];l&&l.click()}n=e}),window._multiplayer_dbTapHandler=o},L=function(e,t){import("./videoSelector-f2197644.js").then(function(n){var r=n.default,o=p(e);i.registerComponent("videoSelector",r),o.getChild("controlBar").addChild("videoSelector",{playerId:e,related:t},o.controlBar.children().length-3)})},_=function(e,t){import("./series-v2-49bf1379.js").then(function(n){var r=n.default,o=p(e);i.registerComponent("seriesV2",r),o.getChild("controlBar").addChild("seriesV2",h({playerId:e},t),o.controlBar.children().length-3)})},x=function(e,t){import("./multicamv2-93598643.js").then(function(n){var r=n.default,o=p(e);i.registerComponent("streamSelector",r),o.getChild("controlBar").addChild("streamSelector",{playerId:e,streams:t},o.controlBar.children().length-4)})},D=function(e,t){import("./start-begin-btn-0afa2def.js").then(function(n){var r=n.default,o=p(e);i.registerComponent("startFromBeginingButton",r);var l=o.getChild("controlBar").addChild("startFromBeginingButton",h({playerId:e},t),o.controlBar.children().findIndex(function(e){return"PlayToggle"===e.name_}));o.startFromBeginningButton=l})},N=function(e,t){import("./watch-live-btn-85cd433b.js").then(function(n){var r=n.default,o=p(e);i.registerComponent("watchLiveButton",r);var l=o.getChild("controlBar").addChild("watchLiveButton",h({playerId:e},t),o.controlBar.children().findIndex(function(e){return"PlayToggle"===e.name_})+1);o.watchLiveButton=l})};export{B as a,j as b,b as c,y as d,C as e,w as f,S as g,M as h,g as i,L as j,x as k,I as l,_ as m,P as n,k as o,E as p,O as q,D as r,N as s};
@@ -0,0 +1 @@
1
+ import e from"@babel/runtime/helpers/defineProperty";import n from"@babel/runtime/helpers/asyncToGenerator";import t from"@babel/runtime/regenerator";import o from"video.js";import r from"axios";import{g as i}from"./player_instance-34118a5b.js";import a from"js-cookie";import{UAParser as l}from"ua-parser-js";import{a as u,r as s}from"./captions-b619441b.js";import{t as d,c}from"./skin-0f689204.js";import v from"@babel/runtime/helpers/toConsumableArray";import f from"@babel/runtime/helpers/slicedToArray";function m(){var e,n;null===(e=window)||void 0===e||null===(n=e.dataLayer)||void 0===n||n.push(arguments)}function p(e){window.dataLayer=window.dataLayer||[],m("js",new Date),m("config",e)}function g(e,n){m("event",e,n)}var I={apiBaseUrl:"https://prod-api.viewlift.com",getVideoDetails:"/entitlement/video/status",getSeriesDetails:"/entitlement/series/status",saveWatchHistoryV1:"/user/userId/history/video",saveWatchHistoryV2:"/v2/user/history",getVideoInfoV1:"/user/info/video",getVideoInfoV2:"/v2/user/info",getSeriesWatchHistoryV1:"/user/userId/history/video",getSeriesWatchHistoryV2:"/v2/user/history/series",getLinearChannelDetails:"/v3/entitlement/linearchannel",getBeaconUrl:"/analytics/player-beacon"};function E(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,o)}return t}function h(n){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?E(Object(o),!0).forEach(function(t){e(n,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(o)):E(Object(o)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(o,e))})}return n}var y={name:"@viewlift/player",version:"2.0.56",main:"dist/bundle.cjs.js",types:"dist/@viewlift/player/esm/index.d.ts",amdName:"_playerCore",dependencies:{"@silvermine/videojs-airplay":"^1.3.0","@silvermine/videojs-chromecast":"^1.4.1",axios:"^1.2.3",ima:"npm:videojs-ima@2.2.0","js-cookie":"^3.0.5","ua-parser-js":"^2.0.3","video.js":"8.22.0","videojs-contrib-ads":"7.5.2","videojs-contrib-eme":"5.5.1","videojs-mux":"^4.21.7","videojs-contrib-quality-menu":"^1.0.3"}};window.vl_player_version=y.version;var T,w=function(e,n){var t,o,i,a,l,u,s,d;return null!==(t=window)&&void 0!==t&&null!==(o=t.customData)&&void 0!==o&&o.overrideEntitlementResponse?new Promise(function(e,n){var t,o;return e({data:null===(t=window)||void 0===t||null===(o=t.customData)||void 0===o?void 0:o.overrideEntitlementResponse})}):r({url:null!==(l=window)&&void 0!==l&&null!==(u=l.customData)&&void 0!==u&&u.overrideEntitlementBaseUrl?(null===(s=window)||void 0===s||null===(d=s.customData)||void 0===d?void 0:d.overrideEntitlementBaseUrl)+"/video/status":A.get()+"".concat(null==I?void 0:I.getVideoDetails),params:h({id:e,deviceType:"web_browser",contentConsumption:"web"},null===(i=window)||void 0===i||null===(a=i.customData)||void 0===a?void 0:a.entitlement),method:"GET",headers:{Authorization:n,"Sdk-Version":y.version,"x-player-name":"videojs"},withCredentials:!0})},b=function(e,n){var t,o,i,a;return null!==(t=window)&&void 0!==t&&null!==(o=t.customData)&&void 0!==o&&o.overrideEntitlementResponse?new Promise(function(e,n){var t,o;return e({data:null===(t=window)||void 0===t||null===(o=t.customData)||void 0===o?void 0:o.overrideEntitlementResponse})}):r({url:A.get()+I.getLinearChannelDetails,params:h(h(h(h(h({id:null==e?void 0:e.id,deviceType:"web_browser",contentConsumption:"web"},(null==e?void 0:e.channelId)&&{channelId:null==e?void 0:e.channelId}),(null==e?void 0:e.programId)&&{programId:null==e?void 0:e.programId}),(null==e?void 0:e.programTitle)&&{programTitle:null==e?void 0:e.programTitle}),(null==e?void 0:e.programSubType)&&{programSubType:null==e?void 0:e.programSubType}),null===(i=window)||void 0===i||null===(a=i.customData)||void 0===a?void 0:a.entitlement),method:"GET",headers:{Authorization:n,hdcp:"HDCP-1.4",sl:"SW_SECURE_CRYPTO"}})},_=function(e,n){var t,o,i=H(n),a=(null==i?void 0:i.site)||null;return null!==(t=window)&&void 0!==t&&null!==(o=t.customData)&&void 0!==o&&o.seriesData?new Promise(function(e,n){var t,o;return e({data:null===(t=window)||void 0===t||null===(o=t.customData)||void 0===o?void 0:o.seriesData})}):r({url:A.get()+"/v3/content/series/".concat(e),params:{site:a},method:"GET",headers:{Authorization:n}})},O=function(){var e=n(t.mark(function e(n){var o;return t.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,B();case 2:return o=e.sent,e.abrupt("return",r({url:A.get()+"".concat(null==I?void 0:I.saveWatchHistoryV2),method:"POST",headers:{Authorization:o},data:h({},n),params:h({},(null==n?void 0:n.profileId)&&{profileId:null==n?void 0:n.profileId})}));case 4:case"end":return e.stop()}},e)}));return function(n){return e.apply(this,arguments)}}(),S=function(e,n){var t,o,i=window.contentType;return r({method:"GET",url:A.get()+"".concat(null==I?void 0:I.getVideoInfoV2,"/").concat(i,"/").concat(e),headers:{Authorization:n,"x-api-key":null===(t=window)||void 0===t||null===(o=t.watchHistory)||void 0===o?void 0:o.xApiKey},timeout:15e3})},P=function(e){var n=e.videoId;return r({method:"GET",url:A.get()+"".concat(null==I?void 0:I.getSeriesWatchHistoryV2,"/").concat(n),headers:{Authorization:e.token},timeout:15e3})},A=(T=null==I?void 0:I.apiBaseUrl,{set:function(e){e&&(T=e)},get:function(){return T}}),L=function(e,n,t,o){return r({url:t,params:{id:e,deviceType:"web_browser",contentConsumption:"web",latitude:null==o?void 0:o.latitude,longitude:null==o?void 0:o.longitude},method:"GET",headers:{Authorization:n},withCredentials:!0})},D=function(e){var n=JSON.parse(atob(null==e?void 0:e.split(".")[1])),t=null==n?void 0:n.exp;if(new Date(1e3*t).getTime()<(new Date).getTime())return!0},R=null;function C(){return{set:function(e){e&&(R=e)},get:function(){return R}}}var F,V,k,W,N,j,U=function(){var e=n(t.mark(function e(){var n,o,i;return t.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=C().get(),o=A.get(),e.prev=2,e.next=5,r({method:"GET",url:"".concat(o,"/identity/refresh/").concat(n)});case 5:return i=e.sent,e.abrupt("return",i);case 9:throw e.prev=9,e.t0=e.catch(2),console.error("Error fetching refresh token",e.t0),e.t0;case 13:case"end":return e.stop()}},e,null,[[2,9]])}));return function(){return e.apply(this,arguments)}}(),M=null,B=function(){var e=n(t.mark(function e(){var n;return t.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!(n=sessionStorage.getItem("vlp_token"))||!D(n)){e.next=6;break}return M||(M=U().then(function(e){var t,o,r=null==e||null===(t=e.data)||void 0===t?void 0:t.authorizationToken,i=null==e||null===(o=e.data)||void 0===o?void 0:o.refreshToken;return r&&sessionStorage.setItem("vlp_token",r),i&&C().set(i),r||n}).catch(function(e){return console.error("Error fetching refresh token",e),n}).finally(function(){M=null})),e.abrupt("return",M);case 6:return e.abrupt("return",n);case 7:case"end":return e.stop()}},e)}));return function(){return e.apply(this,arguments)}}(),x=function(e){var n=!0,t=null==e?void 0:e.videoSourceUrl,o=null==e?void 0:e.asat;return t&&!o&&(n=!1),n},H=function(e){if(e&&"string"==typeof e)return JSON.parse(atob(e.split(".")[1]))},G=function(e){V=e},Y=function(){return V},Q=function(e){F=e},z=function(){return F},q=function(){return k},X=function(e){k=e},J=function(){return N},K=function(e){W=new Map,e.map(function(e,n){W.set(e.id,n)})},$=function(e){if(W){var n=W.get(e);X(n+1)}},Z=(j=0,{set:function(e){e>=0&&(j=e)},get:function(){return j}});function ee(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,o)}return t}function ne(n){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?ee(Object(o),!0).forEach(function(t){e(n,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(o)):ee(Object(o)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(o,e))})}return n}var te=function(){var e,n,t,o,r,i,a,l=Y();return"linearchannel"===((null==l?void 0:l.contentType)||"video")?null==l||null===(e=l.linearchannel)||void 0===e||null===(n=e.channels)||void 0===n||null===(t=n.find(function(e){return(null==e?void 0:e.id)===(null==l?void 0:l.channelId)}))||void 0===t||null===(o=t.content)||void 0===o?void 0:o.id:(null==l||null===(r=l.video)||void 0===r||null===(i=r.gist)||void 0===i?void 0:i.id)||(null==l||null===(a=l.video)||void 0===a?void 0:a.id)||(null==l?void 0:l.id)};function oe(){var e=function(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)};return"".concat(e()).concat(e(),"-").concat(e(),"-").concat(e(),"-").concat(e(),"-").concat(e()).concat(e()).concat(e())}function re(){var e=window.sessionStorage.getItem("uid");return e||(e=oe(),window.sessionStorage.setItem("uid",e),e)}function ie(){return ae.apply(this,arguments)}function ae(){return(ae=n(t.mark(function e(){var n,o;return t.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,B();case 2:if(!(n=e.sent)){e.next=6;break}return o=JSON.parse(atob(n.split(".")[1])),e.abrupt("return",null!=o&&o.anonymousId?"guest-user":null==o?void 0:o.userId);case 6:return e.abrupt("return","guest-user");case 7:case"end":return e.stop()}},e)}))).apply(this,arguments)}function le(e){return e?String(e):""}var ue=function(e){return function(){try{return e.apply(void 0,arguments)}catch(e){return console.error(e),null}}};function se(e,o){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};"localhost"!==location.hostname&&"127.0.0.1"!==location.hostname&&function(e,o){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},l=oe(),u="WEBSITE",s=null,d=0,c=null,v=0,f=0,m=!1,p=[],E=i(e);if(E){var h,y,T,w,b=ue(function(){for(var e=E.currentTime(),n=E.buffered(),t=0;t<n.length;t++){var o=n.start(t),r=n.end(t);if(e>=o&&e<=r)return Math.round(r-e)}return 0}),_=function(){var e=n(t.mark(function e(n){var o,i,s,d,c,v,f,m,p,g,E;return t.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,B();case 2:return p=e.sent,g=H(p),e.t0=ne,e.t1=ne,e.t2=null==g?void 0:g.site,e.t3=null==g?void 0:g.siteId,e.t4=u,e.t5=re(),e.t6=te(),e.t7=n.url||document.location.href,e.t8=n.ref||document.referrer,e.t9=n.eventName,e.t10=null!==(o=n.videoPosition)&&void 0!==o?o:null,e.t11="production",e.t12=n.dp1||"",e.t13=n.dp2||"",e.t14=n.dp3||"",e.t15=n.dp4||"",e.t16=n.dp5||"",e.t17=n.isAdEvent?n.videoPosition:null,e.t18=n.isAdEvent?le(n.adPosition):"",e.next=25,ie();case 25:e.t19=e.sent,e.t20=n.playerType||"videojs",e.t21=n.mediaType||"VIDEO",e.t22=l,e.t23=null!==(i=n.ttFirstFrame)&&void 0!==i?i:null,e.t24=null!==(s=n.bitrate)&&void 0!==s?s:null,e.t25=null!==(d=n.resHeight)&&void 0!==d?d:null,e.t26=null!==(c=n.resWidth)&&void 0!==c?c:null,e.t27=null!==(v=n.bufferHealth)&&void 0!==v?v:null,e.t28={aid:e.t2,cid:e.t3,pfm:e.t4,uid:e.t5,vid:e.t6,url:e.t7,ref:e.t8,pa:e.t9,vpos:e.t10,environment:e.t11,dp1:e.t12,dp2:e.t13,dp3:e.t14,dp4:e.t15,dp5:e.t16,apos:e.t17,apod:e.t18,profid:e.t19,player:e.t20,media_type:e.t21,stream_id:e.t22,embedurl:"",ttfirstframe:e.t23,bitrate:e.t24,connectionspeed:null,resolutionheight:e.t25,resolutionwidth:e.t26,bufferhealth:e.t27},e.t29=(null==n?void 0:n.duration)&&{duration:n.duration},e.t30=(0,e.t1)(e.t28,e.t29),e.t31=null==a||null===(f=a.beacon)||void 0===f?void 0:f.params,e.t32=(0,e.t0)(e.t30,e.t31),E=[e.t32],r({url:(null==a||null===(m=a.beacon)||void 0===m?void 0:m.url)||A.get()+I.getBeaconUrl,method:"post",headers:{Authorization:p},contentType:"application/x-www-form-urlencoded",dataType:"text",data:E}).catch(function(e){return console.error(e)});case 41:case"end":return e.stop()}},e)}));return function(n){return e.apply(this,arguments)}}(),O=function(e){if(!E.paused()&&E.readyState()>2)return clearInterval(s),clearInterval(c),e;var n,t=e+.1;return+t.toFixed(2)>=5&&f<4&&m?(f++,g("BUFFERING",ne({pfm:u,uid:re(),vid:te(),videoPosition:Math.floor(E.currentTime)},null==a||null===(n=a.beacon)||void 0===n?void 0:n.params)),_({eventName:"BUFFERING",videoPosition:Math.floor(E.currentTime),isAdEvent:!1}),0):t};h=Math.floor(E.currentTime),E.on("error",function(){var e,n=Math.floor(E.currentTime);clearInterval(s);var t=h===n?"FAILED_TO_START":"DROPPED_STREAM";g(t,ne({pfm:u,uid:re(),vid:te(),videoPosition:n},null==a||null===(e=a.beacon)||void 0===e?void 0:e.params)),_({eventName:t,videoPosition:n,isAdEvent:!1})}),y=!1,E.on("waiting",ue(function(){m&&(y=!0,clearInterval(s),s=setInterval(function(){y&&!E.paused()?v=O(v):clearInterval(s)},100))})),E.on("playing",ue(function(){y=!1,clearInterval(s)})),T=function(e){var n,t,o,r=ne({videoPosition:Math.floor(E.currentTime),isAdEvent:!0,bufferHealth:b(),pfm:u,uid:re(),vid:te(),resHeight:(null===(n=videoElement)||void 0===n?void 0:n.videoHeight)||null,resWidth:(null===(t=videoElement)||void 0===t?void 0:t.videoWidth)||null},null==a||null===(o=a.beacon)||void 0===o?void 0:o.params);g(e,ne({},r)),_(ne({eventName:e,adPosition:1},r))},E.on("adstart",function(){T("AD_REQUEST"),T("AD_IMPRESSION")}),E.on("adskip",function(){d=0}),E.on("adend",function(){d=0}),E.on("timeupdate",function(){var e,n,t,o,r=Math.floor(E.currentTime());if(console.log(r,p),r>=30&&r%30==0&&!p.includes(r)){var i,a=null===(i=E.el().getElementsByTagName("video"))||void 0===i?void 0:i[0];f=0,p.push(r),_({eventName:"PING",videoPosition:r,isAdEvent:!1,duration:30,resHeight:(null==a?void 0:a.videoHeight)||null,resWidth:(null==a?void 0:a.videoWidth)||null,bufferHealth:b(),bitrate:Math.round((null==E||null===(e=E.tech_)||void 0===e||null===(n=e.vhs)||void 0===n||null===(t=n.selectPlaylist())||void 0===t||null===(o=t.attributes)||void 0===o?void 0:o.BANDWIDTH)/1e3)})}}),w=ue(function(){var e;d=0,c=setInterval(function(){d=O(d)},100),g("PLAY",ne({pfm:u,uid:re(),vid:te(),videoPosition:Math.floor(E.currentTime)},null==a||null===(e=a.beacon)||void 0===e?void 0:e.params)),_({eventName:"PLAY",videoPosition:Math.floor(E.currentTime),isAdEvent:!1}),o&&o("started_video_playback",{"Video ID":te(),watchTime:Math.floor(E.currentTime)})}),E.one("play",w),E.on("loadeddata",function(){E.one("timeupdate",function(){var e;clearInterval(c),clearInterval(s),v=d||0,g("FIRST_FRAME",ne({pfm:u,uid:re(),vid:te(),videoPosition:Math.floor(E.currentTime),ttFirstFrame:d,bufferHealth:b()},null==a||null===(e=a.beacon)||void 0===e?void 0:e.params)),_({eventName:"FIRST_FRAME",videoPosition:Math.floor(E.currentTime),isAdEvent:!1,ttFirstFrame:d,bufferHealth:b()}),m=!0,d=0})})}else console.error("Videojs: Player instance not found.")}(e,o,a)}var de=function(){var e,n;return navigator.userAgent.indexOf("Edg")>-1&&"macOS"!=(null===(e=window.navigator)||void 0===e||null===(n=e.userAgentData)||void 0===n?void 0:n.platform)?"IE":-1!=(navigator.userAgent.indexOf("Opera")||navigator.userAgent.indexOf("OPR"))?"Opera":-1!=navigator.userAgent.indexOf("Chrome")?"Chrome":-1!=navigator.userAgent.indexOf("Safari")?"Safari":-1!=navigator.userAgent.indexOf("Firefox")?"Firefox":"Unknown"},ce=function(){return!!/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)},ve=function(e,n){var t=new Map;P({videoId:e,token:n}).then(function(e){e.data.map(function(e){t.set(e.videoId,{t:e.watchedTime,p:e.watchedPercentage})}),N=t}).catch(function(e){return console.log(e)})},fe=function(){var e=Z.get();return e>=0?e+1:1},me=function(){var e,n,t,o=z(),r=Y(),i=null==r||null===(e=r.video)||void 0===e?void 0:e.id,a=Z.get(),l=null==o||null===(n=o[a])||void 0===n||null===(t=n.episodes)||void 0===t?void 0:t.findIndex(function(e){return(null==e?void 0:e.id)===i});return l>=0?l+1:1};function pe(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,o)}return t}function ge(n){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?pe(Object(o),!0).forEach(function(t){e(n,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(o)):pe(Object(o)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(o,e))})}return n}window._deviceInfo=l(navigator.userAgent);var Ie=function(e,n){return e&&n?"".concat(e,"x").concat(n):e>1024?"L":e>768?"M":"S"},Ee=function(e){var n=he(e,"video.tags",[]),t=he(e,"video.gist.primaryCategory.title","VIEWLIFT_CONTENT_GENRE");return n.length>0?n.map(function(e){return e.title}).join(","):t},he=function(e,n,t){for(var o=0,r=(n=n.split(".")).length;o<r;o++){var i;e=null===(i=e)||void 0===i?void 0:i[n[o]]}return e||t},ye=function(){var n,t,o,r,l,u,s,d,c,v,f,m,p,g,I,E,h,y,T,w,b,_,O,S,P=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",A=arguments.length>1?arguments[1]:void 0,L=arguments.length>2?arguments[2]:void 0;if(null!==(n=window)&&void 0!==n&&null!==(t=n.customData)&&void 0!==t&&t.disableMacros)return P;var D=(null==L?void 0:L.siteName)||"",R=(null==L?void 0:L.contentType)||"video",C=(null==L||null===(o=L[R])||void 0===o?void 0:o.metadata)||(null==L||null===(r=L[R])||void 0===r||null===(l=r.gist)||void 0===l?void 0:l.metadata),F=i(A);if(!P.includes("VIEWLIFT_"))return P;var V,k=window.getComputedStyle(document.getElementById(A),null),W=Math.trunc(k.getPropertyValue("height").slice(0,-2)),N=Math.trunc(k.getPropertyValue("width").slice(0,-2)),j="linearchannel"===R?null==L||null===(u=L.linearchannel)||void 0===u||null===(s=u.channels)||void 0===s||null===(d=s.find(function(e){return(null==e?void 0:e.id)===(null==L?void 0:L.channelId)}))||void 0===d||null===(c=d.content)||void 0===c?void 0:c.id:he(L,"video.gist.id",""),U="linearchannel"===R?null==L||null===(v=L.linearchannel)||void 0===v||null===(f=v.channels)||void 0===f||null===(m=f.find(function(e){return(null==e?void 0:e.id)===(null==L?void 0:L.channelId)}))||void 0===m?void 0:m.title:he(L,"video.gist.title","VIEWLIFT_ENCODED_VIDEO_TITLE"),M=null,B=null;"function"==typeof window.__gpp&&(null===(V=window)||void 0===V||V.__gpp("ping",function(e){M=null==e?void 0:e.gppString,B=null==e?void 0:e.sectionList[0]}));var x=ge(ge({},Te(C)),{},(_={VIEWLIFT_WIDTH:N,VIEWLIFT_HEIGHT:W,VIEWLIFT_SIZE:Ie(N,W),VIEWLIFT_DOMAIN:window.location.hostname,VIEWLIFT_URL:window.location.href,VIEWLIFT_ENCODED_URL:encodeURIComponent(window.location.href),VIEWLIFT_DOUBLE_ENCODED_URL:encodeURIComponent(encodeURIComponent(window.location.href)),VIEWLIFT_CACHEBUSTER:"3708662946268",VIEWLIFT_TIMESTAMP:Date.now().toString().substring(0,10),VIEWLIFT_TIMESTAMP_MS:Date.now().toString(),VIEWLIFT_IP:(null===(p=window)||void 0===p?void 0:p.ip)||"VIEWLIFT_IP",VIEWLIFT_USER_AGENT:encodeURIComponent(encodeURIComponent(navigator.userAgent)),VIEWLIFT_DNT:"1"===navigator.doNotTrack?"1":"0",VIEWLIFT_DESCRIPTION:he(L,"video.gist.description","VIEWLIFT_DESCRIPTION"),VIEWLIFT_DURATION:he(L,"video.runtime","VIEWLIFT_DURATION"),VIEWLIFT_MIN_DURATION:0,VIEWLIFT_MAX_DURATION:he(L,"video.runtime","VIEWLIFT_DURATION"),VIEWLIFT_AUTOPLAY:(null==F||null===(g=F.options_)||void 0===g?void 0:g.autoplay)||1,VIEWLIFT_MUTE:(null==F||null===(I=F.options_)||void 0===I?void 0:I.autoplay)||0,VIEWLIFT_DEVICE_ID:"spinco"==D||"usanetwork"==D?"":localStorage.getItem("deviceId")||"VIEWLIFT_DEVICE_ID",VIEWLIFT_DEVICETYPE:"WEB_BROWSER",VIEWLIFT_IDTYPE:"dpid",VIEWLIFT_KEYWORDS:Ee(L),VIEWLIFT_MEDIA_ID:j,VIEWLIFT_ENCODED_VIDEO_TITLE:encodeURI(he(L,"video.gist.title","VIEWLIFT_ENCODED_VIDEO_TITLE")),VIEWLIFT_VIDEO_ID:j,VIEWLIFT_VIDEO_URL:encodeURI(window.location.origin+he(L,"video.gist.permalink","")),VIEWLIFT_CONSENT:a.get("cc")||"VIEWLIFT_CONSENT",VIEWLIFT_COPPA:he(null===(E=window)||void 0===E||null===(h=E.app_data)||void 0===h||null===(y=h.site)||void 0===y?void 0:y.settings,"compliance.coppa")?1:0,VIEWLIFT_GDPR_CONSENT:"",VIEWLIFT_GDPR:"spinco"==D||"usanetwork"==D?"":he(null===(T=window)||void 0===T||null===(w=T.app_data)||void 0===w||null===(b=w.site)||void 0===b?void 0:b.settings,"compliance.gdpr")?1:0,VIEWLIFT_CONTENT_DURATION_MS:1e3*he(L,"video.runtime","VIEWLIFT_DURATION"),VIEWLIFT_CONTENT_DURATION:he(L,"video.runtime","VIEWLIFT_DURATION"),VIEWLIFT_CONTENT_ID:j,VIEWLIFT_CONTENT_TITLE:U,VIEWLIFT_CONTENT_SERIES_TITLE:he(L,"video.series.gist.title","VIEWLIFT_CONTENT_SERIES_TITLE"),VIEWLIFT_CONTENT_GENRE:he(L,"video.gist.primaryCategory.title","VIEWLIFT_CONTENT_GENRE"),VIEWLIFT_USER:sessionStorage.getItem("uid")||"VIEWLIFT_USER",VIEWLIFT_EPISODE_NUMBER:me(),VIEWLIFT_SEASON_NUMBER:fe(),VIEWLIFT_CONTENT_TAGS:Ee(L),VIEWLIFT_GPP_SID:B||"VIEWLIFT_GPP_SID",VIEWLIFT_GPP:M||"VIEWLIFT_GPP",VIEWLIFT_LAT:"",VIEWLIFT_APP_BUNDLE:"",VIEWLIFT_ATT_CONSENT:"",VIEWLIFT_APP_ID:"",VIEWLIFT_APP_STORE_URL:""},e(_,"VIEWLIFT_LAT",""),e(_,"VIEWLIFT_APP_BUNDLE",""),e(_,"VIEWLIFT_ATT_CONSENT",""),_),null===(O=window)||void 0===O||null===(S=O.customData)||void 0===S?void 0:S.macros);for(var H in x){var G=new RegExp(H,"g");P=P.replace(G,x[H])}return P},Te=function(e){var n,t,o,r,i,a,l={},u=new Map;(null==e?void 0:e.length)>0&&(null==e||e.map(function(e){u.set(e.name,e.value)}));var s=(null===(n=window)||void 0===n||null===(t=n.customData)||void 0===t||null===(o=t.subscription)||void 0===o?void 0:o.SVOD)||!1,d=(null===(r=window)||void 0===r||null===(i=r.customData)||void 0===i||null===(a=i.subscription)||void 0===a?void 0:a.TVE)||!1;return s||d?(ce()?s?l=ge(ge({},l),{},{VIEWLIFT_CSID:u.get("csid.mweb.dtc")||""}):d&&(l=ge(ge({},l),{},{VIEWLIFT_CSID:u.get("csid.mweb.tve")||""})):s?l=ge(ge({},l),{},{VIEWLIFT_CSID:u.get("csid.web.dtc")||""}):d&&(l=ge(ge({},l),{},{VIEWLIFT_CSID:u.get("csid.web.tve")||""})),s?l=ge(ge({},l),{},{VIEWLIFT_SFID:u.get("sfid.dtc")||u.get("sfid.web.dtc")||""}):d&&(l=ge(ge({},l),{},{VIEWLIFT_SFID:u.get("sfid.tve")||u.get("sfid.web.tve")||""})),l=ce()?ge(ge({},l),{},{VIEWLIFT_PROF:u.get("prof.mweb")||""}):ge(ge({},l),{},{VIEWLIFT_PROF:u.get("prof.web")||""})):(l=ge(ge({},l),{},{VIEWLIFT_SFID:u.get("sfid.dtc")||u.get("sfid.web.dtc")||""}),l=ce()?ge(ge({},l),{},{VIEWLIFT_CSID:u.get("csid.mweb.dtc")||"",VIEWLIFT_PROF:u.get("prof.mweb")||""}):ge(ge({},l),{},{VIEWLIFT_CSID:u.get("csid.web.dtc")||"",VIEWLIFT_PROF:u.get("prof.web")||""})),l=ge(ge({},l),{},{VIEWLIFT_AFID:u.get("afid")})},we=function(e,n){var t,o,r,i,a,l,u,s,d,c,v,f,m,p=(null==e?void 0:e.contentType)||"video",g=null==e||null===(t=e[p])||void 0===t?void 0:t.drmEnabled,I=null==e||null===(o=e[p])||void 0===o||null===(r=o.streamingInfo)||void 0===r?void 0:r.videoAssets,E=null==e||null===(i=e[p])||void 0===i||null===(a=i.streamingInfo)||void 0===a?void 0:a.audioAssets,h=(null==e||null===(l=e[p])||void 0===l||null===(u=l.streamingInfo)||void 0===u||null===(s=u.videoAssets)||void 0===s?void 0:s.hls)||!1;null==e||null===(d=e[p])||void 0===d||null===(c=d.liveDetails)||void 0===c||c.isDvrEnabled;var y=(null==e||null===(v=e[p])||void 0===v||null===(f=v.streamingInfo)||void 0===f||null===(m=f.videoAssets)||void 0===m?void 0:m.dash)||!1;if(null!=e&&e.directPlaybackUrl)return{src:null==e?void 0:e.directPlaybackUrl,type:null};if(null!=e&&e.audioAssetSource&&null!=E&&E.hls)return _e(E);if(g){var T=Oe(I,n);return T.src=ye(T.src,n,e),T}if("Safari"!==de()&&y)return be(I);if(h){var w=_e(I);return w.src=ye(w.src,n,e),w}if(null!=I&&I.mpeg){var b=function(e){var n=null==e?void 0:e.mpeg;return{src:n[n.length-1].url,type:"video/mp4"}}(I);return b.src=ye(b.src,n,e),b}return null},be=function(e){var n=null==e?void 0:e.dash;return n?{src:n,type:"application/dash+xml"}:null},_e=function(e){var n=null==e?void 0:e.hls;return n?{src:n,type:"application/x-mpegURL"}:null},Oe=function(e,n){var t=(null==e?void 0:e.drmProvider)||null,r=e.fairPlayCmaf||e.fairPlay,a=e.widevine,l=e.playReady,u=de();if(i(n),"Safari"===u){var s=function(e){var n=e.url;return{src:n,type:"application/x-mpegURL",keySystems:{"com.apple.fps.1_0":{getCertificate:function(n,t){var r={uri:e.certificateUrl,method:"GET",responseType:"arraybuffer"};o.xhr(r,function(e,n,o){console.log(e),e&&t(e),t(null,new Uint8Array(o))})},getContentId:function(e,n){if(n){var t=n.indexOf("\0")+1;return n.slice(t)}},getLicense:function(n,t,r,i){var a={uri:e.licenseUrl,method:"POST",responseType:"arraybuffer",body:r,headers:{"Content-type":"application/octet-stream","X-AxDRM-Message":e&&e.licenseToken}};o.xhr(a,function(e,n,t){console.log(e),e&&i(e),i(null,t)})}}}}}(r);return Se(n),s}var d,c={src:a.url,type:"application/dash+xml"};return"caliente"==(null===(d=window)||void 0===d?void 0:d.siteName)?(Se(n),c.keySystems={"com.widevine.alpha":{url:a.licenseUrl,licenseHeaders:{"X-AxDRM-Message":a.licenseToken},videoRobustness:"SW_SECURE_CRYPTO",audioRobustness:"SW_SECURE_CRYPTO"},"com.microsoft.playready":{url:null==l?void 0:l.licenseUrl,licenseHeaders:{"X-AxDRM-Message":null==l?void 0:l.licenseToken},videoRobustness:"SW_SECURE_CRYPTO",audioRobustness:"SW_SECURE_CRYPTO"}}):"custom"==t?(c.keySystemOptions=[],c.keySystemOptions.push({name:"com.widevine.alpha",options:{serverURL:a.licenseUrl,httpRequestHeaders:{"Content-Type":"application/octet-stream"},videoRobustness:"SW_SECURE_CRYPTO",audioRobustness:"SW_SECURE_CRYPTO"}}),c.keySystemOptions.push({name:"com.microsoft.playready",options:{serverURL:null==l?void 0:l.licenseUrl,httpRequestHeaders:{"Content-Type":"application/octet-stream"},videoRobustness:"SW_SECURE_CRYPTO",audioRobustness:"SW_SECURE_CRYPTO"}})):(c.keySystemOptions=[],c.keySystemOptions.push({name:"com.widevine.alpha",options:{serverURL:a.licenseUrl,httpRequestHeaders:{"X-AxDRM-Message":a.licenseToken},videoRobustness:"SW_SECURE_CRYPTO",audioRobustness:"SW_SECURE_CRYPTO"}}),c.keySystemOptions.push({name:"com.microsoft.playready",options:{serverURL:null==l?void 0:l.licenseUrl,httpRequestHeaders:{"X-AxDRM-Message":null==l?void 0:l.licenseToken},videoRobustness:"SW_SECURE_CRYPTO",audioRobustness:"SW_SECURE_CRYPTO"}})),c};var Se=function(e){var n=i(e);if("function"==typeof n.eme)try{n.eme(),"Safari"==de()&&n.eme.initLegacyFairplay()}catch(e){console.log("EME ERROR :",e)}},Pe=function(e,n){var t=e.src,o=e.type;if(!t||"string"!=typeof t||!t.includes(".com"))return{src:t,type:o};n=n.replace(/\/$/,"");var r=t.split(".com")[1]||"";return{src:r?"".concat(n).concat(r):t,type:o}},Ae=function(e,n){if(import("./error-2395864b.js").then(function(e){var n=document.createElement("style");n.id="errorblock",n.append("".concat(e.default)),document.head.appendChild(n)}),document.getElementsByClassName("error-container")[0]){var t=document.getElementsByClassName("error-message")[0];t&&(t.innerHTML="".concat(n))}else{var o=document.getElementById(e);if(o){var r=document.createElement("div");r.className="error-container";var i=document.createElement("div");i.className="error-message",i.innerHTML="".concat(n),r.appendChild(i),o.append(r)}}},Le=function(){document.getElementsByClassName("error-container")[0]&&document.getElementsByClassName("error-container")[0].remove()};var De=!1,Re=function(e,n,t){var o=ye(n,e,t),r=i(e);if(n&&window.google){if("function"!=typeof r.ima)return;r.ima.initializeAdDisplayContainer&&r.ima.initializeAdDisplayContainer(),function(e,n){var t,o,r,a=i(e);if(null!==a.el_){De=!0;var l={id:e,adTagUrl:"".concat(n),adLabel:"Your video will resume after this sponsor message"};a.ima.initializeAdDisplayContainer&&a.ima.initializeAdDisplayContainer(),De&&null!==a.el_&&("function"==typeof a.ima?a.ima(l):setTimeout(function(){a.ima.setContentWithAdTag(null,n,!0),a.ima.requestAds()},1e3));var u=document.getElementById("".concat(e));(navigator.userAgent.match(/iPad/i)||navigator.userAgent.match(/Android/i))&&u.hasAttribute("controls")&&u.removeAttribute("controls");var s="click",d=!1;(navigator.userAgent.match(/iPhone/i)||navigator.userAgent.match(/iPad/i)||navigator.userAgent.match(/Android/i))&&(d=!0,s="touchend"),a.one(s,function(){d&&a.ima.initializeAdDisplayContainer()});var c=(null===(t=window)||void 0===t||null===(o=t.customData)||void 0===o||null===(r=o.ads)||void 0===r?void 0:r.adEventHandler)||null;a.one("ads-ad-started",function(){c&&c({status:"STARTED",msg:"Advertisement Started"})}),a.one("ads-manager",function(e){var n=e.adsManager;n.addEventListener(google.ima.AdEvent.Type.COMPLETE,function(){c&&c({status:"ENDED",msg:"Advertisement Ended"})}),n.addEventListener(google.ima.AdEvent.Type.LOADED,function(e){c&&c({status:"LOADED",msg:"Advertisement Loaded",data:e})})}),a.on("adserror",function(e){c&&c({status:"ERROR",msg:"Advertisement Error"})})}}(e,o)}};function Ce(e,n){var t,o,r,a=i(e),l=null==a||null===(t=a.controlBar)||void 0===t||null===(o=t.playToggle)||void 0===o?void 0:o.el_,u=document.getElementsByTagName("video")[0];null===(r=document)||void 0===r||r.addEventListener("keydown",function(t){var o,r,i,s,d,c,v,f,m;if(Ve.enabled&&"input"!=t.target.localName){var p=t.key,g=!0===n.liveVideo||!0===n.liveui;switch([" ","m","M","f","F","ArrowLeft","ArrowRight"].includes(p)&&(t.preventDefault(),null==u||u.focus()),p){case" ":null==l||l.click();break;case"m":case"M":a.muted(!a.muted());break;case"f":case"F":null===(o=document.querySelector(".vjs-fullscreen-control"))||void 0===o||o.click();break;case"ArrowLeft":g&&!1===n.liveui||dn(e,10);break;case"ArrowRight":if("MEDIA_TAILOR"==(null===(r=window)||void 0===r||null===(i=r.app_data)||void 0===i||null===(s=i.appcmsMain)||void 0===s||null===(d=s.adsConfig)||void 0===d?void 0:d.vodAdSticherProvider)&&null!==(c=window)&&void 0!==c&&null!==(v=c.app_data)&&void 0!==v&&null!==(f=v.appcmsMain)&&void 0!==f&&null!==(m=f.adsConfig)&&void 0!==m&&m.vodAdClientSideTracking)return;g||sn(e,10)}}},!0)}var Fe,Ve=(Fe=!0,{enable:function(){Fe=!0},disable:function(){Fe=!1},get enabled(){return Fe}}),ke="ssai-breakStart",We="ssai-adImpression",Ne="ssai-firstQuartile",je="ssai-midpoint",Ue="ssai-thirdQuartile",Me="ssai-complete",Be="ssai-breakEnd",xe={breakStart:ke,impression:We,firstQuartile:Ne,midpoint:je,thirdQuartile:Ue,complete:Me,breakEnd:Be};function He(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=i(e);if(!t)return console.error("[SSAI] Player instance not found"),{};var o=n.eventType,r=xe[o];r&&t.trigger(r,n)}function Ge(e){var n=i(e);if(!n)return console.error("[SSAI] Player instance not found"),{};var t=function(e,t){var o=function(e,n){return t(n)};return n.on(e,o),function(){return n.off(e,o)}};return{adBreakStart:function(e){return t(ke,e)},adImpression:function(e){return t(We,e)},adFirstQuartile:function(e){return t(Ne,e)},adMidpoint:function(e){return t(je,e)},adThirdQuartile:function(e){return t(Ue,e)},adComplete:function(e){return t(Me,e)},adBreakEnd:function(e){return t(Be,e)}}}function Ye(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,o)}return t}function Qe(n){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?Ye(Object(o),!0).forEach(function(t){e(n,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(o)):Ye(Object(o)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(o,e))})}return n}function ze(e,n){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=function(e,n){if(e){if("string"==typeof e)return qe(e,n);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?qe(e,n):void 0}}(e))||n&&e&&"number"==typeof e.length){t&&(e=t);var o=0,r=function(){};return{s:r,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,l=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==t.return||t.return()}finally{if(l)throw i}}}}function qe(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,o=Array(n);t<n;t++)o[t]=e[t];return o}var Xe,Je=function(){var e="";return{set:function(n){n&&(e=n)},get:function(){return e}}}(),Ke=(Xe=null,{set:function(e){Xe=e},get position(){return Xe}});function $e(e,n){return Ze.apply(this,arguments)}function Ze(){return(Ze=n(t.mark(function e(n,o){var r,a,l,u,s,d,c,v,m,p,g,I,E,h;return t.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return i(n),r=we(o,n),a=r.src,l=a.replace("/dash/","/session/").replace("/master/","/session/"),l=ye(l,n,o),u=en(l),s=f(u,2),d=s[0],c=s[1],l=new URL(l.split("?")[0]),Object.keys(c).length>0&&Object.entries(c).forEach(function(e){var n=f(e,2),t=n[0],o=n[1];l.searchParams.set(t,o)}),e.prev=8,e.next=11,fetch(l,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({adsParams:Qe({},d)})});case 11:return v=e.sent,e.next=14,v.json();case 14:return m=e.sent,p="https://"+new URL(l).hostname,g=m.trackingUrl,I=m.manifestUrl,E=p+g,h=p+I,Je.set(E),console.log("%c TRACKING URL","background: #bdf369; color: #000",E),r.src=h,e.abrupt("return",r);case 26:return e.prev=26,e.t0=e.catch(8),e.abrupt("return",r);case 29:case"end":return e.stop()}},e,null,[[8,26]])}))).apply(this,arguments)}function en(e){var n={};if(!e.split("?")[1])return[{},{}];var t,o=new URL(e,window.location.origin),r=ze((null==o?void 0:o.searchParams)||[]);try{for(r.s();!(t=r.n()).done;){var i=f(t.value,2),a=i[0],l=i[1];n[decodeURIComponent(a)]=decodeURIComponent(l||"")}}catch(e){r.e(e)}finally{r.f()}for(var u={},s={},d=0,c=Object.entries(n);d<c.length;d++){var v=f(c[d],2),m=v[0],p=v[1];if(m.startsWith("ads."))u[m.replace(/^ads\./,"")]=p;else s[m]=p}return[u,s]}var nn,tn=(nn=[],{setQueuePoints:function(e){console.log("%c Setting SGAI Queue Points ","background: #bdf369; color: #000",e),nn=Array.isArray(e)?v(e):nn},getQueuePoints:function(){return console.log("%c Getting SGAI Queue Points ","background: #bdf369; color: #000",nn),v(nn)}});function on(e,n){return rn.apply(this,arguments)}function rn(){return rn=n(t.mark(function e(o,r){var a,l,u,s,c,f,m,p,g,I,E,h,y,T,w,b,_;return t.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:_=function(e,n,t,r,a,l){var u=i(o);if(!u.seeking()){n.startTimeInSeconds,n.durationInSeconds,Math.floor(u.currentTime());var s,d=ze(t);try{var c=function(){var t,i,d,c=s.value,v=c.eventType,f=c.beaconUrls,m=c.startTimeInSeconds,p=c.startTime,g=c.durationInSeconds,I=m||0,E=f,h=(null===(t=window)||void 0===t||null===(i=t.customData)||void 0===i||null===(d=i.ads)||void 0===d?void 0:d.adEventHandler)||null,y="".concat(I,"_").concat(v),T=w.get("pod-".concat(a))||[];if(console.warn(e,I,"map:",v,"condition1:",e>=I,"map:",w),e>=I&&!T.includes(y)){T.push(y),w.set("pod-".concat(a),T);try{b(v,n,E,u)}catch(e){console.error("Error when calling triggerAdBeacon:",e,v,n)}if("breakEnd"==v){var _=Ke.position;Ke.set(null),setTimeout(function(){null!=_&&(u.currentTime(_),l())},500)}if("function"==typeof h)try{var O,S={eventType:v,startTimeInSeconds:m,startTime:p,durationInSeconds:g,ad:null==n||null===(O=n.ads)||void 0===O?void 0:O[r],adIndex:r};h({adsData:S}),He(o,S)}catch(e){console.error("Error when calling ads callback:",e)}}};for(d.s();!(s=d.n()).done;)c()}catch(e){d.e(e)}finally{d.f()}}},b=function(e,n,t,o){console.warn("%c SSAI BEACON ","background: #e25822; color: #fff",e,"Fired:".concat(Math.round(o.currentTime())),"AD_POD:",n),console.log("%c SSAI BEACON ","background: #e25822; color: #fff",e,"Fired:".concat(Math.round(o.currentTime())),"AD_POD:",n),null==t||t.forEach(function(e){fetch(e,{mode:"no-cors"}).catch(function(n){console.warn("Beacon failed:",e,n)})})},T=function(e){var n=Math.floor(e/60),t=Math.floor(e%60);return"".concat(n,":").concat(t.toString().padStart(2,"0"))},Ke.set(r),c=Je.get(),(f=i(o)).one("loadeddata",function(){c&&y(c)}),m=new Map,p=new Map,g=-1,I=(null===(a=document)||void 0===a||null===(l=a.getElementsByClassName("tvProviderImage"))||void 0===l?void 0:l[0])||null,E=(null==f||null===(u=f.controlBar)||void 0===u?void 0:u.getChild("videoSelector"))||null,h=(null==f||null===(s=f.controlBar)||void 0===s?void 0:s.getChild("seriesV2"))||null,y=function(){var e=n(t.mark(function e(n){var a,l,u,s,c,f,y,w,b,O,S,P,A,L,D,R,C;return t.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return A=function(e){document.removeEventListener("pointermove",P),document.removeEventListener("pointerup",A),0===e.button&&O()},P=function(e){},S=function(){var e,n=y.currentTime(),t=null,o=ze(f);try{for(o.s();!(e=o.n()).done;){var r=e.value,i=r.startTimeInSeconds,a=r.durationInSeconds,l=(r.ads,Math.floor(i+a));n>=i&&n<=l&&(t=l,m.set(i,!0))}}catch(e){o.e(e)}finally{o.f()}null!==t&&(console.log("Seeking to end of the ad pod:",t),setTimeout(function(){y.currentTime(t+2.2)},100))},O=function(){var e,n=y.currentTime(),t=null,o=ze(f);try{for(o.s();!(e=o.n()).done;){var r=e.value,i=r.startTimeInSeconds,a=r.durationInSeconds,l=r.ads,u=Math.floor(i+a);(Array.isArray(l)&&(null==l?void 0:l.length)>0&&(n>u||n>i)&&!m.has(i)||n>=i&&n<=u)&&(t=i,m.set(i,!0),p.set(i,!0))}}catch(e){o.e(e)}finally{o.f()}null!==t&&(console.log("Seeking back to ad pod:",t),setTimeout(function(){y.currentTime(t+.4)},100))},l=!1,e.next=7,fetch(n);case 7:return u=e.sent,e.next=10,u.json();case 10:s=e.sent,console.log("%c TRACKING URL RESPONSE ","background: #d9e7ff; color: #000",s),c=s.avails,f=[],y=i(o),w=y.controlBar.progressControl,b=w.seekBar.el(),c.map(function(e,n){var t,o,r;0==n&&Array.isArray(null==e?void 0:e.ads)&&(null==e||null===(t=e.ads)||void 0===t?void 0:t.length)>0&&(l=!0),f.push({ads:null==e?void 0:e.ads,durationInSeconds:null==e?void 0:e.durationInSeconds,startTimeInSeconds:null==e?void 0:e.startTimeInSeconds,markerPositionInSeconds:Math.floor(null==e?void 0:e.startTimeInSeconds),podSlotImpressionBeacon:(null==e||null===(o=e.adBreakTrackingEvents)||void 0===o||null===(r=o.filter(function(e){return"breakStart"==(null==e?void 0:e.eventType)}))||void 0===r?void 0:r[0])||[]})}),!l&&r&&(y.currentTime(r),S()),null!=f&&f.length&&(console.log("%c SSAI AD PODS ","background: #bdf369; color: #000",f),window.adsQueueList=f),console.log(f,"data"),f.forEach(function(e){var n=e.markerPositionInSeconds,t=e.ads,o=y.duration();if(!(n>o||Array.isArray(t)&&0==(null==t?void 0:t.length))){var r=n/o*100,i=document.createElement("div");i.className="vjs-seekbar-marker",i.style.left="".concat(r,"%"),i.style.position="absolute",i.style.top="0",i.style.bottom="0",i.style.width="2px",i.style.backgroundColor="#fecc09",i.style.left="".concat(r,"%"),i.style.pointerEvents="none",b.appendChild(i)}}),y.on("timeupdate",d(function(){var e=y.currentTime();if(e!==g){g=e;for(var n=!1,t=function(){var t=f[o],r=t.startTimeInSeconds,i=t.durationInSeconds,a=t.ads,l=r+i;if(e>=r-1.2&&e<=l+1.2){e>=r&&e<=l&&Array.isArray(a)&&(null==a?void 0:a.length)>0&&(n=!0),e>l&&m.set(r,!0),Ve.disable(),I&&I.classList.add("vjs-hidden"),E&&(E.el().style.pointerEvents="none",E.el().classList.add("vjs-hidden")),h&&(h.el().style.pointerEvents="none",h.el().classList.add("vjs-hidden")),w.el().style.visibility="hidden";for(var u=e-r,s=0,d=0,c=0;c<a.length;c++){var g,y=null==a||null===(g=a[c])||void 0===g?void 0:g.durationInSeconds;if(u<s+y){d=c;break}s+=y}a[d];var b=Math.max(0,i-u),O=Math.round(b);L.style.display="block",C.textContent="".concat(d+1," of ").concat(a.length," • ").concat(T(O));var P=[];return null==a||a.forEach(function(e){var n=e.trackingEvents.filter(function(e){return["breakStart","breakEnd","firstQuartile","secondQuartile","thirdQuartile","fourthQuartile","midpoint","impression","complete"].includes(e.eventType)});P.push.apply(P,v(n))}),Array.isArray(a)&&0==(null==a?void 0:a.length)&&P.push(null==t?void 0:t.podSlotImpressionBeacon),_(e,t,P,d,o,S),"break"}p.delete(r)},o=0;o<f.length;o++){if("break"===t())break}n||(L.style.display="none",w.el().style.visibility="visible",E&&(E.el().style.pointerEvents="auto",E.el().classList.remove("vjs-hidden")),h&&(h.el().style.pointerEvents="auto",h.el().classList.remove("vjs-hidden")),I&&I.classList.remove("vjs-hidden"),Ve.enable())}},1e3)),null===(a=document)||void 0===a||a.addEventListener("keydown",function(e){Ve.enabled&&"ArrowRight"==e.key&&(O(),sn(o,10),e.stopPropagation())}),w.el().addEventListener("pointerdown",function(e){0===e.button&&(document.addEventListener("pointermove",P),document.addEventListener("pointerup",A))}),(L=document.createElement("div")).className="ssai-ad-container",(D=document.createElement("div")).className="sponsored-adbox",(R=document.createElement("div")).className="sponsored-text",R.textContent="Sponsored Ad",D.append(R),(C=document.createElement("div")).className="ad-counter",document.createElement("div").className="ad-timer",L.append(D),L.append(C),y.el().appendChild(L);case 41:case"end":return e.stop()}},e)}));return function(n){return e.apply(this,arguments)}}(),w=new Map;case 16:case"end":return e.stop()}},e)})),rn.apply(this,arguments)}function an(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,o)}return t}var ln=function(e){o(e).play()},un=function(e){o(e).pause()},sn=function(e,n){var t=o(e),r=t.currentTime()+n;t.currentTime(r)},dn=function(e,n){var t=o(e),r=t.currentTime(),i=r<=n?0:r-n;t.currentTime(i)},cn=function(e){return!!o.getPlayer("".concat(e))},vn=function(e){return o(e).paused()},fn=function(){var e=n(t.mark(function e(n,o){var r,a,l,u=arguments;return t.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r=u.length>2&&void 0!==u[2]&&u[2],e.next=3,B();case 3:return a=e.sent,l=i(n),e.abrupt("return",new Promise(function(e,t){b(o,a).then(function(t){var i=null==t?void 0:t.data;window.sid=oe(),i.contentType="linearchannel",i.channelId=null==o?void 0:o.channelId;var a=we(i,n);G(i),a&&r?(En(n,a),l.on("loadstart",function(){e({status:!0,msg:"Feed authenticated and loaded",response:i})})):e({status:!0,msg:"Feed authenticated",response:i})}).catch(function(e){t({status:!1,msg:"Cannot load feed",response:e})})}));case 6:case"end":return e.stop()}},e)}));return function(n,t){return e.apply(this,arguments)}}(),mn=function(){var e=n(t.mark(function e(o,r,a){var l,d,c,v,f,m;return t.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,B();case 2:return v=e.sent,(z()||null)&&$(r),f=0,m=0,null!==(l=window)&&void 0!==l&&l.watchHistory&&null!==(d=window)&&void 0!==d&&null!==(c=d.watchHistory)&&void 0!==c&&c.enable&&S(r,v).then(function(e){var n,t,o,r,i,a;null!==(n=window)&&void 0!==n&&null!==(t=n.watchHistory)&&void 0!==t&&t.cb&&(null===(o=window)||void 0===o||null===(r=o.watchHistory)||void 0===r||r.cb(null==e?void 0:e.data)),f=(null==e||null===(i=e.data)||void 0===i?void 0:i.watchedTime)||null,m=(null==e||null===(a=e.data)||void 0===a?void 0:a.watchedPercentage)||null}).catch(function(e){var n,t,o,r;null!==(n=window)&&void 0!==n&&null!==(t=n.watchHistory)&&void 0!==t&&t.cb&&(null===(o=window)||void 0===o||null===(r=o.watchHistory)||void 0===r||r.cb(e))}),e.abrupt("return",new Promise(function(e,a){w(r,v).then(function(){var r=n(t.mark(function n(r){var l,d,c,v,p,g,I,E,h,y,T,w,b,_,O,S,P,A,L,D,R,C,F,V,k,W,N,j,U,M,B,x,H,Y,Q,z,q,X;return t.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:if(S=null==r?void 0:r.data,P=(null==S?void 0:S.contentType)||"video",A=(null==S||null===(l=S[P])||void 0===l?void 0:l.isSSAIEnabled)&&"MEDIA_TAILOR"==(null===(d=window)||void 0===d||null===(c=d.app_data)||void 0===c||null===(v=c.appcmsMain)||void 0===v||null===(p=v.adsConfig)||void 0===p?void 0:p.vodAdSticherProvider)||!1,L=(null==S||null===(g=S.video)||void 0===g||null===(I=g.streamingInfo)||void 0===I?void 0:I.isLiveStream)||!1,G(r.data),(D=(null==S||null===(E=S.ads)||void 0===E||null===(h=E.preRoll)||void 0===h||null===(y=h.adTags)||void 0===y||null===(T=y.web)||void 0===T?void 0:T.active)&&(null==S||null===(w=S.ads)||void 0===w||null===(b=w.preRoll)||void 0===b||null===(_=b.adTags)||void 0===_||null===(O=_.web)||void 0===O?void 0:O.url))&&Re(o,D,S),R=we(S,o),!A){n.next=12;break}return n.next=11,$e(o,S);case 11:R=n.sent;case 12:R?(x=(null==S||null===(C=S.video)||void 0===C||null===(F=C.gist)||void 0===F?void 0:F.videoImageUrl)||(null==S||null===(V=S.video)||void 0===V||null===(k=V.gist)||void 0===k||null===(W=k.imageGist)||void 0===W?void 0:W.r16x9),(H=i(o)).poster(x),En(o,R),H.on("loadstart",function(){L&&e({status:!0,msg:"Video Loaded",response:S})}),H.on("loadeddata",function(){Le(),e({status:!0,msg:"Video Loaded",response:S})}),H.one("play",function(){f&&m<95&&setTimeout(function(){H.currentTime(f)},0)}),H.one("error",function(){var e;a({status:!1,msg:(null==H||null===(e=H.error())||void 0===e?void 0:e.message)||"Some error occured"})}),(null==S||null===(N=S.video)||void 0===N||null===(j=N.contentDetails)||void 0===j||null===(U=j.closedCaptions)||void 0===U?void 0:U.length)>0||(null==S||null===(M=S.video)||void 0===M||null===(B=M.closedCaptions)||void 0===B?void 0:B.length)>0?(X=(null==S||null===(Q=S.video)||void 0===Q||null===(z=Q.contentDetails)||void 0===z?void 0:z.closedCaptions)||(null==S||null===(q=S.video)||void 0===q?void 0:q.closedCaptions),Y=X.filter(function(e){return"VTT"===e.format}),u(o,Y)):s(o)):(Ae(o,"Incompatible Source, only hls,mp4,drm content is allowed"),a("Incompatible Source, only hls,mp4,drm content is allowed"));case 13:case"end":return n.stop()}},n)}));return function(e){return r.apply(this,arguments)}}()).catch(function(e){hn(e,o,a,r)})}));case 9:case"end":return e.stop()}},e)}));return function(n,t,o){return e.apply(this,arguments)}}(),pn=function(e,n,t){var o=i(e);return o.src(n),new Promise(function(e,n){var r=0;o.one("loadedmetadata",function(){clearTimeout(r),e({status:!0,msg:"video loaded"})}),o.one("loadstart",function(e){r=setTimeout(function(){n("FAILED: Took too long to load")},t)})})},gn=function(e){var n=i(e);if(In(),c(),window.onresize=null,n)n.dispose();else{var t=document.getElementById(e);t&&t.remove()}},In=function(){document.getElementById("carousel_homepage")&&document.getElementById("carousel_homepage").remove(),document.getElementById("dvr_skin")&&document.getElementById("dvr_skin").remove(),document.getElementById("nondvr_skin")&&document.getElementById("nondvr_skin").remove(),document.getElementById("multicam")&&document.getElementById("multicam").remove(),document.getElementById("errorblock")&&document.getElementById("errorblock").remove(),document.getElementById("def_skin")&&document.getElementById("def_skin").remove(),document.getElementById("video-selection")&&document.getElementById("video-selection").remove(),document.getElementById("multicam-v2")&&document.getElementById("multicam-v2").remove(),document.getElementById("default_v2")&&document.getElementById("default_v2").remove(),document.getElementById("video-captions")&&document.getElementById("video-captions").remove(),document.getElementById("playlist-selection")&&document.getElementById("playlist-selection").remove(),document.getElementById("multiplayer_css")&&document.getElementById("multiplayer_css").remove(),document.getElementById("chromett")&&document.getElementById("chromett").remove()},En=function(e,n){var t=i(e);t&&t.src(n)},hn=function(n,t,o,r){var i,a,l,u,s,d,c=null==n||null===(i=n.response)||void 0===i||null===(a=i.data)||void 0===a?void 0:a.errorCode,v=(null==n||null===(l=n.response)||void 0===l||null===(u=l.data)||void 0===u?void 0:u.errorMessage)||(null==n?void 0:n.message);cn(t)&&Ae(t,(null===(s=window)||void 0===s?void 0:s.customErrors)&&(null===(d=window)||void 0===d?void 0:d.customErrors[c])||"".concat(v)),o&&o(function(n){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?an(Object(o),!0).forEach(function(t){e(n,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(o)):an(Object(o)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(o,e))})}return n}({status:!1,response:n,msg:"".concat(v)},r&&{videoId:r}))},yn=function(e){var n=document.getElementById(e),t=n.getElementsByClassName("vjs-control-bar")[0];t&&(t.style.visibility="hidden");var o=n.getElementsByClassName("vjs-big-play-button")[0];o&&(o.style.display="none");var r=n.getElementsByClassName("vjs-fullscreen-control")[0];r&&(r.style.display="none")};export{$,Z as A,Q as B,pn as C,sn as D,ln as E,un as F,dn as G,cn as H,mn as I,fn as J,gn as K,L,tn as M,Ge as N,A as O,x as P,C as Q,D as R,p as S,Ce as T,ce as U,q as V,vn as W,X,on as Y,P as Z,K as _,me as a,z as b,fe as c,de as d,Y as e,we as f,re as g,Le as h,Ae as i,G as j,J as k,En as l,yn as m,se as n,Re as o,Pe as p,$e as q,H as r,O as s,w as t,S as u,hn as v,B as w,b as x,_ as y,ve as z};
@@ -12,3 +12,8 @@ export function on_orientation_change(playerId: any, element: any): void;
12
12
  export function detectOrientationChange(playerId: any, element: any): void;
13
13
  export function clearEventListeners(): void;
14
14
  export function highlightVideo_DEFAULTV2_TEMP(i: any): void;
15
+ export function createSVGWithUse(iconId: any, viewBox?: string): {
16
+ svg: SVGSVGElement;
17
+ use: SVGUseElement;
18
+ };
19
+ export function injectSVG(targetElement: any, iconId: any): SVGUseElement;