@hippovideo/video-sdk 0.0.0-experimental-d22bdfbd9cd1-20230710 → 0.0.0-experimental-143250fd6532-20230711

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 (61) hide show
  1. package/app/104-bundle-hippo-531xxzhsmog-0b359abe4c6a5ee2f315.js +1 -0
  2. package/app/105-bundle-hippo-531xxzhsmog-f9a48d5a6676f5658571.js +1 -0
  3. package/app/134-bundle-hippo-531xxzhsmog-33e5751ee8eabaf8325d.js +1 -0
  4. package/app/160-bundle-hippo-531xxzhsmog-6a53a0cfc890b1018823.js +1 -0
  5. package/app/199-bundle-hippo-531xxzhsmog-0847c9cdc2dd13978db4.js +2 -0
  6. package/app/199-bundle-hippo-531xxzhsmog-0847c9cdc2dd13978db4.js.LICENSE.txt +222 -0
  7. package/app/200-bundle-hippo-531xxzhsmog-cc4ce14507b481adce4a.js +1 -0
  8. package/app/224-bundle-hippo-531xxzhsmog-c5f0078ca66c66961376.js +1 -0
  9. package/app/227-bundle-hippo-531xxzhsmog-054097cd9811599fbb52.js +2 -0
  10. package/app/227-bundle-hippo-531xxzhsmog-054097cd9811599fbb52.js.LICENSE.txt +26 -0
  11. package/app/242-bundle-hippo-531xxzhsmog-65d7bd902bf92d642fd9.js +1 -0
  12. package/app/{245-bundle-hippo-e40n59i1x7-55dc39d840acd491f20b.js → 245-bundle-hippo-531xxzhsmog-d51f9b953f38044cfbab.js} +1 -1
  13. package/app/248-bundle-hippo-531xxzhsmog-f7f2950aeaeff9dff8a1.js +2 -0
  14. package/app/248-bundle-hippo-531xxzhsmog-f7f2950aeaeff9dff8a1.js.LICENSE.txt +108 -0
  15. package/app/252-bundle-hippo-531xxzhsmog-f16bffc6544697f84316.js +1 -0
  16. package/app/256-bundle-hippo-531xxzhsmog-b77bb3ac388b037011b4.js +1 -0
  17. package/app/27-bundle-hippo-531xxzhsmog-c12d06feeaf69ad6e754.js +1 -0
  18. package/app/292-bundle-hippo-531xxzhsmog-233bb3cc2573ab8fdae6.js +1 -0
  19. package/app/300-bundle-hippo-531xxzhsmog-af37f6f49f987d3b1d4e.js +1 -0
  20. package/app/337-bundle-hippo-531xxzhsmog-af1d31f808b1fadaefb8.js +1 -0
  21. package/app/343-bundle-hippo-531xxzhsmog-74e9cd68bfd58e14b900.js +1 -0
  22. package/app/362-bundle-hippo-531xxzhsmog-a8775ff8dd1026d63c63.js +1 -0
  23. package/app/365-bundle-hippo-531xxzhsmog-ac90d27b0c3d70c85e28.js +1 -0
  24. package/app/40-bundle-hippo-531xxzhsmog-99a14accde069837cb73.js +1 -0
  25. package/app/435-bundle-hippo-531xxzhsmog-a8cb770f9b97ef589b22.js +2 -0
  26. package/app/435-bundle-hippo-531xxzhsmog-a8cb770f9b97ef589b22.js.LICENSE.txt +3 -0
  27. package/app/48-bundle-hippo-531xxzhsmog-e2ff976a0367bb013cad.js +1 -0
  28. package/app/{520-bundle-hippo-e40n59i1x7-1288906c2276b5252408.js → 520-bundle-hippo-531xxzhsmog-d23078f76b266375b506.js} +1 -1
  29. package/app/522-bundle-hippo-531xxzhsmog-2f2efd9e442fa7de3cfd.js +1 -0
  30. package/app/524-bundle-hippo-531xxzhsmog-f1422ef6fabf36708c4b.js +1 -0
  31. package/app/556-bundle-hippo-531xxzhsmog-b5275c01aaeaed24c81b.js +1 -0
  32. package/app/578-bundle-hippo-531xxzhsmog-b314d782985def0b4d47.js +1 -0
  33. package/app/628-bundle-hippo-531xxzhsmog-50191e0883760bd5feab.js +1 -0
  34. package/app/685-bundle-hippo-531xxzhsmog-ccc5045d7aad29577351.js +1 -0
  35. package/app/69-bundle-hippo-531xxzhsmog-663b3d265f426b438f2d.js +2 -0
  36. package/app/69-bundle-hippo-531xxzhsmog-663b3d265f426b438f2d.js.LICENSE.txt +9 -0
  37. package/app/69.hv_recorder.css +1 -0
  38. package/app/693-bundle-hippo-531xxzhsmog-06900303db93b087ffa4.js +1 -0
  39. package/app/708-bundle-hippo-531xxzhsmog-0768898f682eb8a1df2d.js +1 -0
  40. package/app/716-bundle-hippo-531xxzhsmog-c4338e6a3a2533f7e973.js +1 -0
  41. package/app/762-bundle-hippo-531xxzhsmog-9c086bbc3477dfdeab74.js +1 -0
  42. package/app/768-bundle-hippo-531xxzhsmog-3dd6361f635c53d7850c.js +1 -0
  43. package/app/782-bundle-hippo-531xxzhsmog-7f69a88c298e22961d5c.js +1 -0
  44. package/app/798-bundle-hippo-531xxzhsmog-7431372ff7f1f55f1fa2.js +1 -0
  45. package/app/834-bundle-hippo-531xxzhsmog-ad8da7cd03ab1d44bacd.js +1 -0
  46. package/app/850-bundle-hippo-531xxzhsmog-a67a83cf8eda07ca65aa.js +1 -0
  47. package/app/889-bundle-hippo-531xxzhsmog-e090fc90803ec69556bd.js +1 -0
  48. package/app/903-bundle-hippo-531xxzhsmog-ad831c454afa8f565475.js +1 -0
  49. package/app/923-bundle-hippo-531xxzhsmog-98c6e38704b3ea4eacec.js +1 -0
  50. package/app/927-bundle-hippo-531xxzhsmog-34f0c401aea5918c9e55.js +1 -0
  51. package/app/946-bundle-hippo-531xxzhsmog-2ada4f0f786cbebe525f.js +1 -0
  52. package/app/949-bundle-hippo-531xxzhsmog-0dfd4113c6af68379afb.js +1 -0
  53. package/app/994-bundle-hippo-531xxzhsmog-9f08763feb63e3dea419.js +1 -0
  54. package/app/hv_recorder.js +1 -1
  55. package/app/hv_recorder.js.LICENSE.txt +0 -146
  56. package/app/webpack-common-manifest.json +50 -4
  57. package/package.json +1 -1
  58. /package/app/{188-bundle-hippo-e40n59i1x7-6e9300c4f156ca5b8ce8.js → 188-bundle-hippo-531xxzhsmog-6e9300c4f156ca5b8ce8.js} +0 -0
  59. /package/app/{245-bundle-hippo-e40n59i1x7-55dc39d840acd491f20b.js.LICENSE.txt → 245-bundle-hippo-531xxzhsmog-d51f9b953f38044cfbab.js.LICENSE.txt} +0 -0
  60. /package/app/{520-bundle-hippo-e40n59i1x7-1288906c2276b5252408.js.LICENSE.txt → 520-bundle-hippo-531xxzhsmog-d23078f76b266375b506.js.LICENSE.txt} +0 -0
  61. /package/app/{881-bundle-hippo-e40n59i1x7-1e41c84326fac8446b66.js → 881-bundle-hippo-531xxzhsmog-1e41c84326fac8446b66.js} +0 -0
@@ -0,0 +1 @@
1
+ (self.webpackChunkHVRecorder=self.webpackChunkHVRecorder||[]).push([[365],{85468:function(e,i,t){"use strict";function s(){try{return"undefined"!=typeof localStorage}catch(e){return!1}}function a(e){if(s()){var i="hv-"+e,t=localStorage.getItem(i);return void 0===t&&(t=localStorage.getItem(e),localStorage.setItem(i,t),localStorage.removeItem(e)),t}return null}function n(e){return!!s&&(localStorage.removeItem(e),localStorage.removeItem("hv-"+e),!0)}t.d(i,{Xb:function(){return n},jy:function(){return a}})},3365:function(e,i,t){var s,a;s=[t(8099),t(33194),t(92867),t(12352)],void 0===(a=function({default:e},{default:i},{default:t},{default:s}){return function(a){var n=!1,o=!1,r=!!a.humanizePlayer&&a.humanizePlayer,l=!!a.initializeNewPlayer&&a.initializeNewPlayer;try{n=HippoVideo.data.api.getProperty("isLessonly"),o=HippoVideo.data.api.getProperty("isPlayer2022")}catch(e){}return n=n||"lessonly"==s.getQueryParams().type||"lessonly"==s.getQueryParams().integration_type,a.isDelivery&&!n&&o||r||l?new t(a):a.isDelivery&&!n||a.isNewPlayer?new i(a):new e(a)}}.apply(i,s))||(e.exports=a)},52737:function(e,i,t){var s,a;s=[t(83457),t(53931)],void 0===(a=function(e,i){return function(e){function i(e,i){return e.x(i.get(["isPrivacy"],!1),i,{else:t,block:oe},{})}function t(e,i){return e.x(i.get(["initial"],!1),i,{else:s,block:ne},{})}function s(e,i){return e.w('<div class="video-container hippo-video-player hv-new-player" id=').f(i.get(["id"],!1),i,"h").w('><div class="thumbnail"><div class="se-crop-scale">\x3c!-- <canvas class="blurred-bg-video" style="position: absolute;left: 0;top: 0;width: 100%;height: 100%;filter: blur(20px);-webkit-filter: blur(20px);transform: scale(1.2);"></canvas> --\x3e<div class="primary-video-overflow-container"><div class="primary-video-container">').x(i.get(["isImageMode"],!1),i,{else:a,block:u},{}).w('</div></div><div class="parallel-video-container"><div class="goback-branching"><img src="/img/back-icon.png" width="25"><span></span></div><div class="goback-branching-new"><div class="left-container"><img src="/img/left.svg" width="25"></div><div class="branching-info"></div></div><div class="branching-menus"></div></div>').nx(i.get(["isImageMode"],!1),i,{block:p},{}).w('</div><canvas class="renderless-overlay" style="position: absolute;width: 100%;height: 100%"></canvas><div class="renderless-inputs-container" style="position: absolute;width: 100%;height: 100%;display:none"></div><div class="renderless-overlay-iframes" style="position: absolute;width: 100%;height: 100%;display:none"></div></div>').nx(i.get(["isImageMode"],!1),i,{block:v},{}).w('<div id="personalizeChapterId" class="hp-menu-tog hide"><img src="/svg/hamburger-white.svg" width="16"></div><div id="personalizeChaptersListId" class="hp-tog-content hide"><a class="chapter-close" id="chapterCloseId"><img src="/svg/close-gray.svg" width="10"></a><br><div id="chaptersListId"></div></div><div class="error-overlay hide" style="position:absolute;width:100%;height:100%;background: rgba(0,0,0,0.2);z-index:2;background-repeat: no-repeat;background-size: contain;"><div class="error-reason-div"><img src="').f(i.get(["staticImgDomain"],!1),i,"h").w('/svg/warning.svg" class="status-warning" /><div class="error-reason"></div></div></div><div class="player-touch-guard"></div>').nx(i.get(["isImageMode"],!1),i,{block:$},{}).h("select",i,{block:K},{key:i.get(["privacy"],!1)},"h").w(" ").h("select",i,{block:ie},{key:i.get(["privacy"],!1)},"h").w(" ").h("eq",i,{block:se},{key:i.get(["privacy"],!1),value:7},"h").w(" ").h("eq",i,{block:ae},{key:i.get(["privacy"],!1),value:2},"h").w("</div>")}function a(e,i){return e.w('<video class="primary-video" id="primary-video" crossorigin="anonymous" controls playsinline ').x(i.get(["loop"],!1),i,{block:n},{}).w(">").h("eq",i,{block:o},{key:i.get(["type"],!1),value:"url"},"h").w("Your browser does not support the video tag.").x(i.get(["subtitlesEnabled"],!1),i,{block:l},{}).w('</video><canvas class="se-effects-canvas"></canvas><div class="se-effects-components-container"></div>').x(i.get(["showSetFrame"],!1),i,{block:c},{}).w(" ")}function n(e,i){return e.w(" loop ")}function o(e,i){return e.w('<source crossorigin="anonymous" ').x(i.get(["addSourceAudioType"],!1),i,{block:r},{}).w(" src=").f(i.get(["src"],!1),i,"h").w(">")}function r(e,i){return e.w(' type="audio/basic" ')}function l(e,i){return e.x(i.get(["subtitlesFromServer"],!1),i,{else:d,block:h},{})}function d(e,i){return e.w('<track label="English" kind="subtitles" id="subtitleTrack" srclang="eng" src="').f(i.get(["subtitles"],!1),i,"h").w('" default="">')}function h(e,i){return e.w('<track label="English" kind="subtitles" id="subtitleTrack" srclang="eng" src="').f(i.get(["domain"],!1),i,"h").w("/video_delivery/subtitles/").f(i.get(["token"],!1),i,"h").w('" default="">')}function c(e,i){return e.w('<video class="hidden-video" controls playsinline crossorigin="anonymous" style="display: none;"><source crossorigin="anonymous" src=').f(i.get(["src"],!1),i,"h").w(">").f(i.getPath(!1,["wizPlayer","browserDoesNotSupport"]),i,"h").w("</video> ")}function u(e,i){return e.w('<img src="').f(i.get(["src"],!1),i,"h").w('" class="primary-video" id="gifImage" style="position: absolute;left: 0;top: 0;width: 100%;height: 100%;"> ')}function p(e,i){return e.w(" ").nx(i.get(["isDelivery"],!1),i,{block:y},{}).w(" ")}function y(e,i){return e.w('<div class="secondary-video-overflow-container" style="top:0"><div class="secondary-video-container"><video class="secondary-video" crossorigin="anonymous"><source crossorigin="anonymous" src=').f(i.get(["audioSrc"],!1),i,"h").w('></video></div></div><textarea id="seTextEditable" class="se-text-editable custom-scroll hide" spellcheck="false" placeholder="Enter text here"></textarea><div class="se-components-container"></div><div class="se-crop-resizable hide"></div><div class="se-crop-highlighter se-crop-highlighter-top"></div><div class="se-crop-highlighter se-crop-highlighter-left"></div><div class="se-crop-highlighter se-crop-highlighter-bottom"></div><div class="se-crop-highlighter se-crop-highlighter-right"></div>')}function v(e,i){return e.w('<div class="se-components-droppable"></div><div class="player-border"></div>').x(i.get(["thumbnail"],!1),i,{block:m},{}).x(i.get(["previewVideo"],!1),i,{block:g},{}).x(i.get(["controls"],!1),i,{block:f},{}).w('<div class="renderless-builder-container" style="position: absolute;width: 100%;height: 100%;display:none;"></div>').x(i.get(["controls"],!1),i,{block:w},{}).w('<div class="player-loading-overlay full-screen-container hide"><div class="inner-container"></div></div>').x(i.get(["isLandingPageVideo"],!1),i,{else:b,block:P},{}).w(" ").x(i.get(["isMutedAutoPlay"],!1),i,{block:k},{}).w(" ").x(i.get(["showHoverActions"],!1),i,{block:S},{}).w(" ")}function m(e,i){return e.w('<div class="thumbnail-container full-screen-container" style="position:absolute;width:100%;height:100%;cursor: pointer;z-index:1"><img src="').f(i.get(["thumbnail"],!1),i,"h").w('" id="playerThumbnail" style="position: absolute;left: 0;top: 0;width: 100%;height: 100%;" onerror="this.style.display=\'none\'"></div>')}function g(e,i){return e.w('<div class="play-btn-container full-screen-container"><video src="').f(i.get(["previewVideo"],!1),i,"h").w('" id="preview-video-player" crossorigin="anonymous" playsinline loop /></div>')}function f(e,i){return e.w('<div id="hvMainPlayPause" class="main-play-pause"></div><div id="hvRclickOptions" class="hv-rclick-options hide" oncontextmenu="return false;"><ul><li id="hvRclickCopy" class="hv-rclick-copy">').f(i.getPath(!1,["newPlayer","copyLinkAndThumbnail"]),i,"h").w('</li><li class="hv-rclick-about">').f(i.getPath(!1,["newPlayer","aboutHippoVideo"]),i,"h").w("</li></ul></div>")}function w(e,i){return e.w('<div class="replay-btn-container full-screen-container hide"><span class="final-replybtn final-replybtn-click"><a class="replaythree replaybutton" width="20px" height="24px"><svg id="Layer_1" xmlns="https://www.w3.org/2000/svg" viewBox="0 0 25.2 25.2"><path fill="#f47a58" d="M2.6 15.4c.7 2.5 2.4 4.7 4.8 6.1 4.9 2.8 11.2 1.1 14-3.8s1.1-11.2-3.8-14c-2.4-1.4-5.1-1.7-7.8-1-2.3.6-4.3 2-5.7 3.9l2.8-.2.2 2-4.4.3-2 .2-.2-2-.3-4.4 2-.2.2 2.9c1.7-2.3 4-3.9 6.8-4.7 3.2-.9 6.6-.4 9.5 1.2 6 3.4 8 11.1 4.6 17.1-.3.6-.7 1.1-1.1 1.6-3.8 4.7-10.6 6.1-16 3-2.9-1.7-4.9-4.4-5.8-7.5"/></svg></a></span></div>')}function b(e,i){return e.w('<div id="personalisedVideoLoading" class="personalised-video-loading"><div class="inner-container"><center><div class="bar-loading"><div></div><div></div><div></div><div></div></div></center></div></div>')}function P(e,i){return e.w('<div id="personalisedVideoLoading" class="personalised-video-loading-page"><div class="loader-wrap"><div class="rp-loader"></div></div></div>')}function k(e,i){return e.x(i.get(["controls"],!1),i,{block:C},{})}function C(e,i){return e.w('<div class="player-info muted-autoplay cursor-pointer hide"><img src="/svg/mute.svg" alt="volume" /> ').nx(i.get(["isMobilePlayer"],!1),i,{block:_},{}).w("</div>")}function _(e,i){return e.f(i.getPath(!1,["wizPlayer","clickToUnmute"]),i,"h")}function S(e,i){return e.w(" ").x(i.get(["controls"],!1),i,{block:x},{}).w(" ")}function x(e,i){return e.w('<div class="main-controls"><span class="backwardbtn" data-backward-value="5 sec"><svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"viewBox="70 10 40 40" style="enable-background:new 70 10 40 40;" xml:space="preserve"><g><path transform="translate(0,0)" stroke="#F47A58" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" fill="transparent" d="M101.5,23.7v15.5c0,1.1-1.3,1.8-2.2,1.2l-12.8-8.2c-0.9-0.6-0.9-1.9,0-2.4l13.8-8.8 M101.5,20.2"/></g><g><path transform="translate(0,0)" stroke="#F47A58" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" fill="transparent" d="M91.2,39.1v0.5c0,1.1-1.3,1.8-2.2,1.2l-12.8-8.2c-0.9-0.6-0.9-1.9,0-2.4L90,21.4 M91.2,20.6"/></g><line transform="translate(0,0)" stroke="#F47A58" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" fill="transparent" x1="90" y1="21.4" x2="90" y2="26.9"/></svg></span><span class="final-plybtn final-plybtn-click main-plyBtn"><a class="playthree playbutton" width="20px" height="24px"><svg viewBox="0 0 24 24" version="1.1" xmlns="https://www.w3.org/2000/svg" xmlns:xlink="https://www.w3.org/1999/xlink" style="overflow: visible;"><g transform="translate(0,0)" stroke="#F47A58" stroke-width="4" stroke-linecap="round" stroke-linejoin="round" fill="transparent"><path id="playbtnpath" class="playthreepath" d="M1,1.618034 L1,1.618034 L21.763932,12 L1,22.381966 L1,12 Z" id="Triangle2"></path></g></svg></a></span><span class="forwardbtn" data-forward-value="5 sec"><svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"viewBox="16 10 40 40" style="enable-background:new 16 10 40 40;" xml:space="preserve"><g><path transform="translate(0,0)" stroke="#F47A58" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" fill="transparent" d="M24.5,23.7v15.5c0,1.1,1.3,1.8,2.2,1.2l12.8-8.2c0.9-0.6,0.9-1.9,0-2.4L25.8,21 M24.5,20.2"/></g><g><path transform="translate(0,0)" stroke="#F47A58" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" fill="transparent" d="M34.8,39.1v0.5c0,1.1,1.3,1.8,2.2,1.2l12.8-8.2c0.9-0.6,0.9-1.9,0-2.4L36,21.4 M34.8,20.6"/></g><line transform="translate(0,0)" stroke="#F47A58" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" fill="transparent" x1="36" y1="21.4" x2="36" y2="26.9"/></svg></span></div>')}function $(e,i){return e.w('<div class="canvas-preview-container ').nx(i.get(["showComments"],!1),i,{else:T,block:B},{}).w('" id="canvasPreviewContainer" style="display:none;"><canvas class="quickpreview-canvas" width=128 height=72></canvas> ').x(i.get(["showComments"],!1),i,{block:A},{}).w(" ").x(i.get(["showSetFrame"],!1),i,{block:V},{}).w(" ").x(i.get(["showReactions"],!1),i,{block:I},{}).w('<input type="hidden" id="canvasHoverTime" /></div><div class="subtitles-line" id="subtitlesTrack"></div><div class="notification-line-onplay"></div><div class="cta-indicator hide"><div id="ctaIndicatorInner" class="cta-indicator-inner"></div></div><div id="chapterIndicatorId" class="hp-indicator hide"></div><div class="player-progress for-reactions disp-none"><div class="click-area-extended"></div></div>').x(i.get(["controls"],!1),i,{block:E},{}).x(i.get(["canShowDeliveryDownload"],!1),i,{block:X},{}).x(i.get(["controls"],!1),i,{block:Z},{}).w('<div id="ctaPlayerComps" class="cta-player-comps hide"></div><div id="ctaPlayerAddComp" class="cta-player-add-container hide"></div>')}function T(e,i){return e.w(" ").nx(i.get(["showReactions"],!1),i,{block:L},{})}function L(e,i){return e.w(" canvas-only-comment")}function B(e,i){return e.nx(i.get(["showReactions"],!1),i,{block:F},{}).w(" ")}function F(e,i){return e.w(" canvas-only ")}function A(e,i){return e.w('<div class="preview-add-comment" id="addCommentFromCanvas"><img src="/img/icon-discussions-white.png" /></div>')}function V(e,i){return e.w('<h6 class="set-frame-btn">').f(i.getPath(!1,["wizPlayer","setTheFrame"]),i,"h").w("</h6>")}function I(e,i){return e.w('<div class="emoji-wrap"><span><img class="react-now-play" reaction_id="1" id="reaction_id-1" src="/svg/emoji-type-1.svg" width="16"></span><span><img class="react-now-play" reaction_id="2" id="reaction_id-2" src="/svg/emoji-type-2.svg" width="16"></span><span><img class="react-now-play" reaction_id="3" id="reaction_id-3" src="/svg/emoji-type-3.svg" width="16"></span><span><img class="react-now-play" reaction_id="4" id="reaction_id-4" src="/svg/emoji-type-4.svg" width="16"></span><span><img class="react-now-play" reaction_id="5" id="reaction_id-5" src="/svg/emoji-type-5.svg" width="16"></span><span><img class="react-now-play" reaction_id="6" id="reaction_id-6" src="/svg/emoji-type-6.svg" width="16"></span></div>')}function E(e,i){return e.w('<div class="controls clear-float player-controls-wrapper player-controls-container"><div class="playbtn-container final-plybtn-click btn-play-click"><a class="solidply"><svg viewBox="0 0 17 24" width="17px" height="24px"><g stroke="#FFFFFF" stroke-linecap="round" stroke-linejoin="round" fill="#FFFFFF"><path class="solidply1" d="M1,1 L1,1 1,11 16,11 16,11 Z"></path><path class="solidply2" d="M1,11 L1,11 1,22 16,11 16,11 Z"></path></g></svg></a></div><div class="duration-container"><div class="video-buffered-container"></div><div class="end-time-container"><span class="end-time"></span><div class="buffer-container"></div></div><div class="current-time-container"><div class="current-time-bg"></div><span class="current-time"></span></div></div>').x(i.get(["audioControl"],!1),i,{block:M},{}).x(i.get(["settingControl"],!1),i,{block:q},{}).x(i.get(["fullscreenControl"],!1),i,{block:W},{}).w(" ").x(i.get(["canPlayerLogoView"],!1),i,{block:N},{}).w("</div>")}function M(e,i){return e.w('<div class="volume-container">').x(i.get(["isContainsAudio"],!1),i,{else:H,block:z},{}).w("</div>")}function H(e,i){return e.w('<span class="no-audio-box"><img class="audio-img mute player-volume" src="/svg/no-audio-mute.svg" alt="volume" width="15" /><div class="no-audio-pop">This video has no audio</div></span>')}function z(e,i){return e.w('<a class="volumebtn volumeon volume60" height="20px"><img src="/svg/volume.svg"><span class="mute-line"></span><span class="volume-curve"><i class="curve1"></i><i class="curve2"></i><i class="curve3"></i></span></a><div class="volume-slider-wrapper"><div class="volume-slider-container"><div class="volume-slider"></div></div></div>')}function q(e,i){return e.w('<div class="settings-container"><span class="settingsbtn-container"><a class="settingsbtn"><img src="/svg/icon-settings.svg"></a></span><div class="settings-options-wrapper"><div class="settings-options-container"><ul>').x(i.get(["showSpeedSettings"],!1),i,{block:R},{}).x(i.get(["subtitlesEnabled"],!1),i,{block:D},{}).x(i.get(["qualityControl"],!1),i,{block:O},{}).w('</ul><span class="selectedpointer"></span></div></div></div>')}function R(e,i){return e.w('<li id="speedControl"><a id="speedInfo">1x - Speed</a><div class="settings-suboptions-wrapper"><ul class="settings-suboptions" id="speedControlWrapper"><li data-id="0.5"><i></i><a>0.5X</a></li><li class="selected" data-id="1"><i></i><a>1x</a></li><li data-id="1.5"><i></i><a>1.5x</a></li><li data-id="2"><i></i><a>2x</a></li><li data-id="5"><i></i><a>5x</a></li></ul></div></li>')}function D(e,i){return e.w('<li id="subtitles"><a>Subtitles</a><div class="settings-suboptions-wrapper"><ul class="settings-suboptions" id="subtitleWrapper"><li data-value="on"><i></i><a>On</a></li><li class="selected" data-value="off"><i></i><a>Off</a></li></ul></div></li>')}function O(e,i){return e.w('<li id="qualityConrols"><a id="qualityinfo">Auto</a><div class="settings-suboptions-wrapper"><ul class="settings-suboptions" id="qualityControlWrapper"></ul></div></li>')}function W(e,i){return e.w('<div class="screensize-container"><a class="screensizebtn"><i class="ss1"></i><i class="ss2"></i><i class="ss3"></i><i class="ss4"></i></a></div>')}function N(e,i){return e.w('<div class="logo-container">').x(i.get(["playerLogo"],!1),i,{else:J,block:U},{}).w("</div>")}function J(e,i){return e.w('<a href="https://www.hippovideo.io/" target="_blank" rel="noopener"><img src="/svg/hippo-player-logo.svg" alt="logo" /></a>')}function U(e,i){return e.w("<a ").x(i.get(["addLinkToPlayerLogo"],!1),i,{block:j},{}).w(' target="_blank" rel="noopener noreferrer"><img src="').f(i.get(["playerLogo"],!1),i,"h").w('" alt="logo" /></a>')}function j(e,i){return e.x(i.get(["playerLogoLink"],!1),i,{block:Q},{})}function Q(e,i){return e.w('href="').f(i.get(["playerLogoLink"],!1),i,"h").w('" ')}function X(e,i){return e.w('<div class="hv-player-download"></div>')}function Z(e,i){return e.w('<div class="duration-container duration-container-fullscreen disp-none"><div class="current-time-container"><div class="current-time-bg"></div></div></div>')}function K(e,i){return e.w(" ").h("eq",i,{},{value:0},"h").w(" ").h("eq",i,{},{value:3},"h").w(" ").h("eq",i,{},{value:4},"h").w(" ").h("any",i,{block:G},{},"h").w(" ")}function G(e,i){return e.w('<div class="medium-12 columns access-denied-pop text-center"><img class="access-denied-icon" src="/svg/access-denied.svg"><h3>').h("eq",i,{else:Y,block:ee},{key:i.get(["privacy"],!1),value:3},"h").w("</h3></div>")}function Y(e,i){return e.f(i.getPath(!1,["wizPlayer","permissionToView"]),i,"h")}function ee(e,i){return e.f(i.getPath(!1,["wizPlayer","watchExpired"]),i,"h")}function ie(e,i){return e.w(" ").h("eq",i,{},{value:5},"h").w(" ").h("eq",i,{},{value:6},"h").w(" ").h("any",i,{block:te},{},"h").w(" ")}function te(e,i){return e.w('<div class="medium-12 columns access-denied-pop text-center"><img class="access-denied-icon" src="').f(i.get(["staticImgDomain"],!1),i,"h").w('/svg/warning.svg" width="80"><h3 class="delete-video-msg">').f(i.getPath(!1,["wizPlayer","accountDeactivated"]),i,"h").w("</h3></div>")}function se(e,i){return e.w('<div class="medium-12 columns access-denied-pop text-center"><img class="access-denied-icon" src="').f(i.get(["staticImgDomain"],!1),i,"h").w('/svg/warning.svg" width="80"><h3 class="delete-video-msg">').f(i.getPath(!1,["wizPlayer","limitExceeded"]),i,"h").w('</h3><h3 class="delete-video-msg">').f(i.getPath(!1,["wizPlayer","contactOwner"]),i,"h").w("</h3></div>")}function ae(e,i){return e.w('<div class="medium-12 columns password-pop text-center"><img class="lock-icon" style="width: 80px;height: 80px;" src="/svg/password-lock.svg"><div class="small-4 columns large-centered small-centered"><input type="password" class="form-control password-holder vdoPlayerPwdField" placeholder="').f(i.getPath(!1,["wizPlayer","enterPassword"]),i,"h").w('"><span class="pwd-error hide">').f(i.getPath(!1,["wizPlayer","passwordInvalid"]),i,"h").w('</span><a class="button wiz-overlay-btn passwordGoBtn">').f(i.getPath(!1,["wizPlayer","go"]),i,"h").w("</a></div></div>")}function ne(e,i){return e.w('<div class="video-container hippo-video-player hv-new-player" id=').f(i.get(["id"],!1),i,"h").w('><div id="personalisedVideoLoading" class="personalised-video-loading-page" style="display: block;"><div class="loader-wrap"><div class="rp-loader"></div></div></div></div>')}function oe(e,i){return e.w('<div class="video-container hippo-video-player hv-new-player" id=').f(i.get(["id"],!1),i,"h").w(">").h("select",i,{block:re},{key:i.get(["privacy"],!1)},"h").w(" ").h("select",i,{block:ce},{key:i.get(["privacy"],!1)},"h").w(" ").h("eq",i,{block:pe},{key:i.get(["privacy"],!1),value:7},"h").w(" ").h("eq",i,{block:ye},{key:i.get(["privacy"],!1),value:2},"h").w("</div>")}function re(e,i){return e.w(" ").h("eq",i,{},{value:0},"h").w(" ").h("eq",i,{},{value:3},"h").w(" ").h("eq",i,{},{value:4},"h").w(" ").h("any",i,{block:le},{},"h").w(" ")}function le(e,i){return e.w('<div class="medium-12 columns access-denied-pop text-center"><img class="access-denied-icon" src="/svg/access-denied.svg"><h3>').h("eq",i,{else:de,block:he},{key:i.get(["privacy"],!1),value:3},"h").w("</h3></div>")}function de(e,i){return e.f(i.getPath(!1,["wizPlayer","permissionToView"]),i,"h")}function he(e,i){return e.f(i.getPath(!1,["wizPlayer","watchExpired"]),i,"h")}function ce(e,i){return e.w(" ").h("eq",i,{},{value:5},"h").w(" ").h("eq",i,{},{value:6},"h").w(" ").h("any",i,{block:ue},{},"h").w(" ")}function ue(e,i){return e.w('<div class="medium-12 columns access-denied-pop text-center"><img class="access-denied-icon" src="').f(i.get(["staticImgDomain"],!1),i,"h").w('/svg/warning.svg" width="80"><h3 class="delete-video-msg">').f(i.getPath(!1,["wizPlayer","accountDeactivated"]),i,"h").w("</h3></div>")}function pe(e,i){return e.w('<div class="medium-12 columns access-denied-pop text-center"><img class="access-denied-icon" src="').f(i.get(["staticImgDomain"],!1),i,"h").w('/svg/warning.svg" width="80"><h3 class="delete-video-msg">').f(i.getPath(!1,["wizPlayer","limitExceeded"]),i,"h").w('</h3><h3 class="delete-video-msg">').f(i.getPath(!1,["wizPlayer","contactOwner"]),i,"h").w("</h3></div>")}function ye(e,i){return e.w('<div class="medium-12 columns password-pop text-center"><img class="lock-icon" style="width: 80px;height: 80px;" src="/svg/password-lock.svg"><div class="small-4 columns large-centered small-centered"><input type="password" class="form-control password-holder vdoPlayerPwdField" placeholder="').f(i.getPath(!1,["wizPlayer","enterPassword"]),i,"h").w('"><span class="pwd-error hide">').f(i.getPath(!1,["wizPlayer","passwordInvalid"]),i,"h").w('</span><a class="button wiz-overlay-btn passwordGoBtn">').f(i.getPath(!1,["wizPlayer","go"]),i,"h").w("</a></div></div>")}e.register("templates/component/NewPlayerView",i),i.__dustBody=!0,t.__dustBody=!0,s.__dustBody=!0,a.__dustBody=!0,n.__dustBody=!0,o.__dustBody=!0,r.__dustBody=!0,l.__dustBody=!0,d.__dustBody=!0,h.__dustBody=!0,c.__dustBody=!0,u.__dustBody=!0,p.__dustBody=!0,y.__dustBody=!0,v.__dustBody=!0,m.__dustBody=!0,g.__dustBody=!0,f.__dustBody=!0,w.__dustBody=!0,b.__dustBody=!0,P.__dustBody=!0,k.__dustBody=!0,C.__dustBody=!0,_.__dustBody=!0,S.__dustBody=!0,x.__dustBody=!0,$.__dustBody=!0,T.__dustBody=!0,L.__dustBody=!0,B.__dustBody=!0,F.__dustBody=!0,A.__dustBody=!0,V.__dustBody=!0,I.__dustBody=!0,E.__dustBody=!0,M.__dustBody=!0,H.__dustBody=!0,z.__dustBody=!0,q.__dustBody=!0,R.__dustBody=!0,D.__dustBody=!0,O.__dustBody=!0,W.__dustBody=!0,N.__dustBody=!0,J.__dustBody=!0,U.__dustBody=!0,j.__dustBody=!0,Q.__dustBody=!0,X.__dustBody=!0,Z.__dustBody=!0,K.__dustBody=!0,G.__dustBody=!0,Y.__dustBody=!0,ee.__dustBody=!0,ie.__dustBody=!0,te.__dustBody=!0,se.__dustBody=!0,ae.__dustBody=!0,ne.__dustBody=!0,oe.__dustBody=!0,re.__dustBody=!0,le.__dustBody=!0,de.__dustBody=!0,he.__dustBody=!0,ce.__dustBody=!0,ue.__dustBody=!0,pe.__dustBody=!0,ye.__dustBody=!0}(e),function(i,t){var s;return e.render("templates/component/NewPlayerView",i,(function(e,i){if("function"==typeof t)try{t(e,i)}catch(e){}if(e)throw e;s=i})),s}}.apply(i,s))||(e.exports=a)},79845:function(e,i,t){var s,a;s=[t(83457),t(53931)],void 0===(a=function(e,i){return function(e){function i(e,i){return e.x(i.get(["isPrivacy"],!1),i,{else:t,block:ie},{})}function t(e,i){return e.x(i.get(["initial"],!1),i,{else:s,block:ee},{})}function s(e,i){return e.w('<div class="hippo-video-player new-sdk" id=').f(i.get(["id"],!1),i,"h").w('><div class="se-crop-scale">\x3c!-- <canvas class="blurred-bg-video" style="position: absolute;left: 0;top: 0;width: 100%;height: 100%;filter: blur(20px);-webkit-filter: blur(20px);transform: scale(1.2);"></canvas> --\x3e<div class="primary-video-overflow-container"><div class="primary-video-container">').x(i.get(["isImageMode"],!1),i,{else:a,block:y},{}).w("</div></div>").nx(i.get(["isImageMode"],!1),i,{block:v},{}).w('<canvas class="renderless-overlay" style="position: absolute;width: 100%;height: 100%"></canvas></div>').nx(i.get(["isImageMode"],!1),i,{block:g},{}).w('<div id="personalizeChapterId" class="hp-menu-tog hide"><img src="').f(i.get(["origin"],!1),i,"h").w('/svg/hamburger-white.svg" width="16"></div><div id="personalizeChaptersListId" class="hp-tog-content hide"><a class="chapter-close" id="chapterCloseId"><img src="').f(i.get(["origin"],!1),i,"h").w('/svg/close-gray.svg" width="10"></a><br><div id="chaptersListId"></div></div><div class="error-overlay hide" style="position:absolute;width:100%;height:100%;background: rgba(0,0,0,0.2);z-index:2;background-repeat: no-repeat;background-size: contain;"><div class="error-reason-div"><img src="').f(i.get(["origin"],!1),i,"h").w('/svg/warning.svg" class="status-warning" /><div class="error-reason"></div></div></div><div class="player-touch-guard"></div>').nx(i.get(["isImageMode"],!1),i,{block:S},{}).h("select",i,{block:N},{key:i.get(["privacy"],!1)},"h").w(" ").h("select",i,{block:Q},{key:i.get(["privacy"],!1)},"h").w(" ").h("eq",i,{block:Z},{key:i.get(["privacy"],!1),value:7},"h").w(" ").h("eq",i,{block:K},{key:i.get(["privacy"],!1),value:2},"h").w("</div>").nx(i.get(["isImageMode"],!1),i,{block:G},{})}function a(e,i){return e.x(i.get(["isAudioOnly"],!1),i,{block:n},{}).w('<video class="primary-video" id="primary-video" crossorigin="anonymous" controls playsinline>').h("eq",i,{block:l},{key:i.get(["type"],!1),value:"url"},"h").w("Your browser does not support the video tag.").x(i.get(["subtitlesEnabled"],!1),i,{block:h},{}).w('</video><canvas class="se-effects-canvas"></canvas><div class="se-effects-components-container"></div>').x(i.get(["showSetFrame"],!1),i,{block:p},{})}function n(e,i){return e.w("<div>").x(i.get(["isLessonly"],!1),i,{else:o,block:r},{}).w("</div>")}function o(e,i){return e.w('<img src="').f(i.get(["origin"],!1),i,"h").w('/img/onlyaudio.jpg" style="width:100%;height:100%" />')}function r(e,i){return e.w('<img src="').f(i.get(["origin"],!1),i,"h").w('/img/onlyaudio_lessonly.jpg" style="width:100%;height:100%" />')}function l(e,i){return e.w(" <source ").x(i.get(["addSourceAudioType"],!1),i,{block:d},{}).w(' crossorigin="anonymous" src=').f(i.get(["src"],!1),i,"h").w(">")}function d(e,i){return e.w(' type="audio/mp3" ')}function h(e,i){return e.x(i.get(["subtitlesFromServer"],!1),i,{else:c,block:u},{})}function c(e,i){return e.w('<track label="English" kind="subtitles" id="subtitleTrack" srclang="eng" src="').f(i.get(["subtitles"],!1),i,"h").w('" default="">')}function u(e,i){return e.w('<track label="English" kind="subtitles" id="subtitleTrack" srclang="eng" src="').f(i.get(["domain"],!1),i,"h").w("/video_delivery/subtitles/").f(i.get(["token"],!1),i,"h").w('" default="">')}function p(e,i){return e.w('<video class="hidden-video" controls playsinline crossorigin="anonymous" style="display: none;"><source crossorigin="anonymous" src=').f(i.get(["src"],!1),i,"h").w(">").f(i.getPath(!1,["wizPlayer","browserDoesNotSupport"]),i,"h").w("</video>")}function y(e,i){return e.w('<img src="').f(i.get(["src"],!1),i,"h").w('" class="primary-video" id="gifImage" style="position: absolute;left: 0;top: 0;width: 100%;height: 100%;">')}function v(e,i){return e.nx(i.get(["isDelivery"],!1),i,{block:m},{})}function m(e,i){return e.w('<div class="secondary-video-overflow-container"><div class="secondary-video-container"><video class="secondary-video" crossorigin="anonymous" ><source crossorigin="anonymous" src=').f(i.get(["audioSrc"],!1),i,"h").w('></video></div></div><textarea id="seTextEditable" class="se-text-editable custom-scroll hide" spellcheck="false" placeholder="Enter text here"></textarea><div class="se-components-container"></div><div class="se-crop-resizable hide"></div><div class="se-crop-highlighter se-crop-highlighter-top"></div><div class="se-crop-highlighter se-crop-highlighter-left"></div><div class="se-crop-highlighter se-crop-highlighter-bottom"></div><div class="se-crop-highlighter se-crop-highlighter-right"></div>')}function g(e,i){return e.w('<div class="se-components-droppable"></div><div class="player-border"></div>').x(i.get(["thumbnail"],!1),i,{block:f},{}).w('<div class="play-btn-container full-screen-container"><div class="play-center-ico text-center"><img src="').f(i.get(["origin"],!1),i,"h").w('/svg/play-white.svg"></div>').x(i.get(["previewVideo"],!1),i,{block:b},{}).w('</div><div class="replay-btn-container full-screen-container hide"><img src="').f(i.get(["origin"],!1),i,"h").w('/img/videoreplay.png" style="width: 20%; display: block; position: relative;top: 30%;margin:auto;z-index:100;"></div><div class="player-loading-overlay full-screen-container hide"><div><img src="').f(i.get(["origin"],!1),i,"h").w('/img/videoloading.gif"></div></div>').x(i.get(["isLandingPageVideo"],!1),i,{else:P,block:k},{}).x(i.get(["isMutedAutoPlay"],!1),i,{block:C},{}).x(i.get(["showHoverActions"],!1),i,{block:_},{})}function f(e,i){return e.nx(i.get(["isAudioOnly"],!1),i,{block:w},{})}function w(e,i){return e.w('<div class="thumbnail-container full-screen-container" style="position:absolute;width:100%;height:100%;cursor: pointer;z-index:1"><img src="').f(i.get(["thumbnail"],!1),i,"h").w('" id="playerThumbnail" style="position: absolute;left: 0;top: 0;width: 100%;height: 100%;" onerror="this.style.display=\'none\'"></div>')}function b(e,i){return e.w('<video src="').f(i.get(["previewVideo"],!1),i,"h").w('" crossorigin="anonymous" autoplay muted loop />')}function P(e,i){return e.w('<div id="personalisedVideoLoading" class="personalised-video-loading"><div class="inner-container"><center><div class="bar-loading"><div></div><div></div><div></div><div></div></div></center></div></div>')}function k(e,i){return e.w('<div id="personalisedVideoLoading" class="personalised-video-loading-page"><div class="loader-wrap"><div class="rp-loader"></div></div></div>')}function C(e,i){return e.w('<div class="player-info muted-autoplay cursor-pointer hide"><img src="').f(i.get(["origin"],!1),i,"h").w('/svg/mute.svg" alt="volume" /> ').f(i.getPath(!1,["wizPlayer","clickToUnmute"]),i,"h").w("</div>")}function _(e,i){return e.w('<div class="player-actions-container full-screen-container hide"><div class="player-actions text-center"><span class="player-action player-rewind-action"><img src="').f(i.get(["origin"],!1),i,"h").w('/svg/rewind.svg" alt="Rewind" /></span><span class="player-action player-play-pause-action"><img src="').f(i.get(["origin"],!1),i,"h").w('/svg/play-white.svg" alt="Play/Pause" /></span><span class="player-action player-forward-action"><img src="').f(i.get(["origin"],!1),i,"h").w('/svg/forward.svg" alt="Forward" /></span></div></div>')}function S(e,i){return e.w('<div class="canvas-preview-container ').x(i.get(["showComments"],!1),i,{block:x},{}).w('" id="canvasPreviewContainer" style="display:none;"><canvas class="quickpreview-canvas" width=128 height=72></canvas>').x(i.get(["showComments"],!1),i,{block:$},{}).x(i.get(["showSetFrame"],!1),i,{block:T},{}).w('<input type="hidden" id="canvasHoverTime" /></div><div class="subtitles-line" id="subtitlesTrack"></div><div class="player-controls-container player-controls-inside"><a class="play-pause-button" id="pauseAndPlayBtn"><img src="').f(i.get(["origin"],!1),i,"h").w('/svg/play-white.svg"></a><div class="components-marker-container"></div><div class="components-time-container"><div class="se-clip-time hide"><span class="se-selected-type"></span><div class="timer-pop-up hide"><div class="timer-start-section"><div class="timer-label">').f(i.getPath(!1,["wizPlayer","startTime"]),i,"h").w('</div><input type="text" class="timer-start-input"><div class="timer-arrow-section"><div class="arrow up-arrow timer-input-btn timer-start-btn-plus"></div><div class="arrow down-arrow timer-input-btn timer-start-btn-minus"></div></div></div><div class="timer-stop-section"><div class="timer-label">').f(i.getPath(!1,["wizPlayer","stopTime"]),i,"h").w('</div><input type="text" class="timer-stop-input"><div class="timer-arrow-section"><div class="arrow up-arrow timer-input-btn timer-stop-btn-plus"></div><div class="arrow down-arrow timer-input-btn timer-stop-btn-minus"></div></div></div><div class="timer-div-arrow"></div></div></div></div><div class="notification-line"></div><div class="cta-indicator hide"><div id="ctaIndicatorInner" class="cta-indicator-inner"></div></div><div id="chapterIndicatorId" class="hp-indicator hide"></div><div class="player-progress"><div class="click-area-extended"></div></div><span class="player-currenttime"></span>').x(i.get(["showReactions"],!1),i,{block:L},{}).x(i.get(["canPlayerLogoView"],!1),i,{block:B},{}).w('<div class="actions-container pull-right">').x(i.get(["isContainsAudio"],!1),i,{else:E,block:z},{}).x(i.get(["showSpeedSettings"],!1),i,{block:q},{}).x(i.get(["qualityControl"],!1),i,{block:R},{}).x(i.get(["subtitlesEnabled"],!1),i,{block:D},{}).x(i.get(["fullscreenControl"],!1),i,{block:O},{}).x(i.get(["allowDownload"],!1),i,{block:W},{}).w('</div></div><div class="notification-line-onplay"></div><div class="player-progress for-reactions"><div class="click-area-extended"></div></div><div id="ctaPlayerComps" class="cta-player-comps hide"></div><div id="ctaPlayerAddComp" class="cta-player-add-container hide"></div>')}function x(e,i){return e.w(" canvas-preview-with-comment ")}function $(e,i){return e.w('<div class="preview-add-comment" id="addCommentFromCanvas"><img src="').f(i.get(["origin"],!1),i,"h").w('/svg/icon-discussions.svg" /> ').f(i.getPath(!1,["wizPlayer","addComments"]),i,"h").w("</div>")}function T(e,i){return e.w('<h6 class="set-frame-btn">').f(i.getPath(!1,["wizPlayer","setTheFrame"]),i,"h").w("</h6>")}function L(e,i){return e.w('<div class="emoji-wrap"><span><img class="react-now" reaction_id="1" id="reaction_id-1" src="').f(i.get(["origin"],!1),i,"h").w('/emoji-type-1.svg" width="16"></span><span><img class="react-now" reaction_id="2" id="reaction_id-2" src="').f(i.get(["origin"],!1),i,"h").w('/svg/emoji-type-2.svg" width="16"></span><span><img class="react-now" reaction_id="3" id="reaction_id-3" src="').f(i.get(["origin"],!1),i,"h").w('/svg/emoji-type-3.svg" width="16"></span><span><img class="react-now" reaction_id="4" id="reaction_id-4" src="').f(i.get(["origin"],!1),i,"h").w('/svg/emoji-type-4.svg" width="16"></span><span><img class="react-now" reaction_id="5" id="reaction_id-5" src="').f(i.get(["origin"],!1),i,"h").w('/svg/emoji-type-5.svg" width="16"></span><span><img class="react-now" reaction_id="6" id="reaction_id-6" src="').f(i.get(["origin"],!1),i,"h").w('/svg/emoji-type-6.svg" width="16"></span></div>')}function B(e,i){return e.w('<div class="player-logo pull-right">').x(i.get(["playerLogo"],!1),i,{else:F,block:A},{}).w("</div>")}function F(e,i){return e.w('<a href="https://www.hippovideo.io/" target="_blank" class="brand-logo"><img src="').f(i.get(["origin"],!1),i,"h").w('/svg/hippo-player-logo.svg" alt="logo" /></a>')}function A(e,i){return e.w("<a ").x(i.get(["addLinkToPlayerLogo"],!1),i,{block:V},{}).w(' target="_blank" class="brand-logo"><img src="').f(i.get(["playerLogo"],!1),i,"h").w('" alt="logo" /></a>')}function V(e,i){return e.x(i.get(["playerLogoLink"],!1),i,{block:I},{})}function I(e,i){return e.w('href="').f(i.get(["playerLogoLink"],!1),i,"h").w('"')}function E(e,i){return e.x(i.get(["isLessonly"],!1),i,{else:M,block:H},{})}function M(e,i){return e.w('<span class="no-audio-box"><img class="audio-img mute player-volume" src="').f(i.get(["origin"],!1),i,"h").w('/svg/no-audio-mute.svg" alt="volume" width="15" /><div class="no-audio-pop">This video has no audio</div></span>')}function H(e,i){return e.w('<span class="player-audio controls-btn" id="videoVolumeBtn"><img class="audio-img high player-volume" src="').f(i.get(["origin"],!1),i,"h").w('/svg/volume-high.svg" alt="volume" /><div class="volume-container" style="display: none;"><div class="player-audio-slider"></div></div></span>')}function z(e,i){return e.w('<span class="player-audio controls-btn" id="videoVolumeBtn"><img class="audio-img high player-volume" src="').f(i.get(["origin"],!1),i,"h").w('/svg/volume-high.svg" alt="volume" /><div class="volume-container" style="display: none;"><div class="player-audio-slider"></div></div></span>')}function q(e,i){return e.w('<span class="controls-btn video-speed-btn"><span class="player-speed-label" style="color: white">1X</span><div class="quality-container" style="display: none;"><ul class="quality-list"><li data-id="0.5">0.5X</li><li data-id="1" class="active">1X</li><li data-id="1.5">1.5X</li><li data-id="2">2X</li><li data-id="5">5X</li></ul></div></span>')}function R(e,i){return e.w('<span class="player-quality controls-btn" id="videoQualityBtn"><img class="player-quality-icon" src="').f(i.get(["origin"],!1),i,"h").w('/svg/setting-white.svg" alt="quality" /><div class="quality-container" style="display: none;"><ul class="quality-list"></ul></div></span>')}function D(e,i){return e.w('<span class="player-subtitle controls-btn" id="videoSubtitleBtn"><img class="player-subtitle-icon" src="').f(i.get(["origin"],!1),i,"h").w('/img/subtitle-cc.png" alt="subtitle" /></span>')}function O(e,i){return e.w('<span class="player-fullscreen controls-btn" id="videoFullscreenBtn"><img class="player-fullscreen-icon" src="').f(i.get(["origin"],!1),i,"h").w('/svg/fullscreen.svg" alt="fullscreen" /></span>')}function W(e,i){return e.w('<span class="player-download controls-btn" id="videoDownloadBtn"><img class="player-download-icon" src="').f(i.get(["origin"],!1),i,"h").w('/svg/download-white.svg" alt="download" /></span>')}function N(e,i){return e.w(" ").h("eq",i,{},{value:0},"h").w(" ").h("eq",i,{},{value:3},"h").w(" ").h("eq",i,{},{value:4},"h").w(" ").h("any",i,{block:J},{},"h").w(" ")}function J(e,i){return e.w('<div class="medium-12 columns access-denied-pop text-center"><img class="access-denied-icon" src="').f(i.get(["origin"],!1),i,"h").w('/svg/access-denied.svg"><h3>').h("eq",i,{else:U,block:j},{key:i.get(["privacy"],!1),value:3},"h").w("</h3></div>")}function U(e,i){return e.f(i.getPath(!1,["wizPlayer","permissionToView"]),i,"h")}function j(e,i){return e.f(i.getPath(!1,["wizPlayer","watchExpired"]),i,"h")}function Q(e,i){return e.w(" ").h("eq",i,{},{value:5},"h").w(" ").h("eq",i,{},{value:6},"h").w(" ").h("any",i,{block:X},{},"h").w(" ")}function X(e,i){return e.w('<div class="medium-12 columns access-denied-pop text-center"><img class="access-denied-icon" src="').f(i.get(["origin"],!1),i,"h").w('/svg/warning.svg" width="80"><h3 class="delete-video-msg">').f(i.getPath(!1,["wizPlayer","accountDeactivated"]),i,"h").w("</h3></div>")}function Z(e,i){return e.w('<div class="medium-12 columns access-denied-pop text-center"><img class="access-denied-icon" src="').f(i.get(["origin"],!1),i,"h").w('/svg/warning.svg" width="80"><h3 class="delete-video-msg">').f(i.getPath(!1,["wizPlayer","limitExceeded"]),i,"h").w('</h3><h3 class="delete-video-msg">').f(i.getPath(!1,["wizPlayer","contactOwner"]),i,"h").w("</h3></div>")}function K(e,i){return e.w('<div class="medium-12 columns password-pop text-center"><img class="lock-icon" style="width: 80px;height: 80px;" src="').f(i.get(["origin"],!1),i,"h").w('/svg/password-lock.svg"><div class="small-4 columns large-centered small-centered"><input type="password" class="form-control password-holder vdoPlayerPwdField" placeholder="').f(i.getPath(!1,["wizPlayer","enterPassword"]),i,"h").w('"><span class="pwd-error hide">').f(i.getPath(!1,["wizPlayer","passwordInvalid"]),i,"h").w('</span><a class="button wiz-overlay-btn passwordGoBtn">').f(i.getPath(!1,["wizPlayer","go"]),i,"h").w("</a></div></div>")}function G(e,i){return e.x(i.get(["showReactions"],!1),i,{block:Y},{})}function Y(e,i){return e.w('<div class="emoji-wrap-onplay"><span><img class="react-now-play" reaction_id="1" id="reaction_id-1" src="').f(i.get(["origin"],!1),i,"h").w('/emoji-type-1.svg" width="16"></span><span><img class="react-now-play" reaction_id="2" id="reaction_id-2" src="').f(i.get(["origin"],!1),i,"h").w('/svg/emoji-type-2.svg" width="16"></span><span><img class="react-now-play" reaction_id="3" id="reaction_id-3" src="').f(i.get(["origin"],!1),i,"h").w('/svg/emoji-type-3.svg" width="16"></span><span><img class="react-now-play" reaction_id="4" id="reaction_id-4" src="').f(i.get(["origin"],!1),i,"h").w('/svg/emoji-type-4.svg" width="16"></span><span><img class="react-now-play" reaction_id="5" id="reaction_id-5" src="').f(i.get(["origin"],!1),i,"h").w('/svg/emoji-type-5.svg" width="16"></span><span><img class="react-now-play" reaction_id="6" id="reaction_id-6" src="').f(i.get(["origin"],!1),i,"h").w('/svg/emoji-type-6.svg" width="16"></span></div>')}function ee(e,i){return e.w('<div class="hippo-video-player new-sdk" id=').f(i.get(["id"],!1),i,"h").w('><div id="personalisedVideoLoading" class="personalised-video-loading-page" style="display: block;"><div class="loader-wrap"><div class="rp-loader"></div></div></div></div>')}function ie(e,i){return e.w('<div class="hippo-video-player new-sdk" id=').f(i.get(["id"],!1),i,"h").w(">").h("select",i,{block:te},{key:i.get(["privacy"],!1)},"h").w(" ").h("select",i,{block:oe},{key:i.get(["privacy"],!1)},"h").w(" ").h("eq",i,{block:le},{key:i.get(["privacy"],!1),value:7},"h").w(" ").h("eq",i,{block:de},{key:i.get(["privacy"],!1),value:2},"h").w("</div>")}function te(e,i){return e.w(" ").h("eq",i,{},{value:0},"h").w(" ").h("eq",i,{},{value:3},"h").w(" ").h("eq",i,{},{value:4},"h").w(" ").h("any",i,{block:se},{},"h").w(" ")}function se(e,i){return e.w('<div class="medium-12 columns access-denied-pop text-center"><img class="access-denied-icon" src="').f(i.get(["origin"],!1),i,"h").w('/svg/access-denied.svg"><h3>').h("eq",i,{else:ae,block:ne},{key:i.get(["privacy"],!1),value:3},"h").w("</h3></div>")}function ae(e,i){return e.f(i.getPath(!1,["wizPlayer","permissionToView"]),i,"h")}function ne(e,i){return e.f(i.getPath(!1,["wizPlayer","watchExpired"]),i,"h")}function oe(e,i){return e.w(" ").h("eq",i,{},{value:5},"h").w(" ").h("eq",i,{},{value:6},"h").w(" ").h("any",i,{block:re},{},"h").w(" ")}function re(e,i){return e.w('<div class="medium-12 columns access-denied-pop text-center"><img class="access-denied-icon" src="').f(i.get(["origin"],!1),i,"h").w('/svg/warning.svg" width="80"><h3 class="delete-video-msg">').f(i.getPath(!1,["wizPlayer","accountDeactivated"]),i,"h").w("</h3></div>")}function le(e,i){return e.w('<div class="medium-12 columns access-denied-pop text-center"><img class="access-denied-icon" src="').f(i.get(["origin"],!1),i,"h").w('/svg/warning.svg" width="80"><h3 class="delete-video-msg">').f(i.getPath(!1,["wizPlayer","limitExceeded"]),i,"h").w('</h3><h3 class="delete-video-msg">').f(i.getPath(!1,["wizPlayer","contactOwner"]),i,"h").w("</h3></div>")}function de(e,i){return e.w('<div class="medium-12 columns password-pop text-center"><img class="lock-icon" style="width: 80px;height: 80px;" src="').f(i.get(["origin"],!1),i,"h").w('/svg/password-lock.svg"><div class="small-4 columns large-centered small-centered"><input type="password" class="form-control password-holder vdoPlayerPwdField" placeholder="').f(i.getPath(!1,["wizPlayer","enterPassword"]),i,"h").w('"><span class="pwd-error hide">').f(i.getPath(!1,["wizPlayer","passwordInvalid"]),i,"h").w('</span><a class="button wiz-overlay-btn passwordGoBtn">').f(i.getPath(!1,["wizPlayer","go"]),i,"h").w("</a></div></div>")}e.register("templates/component/sdk_videoplayer",i),i.__dustBody=!0,t.__dustBody=!0,s.__dustBody=!0,a.__dustBody=!0,n.__dustBody=!0,o.__dustBody=!0,r.__dustBody=!0,l.__dustBody=!0,d.__dustBody=!0,h.__dustBody=!0,c.__dustBody=!0,u.__dustBody=!0,p.__dustBody=!0,y.__dustBody=!0,v.__dustBody=!0,m.__dustBody=!0,g.__dustBody=!0,f.__dustBody=!0,w.__dustBody=!0,b.__dustBody=!0,P.__dustBody=!0,k.__dustBody=!0,C.__dustBody=!0,_.__dustBody=!0,S.__dustBody=!0,x.__dustBody=!0,$.__dustBody=!0,T.__dustBody=!0,L.__dustBody=!0,B.__dustBody=!0,F.__dustBody=!0,A.__dustBody=!0,V.__dustBody=!0,I.__dustBody=!0,E.__dustBody=!0,M.__dustBody=!0,H.__dustBody=!0,z.__dustBody=!0,q.__dustBody=!0,R.__dustBody=!0,D.__dustBody=!0,O.__dustBody=!0,W.__dustBody=!0,N.__dustBody=!0,J.__dustBody=!0,U.__dustBody=!0,j.__dustBody=!0,Q.__dustBody=!0,X.__dustBody=!0,Z.__dustBody=!0,K.__dustBody=!0,G.__dustBody=!0,Y.__dustBody=!0,ee.__dustBody=!0,ie.__dustBody=!0,te.__dustBody=!0,se.__dustBody=!0,ae.__dustBody=!0,ne.__dustBody=!0,oe.__dustBody=!0,re.__dustBody=!0,le.__dustBody=!0,de.__dustBody=!0}(e),function(i,t){var s;return e.render("templates/component/sdk_videoplayer",i,(function(e,i){if("function"==typeof t)try{t(e,i)}catch(e){}if(e)throw e;s=i})),s}}.apply(i,s))||(e.exports=a)},31230:function(e,i,t){var s,a;s=[t(83457),t(53931)],void 0===(a=function(e,i){return function(e){function i(e,i){return e.x(i.get(["isPrivacy"],!1),i,{else:t,block:ie},{})}function t(e,i){return e.x(i.get(["initial"],!1),i,{else:s,block:ee},{})}function s(e,i){return e.w('<div class="hippo-video-player" id=').f(i.get(["id"],!1),i,"h").w('><div class="se-crop-scale">\x3c!-- <canvas class="blurred-bg-video" style="position: absolute;left: 0;top: 0;width: 100%;height: 100%;filter: blur(20px);-webkit-filter: blur(20px);transform: scale(1.2);"></canvas> --\x3e<div class="primary-video-overflow-container"><div class="primary-video-container">').x(i.get(["isImageMode"],!1),i,{else:a,block:y},{}).w("</div></div>").nx(i.get(["isImageMode"],!1),i,{block:v},{}).w('<canvas class="renderless-overlay" style="position: absolute;width: 100%;height: 100%"></canvas></div>').nx(i.get(["isImageMode"],!1),i,{block:g},{}).w('<div id="personalizeChapterId" class="hp-menu-tog hide"><img src="/svg/hamburger-white.svg" width="16"></div><div id="personalizeChaptersListId" class="hp-tog-content hide"><a class="chapter-close" id="chapterCloseId"><img src="/svg/close-gray.svg" width="10"></a><br><div id="chaptersListId"></div></div><div class="error-overlay hide" style="position:absolute;width:100%;height:100%;background: rgba(0,0,0,0.2);z-index:2;background-repeat: no-repeat;background-size: contain;"><div class="error-reason-div"><img src="').f(i.get(["staticImgDomain"],!1),i,"h").w('/svg/warning.svg" class="status-warning" /><div class="error-reason"></div></div></div><div class="player-touch-guard"></div>').nx(i.get(["isImageMode"],!1),i,{block:S},{}).h("select",i,{block:N},{key:i.get(["privacy"],!1)},"h").w(" ").h("select",i,{block:Q},{key:i.get(["privacy"],!1)},"h").w(" ").h("eq",i,{block:Z},{key:i.get(["privacy"],!1),value:7},"h").w(" ").h("eq",i,{block:K},{key:i.get(["privacy"],!1),value:2},"h").w("</div>").nx(i.get(["isImageMode"],!1),i,{block:G},{})}function a(e,i){return e.x(i.get(["isAudioOnly"],!1),i,{block:n},{}).w('<video class="primary-video" id="primary-video" crossorigin="anonymous" controls playsinline>').h("eq",i,{block:l},{key:i.get(["type"],!1),value:"url"},"h").w("Your browser does not support the video tag.").x(i.get(["subtitlesEnabled"],!1),i,{block:h},{}).w('</video><canvas class="se-effects-canvas"></canvas><div class="se-effects-components-container"></div>').x(i.get(["showSetFrame"],!1),i,{block:p},{})}function n(e,i){return e.w("<div>").x(i.get(["isLessonly"],!1),i,{else:o,block:r},{}).w("</div>")}function o(e,i){return e.w('<img src="/img/onlyaudio.jpg" style="width:100%;height:100%" />')}function r(e,i){return e.w('<img src="/img/onlyaudio_lessonly.jpg" style="width:100%;height:100%" />')}function l(e,i){return e.w(" <source ").x(i.get(["addSourceAudioType"],!1),i,{block:d},{}).w(" src=").f(i.get(["src"],!1),i,"h").w(">")}function d(e,i){return e.w(' type="audio/basic" ')}function h(e,i){return e.x(i.get(["subtitlesFromServer"],!1),i,{else:c,block:u},{})}function c(e,i){return e.w('<track label="English" kind="subtitles" id="subtitleTrack" srclang="eng" src="').f(i.get(["subtitles"],!1),i,"h").w('" default="">')}function u(e,i){return e.w('<track label="English" kind="subtitles" id="subtitleTrack" srclang="eng" src="').f(i.get(["domain"],!1),i,"h").w("/video_delivery/subtitles/").f(i.get(["token"],!1),i,"h").w('" default="">')}function p(e,i){return e.w('<video class="hidden-video" controls playsinline crossorigin="anonymous" style="display: none;"><source src=').f(i.get(["src"],!1),i,"h").w(">").f(i.getPath(!1,["wizPlayer","browserDoesNotSupport"]),i,"h").w("</video>")}function y(e,i){return e.w('<img src="').f(i.get(["src"],!1),i,"h").w('" class="primary-video" id="gifImage" style="position: absolute;left: 0;top: 0;width: 100%;height: 100%;">')}function v(e,i){return e.nx(i.get(["isDelivery"],!1),i,{block:m},{})}function m(e,i){return e.w('<div class="secondary-video-overflow-container"><div class="secondary-video-container"><video class="secondary-video" crossorigin="anonymous" ><source src=').f(i.get(["audioSrc"],!1),i,"h").w('></video></div></div><textarea id="seTextEditable" class="se-text-editable custom-scroll hide" spellcheck="false" placeholder="Enter text here"></textarea><div class="se-components-container"></div><div class="se-crop-resizable hide"></div><div class="se-crop-highlighter se-crop-highlighter-top"></div><div class="se-crop-highlighter se-crop-highlighter-left"></div><div class="se-crop-highlighter se-crop-highlighter-bottom"></div><div class="se-crop-highlighter se-crop-highlighter-right"></div>')}function g(e,i){return e.w('<div class="se-components-droppable"></div><div class="player-border"></div>').x(i.get(["thumbnail"],!1),i,{block:f},{}).w('<div class="play-btn-container full-screen-container"><div class="play-center-ico text-center"><img src="').f(i.get(["staticImgDomain"],!1),i,"h").w('/svg/play.svg"></div>').x(i.get(["previewVideo"],!1),i,{block:b},{}).w('</div><div class="replay-btn-container full-screen-container hide"><img src="/img/videoreplay.png" style="width: 20%; display: block; position: relative;top: 30%;margin:auto;z-index:100;"></div><div class="player-loading-overlay full-screen-container hide"><div><img src="/img/videoloading.gif"></div></div>').x(i.get(["isLandingPageVideo"],!1),i,{else:P,block:k},{}).x(i.get(["isMutedAutoPlay"],!1),i,{block:C},{}).x(i.get(["showHoverActions"],!1),i,{block:_},{})}function f(e,i){return e.nx(i.get(["isAudioOnly"],!1),i,{block:w},{})}function w(e,i){return e.w('<div class="thumbnail-container full-screen-container" style="position:absolute;width:100%;height:100%;cursor: pointer;z-index:1"><img src="').f(i.get(["thumbnail"],!1),i,"h").w('" id="playerThumbnail" style="position: absolute;left: 0;top: 0;width: 100%;height: 100%;" onerror="this.style.display=\'none\'"></div>')}function b(e,i){return e.w('<video src="').f(i.get(["previewVideo"],!1),i,"h").w('" autoplay muted loop />')}function P(e,i){return e.w('<div id="personalisedVideoLoading" class="personalised-video-loading"><div class="inner-container"><center><div class="bar-loading"><div></div><div></div><div></div><div></div></div></center></div></div>')}function k(e,i){return e.w('<div id="personalisedVideoLoading" class="personalised-video-loading-page"><div class="loader-wrap"><div class="rp-loader"></div></div></div>')}function C(e,i){return e.w('<div class="player-info muted-autoplay cursor-pointer hide"><img src="/svg/mute.svg" alt="volume" /> ').f(i.getPath(!1,["wizPlayer","clickToUnmute"]),i,"h").w("</div>")}function _(e,i){return e.w('<div class="player-actions-container full-screen-container hide"><div class="player-actions text-center"><span class="player-action player-rewind-action"><img src="/svg/rewind.svg" alt="Rewind" /></span><span class="player-action player-play-pause-action"><img src="').f(i.get(["staticImgDomain"],!1),i,"h").w('/svg/play.svg" alt="Play/Pause" /></span><span class="player-action player-forward-action"><img src="/svg/forward.svg" alt="Forward" /></span></div></div>')}function S(e,i){return e.w('<div class="canvas-preview-container ').x(i.get(["showComments"],!1),i,{block:x},{}).w('" id="canvasPreviewContainer" style="display:none;"><img src="').f(i.get(["staticImgDomain"],!1),i,"h").w('/images/loading-more.svg" style="width: 175px;height: 90px;padding: 20px;display:none" id="quick-preview-loading"><canvas class="quickpreview-canvas" width=128 height=72></canvas>').x(i.get(["showComments"],!1),i,{block:$},{}).x(i.get(["showSetFrame"],!1),i,{block:T},{}).w('<input type="hidden" id="canvasHoverTime" /></div><div class="subtitles-line" id="subtitlesTrack"></div><div class="player-controls-container player-controls-inside"><a class="play-pause-button" id="pauseAndPlayBtn"><img src="').f(i.get(["staticImgDomain"],!1),i,"h").w('/svg/play.svg"></a><div class="components-marker-container"></div><div class="components-time-container"><div class="se-clip-time hide"><span class="se-selected-type"></span><div class="timer-pop-up hide"><div class="timer-start-section"><div class="timer-label">').f(i.getPath(!1,["wizPlayer","startTime"]),i,"h").w('</div><input type="text" class="timer-start-input"><div class="timer-arrow-section"><div class="arrow up-arrow timer-input-btn timer-start-btn-plus"></div><div class="arrow down-arrow timer-input-btn timer-start-btn-minus"></div></div></div><div class="timer-stop-section"><div class="timer-label">').f(i.getPath(!1,["wizPlayer","stopTime"]),i,"h").w('</div><input type="text" class="timer-stop-input"><div class="timer-arrow-section"><div class="arrow up-arrow timer-input-btn timer-stop-btn-plus"></div><div class="arrow down-arrow timer-input-btn timer-stop-btn-minus"></div></div></div><div class="timer-div-arrow"></div></div></div></div><div class="notification-line"></div><div class="cta-indicator hide"><div id="ctaIndicatorInner" class="cta-indicator-inner"></div></div><div id="chapterIndicatorId" class="hp-indicator hide"></div><div class="player-progress"><div class="click-area-extended"></div></div><span class="player-currenttime"></span>').x(i.get(["showReactions"],!1),i,{block:L},{}).x(i.get(["canPlayerLogoView"],!1),i,{block:B},{}).w('<div class="actions-container pull-right">').x(i.get(["isContainsAudio"],!1),i,{else:E,block:z},{}).x(i.get(["showSpeedSettings"],!1),i,{block:q},{}).x(i.get(["qualityControl"],!1),i,{block:R},{}).x(i.get(["subtitlesEnabled"],!1),i,{block:D},{}).x(i.get(["fullscreenControl"],!1),i,{block:O},{}).x(i.get(["allowDownload"],!1),i,{block:W},{}).w('</div></div><div class="notification-line-onplay"></div><div class="player-progress for-reactions"><div class="click-area-extended"></div></div><div id="ctaPlayerComps" class="cta-player-comps hide"></div><div id="ctaPlayerAddComp" class="cta-player-add-container hide"></div>')}function x(e,i){return e.w(" canvas-preview-with-comment ")}function $(e,i){return e.w('<div class="preview-add-comment" id="addCommentFromCanvas"><img src="/svg/icon-discussions.svg" /> ').f(i.getPath(!1,["wizPlayer","addComments"]),i,"h").w("</div>")}function T(e,i){return e.w('<h6 class="set-frame-btn">').f(i.getPath(!1,["wizPlayer","setTheFrame"]),i,"h").w("</h6>")}function L(e,i){return e.w('<div class="emoji-wrap"><span><img class="react-now" reaction_id="1" id="reaction_id-1" src="/svg/emoji-type-1.svg" width="16"></span><span><img class="react-now" reaction_id="2" id="reaction_id-2" src="/svg/emoji-type-2.svg" width="16"></span><span><img class="react-now" reaction_id="3" id="reaction_id-3" src="/svg/emoji-type-3.svg" width="16"></span><span><img class="react-now" reaction_id="4" id="reaction_id-4" src="/svg/emoji-type-4.svg" width="16"></span><span><img class="react-now" reaction_id="5" id="reaction_id-5" src="/svg/emoji-type-5.svg" width="16"></span><span><img class="react-now" reaction_id="6" id="reaction_id-6" src="/svg/emoji-type-6.svg" width="16"></span></div>')}function B(e,i){return e.w('<div class="player-logo pull-right">').x(i.get(["playerLogo"],!1),i,{else:F,block:A},{}).w("</div>")}function F(e,i){return e.w('<a href="https://www.hippovideo.io/" target="_blank" class="brand-logo"><img src="/svg/hippo-player-logo.svg" alt="logo" /></a>')}function A(e,i){return e.w("<a ").x(i.get(["addLinkToPlayerLogo"],!1),i,{block:V},{}).w(' target="_blank" class="brand-logo"><img src="').f(i.get(["playerLogo"],!1),i,"h").w('" alt="logo" /></a>')}function V(e,i){return e.x(i.get(["playerLogoLink"],!1),i,{block:I},{})}function I(e,i){return e.w('href="').f(i.get(["playerLogoLink"],!1),i,"h").w('"')}function E(e,i){return e.x(i.get(["isLessonly"],!1),i,{else:M,block:H},{})}function M(e,i){return e.w('<span class="no-audio-box"><img class="audio-img mute player-volume" src="/svg/no-audio-mute.svg" alt="volume" width="15" /><div class="no-audio-pop">This video has no audio</div></span>')}function H(e,i){return e.w('<span class="player-audio controls-btn" id="videoVolumeBtn"><img class="audio-img high player-volume" src="/svg/volume-high.svg" alt="volume" /><div class="volume-container" style="display: none;"><div class="player-audio-slider"></div></div></span>')}function z(e,i){return e.w('<span class="player-audio controls-btn" id="videoVolumeBtn"><img class="audio-img high player-volume" src="/svg/volume-high.svg" alt="volume" /><div class="volume-container" style="display: none;"><div class="player-audio-slider"></div></div></span>')}function q(e,i){return e.w('<span class="controls-btn video-speed-btn"><span class="player-speed-label" style="color: white">1X</span><div class="quality-container" style="display: none;"><ul class="quality-list"><li data-id="0.5">0.5X</li><li data-id="1" class="active">1X</li><li data-id="1.5">1.5X</li><li data-id="2">2X</li><li data-id="5">5X</li></ul></div></span>')}function R(e,i){return e.w('<span class="player-quality controls-btn" id="videoQualityBtn"><img class="player-quality-icon" src="/svg/setting-white.svg" alt="quality" /><div class="quality-container" style="display: none;"><ul class="quality-list"></ul></div></span>')}function D(e,i){return e.w('<span class="player-subtitle controls-btn" id="videoSubtitleBtn"><img class="player-subtitle-icon" src="/img/subtitle-cc.png" alt="subtitle" /></span>')}function O(e,i){return e.w('<span class="player-fullscreen controls-btn" id="videoFullscreenBtn"><img class="player-fullscreen-icon" src="/svg/fullscreen.svg" alt="fullscreen" /></span>')}function W(e,i){return e.w('<span class="player-download controls-btn" id="videoDownloadBtn"><img class="player-download-icon" src="/svg/download-white.svg" alt="download" /></span>')}function N(e,i){return e.w(" ").h("eq",i,{},{value:0},"h").w(" ").h("eq",i,{},{value:3},"h").w(" ").h("eq",i,{},{value:4},"h").w(" ").h("any",i,{block:J},{},"h").w(" ")}function J(e,i){return e.w('<div class="medium-12 columns access-denied-pop text-center"><img class="access-denied-icon" src="/svg/access-denied.svg"><h3>').h("eq",i,{else:U,block:j},{key:i.get(["privacy"],!1),value:3},"h").w("</h3></div>")}function U(e,i){return e.f(i.getPath(!1,["wizPlayer","permissionToView"]),i,"h")}function j(e,i){return e.f(i.getPath(!1,["wizPlayer","watchExpired"]),i,"h")}function Q(e,i){return e.w(" ").h("eq",i,{},{value:5},"h").w(" ").h("eq",i,{},{value:6},"h").w(" ").h("any",i,{block:X},{},"h").w(" ")}function X(e,i){return e.w('<div class="medium-12 columns access-denied-pop text-center"><img class="access-denied-icon" src="').f(i.get(["staticImgDomain"],!1),i,"h").w('/svg/warning.svg" width="80"><h3 class="delete-video-msg">').f(i.getPath(!1,["wizPlayer","accountDeactivated"]),i,"h").w("</h3></div>")}function Z(e,i){return e.w('<div class="medium-12 columns access-denied-pop text-center"><img class="access-denied-icon" src="').f(i.get(["staticImgDomain"],!1),i,"h").w('/svg/warning.svg" width="80"><h3 class="delete-video-msg">').f(i.getPath(!1,["wizPlayer","limitExceeded"]),i,"h").w('</h3><h3 class="delete-video-msg">').f(i.getPath(!1,["wizPlayer","contactOwner"]),i,"h").w("</h3></div>")}function K(e,i){return e.w('<div class="medium-12 columns password-pop text-center"><img class="lock-icon" style="width: 80px;height: 80px;" src="/svg/password-lock.svg"><div class="small-4 columns large-centered small-centered"><input type="password" class="form-control password-holder vdoPlayerPwdField" placeholder="').f(i.getPath(!1,["wizPlayer","enterPassword"]),i,"h").w('"><span class="pwd-error hide">').f(i.getPath(!1,["wizPlayer","passwordInvalid"]),i,"h").w('</span><a class="button wiz-overlay-btn passwordGoBtn">').f(i.getPath(!1,["wizPlayer","go"]),i,"h").w("</a></div></div>")}function G(e,i){return e.x(i.get(["showReactions"],!1),i,{block:Y},{})}function Y(e,i){return e.w('<div class="emoji-wrap-onplay"><span><img class="react-now-play" reaction_id="1" id="reaction_id-1" src="/svg/emoji-type-1.svg" width="16"></span><span><img class="react-now-play" reaction_id="2" id="reaction_id-2" src="/svg/emoji-type-2.svg" width="16"></span><span><img class="react-now-play" reaction_id="3" id="reaction_id-3" src="/svg/emoji-type-3.svg" width="16"></span><span><img class="react-now-play" reaction_id="4" id="reaction_id-4" src="/svg/emoji-type-4.svg" width="16"></span><span><img class="react-now-play" reaction_id="5" id="reaction_id-5" src="/svg/emoji-type-5.svg" width="16"></span><span><img class="react-now-play" reaction_id="6" id="reaction_id-6" src="/svg/emoji-type-6.svg" width="16"></span></div>')}function ee(e,i){return e.w('<div class="hippo-video-player" id=').f(i.get(["id"],!1),i,"h").w('><div id="personalisedVideoLoading" class="personalised-video-loading-page" style="display: block;"><div class="loader-wrap"><div class="rp-loader"></div></div></div></div>')}function ie(e,i){return e.w('<div class="hippo-video-player" id=').f(i.get(["id"],!1),i,"h").w(">").h("select",i,{block:te},{key:i.get(["privacy"],!1)},"h").w(" ").h("select",i,{block:oe},{key:i.get(["privacy"],!1)},"h").w(" ").h("eq",i,{block:le},{key:i.get(["privacy"],!1),value:7},"h").w(" ").h("eq",i,{block:de},{key:i.get(["privacy"],!1),value:2},"h").w("</div>")}function te(e,i){return e.w(" ").h("eq",i,{},{value:0},"h").w(" ").h("eq",i,{},{value:3},"h").w(" ").h("eq",i,{},{value:4},"h").w(" ").h("any",i,{block:se},{},"h").w(" ")}function se(e,i){return e.w('<div class="medium-12 columns access-denied-pop text-center"><img class="access-denied-icon" src="/svg/access-denied.svg"><h3>').h("eq",i,{else:ae,block:ne},{key:i.get(["privacy"],!1),value:3},"h").w("</h3></div>")}function ae(e,i){return e.f(i.getPath(!1,["wizPlayer","permissionToView"]),i,"h")}function ne(e,i){return e.f(i.getPath(!1,["wizPlayer","watchExpired"]),i,"h")}function oe(e,i){return e.w(" ").h("eq",i,{},{value:5},"h").w(" ").h("eq",i,{},{value:6},"h").w(" ").h("any",i,{block:re},{},"h").w(" ")}function re(e,i){return e.w('<div class="medium-12 columns access-denied-pop text-center"><img class="access-denied-icon" src="').f(i.get(["staticImgDomain"],!1),i,"h").w('/svg/warning.svg" width="80"><h3 class="delete-video-msg">').f(i.getPath(!1,["wizPlayer","accountDeactivated"]),i,"h").w("</h3></div>")}function le(e,i){return e.w('<div class="medium-12 columns access-denied-pop text-center"><img class="access-denied-icon" src="').f(i.get(["staticImgDomain"],!1),i,"h").w('/svg/warning.svg" width="80"><h3 class="delete-video-msg">').f(i.getPath(!1,["wizPlayer","limitExceeded"]),i,"h").w('</h3><h3 class="delete-video-msg">').f(i.getPath(!1,["wizPlayer","contactOwner"]),i,"h").w("</h3></div>")}function de(e,i){return e.w('<div class="medium-12 columns password-pop text-center"><img class="lock-icon" style="width: 80px;height: 80px;" src="/svg/password-lock.svg"><div class="small-4 columns large-centered small-centered"><input type="password" class="form-control password-holder vdoPlayerPwdField" placeholder="').f(i.getPath(!1,["wizPlayer","enterPassword"]),i,"h").w('"><span class="pwd-error hide">').f(i.getPath(!1,["wizPlayer","passwordInvalid"]),i,"h").w('</span><a class="button wiz-overlay-btn passwordGoBtn">').f(i.getPath(!1,["wizPlayer","go"]),i,"h").w("</a></div></div>")}e.register("templates/component/videoplayer",i),i.__dustBody=!0,t.__dustBody=!0,s.__dustBody=!0,a.__dustBody=!0,n.__dustBody=!0,o.__dustBody=!0,r.__dustBody=!0,l.__dustBody=!0,d.__dustBody=!0,h.__dustBody=!0,c.__dustBody=!0,u.__dustBody=!0,p.__dustBody=!0,y.__dustBody=!0,v.__dustBody=!0,m.__dustBody=!0,g.__dustBody=!0,f.__dustBody=!0,w.__dustBody=!0,b.__dustBody=!0,P.__dustBody=!0,k.__dustBody=!0,C.__dustBody=!0,_.__dustBody=!0,S.__dustBody=!0,x.__dustBody=!0,$.__dustBody=!0,T.__dustBody=!0,L.__dustBody=!0,B.__dustBody=!0,F.__dustBody=!0,A.__dustBody=!0,V.__dustBody=!0,I.__dustBody=!0,E.__dustBody=!0,M.__dustBody=!0,H.__dustBody=!0,z.__dustBody=!0,q.__dustBody=!0,R.__dustBody=!0,D.__dustBody=!0,O.__dustBody=!0,W.__dustBody=!0,N.__dustBody=!0,J.__dustBody=!0,U.__dustBody=!0,j.__dustBody=!0,Q.__dustBody=!0,X.__dustBody=!0,Z.__dustBody=!0,K.__dustBody=!0,G.__dustBody=!0,Y.__dustBody=!0,ee.__dustBody=!0,ie.__dustBody=!0,te.__dustBody=!0,se.__dustBody=!0,ae.__dustBody=!0,ne.__dustBody=!0,oe.__dustBody=!0,re.__dustBody=!0,le.__dustBody=!0,de.__dustBody=!0}(e),function(i,t){var s;return e.render("templates/component/videoplayer",i,(function(e,i){if("function"==typeof t)try{t(e,i)}catch(e){}if(e)throw e;s=i})),s}}.apply(i,s))||(e.exports=a)},93934:function(e,i,t){var s,a;s=[t(83457),t(53931)],void 0===(a=function(e,i){return function(e){function i(e,i){return e.w('<div class="video-container hippo-video-player hv-new-player hvplayer-wrapper" id=').f(i.get(["id"],!1),i,"h").w(">").x(i.get(["isPrivacy"],!1),i,{else:t,block:n},{}).w("</div>")}function t(e,i){return e.x(i.get(["initial"],!1),i,{else:s,block:a},{})}function s(e,i){return e.p("templates/player_2022/player",i,i,{})}function a(e,i){return e.p("templates/player_2022/initial_loader",i,i,{})}function n(e,i){return e.p("templates/player_2022/privacy",i,i,{})}e.register("templates/player_2022/base",i),i.__dustBody=!0,t.__dustBody=!0,s.__dustBody=!0,a.__dustBody=!0,n.__dustBody=!0}(e),function(i,t){var s;return e.render("templates/player_2022/base",i,(function(e,i){if("function"==typeof t)try{t(e,i)}catch(e){}if(e)throw e;s=i})),s}}.apply(i,s))||(e.exports=a)},16596:function(e,i,t){var s,a;s=[t(83457),t(53931)],void 0===(a=function(e,i){return function(e){function i(e,i){return e.w('<div id="personalizeChaptersListId" class="hp-tog-content hvplayer-chapters-wrapper hide"><div class="hvplayer-chapters-header clear-float"><h5>').f(i.getPath(!1,["player2022","chapters"]),i,"h").w('</h5><a class="chapter-close" id="chapterCloseId"><img src="').f(i.get(["staticImgDomain"],!1),i,"h").w('/svg/close-gray.svg" width="10"></a></div><div id="chaptersListId" class="hvplayer-chapters-body"></div></div>')}e.register("templates/player_2022/chapter_list",i),i.__dustBody=!0}(e),function(i,t){var s;return e.render("templates/player_2022/chapter_list",i,(function(e,i){if("function"==typeof t)try{t(e,i)}catch(e){}if(e)throw e;s=i})),s}}.apply(i,s))||(e.exports=a)},85023:function(e,i,t){var s,a;s=[t(83457),t(53931)],void 0===(a=function(e,i){return function(e){function i(e,i){return e.w('<div id="hvRclickOptions" class="hv-rclick-options hide" oncontextmenu="return false;"><ul><li id="hvRclickCopy" class="hv-rclick-copy">').f(i.getPath(!1,["newPlayer","copyLinkAndThumbnail"]),i,"h").w('</li><li class="hv-rclick-about">').f(i.getPath(!1,["newPlayer","aboutHippoVideo"]),i,"h").w("</li></ul></div>")}e.register("templates/player_2022/context_menu",i),i.__dustBody=!0}(e),function(i,t){var s;return e.render("templates/player_2022/context_menu",i,(function(e,i){if("function"==typeof t)try{t(e,i)}catch(e){}if(e)throw e;s=i})),s}}.apply(i,s))||(e.exports=a)},77871:function(e,i,t){var s,a;s=[t(83457),t(53931)],void 0===(a=function(e,i){return function(e){function i(e,i){return e.w('<div class="controls clear-float player-controls-wrapper player-controls-container"><div class="duration-container hvplayer-seekbar-wrapper"><div class="buffer-container"></div><div class="video-buffered-container"></div><div class="current-time-container"><div class="current-time-bg"></div></div><div id="chapterIndicatorId" class="hp-indicator hvplayer-chapters-indicators hide"></div><div class="hvplayer-seekbar-slider"></div></div><div class="hvplayer-controls-wrapper clear-float"><div class="hvplayer-controls-left clear-float"><div class="playbtn-container final-plybtn-click btn-play-click hvplayer-icon" hvplayer-tooltip="Play"><button class="solidply" aria-label="play/pause" tabindex="0"><svg class="hvplayer-ctrlfoot-play" width="15" height="16" viewBox="0 0 15 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M13.737 5.88033C14.1207 6.09386 14.4396 6.40238 14.6614 6.77463C14.8832 7.14687 15 7.56961 15 8C15 8.43039 14.8832 8.85313 14.6614 9.22538C14.4396 9.59762 14.1207 9.90614 13.737 10.1197L3.74977 15.6785C3.36853 15.8906 2.93679 16.0015 2.49775 16C2.0587 15.9985 1.62777 15.8847 1.24807 15.67C0.868372 15.4553 0.553235 15.1472 0.334202 14.7766C0.115169 14.406 -7.72476e-05 13.9859 0 13.5583V2.44052C0.000142097 2.01301 0.115547 1.59302 0.33467 1.22258C0.553793 0.852147 0.86895 0.54425 1.24861 0.329697C1.62827 0.115144 2.05912 0.00145845 2.49806 1.39395e-05C2.937 -0.00143057 3.36863 0.109417 3.74977 0.321466L13.737 5.88033Z" fill="white"/></svg><svg class="hvplayer-ctrlfoot-pause" width="12" height="16" viewBox="0 0 12 16" fill="none" xmlns="http://www.w3.org/2000/svg"><rect width="4" height="16" rx="2" fill="white"/><rect x="8" width="4" height="16" rx="2" fill="white"/></svg> </button></div>').x(i.get(["audioControl"],!1),i,{block:t},{}).w('<span class="end-time"></span></div><div class="hvplayer-controls-middle clear-float hide ').nx(i.get(["subtitlesEnabled"],!1),i,{block:l},{}).w('"><div id="personalizeChapterId" class="hp-menu-tog hvplayer-chapters-title clear-float"><img src="').f(i.get(["staticImgDomain"],!1),i,"h").w('/svg/hvp-chapters.svg" /><span class="hvplayer-chapter-maintitle">').f(i.get(["title"],!1),i,"h").w('</span></div></div><div class="hvplayer-controls-right clear-float">').x(i.get(["subtitlesEnabled"],!1),i,{block:d},{}).x(i.get(["showSpeedSettings"],!1),i,{block:h},{}).x(i.get(["settingControl"],!1),i,{block:u},{}).x(i.get(["fullscreenControl"],!1),i,{block:C},{}).x(i.get(["canPlayerLogoView"],!1),i,{block:_},{}).w('</div></div><div class="hvplayer-components-wrapper disp-none"><div class="components-marker-container"></div><div class="components-time-container"><div class="se-clip-time hide"><span class="se-selected-type"></span><div class="timer-pop-up hide"><div class="timer-start-section"><div class="timer-label">').f(i.getPath(!1,["wizPlayer","startTime"]),i,"h").w('</div><input type="text" class="timer-start-input"><div class="timer-arrow-section"><div class="arrow up-arrow timer-input-btn timer-start-btn-plus"></div><div class="arrow down-arrow timer-input-btn timer-start-btn-minus"></div></div></div><div class="timer-stop-section"><div class="timer-label">').f(i.getPath(!1,["wizPlayer","stopTime"]),i,"h").w('</div><input type="text" class="timer-stop-input"><div class="timer-arrow-section"><div class="arrow up-arrow timer-input-btn timer-stop-btn-plus"></div><div class="arrow down-arrow timer-input-btn timer-stop-btn-minus"></div></div></div><div class="timer-div-arrow"></div></div></div></div></div></div>')}function t(e,i){return e.w('<div class="volume-container hvplayer-icon ').nx(i.get(["isContainsAudio"],!1),i,{block:s},{}).w('" hvplayer-tooltip="').x(i.get(["isContainsAudio"],!1),i,{else:a,block:n},{}).w('">').x(i.get(["isContainsAudio"],!1),i,{else:o,block:r},{}).w("</div>")}function s(e,i){return e.w("hvplayer-volume-noaudio")}function a(e,i){return e.w("This video has no audio")}function n(e,i){return e.w("Mute")}function o(e,i){return e.w('<span class="hvplayer-volume-noaudiobox"><img src="').f(i.get(["staticImgDomain"],!1),i,"h").w('/svg/hvp-volume.svg"><span class="hvplayer-muted-line"></span></span>')}function r(e,i){return e.w('<button class="volumebtn volumeon hvplayer-volume-high" height="20px" aria-label="mute/unmute" tabindex="0"><img src="').f(i.get(["staticImgDomain"],!1),i,"h").w('/svg/hvp-volume.svg"><span class="hvplayer-muted-line"></span><span class="volume-curve"><i class="hvplayer-volume-curve1"><img src="').f(i.get(["staticImgDomain"],!1),i,"h").w('/svg/hvp-volume-curve1.svg"></i><i class="hvplayer-volume-curve2"><img src="').f(i.get(["staticImgDomain"],!1),i,"h").w('/svg/hvp-volume-curve2.svg"></i></span></button><div class="hvplayer-volume-wrapper"><div class="volume-slider-wrapper"><div class="volume-slider-container"><div class="volume-slider"></div></div></div></div>')}function l(e,i){return e.w("hvplayer-controls-nocaption")}function d(e,i){return e.w('<div class="hvplayer-caption-container hvplayer-icon" hvplayer-tooltip="Subtitles Off"><button class="hvplayer-icon-btn" id="hvpSubtitleBtn" aria-label="Caption on/off" tabindex="0"><img src="').f(i.get(["staticImgDomain"],!1),i,"h").w('/svg/hvp-caption.svg" /></button></div>')}function h(e,i){return e.w('<div class="hvplayer-speed-wrapper hvplayer-icon ').nx(i.get(["canPlayerLogoView"],!1),i,{block:c},{}).w('" hvplayer-tooltip="Playback Speed"><button class="hvplayer-icon-btn" id="hvpSpeedBtn" aria-label="Playback Speed" tabindex="0"><img src="').f(i.get(["staticImgDomain"],!1),i,"h").w('/svg/hvp-speed.svg" alt="Playback Speed icon"><span class="hvplayer-speed-text">').f(i.getPath(!1,["player2022","oneX"]),i,"h").w('</span></button><div class="hvplayer-speed-container"><div class="hvplayer-setting-option clear-float selected hvplayer-setting-oneoption" id="speedControl"><span class="clear-float">').f(i.getPath(!1,["player2022","playbackSpeed"]),i,"h").w('<a id="speedInfo">').f(i.getPath(!1,["player2022","normal"]),i,"h").w('</a></span><ul id="speedControlWrapper"><li data-id="0.5" data-text="0.5x"><button tabindex="0" aria-label="0.5x speed"><i></i>').f(i.getPath(!1,["player2022","zeroFiveX"]),i,"h").w('</button></li><li class="selected" data-id="1" data-text="1x"><button tabindex="0" aria-label="1x speed"><i></i>').f(i.getPath(!1,["player2022","oneX"]),i,"h").w('</button></li><li data-id="1.25" data-text="1.25x"><button tabindex="0" aria-label="1.25x speed"><i></i>').f(i.getPath(!1,["player2022","oneTwoFiveX"]),i,"h").w('</button></li><li data-id="1.5" data-text="1.5x"><button tabindex="0" aria-label="1.5x speed"><i></i>').f(i.getPath(!1,["player2022","oneFiveX"]),i,"h").w('</button></li><li data-id="2" data-text="2x"><button tabindex="0" aria-label="2x speed"><i></i>').f(i.getPath(!1,["player2022","twoX"]),i,"h").w("</button></li></ul></div></div></div>")}function c(e,i){return e.w("hvplayer-speed-nologo")}function u(e,i){return e.w('<div class="hvplayer-setting-wrapper hvplayer-icon ').nx(i.get(["canPlayerLogoView"],!1),i,{block:p},{}).w('" hvplayer-tooltip="Settings"><button class="settingsbtn-container" aria-label="settings" tabindex="0"><a class="settingsbtn"><img src="').f(i.get(["staticImgDomain"],!1),i,"h").w('/svg/hvp-settings.svg"></a></button><div class="hvplayer-setting-container settings-options-wrapper">').x(i.get(["qualityControl"],!1),i,{block:y},{}).x(i.get(["subtitlesEnabled"],!1),i,{block:f},{}).w('<span class="selectedpointer"></span></div></div>')}function p(e,i){return e.w("hvplayer-setting-nologo")}function y(e,i){return e.w('<div class="hvplayer-setting-option clear-float ').x(i.get(["onlyQuality"],!1),i,{block:v},{}).w(" ").x(i.get(["qualitySelected"],!1),i,{block:m},{}).w('" id="qualityControl"><span class="settings-options-wrapper">Quality<a id="qualityinfo" class="settings-options-wrapper">Auto</a></span><ul id="qualityControlWrapper" ').x(i.get(["onlyQuality"],!1),i,{block:g},{}).w("></ul></div>")}function v(e,i){return e.w("selected hvplayer-setting-oneoption")}function m(e,i){return e.w("hvplayer-setting-optionborder selected")}function g(e,i){return e.w('style="display: block;"')}function f(e,i){return e.w('<div class="hvplayer-setting-option subtitle-list clear-float ').x(i.get(["onlySubtitle"],!1),i,{block:w},{}).w('" id="subtitleControl"><span class="clear-float settings-options-wrapper">Subtiltes<a id="subtitleInfo" class="settings-options-wrapper">').f(i.get(["defaultSubtitleLanguage"],!1),i,"h").w('</a></span><ul id="subtitleControlWrapper" ').x(i.get(["onlySubtitle"],!1),i,{block:b},{}).w(">").s(i.get(["subtitles"],!1),i,{block:P},{}).w("</ul></div>")}function w(e,i){return e.w("selected hvplayer-setting-oneoption")}function b(e,i){return e.w('style="display: block;"')}function P(e,i){return e.w('<li data-text="').f(i.get(["language"],!1),i,"h").w('" data-subid="').f(i.get(["id"],!1),i,"h").w('" ').x(i.get(["default_subtitle"],!1),i,{block:k},{}).w(' ><button tabindex="0" data-subid="').f(i.get(["id"],!1),i,"h").w('" aria-label="').f(i.get(["language"],!1),i,"h").w('"><i></i>').f(i.get(["language"],!1),i,"h").w("</button></li>")}function k(e,i){return e.w('class="selected"')}function C(e,i){return e.w('<button class="screensize-container hvplayer-icon" hvplayer-tooltip="Full Screen" aria-label="Full screen" tabindex="0"><a class="screensizebtn"><i class="ss1"></i><i class="ss2"></i><i class="ss3"></i><i class="ss4"></i></a></button>')}function _(e,i){return e.w('<div class="logo-container">').x(i.get(["playerLogo"],!1),i,{else:S,block:x},{}).w("</div>")}function S(e,i){return e.w('<a href="https://www.hippovideo.io/" target="_blank" aria-label="Hippo Video" tabindex="0"><img src="').f(i.get(["staticImgDomain"],!1),i,"h").w('/svg/hippo-player-logo.svg" alt="logo" /></a>')}function x(e,i){return e.w("<a ").x(i.get(["addLinkToPlayerLogo"],!1),i,{block:$},{}).w(' target="_blank" class="').nx(i.get(["playerLogoLink"],!1),i,{block:L},{}).w('" aria-label="Company logo" ').x(i.get(["playerLogoLink"],!1),i,{else:B,block:F},{}).w('><img src="').f(i.get(["playerLogo"],!1),i,"h").w('" alt="logo" /></a>')}function $(e,i){return e.x(i.get(["playerLogoLink"],!1),i,{block:T},{})}function T(e,i){return e.w('href="').f(i.get(["playerLogoLink"],!1),i,"h").w('" ')}function L(e,i){return e.w("no-pointer-events")}function B(e,i){return e.w('tabindex="-1"')}function F(e,i){return e.w('tabindex="0"')}e.register("templates/player_2022/controls",i),i.__dustBody=!0,t.__dustBody=!0,s.__dustBody=!0,a.__dustBody=!0,n.__dustBody=!0,o.__dustBody=!0,r.__dustBody=!0,l.__dustBody=!0,d.__dustBody=!0,h.__dustBody=!0,c.__dustBody=!0,u.__dustBody=!0,p.__dustBody=!0,y.__dustBody=!0,v.__dustBody=!0,m.__dustBody=!0,g.__dustBody=!0,f.__dustBody=!0,w.__dustBody=!0,b.__dustBody=!0,P.__dustBody=!0,k.__dustBody=!0,C.__dustBody=!0,_.__dustBody=!0,S.__dustBody=!0,x.__dustBody=!0,$.__dustBody=!0,T.__dustBody=!0,L.__dustBody=!0,B.__dustBody=!0,F.__dustBody=!0}(e),function(i,t){var s;return e.render("templates/player_2022/controls",i,(function(e,i){if("function"==typeof t)try{t(e,i)}catch(e){}if(e)throw e;s=i})),s}}.apply(i,s))||(e.exports=a)},43012:function(e,i,t){var s,a;s=[t(83457),t(53931)],void 0===(a=function(e,i){return function(e){function i(e,i){return e.w('<div class="error-overlay hide" style="position:absolute;width:100%;height:100%;background: rgba(0,0,0,0.2);z-index:2;background-repeat: no-repeat;background-size: contain;"><div class="error-reason-div"><img src="').f(i.get(["staticImgDomain"],!1),i,"h").w('/svg/warning.svg" class="status-warning" /><div class="error-reason"></div></div></div>')}e.register("templates/player_2022/error",i),i.__dustBody=!0}(e),function(i,t){var s;return e.render("templates/player_2022/error",i,(function(e,i){if("function"==typeof t)try{t(e,i)}catch(e){}if(e)throw e;s=i})),s}}.apply(i,s))||(e.exports=a)},96683:function(e,i,t){var s,a;s=[t(83457),t(53931)],void 0===(a=function(e,i){return function(e){function i(e,i){return e.w('<div class="main-controls"><span class="backwardbtn" data-backward-value="5s"><svg id="Layer_1" xmlns="https://www.w3.org/2000/svg" viewBox="0 0 25.2 25.2"><path fill="#ffffff" d="M2.6 15.4c.7 2.5 2.4 4.7 4.8 6.1 4.9 2.8 11.2 1.1 14-3.8s1.1-11.2-3.8-14c-2.4-1.4-5.1-1.7-7.8-1-2.3.6-4.3 2-5.7 3.9l2.8-.2.2 2-4.4.3-2 .2-.2-2-.3-4.4 2-.2.2 2.9c1.7-2.3 4-3.9 6.8-4.7 3.2-.9 6.6-.4 9.5 1.2 6 3.4 8 11.1 4.6 17.1-.3.6-.7 1.1-1.1 1.6-3.8 4.7-10.6 6.1-16 3-2.9-1.7-4.9-4.4-5.8-7.5"/></svg></span><button class="final-plybtn final-plybtn-click main-plyBtn" tabindex="0" aria-label="play/pause"><a class="playthree playbutton" width="20px" height="24px"><svg class="hvplayer-ctrlmain-play" width="23" height="24" viewBox="0 0 23 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M21.0634 8.8205C21.6517 9.14079 22.1407 9.60357 22.4808 10.1619C22.8209 10.7203 23 11.3544 23 12C23 12.6456 22.8209 13.2797 22.4808 13.8381C22.1407 14.3964 21.6517 14.8592 21.0634 15.1795L5.74964 23.5178C5.16508 23.836 4.50307 24.0022 3.82988 24C3.15668 23.9977 2.49591 23.827 1.91371 23.505C1.3315 23.183 0.848293 22.7208 0.512442 22.1649C0.176592 21.609 -0.000118256 20.9788 1.90735e-06 20.3374V3.66079C0.000217438 3.01951 0.177172 2.38953 0.513161 1.83387C0.84915 1.27822 1.33239 0.816375 1.91454 0.494546C2.49668 0.172716 3.15732 0.00218768 3.83036 2.09093e-05C4.50339 -0.00214586 5.16523 0.164125 5.74964 0.482199L21.0634 8.8205Z" fill="white"/></svg> <svg class="hvplayer-ctrlmain-pause" width="19" height="24" viewBox="0 0 19 24" fill="none" xmlns="http://www.w3.org/2000/svg"><rect width="6" height="24" rx="3" fill="white"/><rect x="13" width="6" height="24" rx="3" fill="white"/></svg> </a></button><span class="forwardbtn" data-forward-value="5s"><svg id="Layer_1" xmlns="https://www.w3.org/2000/svg" viewBox="0 0 25.2 25.2"><path fill="#ffffff" d="M2.6 15.4c.7 2.5 2.4 4.7 4.8 6.1 4.9 2.8 11.2 1.1 14-3.8s1.1-11.2-3.8-14c-2.4-1.4-5.1-1.7-7.8-1-2.3.6-4.3 2-5.7 3.9l2.8-.2.2 2-4.4.3-2 .2-.2-2-.3-4.4 2-.2.2 2.9c1.7-2.3 4-3.9 6.8-4.7 3.2-.9 6.6-.4 9.5 1.2 6 3.4 8 11.1 4.6 17.1-.3.6-.7 1.1-1.1 1.6-3.8 4.7-10.6 6.1-16 3-2.9-1.7-4.9-4.4-5.8-7.5"/></svg></span></div>')}e.register("templates/player_2022/hover_main_controls",i),i.__dustBody=!0}(e),function(i,t){var s;return e.render("templates/player_2022/hover_main_controls",i,(function(e,i){if("function"==typeof t)try{t(e,i)}catch(e){}if(e)throw e;s=i})),s}}.apply(i,s))||(e.exports=a)},87722:function(e,i,t){var s,a;s=[t(83457),t(53931)],void 0===(a=function(e,i){return function(e){function i(e,i){return e.w('<div id="personalisedVideoLoading" class="personalised-video-loading-page" style="display: block;"><div class="loader-wrap"><div class="rp-loader"></div></div></div>')}e.register("templates/player_2022/initial_loader",i),i.__dustBody=!0}(e),function(i,t){var s;return e.render("templates/player_2022/initial_loader",i,(function(e,i){if("function"==typeof t)try{t(e,i)}catch(e){}if(e)throw e;s=i})),s}}.apply(i,s))||(e.exports=a)},68500:function(e,i,t){var s,a;s=[t(83457),t(53931)],void 0===(a=function(e,i){return function(e){function i(e,i){return e.w('<div class="canvas-preview-container ').nx(i.get(["showComments"],!1),i,{else:t,block:a},{}).w('" id="canvasPreviewContainer" style="display:none;"><canvas class="quickpreview-canvas" width=128 height=72></canvas><div class="hvplayer-chapters-canvastitle disp-none"></div>').x(i.get(["showComments"],!1),i,{block:o},{}).x(i.get(["showSetFrame"],!1),i,{block:r},{}).x(i.get(["showReactions"],!1),i,{block:l},{}).w('<input type="hidden" id="canvasHoverTime" /></div><div class="subtitles-line" id="subtitlesTrack"></div><div class="notification-line-onplay"></div><div class="cta-indicator hide"><div id="ctaIndicatorInner" class="cta-indicator-inner"></div></div><div class="player-progress for-reactions disp-none"><div class="click-area-extended"></div></div>').x(i.get(["controls"],!1),i,{block:d},{}).x(i.get(["canShowDeliveryDownload"],!1),i,{block:h},{}).x(i.get(["controls"],!1),i,{block:c},{}).w('<div id="ctaPlayerComps" class="cta-player-comps hide"></div><div id="ctaPlayerAddComp" class="cta-player-add-container hide"></div>')}function t(e,i){return e.w(" ").nx(i.get(["showReactions"],!1),i,{block:s},{})}function s(e,i){return e.w(" canvas-only-comment")}function a(e,i){return e.nx(i.get(["showReactions"],!1),i,{block:n},{}).w(" ")}function n(e,i){return e.w(" canvas-only ")}function o(e,i){return e.w('<div class="preview-add-comment" id="addCommentFromCanvas"><img src="').f(i.get(["staticImgDomain"],!1),i,"h").w('/img/icon-discussions-white.png" /></div>')}function r(e,i){return e.w('<h6 class="set-frame-btn">').f(i.getPath(!1,["wizPlayer","setTheFrame"]),i,"h").w("</h6>")}function l(e,i){return e.w('<div class="emoji-wrap"><span><img class="react-now-play" reaction_id="1" id="reaction_id-1" src="').f(i.get(["staticImgDomain"],!1),i,"h").w('/svg/emoji-type-1.svg" width="16"></span><span><img class="react-now-play" reaction_id="2" id="reaction_id-2" src="').f(i.get(["staticImgDomain"],!1),i,"h").w('/svg/emoji-type-2.svg" width="16"></span><span><img class="react-now-play" reaction_id="3" id="reaction_id-3" src="').f(i.get(["staticImgDomain"],!1),i,"h").w('/svg/emoji-type-3.svg" width="16"></span><span><img class="react-now-play" reaction_id="4" id="reaction_id-4" src="').f(i.get(["staticImgDomain"],!1),i,"h").w('/svg/emoji-type-4.svg" width="16"></span><span><img class="react-now-play" reaction_id="5" id="reaction_id-5" src="').f(i.get(["staticImgDomain"],!1),i,"h").w('/svg/emoji-type-5.svg" width="16"></span><span><img class="react-now-play" reaction_id="6" id="reaction_id-6" src="').f(i.get(["staticImgDomain"],!1),i,"h").w('/svg/emoji-type-6.svg" width="16"></span></div>')}function d(e,i){return e.p("templates/player_2022/controls",i,i,{})}function h(e,i){return e.w('<div class="hv-player-download"></div>')}function c(e,i){return e.w('<div class="duration-container duration-container-fullscreen disp-none"><div class="current-time-container"><div class="current-time-bg"></div></div></div>')}e.register("templates/player_2022/interaction_and_controls",i),i.__dustBody=!0,t.__dustBody=!0,s.__dustBody=!0,a.__dustBody=!0,n.__dustBody=!0,o.__dustBody=!0,r.__dustBody=!0,l.__dustBody=!0,d.__dustBody=!0,h.__dustBody=!0,c.__dustBody=!0}(e),function(i,t){var s;return e.render("templates/player_2022/interaction_and_controls",i,(function(e,i){if("function"==typeof t)try{t(e,i)}catch(e){}if(e)throw e;s=i})),s}}.apply(i,s))||(e.exports=a)},31732:function(e,i,t){var s,a;s=[t(83457),t(53931)],void 0===(a=function(e,i){return function(e){function i(e,i){return e.x(i.get(["isLandingPageVideo"],!1),i,{else:t,block:s},{})}function t(e,i){return e.w('<div id="personalisedVideoLoading" class="personalised-video-loading"><div class="inner-container"><center><div class="bar-loading"><div></div><div></div><div></div><div></div></div></center></div></div>')}function s(e,i){return e.w('<div id="personalisedVideoLoading" class="personalised-video-loading-page"><div class="loader-wrap"><div class="rp-loader"></div></div></div>')}e.register("templates/player_2022/landing_page",i),i.__dustBody=!0,t.__dustBody=!0,s.__dustBody=!0}(e),function(i,t){var s;return e.render("templates/player_2022/landing_page",i,(function(e,i){if("function"==typeof t)try{t(e,i)}catch(e){}if(e)throw e;s=i})),s}}.apply(i,s))||(e.exports=a)},68738:function(e,i,t){var s,a;s=[t(83457),t(53931)],void 0===(a=function(e,i){return function(e){function i(e,i){return e.w('<div class="player-loading-overlay full-screen-container hide"><div class="inner-container"><center><div class="bar-loading"><div></div><div></div><div></div><div></div></div></center></div></div>')}e.register("templates/player_2022/overall_loading",i),i.__dustBody=!0}(e),function(i,t){var s;return e.render("templates/player_2022/overall_loading",i,(function(e,i){if("function"==typeof t)try{t(e,i)}catch(e){}if(e)throw e;s=i})),s}}.apply(i,s))||(e.exports=a)},55783:function(e,i,t){var s,a;s=[t(83457),t(53931)],void 0===(a=function(e,i){return function(e){function i(e,i){return e.p("templates/player_2022/video_and_thumbnail",i,i,{}).nx(i.get(["isImageMode"],!1),i,{block:t},{}).p("templates/player_2022/chapter_list",i,i,{}).p("templates/player_2022/error",i,i,{}).w('<div class="player-touch-guard"></div>').nx(i.get(["isImageMode"],!1),i,{block:c},{}).p("templates/player_2022/privacy_form",i,i,{})}function t(e,i){return e.w('<div class="se-components-droppable"></div><div class="player-border"></div>').x(i.get(["thumbnail"],!1),i,{block:s},{}).x(i.get(["previewVideo"],!1),i,{block:a},{}).x(i.get(["controls"],!1),i,{block:n},{}).w('<div class="renderless-builder-container" style="position: absolute;width: 100%;height: 100%;display:none;"></div>').x(i.get(["controls"],!1),i,{block:o},{}).p("templates/player_2022/overall_loading",i,i,{}).p("templates/player_2022/landing_page",i,i,{}).x(i.get(["controls"],!1),i,{block:r},{})}function s(e,i){return e.w('<div class="thumbnail-container full-screen-container" style="position:absolute;width:100%;height:100%;cursor: pointer;z-index:1"><img src="').f(i.get(["thumbnail"],!1),i,"h").w('" id="playerThumbnail" style="position: absolute;left: 0;top: 0;width: 100%;height: 100%;" onerror="this.style.display=\'none\'"></div>')}function a(e,i){return e.w('<div class="play-btn-container full-screen-container"><video src="').f(i.get(["previewVideo"],!1),i,"h").w('" id="preview-video-player" crossorigin="anonymous" playsinline loop /></div>')}function n(e,i){return e.w('<div id="hvMainPlayPause" class="main-play-pause"></div>').p("templates/player_2022/context_menu",i,i,{})}function o(e,i){return e.w('<div class="replay-btn-container full-screen-container hide"><button class="final-replybtn final-replybtn-click" tabindex="0" aria-label="replay"><a class="replaythree replaybutton" width="20px" height="24px"><svg id="Layer_1" xmlns="https://www.w3.org/2000/svg" viewBox="0 0 25.2 25.2"><path fill="#ffffff" d="M2.6 15.4c.7 2.5 2.4 4.7 4.8 6.1 4.9 2.8 11.2 1.1 14-3.8s1.1-11.2-3.8-14c-2.4-1.4-5.1-1.7-7.8-1-2.3.6-4.3 2-5.7 3.9l2.8-.2.2 2-4.4.3-2 .2-.2-2-.3-4.4 2-.2.2 2.9c1.7-2.3 4-3.9 6.8-4.7 3.2-.9 6.6-.4 9.5 1.2 6 3.4 8 11.1 4.6 17.1-.3.6-.7 1.1-1.1 1.6-3.8 4.7-10.6 6.1-16 3-2.9-1.7-4.9-4.4-5.8-7.5"/></svg></a></button></div>')}function r(e,i){return e.x(i.get(["isMutedAutoPlay"],!1),i,{block:l},{}).x(i.get(["showHoverActions"],!1),i,{block:h},{})}function l(e,i){return e.w('<div class="player-info muted-autoplay cursor-pointer hide"><img src="').f(i.get(["staticImgDomain"],!1),i,"h").w('/svg/mute.svg" alt="volume" /> ').nx(i.get(["isMobilePlayer"],!1),i,{block:d},{}).w("</div>")}function d(e,i){return e.f(i.getPath(!1,["wizPlayer","clickToUnmute"]),i,"h")}function h(e,i){return e.p("templates/player_2022/hover_main_controls",i,i,{})}function c(e,i){return e.p("templates/player_2022/interaction_and_controls",i,i,{})}e.register("templates/player_2022/player",i),i.__dustBody=!0,t.__dustBody=!0,s.__dustBody=!0,a.__dustBody=!0,n.__dustBody=!0,o.__dustBody=!0,r.__dustBody=!0,l.__dustBody=!0,d.__dustBody=!0,h.__dustBody=!0,c.__dustBody=!0}(e),function(i,t){var s;return e.render("templates/player_2022/player",i,(function(e,i){if("function"==typeof t)try{t(e,i)}catch(e){}if(e)throw e;s=i})),s}}.apply(i,s))||(e.exports=a)},63177:function(e,i,t){var s,a;s=[t(83457),t(53931)],void 0===(a=function(e,i){return function(e){function i(e,i){return e.h("select",i,{block:t},{key:i.get(["privacy"],!1)},"h").w(" ").h("select",i,{block:o},{key:i.get(["privacy"],!1)},"h").w(" ").h("eq",i,{block:l},{key:i.get(["privacy"],!1),value:7},"h").w(" ").h("eq",i,{block:d},{key:i.get(["privacy"],!1),value:2},"h")}function t(e,i){return e.w(" ").h("eq",i,{},{value:0},"h").w(" ").h("eq",i,{},{value:3},"h").w(" ").h("eq",i,{},{value:4},"h").w(" ").h("any",i,{block:s},{},"h").w(" ")}function s(e,i){return e.w('<div class="medium-12 columns access-denied-pop text-center"><img class="access-denied-icon" src="').f(i.get(["staticImgDomain"],!1),i,"h").w('/svg/access-denied.svg"><h3>').h("eq",i,{else:a,block:n},{key:i.get(["privacy"],!1),value:3},"h").w("</h3></div>")}function a(e,i){return e.f(i.getPath(!1,["wizPlayer","permissionToView"]),i,"h")}function n(e,i){return e.f(i.getPath(!1,["wizPlayer","watchExpired"]),i,"h")}function o(e,i){return e.w(" ").h("eq",i,{},{value:5},"h").w(" ").h("eq",i,{},{value:6},"h").w(" ").h("any",i,{block:r},{},"h").w(" ")}function r(e,i){return e.w('<div class="medium-12 columns access-denied-pop text-center"><img class="access-denied-icon" src="').f(i.get(["staticImgDomain"],!1),i,"h").w('/svg/warning.svg" width="80"><h3 class="delete-video-msg">').f(i.getPath(!1,["wizPlayer","accountDeactivated"]),i,"h").w("</h3></div>")}function l(e,i){return e.w('<div class="medium-12 columns access-denied-pop text-center"><img class="access-denied-icon" src="').f(i.get(["staticImgDomain"],!1),i,"h").w('/svg/warning.svg" width="80"><h3 class="delete-video-msg">').f(i.getPath(!1,["wizPlayer","limitExceeded"]),i,"h").w('</h3><h3 class="delete-video-msg">').f(i.getPath(!1,["wizPlayer","contactOwner"]),i,"h").w("</h3></div>")}function d(e,i){return e.w('<div class="medium-12 columns password-pop text-center"><img class="lock-icon" style="width: 80px;height: 80px;" src="').f(i.get(["staticImgDomain"],!1),i,"h").w('/svg/password-lock.svg"><div class="small-4 columns large-centered small-centered"><input type="password" class="form-control password-holder vdoPlayerPwdField" placeholder="').f(i.getPath(!1,["wizPlayer","enterPassword"]),i,"h").w('"><span class="pwd-error hide">').f(i.getPath(!1,["wizPlayer","passwordInvalid"]),i,"h").w('</span><a class="button wiz-overlay-btn passwordGoBtn">').f(i.getPath(!1,["wizPlayer","go"]),i,"h").w("</a></div></div>")}e.register("templates/player_2022/privacy",i),i.__dustBody=!0,t.__dustBody=!0,s.__dustBody=!0,a.__dustBody=!0,n.__dustBody=!0,o.__dustBody=!0,r.__dustBody=!0,l.__dustBody=!0,d.__dustBody=!0}(e),function(i,t){var s;return e.render("templates/player_2022/privacy",i,(function(e,i){if("function"==typeof t)try{t(e,i)}catch(e){}if(e)throw e;s=i})),s}}.apply(i,s))||(e.exports=a)},13620:function(e,i,t){var s,a;s=[t(83457),t(53931)],void 0===(a=function(e,i){return function(e){function i(e,i){return e.h("select",i,{block:t},{key:i.get(["privacy"],!1)},"h").w(" ").h("select",i,{block:o},{key:i.get(["privacy"],!1)},"h").w(" ").h("eq",i,{block:l},{key:i.get(["privacy"],!1),value:7},"h").w(" ").h("eq",i,{block:d},{key:i.get(["privacy"],!1),value:2},"h")}function t(e,i){return e.w(" ").h("eq",i,{},{value:0},"h").w(" ").h("eq",i,{},{value:3},"h").w(" ").h("eq",i,{},{value:4},"h").w(" ").h("any",i,{block:s},{},"h").w(" ")}function s(e,i){return e.w('<div class="medium-12 columns access-denied-pop text-center"><img class="access-denied-icon" src="').f(i.get(["staticImgDomain"],!1),i,"h").w('/svg/access-denied.svg"><h3>').h("eq",i,{else:a,block:n},{key:i.get(["privacy"],!1),value:3},"h").w("</h3></div>")}function a(e,i){return e.f(i.getPath(!1,["wizPlayer","permissionToView"]),i,"h")}function n(e,i){return e.f(i.getPath(!1,["wizPlayer","watchExpired"]),i,"h")}function o(e,i){return e.w(" ").h("eq",i,{},{value:5},"h").w(" ").h("eq",i,{},{value:6},"h").w(" ").h("any",i,{block:r},{},"h").w(" ")}function r(e,i){return e.w('<div class="medium-12 columns access-denied-pop text-center"><img class="access-denied-icon" src="').f(i.get(["staticImgDomain"],!1),i,"h").w('/svg/warning.svg" width="80"><h3 class="delete-video-msg">').f(i.getPath(!1,["wizPlayer","accountDeactivated"]),i,"h").w("</h3></div>")}function l(e,i){return e.w('<div class="medium-12 columns access-denied-pop text-center"><img class="access-denied-icon" src="').f(i.get(["staticImgDomain"],!1),i,"h").w('/svg/warning.svg" width="80"><h3 class="delete-video-msg">').f(i.getPath(!1,["wizPlayer","limitExceeded"]),i,"h").w('</h3><h3 class="delete-video-msg">').f(i.getPath(!1,["wizPlayer","contactOwner"]),i,"h").w("</h3></div>")}function d(e,i){return e.w('<div class="medium-12 columns password-pop text-center"><img class="lock-icon" style="width: 80px;height: 80px;" src="').f(i.get(["staticImgDomain"],!1),i,"h").w('/svg/password-lock.svg"><div class="small-4 columns large-centered small-centered"><input type="password" class="form-control password-holder vdoPlayerPwdField" placeholder="').f(i.getPath(!1,["wizPlayer","enterPassword"]),i,"h").w('"><span class="pwd-error hide">').f(i.getPath(!1,["wizPlayer","passwordInvalid"]),i,"h").w('</span><a class="button wiz-overlay-btn passwordGoBtn">').f(i.getPath(!1,["wizPlayer","go"]),i,"h").w("</a></div></div>")}e.register("templates/player_2022/privacy_form",i),i.__dustBody=!0,t.__dustBody=!0,s.__dustBody=!0,a.__dustBody=!0,n.__dustBody=!0,o.__dustBody=!0,r.__dustBody=!0,l.__dustBody=!0,d.__dustBody=!0}(e),function(i,t){var s;return e.render("templates/player_2022/privacy_form",i,(function(e,i){if("function"==typeof t)try{t(e,i)}catch(e){}if(e)throw e;s=i})),s}}.apply(i,s))||(e.exports=a)},5808:function(e,i,t){var s,a;s=[t(83457),t(53931)],void 0===(a=function(e,i){return function(e){function i(e,i){return e.w('<div class="thumbnail"><div class="se-crop-scale">\x3c!-- <canvas class="blurred-bg-video" style="position: absolute;left: 0;top: 0;width: 100%;height: 100%;filter: blur(20px);-webkit-filter: blur(20px);transform: scale(1.2);"></canvas> --\x3e<div class="primary-video-overflow-container"><div class="primary-video-container">').x(i.get(["isImageMode"],!1),i,{else:t,block:u},{}).w('</div></div><div class="parallel-video-container"><div class="goback-branching"><img src="').f(i.get(["staticImgDomain"],!1),i,"h").w('/img/back-icon.png" width="25"><span></span></div><div class="goback-branching-new"><div class="left-container"><img src="').f(i.get(["staticImgDomain"],!1),i,"h").w('/img/left.svg" width="25"></div><div class="branching-info"></div></div><div class="branching-menus"></div></div>').nx(i.get(["isImageMode"],!1),i,{block:p},{}).w('</div><canvas class="renderless-overlay" style="position: absolute;width: 100%;height: 100%"></canvas><div class="renderless-inputs-container" style="position: absolute;width: 100%;height: 100%;display:none"></div><div class="renderless-overlay-iframes" style="position: absolute;width: 100%;height: 100%;display:none"></div></div>')}function t(e,i){return e.w('<video class="primary-video" id="primary-video" crossorigin="anonymous" controls playsinline ').x(i.get(["loop"],!1),i,{block:s},{}).w(">").h("eq",i,{block:a},{key:i.get(["type"],!1),value:"url"},"h").f(i.getPath(!1,["player2022","unsupportVideoTag"]),i,"h").x(i.get(["subtitlesEnabled"],!1),i,{block:o},{}).w('</video><canvas class="se-effects-canvas"></canvas><div class="se-effects-components-container"></div>').x(i.get(["showSetFrame"],!1),i,{block:c},{})}function s(e,i){return e.w(" loop ")}function a(e,i){return e.w('<source crossorigin="anonymous" ').x(i.get(["addSourceAudioType"],!1),i,{block:n},{}).w(" src=").f(i.get(["src"],!1),i,"h").w(">")}function n(e,i){return e.w(' type="audio/basic" ')}function o(e,i){return e.x(i.get(["subtitlesFromServer"],!1),i,{else:r,block:d},{}).w(" ")}function r(e,i){return e.s(i.get(["subtitles"],!1),i,{block:l},{})}function l(e,i){return e.w('<track label="').f(i.get(["id"],!1),i,"h").w('" kind="subtitles" id="subtitleTrack-').f(i.get(["id"],!1),i,"h").w('" srclang="').f(i.get(["language"],!1),i,"h").w('" data-subid="').f(i.get(["id"],!1),i,"h").w('" class="dummy1" src="').f(i.get(["signed_url"],!1),i,"h").w('" default="">')}function d(e,i){return e.s(i.get(["subtitles"],!1),i,{block:h},{})}function h(e,i){return e.w('<track label="').f(i.get(["id"],!1),i,"h").w('" kind="subtitles" id="subtitleTrack-').f(i.get(["id"],!1),i,"h").w('" srclang="').f(i.get(["language"],!1),i,"h").w('" class="dummy" src="').f(i.get(["domain"],!1),i,"h").w("/video_delivery/subtitles/").f(i.get(["token"],!1),i,"h").w('" default="">')}function c(e,i){return e.w('<video class="hidden-video" controls playsinline crossorigin="anonymous" style="display: none;"><source crossorigin="anonymous" src=').f(i.get(["src"],!1),i,"h").w(">").f(i.getPath(!1,["wizPlayer","browserDoesNotSupport"]),i,"h").w("</video>")}function u(e,i){return e.w('<img src="').f(i.get(["src"],!1),i,"h").w('" class="primary-video" id="gifImage" style="position: absolute;left: 0;top: 0;width: 100%;height: 100%;"> ')}function p(e,i){return e.nx(i.get(["isDelivery"],!1),i,{block:y},{})}function y(e,i){return e.w('<div class="secondary-video-overflow-container" style="top:0"><div class="secondary-video-container"><video class="secondary-video" crossorigin="anonymous"><source crossorigin="anonymous" src=').f(i.get(["audioSrc"],!1),i,"h").w('></video></div></div><textarea id="seTextEditable" class="se-text-editable custom-scroll hide" spellcheck="false" placeholder="Enter text here"></textarea><div class="se-components-container"></div><div class="se-crop-resizable hide"></div><div class="se-crop-highlighter se-crop-highlighter-top"></div><div class="se-crop-highlighter se-crop-highlighter-left"></div><div class="se-crop-highlighter se-crop-highlighter-bottom"></div><div class="se-crop-highlighter se-crop-highlighter-right"></div>')}e.register("templates/player_2022/video_and_thumbnail",i),i.__dustBody=!0,t.__dustBody=!0,s.__dustBody=!0,a.__dustBody=!0,n.__dustBody=!0,o.__dustBody=!0,r.__dustBody=!0,l.__dustBody=!0,d.__dustBody=!0,h.__dustBody=!0,c.__dustBody=!0,u.__dustBody=!0,p.__dustBody=!0,y.__dustBody=!0}(e),function(i,t){var s;return e.render("templates/player_2022/video_and_thumbnail",i,(function(e,i){if("function"==typeof t)try{t(e,i)}catch(e){}if(e)throw e;s=i})),s}}.apply(i,s))||(e.exports=a)},48375:function(e,i,t){"use strict";t(47941),t(82526),t(57327),t(38880),t(54747),t(49337);var s=t(4942),a=t(15671),n=t(43144),o=(t(9653),t(56977),t(92222),t(85827),t(41539),t(85468));function r(e,i){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);i&&(s=s.filter((function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable}))),t.push.apply(t,s)}return t}function l(e){for(var i=1;i<arguments.length;i++){var t=null!=arguments[i]?arguments[i]:{};i%2?r(Object(t),!0).forEach((function(i){(0,s.Z)(e,i,t[i])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):r(Object(t)).forEach((function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(t,i))}))}return e}var d=function(){function e(i){var t=i.playerInstance,s=i.statsJsonSeed;(0,a.Z)(this,e),this.media=t,this.statsJsonSeed=s}return(0,n.Z)(e,[{key:"init",value:function(){this.initLogger(),this.playerLogger&&this.setupMetrics()}},{key:"initLogger",value:function(){var e;if(null!==(e=window.HippoVideo)&&void 0!==e&&e.Class){var i=window.HippoVideo.Class,t=i.Level;this.generateStatConstants.call(this),this.playerLogger=i.Logger.getLogger("[playerMetrics]"),this.loggerLevel=t.INFO}}},{key:"generateStatConstants",value:function(){var e,i,t,s,a,n=(null===(e=window.HippoVideo)||void 0===e||null===(e=e.UserProfile)||void 0===e?void 0:e.tenantId)||null,o=(null===(i=window.HippoVideo)||void 0===i||null===(i=i.UserProfile)||void 0===i?void 0:i.userId)||null,r=null===(t=window.HippoVideo)||void 0===t?void 0:t.generateUniqueId(),d=!(null===(s=window.HippoVideo)||void 0===s||!s.isDelivery),h=null===(a=navigator.connection)||void 0===a?void 0:a.rtt,c=Intl.DateTimeFormat().resolvedOptions().timeZone;this.nonIndexedDataString="generalPlayerMetrics;",d&&(this.nonIndexedDataString+="generalPlayerMetrics-isDelivery;"),this.statsJsonSeed.mfInVideosPresent&&(this.nonIndexedDataString+="generalPlayerMetrics-isPersonalised;"),c&&(this.nonIndexedDataString+="generalPlayerMetrics-timeZone--".concat(c,";")),this.statsConstants=l(l({},this.statsJsonSeed),{},{tenant_id:n,user_id:o,session_id:r,isDelivery:d,rtt:h,timeZone:c})}},{key:"setupMetrics",value:function(){var e=this;e.timeChart={done:!0},e.media.addEventListener("play",(function(){e.timeChart.playClickedAt=Number(performance.now().toFixed(2)),e.timeChart.done=!1})),e.media.addEventListener("ended",(function(){e.timeChart.mediaEndedAt||(e.timeChart.mediaEndedAt=Number(performance.now().toFixed(2)),e.timeChart.done=!1)})),e.media.addEventListener("waiting",(function(){e.timeChart.mediaWaitingAtArr||(e.timeChart.mediaWaitingAtArr=[]),e.timeChart.mediaWaitingAtArr.push(Number(performance.now().toFixed(2)))})),e.media.addEventListener("playing",(function(){if(e.timeChart.firstFragLoadedAt||(e.timeChart.firstFragLoadedAt=Number(performance.now().toFixed(2)),e.timeChart.done=!1),e.timeChart.mediaTimeLagArr||(e.timeChart.mediaTimeLagArr=[]),e.timeChart.mediaWaitingAtArr&&e.timeChart.mediaWaitingAtArr.length>e.timeChart.mediaTimeLagArr.length){var i=e.timeChart.mediaWaitingAtArr,t=i[i.length-1],s=Number(performance.now().toFixed(2));e.timeChart.mediaTimeLagArr.push(s-t),e.timeChart.mediaTimeLag=s-t}e.timeChart.done=!1})),e.media.addEventListener("seeked",(function(){e.timeChart.mediaSeekedAt=Number(performance.now().toFixed(2)),e.timeChart.done=!1})),e.media.onerror=function(){e.timeChart.videoErroredMsg="Error ".concat(e.media.error.code,"; details: ").concat(e.media.error.message),e.timeChart.done=!1},window.addEventListener("beforeunload",(function(){e.timeChart.windowUnloadAt=Number(performance.now().toFixed(2)),e.timeChart.done=!1,e.timeChartEval.call(e)})),setInterval((function(){e.timeChartEval()}),2e3)}},{key:"timeChartEval",value:function(){var e=this;if(!e.timeChart.done){if(e.timeChart.playClickedAt&&(e.timeChart.firstFragLoadedAt&&!e.timeChart.videoStarted&&(e.logg({metric_name:"time-to-first-frame",metric_value:Math.max(0,e.timeChart.firstFragLoadedAt-e.timeChart.playClickedAt)}),e.timeChart.videoStarted=!0,delete e.timeChart.playClickedAt),e.timeChart.videoPlayIntented=!0),e.timeChart.mediaEndedAt||e.timeChart.windowUnloadAt){var i;e.timeChart.mediaTimeLagArr&&(e.logg({metric_name:"video-stalled-count",metric_value:e.timeChart.mediaTimeLagArr.reduce((function(e,i){return i>200?e+1:e}),0)}),delete e.timeChart.mediaWaitingAtArr,delete e.timeChart.mediaTimeLagArr),e.timeChart.videoPlayIntented&&!e.timeChart.videoStarted&&e.timeChart.windowUnloadAt&&e.logg({metric_name:"video-adandon-before-start",metric_value:e.timeChart.windowUnloadAt}),!e.timeChart.videoPlayIntented&&e.timeChart.windowUnloadAt&&e.logg({metric_name:"page-adandon-before-clicking-play",metric_value:e.timeChart.windowUnloadAt});var t=(0,o.jy)("delivery-loaded");t&&null!==(i=e.statsConstants)&&void 0!==i&&i.isDelivery&&(e.logg({metric_name:"hv-delivery-loaded",metric_value:t}),(0,o.Xb)("delivery-loaded")),delete e.timeChart.mediaEndedAt,delete e.timeChart.windowUnloadAt}e.timeChart.mediaTimeLag&&(e.timeChart.mediaTimeLag>=200&&e.logg({metric_name:"video-stalled-time-to-resume",metric_value:e.timeChart.mediaTimeLag}),e.timeChart.mediaSeekedAt&&(e.timeChart.mediaTimeLag>=200&&e.logg({metric_name:"video-stalledBySeek-time-to-resume",metric_value:e.timeChart.mediaTimeLag}),delete e.timeChart.mediaSeekedAt),delete e.timeChart.mediaTimeLag),e.timeChart.videoErroredMsg&&(e.logg({metric_name:"video-errored",metric_value:e.timeChart.videoErroredMsg}),delete e.timeChart.videoErroredMsg),e.timeChart.done=!0}}},{key:"logg",value:function(e){this.playerLogger.log(this.loggerLevel,this.nonIndexedDataString,l(l({},this.statsConstants),e))}}]),e}();i.Z=d},8099:function(e,i,t){"use strict";t.r(i),t(55674),t(48702),t(74916),t(4723),t(69826),t(41539),t(54747),t(47941),t(54678),t(26699),t(66992),t(88674),t(78783),t(33948),t(21249),t(2707),t(91058),t(9653),t(32023);var s,a,n,o=t(19755),r=t.n(o),l=t(1618),d=t(72316),h=t.n(d),c=t(12352),u=t(48167),p=(t(85614),t(45925),t(31230)),y=t.n(p),v=t(79845),m=t.n(v),g=t(952),f=t.n(g),w=t(67581),b=t.n(w),P=t(17141),k=t.n(P),C=t(48375),_=t(28553),S=t(12282),x=(t(58229),t(73423),t(26891),t(86227),(0,S.eQ)());i.default=h().View.extend({template:y(),initialize:function(e){console.log(e,"toggleWebcamForMirrorVideotoggleWebcamForMirrorVideo");var i=e.fromSDK||!1;i&&(this.template=m()),this.origin=i?c.default.getHippoAssetsDomain():"",this.isFromSDK=e.fromSDK||!1,this.id=e.id,this.src=e.src,this.type=null!=e.type?e.type:"url",this.title=e.title,this.initial=e.initial||!1,this.isPrivacy=e.isPrivacy||!1,this.statId=e.statId,this.audioSrc=e.audioSrc,this.mfInVideosPresent=!!e.mfInVideosPresent,this.isDelivery=null!=e.isDelivery&&e.isDelivery,this.analytics=null!=e.analytics&&e.analytics,this.userId=e.userId,this.primaryVideoLayout=e.primaryVideoLayout,this.secondaryVideoLayout=e.secondaryVideoLayout,this.showSecondaryVideo=null==e.showSecondaryVideo||e.showSecondaryVideo,this.showLogo=null==e.showLogo||e.showLogo,this.trimStart=e.trimStart?e.trimStart:0,this.trimEnd=e.trimEnd?e.trimEnd:0,this.duration=e.duration?e.duration:0,this.assetId=e.assetId,this.customlogo=e.customlogo,this.thumbnail=e.thumbnail,this.quickPreview=e.quickPreview,this.previewVideo=e.previewVideo,this.isMirrorWebCam=e.isMirrorWebCam,this.isMirrorSecondary=e.isMirrorSecondary,this.playAudio=null==e.playAudio||e.playAudio,this.playVideo=null==e.playVideo||e.playVideo,this.qualityControl=null!=e.qualityControl&&e.qualityControl,this.fullscreen=null!=e.fullscreen&&e.fullscreen,this.audioControl=null!=e.audioControl?e.audioControl:this.playAudio,this.fullscreenControl=null==e.fullscreenControl||e.fullscreenControl,this.simpleEditMode=null!=e.simpleEditMode&&e.simpleEditMode,this.showSpeedSettings=null!=e.showSpeedSettings&&e.showSpeedSettings,this.authorState=e.authorState,this.isError=e.isError,this.previousVolume=100,this.onPlayHandler=e.onPlayHandler?[e.onPlayHandler]:[],this.onPauseHandler=e.onPauseHandler?[e.onPauseHandler]:[],this.onSeekedHandler=e.onSeekedHandler,this.onSeekedHandlers=e.onSeekedHandlers?[e.onSeekedHandlers]:[],this.onSeekindHandler=e.onSeekindHandler,this.onLoadHandler=e.onLoadHandler,this.onProgressHandler=e.onProgressHandler,this.onDataLoadHandler=e.onDataLoadHandler,this.updateHandler=e.updateHandler,this.canplayHandler=e.canplayHandler,this.onComputedDurationHander=e.onComputedDurationHander,this.onEndHandler=e.onEndHandler?[e.onEndHandler]:[],this.privacySetting=null!=e.privacy&&e.privacy,this.isAudioOnly=null!=e.isAudioOnly&&e.isAudioOnly,this.isLessonly="lessonly"==e.integType,this.token=null!=e.token&&e.token,this.downloadVideo=e.downloadVideo,this.allowDownload=null!=e.allowDownload&&e.allowDownload,this.showComments=e.showComments,this.showReactions=e.showReactions,this.commentsCallbackHandler=e.commentsCallbackHandler||function(){},this.reactionsCallbackHandler=e.reactionsCallbackHandler||function(){},this.playerLogo=e.playerLogo,this.canPlayerLogoView=e.canPlayerLogoView,this.addLinkToPlayerLogo=e.addLinkToPlayerLogo,this.playerLogoLink=e.playerLogoLink,this.isImageMode=e.isImageMode||!1,this.loop=e.loop||!1,this.showSetFrame=e.showSetFrame&&!e.isImageMode||!1,this.playerTheme=null!=e.playerTheme&&e.playerTheme,this.subtitlesEnabled=!1,this.subtitles=e.subtitleUrl,this.showHoverActions=void 0===e.showHoverActions||e.showHoverActions,this.customColors=e.customColors,this.allowKeyboardShortcuts=e.allowKeyboardShortcuts||!1,this.saveThisFrameAsThumbnail=function(){},this.isMobilePlayer=u.Z.isMobileBrowser(),this.isIphone=null!=navigator.userAgent.match(/iPhone|iPad|iPod/i),this.autoPlayVideo=!!e.autoPlayVideo&&!this.isImageMode;var t=c.default.getBrowserName().toLowerCase();this.isMutedAutoPlay=this.autoPlayVideo&&("chrome"===t||"safari"===t||"firefox"===t),this.canShowPlayerLoading="ie"!==t,this.showPersonalisedVideoLoading=e.showPersonalisedVideoLoading||!1,this.personalisedVideoDetailsSet=!1,this.isLandingPageVideo=e.isLandingPageVideo||!1,this.domainName=e.domain||!1,this.subtitlesFromServer=!1,this.isContainsAudio=null==e.isContainsAudio||e.isContainsAudio,this.addSourceAudioType="safari"===t&&this.isAudioOnly,e.forceAutoPlay&&(this.isMutedAutoPlay=!1),t=["Firefox","IE"],r().inArray(c.default.getBrowserName(),t)>=0&&(this.subtitlesFromServer=!0),this.customPlayIcon=e.customPlayIcon,this.playerState="initial",this.durationComputed=!1,this.allowPlay=!0,this.isCTAWaitingMode=!1,this._primaryVideoPlaying=!1,this._secondaryVideoPlaying=!1,this.progressSlided=this.progressSlided.bind(this),this.volumeChanged=this.volumeChanged.bind(this),this._handleTimeupdate=this._handleTimeupdate.bind(this),this._handlePlay=this._handlePlay.bind(this),this._handlePause=this._handlePause.bind(this),this._handleProgress=this._handleProgress.bind(this),this._handlePlayerClick=this._handlePlayerClick.bind(this),this._handlePlayPauseBtnClick=this._handlePlayPauseBtnClick.bind(this),this._handleForwardBtnClick=this._handleForwardBtnClick.bind(this),this._handleRewindBtnClick=this._handleRewindBtnClick.bind(this),this._handleAudioBtnClick=this._handleAudioBtnClick.bind(this),this._handleFullscreenBtnClick=this._handleFullscreenBtnClick.bind(this),this._handleWaiting=this._handleWaiting.bind(this),this._handleResume=this._handleResume.bind(this),this._handleCanplay=this._handleCanplay.bind(this),this._handleHover=this._handleHover.bind(this),this._handleEnded=this._handleEnded.bind(this),this._handleSeeked=this._handleSeeked.bind(this),this._handleSeeking=this._handleSeeking.bind(this),this._handleMetadataLoad=this._handleMetadataLoad.bind(this),this._handleDataLoad=this._handleDataLoad.bind(this),this._handleProgressBtnHover=this._handleProgressBtnHover.bind(this),this._handleProgressBtnLeave=this._handleProgressBtnLeave.bind(this),this._handleFullscreenChange=this._handleFullscreenChange.bind(this),this.resetPlayer=this.resetPlayer.bind(this),this.downloadVideoClick=this.downloadVideoClick.bind(this),this._handleCanvasMouseAction=this._handleCanvasMouseAction.bind(this),this.drawImageForPreview=this.drawImageForPreview.bind(this),this.seekAndChooseThumb=this.seekAndChooseThumb.bind(this),this.seekAndUpdateThumb=this.seekAndUpdateThumb.bind(this),this.setStatId=this.setStatId.bind(this),this.getStatId=this.getStatId.bind(this),this.toggleSubtitles=this.toggleSubtitles.bind(this),this._handleMutedAutoplayAudioClick=this._handleMutedAutoplayAudioClick.bind(this),this.segmented=e.segmented,this.auth_params=e.auth_params,this.cueChanged=this.cueChanged.bind(this)},render:function(){if(this.$el.html(this.template((0,l.YH)(b(),{id:this.id,origin:this.origin,type:this.type,title:this.title,isAudioOnly:this.isAudioOnly,addSourceAudioType:this.addSourceAudioType,isLessonly:this.isLessonly,initial:this.initial,isPrivacy:this.isPrivacy,audioControl:this.audioControl,qualityControl:this.qualityControl,fullscreenControl:this.fullscreenControl,showLogo:this.showLogo,customlogo:this.customlogo,thumbnail:this.thumbnail,quickPreview:this.quickPreview,previewVideo:this.previewVideo,privacy:this.privacySetting,downloadVideo:this.downloadVideo,allowDownload:this.allowDownload,showComments:this.showComments,showSetFrame:this.showSetFrame,showReactions:this.showReactions,isImageMode:this.isImageMode,playerLogo:this.playerLogo,isMutedAutoPlay:this.isMutedAutoPlay,canPlayerLogoView:this.canPlayerLogoView,addLinkToPlayerLogo:this.addLinkToPlayerLogo,playerLogoLink:this.playerLogoLink,playerTheme:this.playerTheme,subtitlesEnabled:this.subtitlesEnabled,subtitles:this.subtitles,showHoverActions:this.showHoverActions,showSpeedSettings:this.showSpeedSettings,isLandingPageVideo:this.isLandingPageVideo,token:this.token,domain:window.location.protocol+"//"+window.location.hostname,subtitlesFromServer:this.subtitlesFromServer,isContainsAudio:this.isContainsAudio,staticImgDomain:x}))),this.renderState=!0,this.setElement(this.$el.find("#"+this.id)),this.initial)return this.$el.height(9*this.$el.width()/16),void this.applyCustomColors();if(this.initializePlayer(),this._delegateViewEvents(),this.setMediaSource(),this.initializePlayerJS(),-1!=["m3u8","mpd"].indexOf(this.type))this.initializeAdapter();else try{this.initPlayerMetrics()}catch(e){u.Z.postErrorsToLog({error:"Error while trying to initialize Player Metrics",stackTrace:JSON.stringify(e)})}this.initializeCSS(),this.applyCustomColors(),this.applyCustomPlayIcon(),void 0===this.isMirrorWebCam&&void 0===this.isMirrorSecondary||c.default.toggleWebcamForMirrorVideo(!(!this.isMirrorWebCam&&!this.isMirrorSecondary),this.isMirrorSecondary||null!=this.audioSrc&&""!=this.audioSrc?this.$el.find(".secondary-video"):this.$el.find("#primary-video"))},update:function(e){var i=this;e.showPersonalisedVideoLoading&&this.$el.find("#personalisedVideoLoading").show(),Object.keys(e).forEach((function(t){null!=e[t]&&(i[t]=e[t])})),this.setMediaSource(),void 0===e.isMirrorWebCam&&void 0===e.isMirrorSecondary||c.default.toggleWebcamForMirrorVideo(!(!e.isMirrorWebCam&&!e.isMirrorSecondary),e.isMirrorSecondary||null!=this.audioSrc&&""!=this.audioSrc?this.$el.find(".secondary-video"):this.$el.find("#primary-video")),-1!=["m3u8","mpd"].indexOf(this.type)&&this.initializeAdapter(),r()("#videoQualityBtn")[this.qualityControl?"show":"hide"]()},setMediaSource:function(){this.$el.find("#gifImage").attr("src",this.src),this.$el.find("#primary-video source").attr("src",this.src),this.$el.find(".hidden-video source").attr("src",this.src),this.$el.find(".secondary-video source").attr("src",this.audioSrc),this.$el.find("#primary-video").length>0&&this.src&&-1==this.src.indexOf("fetch_video_stream")&&this.$el.find("#primary-video")[0].load(),this.$el.find(".secondary-video").length>0&&this.$el.find(".secondary-video")[0].load()},loadPlayerIfNotLoaded:function(){this.$el.find("#primary-video").length>0&&this.src&&-1==this.src.indexOf("fetch_video_stream")&&4!==this.$el.find("#primary-video")[0].readyState&&this.$el.find("#primary-video")[0].load(),this.$el.find(".secondary-video").length>0&&4!==this.$el.find(".secondary-video")[0].readyState&&this.$el.find(".secondary-video")[0].load()},initializePlayer:function(){var e=this;this.mediaPlayer=this.$el.find(".primary-video")[0],this.customAudioPlayer=this.$el.find(".secondary-video")[0],this.mediaPlayer.controls=!1,r()(this.$el.find(".player-progress")).slider({orientation:"horizontal",range:"min",max:100,value:0,slide:this.progressSlided}),r()(this.$el.find(".player-audio-slider")).slider({range:"min",orientation:"vertical",min:0,max:100,value:100,stop:this.volumeChanged}),this.quickPreview&&!this.isAudioOnly&&(this.quickPreviewImg=document.createElement("img"),this.quickPreviewImg.setAttribute("src",this.quickPreview),this.quickPreviewCanvas=this.$el.find(".quickpreview-canvas")[0],this.quickPreviewContext=this.quickPreviewCanvas.getContext("2d")),this.showSetFrame?r()(".thumbnail-wrap").show():r()(".thumbnail-wrap").hide(),this.setSimpleEditMode(this.simpleEditMode),this.allowKeyboardShortcuts&&r()(window).on("keydown",(function(i){if("TEXTAREA"!==i.target.nodeName&&"INPUT"!==i.target.nodeName&&"button"!==i.target.type){var t=i.key,s=i.keyCode;" "===t||"Spacebar"===t||32===s?e._handlePlayPauseBtnClick():"ArrowRight"===t||"Right"===t||39===s?e._handleForwardBtnClick():"ArrowLeft"===t||"Left"===t||37===s?e._handleRewindBtnClick():"f"!==t&&70!==s||e._handleFullscreenBtnClick()}})),this.$el.find(".video-speed-btn .player-speed-label").on("click",(function(){e.$el.find(".video-speed-btn .quality-container").slideToggle("fast"),e.$el.find("#videoQualityBtn .quality-container").slideUp("fast")})),this.$el.find(".video-speed-btn .quality-list li").on("click",(function(i){var t=r()(i.currentTarget).attr("data-id");e.$el.find(".video-speed-btn .player-speed-label").click(),e.$el.find("#primary-video")[0].playbackRate=parseFloat(t),e.$el.find(".quality-list li").removeClass("active"),r()(this).addClass("active"),e.$el.find(".video-speed-btn .player-speed-label").html(r()(i.currentTarget).html())})),this.$el.find("#subtitlesTrack").css("bottom","55px"),this.initializePlayerTheme(".video-speed-btn .quality-list li")},initializePlayerTheme:function(e){try{if(this.playerTheme&&[4,7].includes(this.playerTheme.length)){var i=c.default.convertHexToRGB(this.playerTheme),t="rgba("+i.r+", "+i.g+", "+i.b+", 0.9)";this.$el.find(e).hover((function(){r()(this).css({background:t})}),(function(){r()(this).css({background:""})}))}}catch(e){}},sendToFront:function(){},initializePlayerJS:function(){var e=this;this.playerJSReceiver=new(k().Receiver),this.playerJSReceiver.on("play",(function(){e.play()})),this.playerJSReceiver.on("pause",(function(){e.pause()})),this.playerJSReceiver.on("getPaused",(function(i){i(!e.playing)})),this.playerJSReceiver.on("mute",(function(){e.mute()})),this.playerJSReceiver.on("unmute",(function(){e.unmute()})),this.playerJSReceiver.on("getMuted",(function(i){i(0==e.getVolume())})),this.playerJSReceiver.on("setVolume",(function(i){e.setVolume(i)})),this.playerJSReceiver.on("getVolume",(function(i){i(e.getVolume())})),this.playerJSReceiver.on("getDuration",(function(i){i(e.mediaPlayer.duration)})),this.playerJSReceiver.on("setCurrentTime",(function(i){e.mediaPlayer.currentTime=i})),this.playerJSReceiver.on("getCurrentTime",(function(i){i(e.mediaPlayer.currentTime)})),this.playerJSReceiver.on("setLoop",(function(i){e.setLoop(i)})),this.playerJSReceiver.on("getLoop",(function(i){i(e.getLoop())})),this.playerJSReceiver.ready()},initializeDashPlayerJs:function(){this.adapter=s.MediaPlayer().create(),this.adapter.getDebug().setLogToBrowserConsole(!1),this.adapter.setSegmentOverlapToleranceTime(2),this.adapter.setABRStrategy("abrBola"),this.adapter.addABRCustomRule("qualitySwitchRules","DownloadRatioRule",a.default);var e={type:"PERIODIC",authorizationUrl:HippoVideo.URL.PATH[HippoVideo.URI.Feature.VIDEO_PLAYER.CLOUD_FRONT_AUTHORIZER]+this.token,expiry:HippoVideo.Constants.Video.Expiry,authSettings:this.auth_params,manifestOnly:!this.segmented};this.adapter.initializeWithAuthorization(this.mediaPlayer,this.src,!1,e),this.currentStreamQuality=-1,this.adapterLoaded=!1,window.navigator.userAgent.indexOf("MSIE ")>0||navigator.userAgent.match(/Trident.*rv\:11\./)||this.adapter.setFastSwitchEnabled(!0)},initializeHLSPlayerJs:function(){var e=this,i={asset_id:this.assetId,mfInVideosPresent:this.mfInVideosPresent};this.adapter=new n({enableWorker:!0},{onMediaAttached:function(){e.adapter.loadSource(e.src)},onManifestParser:function(i){e._handleMetadataLoad(i)}},e.auth_params,!0),this.adapter.attachPlayerMetrics({statsJsonSeed:i}),this.adapter.attachMedia(this.mediaPlayer)},initPlayerMetrics:function(){var e=this,i={asset_id:this.assetId,mfInVideosPresent:this.mfInVideosPresent};!function(i){var t=i.playerInstance,s=i.statsJsonSeed;e.playerMetrics=new C.Z({playerInstance:t,statsJsonSeed:s}),e.playerMetrics.init()}({playerInstance:e.mediaPlayer,statsJsonSeed:i})},initializeAdapter:function(){var e=this;"mpd"==this.type?Promise.all([t.e(520).then(t.t.bind(t,76821,23)),Promise.all([t.e(520),t.e(881)]).then(t.bind(t,24580))]).then((function(i){var t=i[0].default,n=i[1].default;s=t,a=n,e.initializeDashPlayerJs()})):t.e(245).then(t.t.bind(t,49538,23)).then((function(i){var t=i.default;n=t,e.initializeHLSPlayerJs()}))},initializeCSS:function(){null==this.audioSrc&&this.$el.find(".secondary-video-container").hide(),0==this.showLogo&&this.$el.find(".player-logo").hide();var e=this;r()(window).on("resize",(function(i){r()(i.target).hasClass("ui-resizable")||e.resizePlayerForWindow()})),this.isError?(this.$el.find(".error-reason").html(this.getFaqOneLiner()+this.getFaqLink()),this.$el.find(".error-overlay").css("background-image","url("+this.origin+"/img/tv-noise.gif)").show()):this.$el.find(".error-overlay").hide(),this.resizePlayerForWindow(),this.$el.find("video").css("height","100%"),this.primaryVideoLayout&&(null!=this.primaryVideoLayout.width&&this.$el.find(".primary-video-container").css("width",this.getValueForPlayerInitial(this.primaryVideoLayout.width,!0)+"px"),null!=this.primaryVideoLayout.height&&this.$el.find(".primary-video-container").css("height",this.getValueForPlayerInitial(this.primaryVideoLayout.height,!1)+"px"),null!=this.primaryVideoLayout.x&&this.$el.find(".primary-video-container").css("left",this.getValueForPlayerInitial(this.primaryVideoLayout.x,!0)+"px"),null!=this.primaryVideoLayout.y&&this.$el.find(".primary-video-container").css("top",this.getValueForPlayerInitial(this.primaryVideoLayout.y,!1)+"px")),this.secondaryVideoLayout&&(null!=this.secondaryVideoLayout.width&&this.$el.find(".secondary-video-container").css("width",this.getValueForPlayerInitial(this.secondaryVideoLayout.width,!0)+"px"),null!=this.secondaryVideoLayout.height&&this.$el.find(".secondary-video-container").css("height",this.getValueForPlayerInitial(this.secondaryVideoLayout.height,!1)+"px"),null!=this.secondaryVideoLayout.x&&this.$el.find(".secondary-video-container").css("left",this.getValueForPlayerInitial(this.secondaryVideoLayout.x,!0)+"px"),null!=this.secondaryVideoLayout.y&&this.$el.find(".secondary-video-container").css("top",this.getValueForPlayerInitial(this.secondaryVideoLayout.y,!1)+"px")),this.showSecondaryVideo||this.$el.find(".secondary-video-container").hide();var i=r()(".primary-video-container").width(),t=r()(".primary-video-container").height();r()(".access-denied-pop").width(i),r()(".access-denied-pop").height(t),r()(".password-pop").width(i),r()(".password-pop").height(t),this.resizeFitThumnbail(),this.initializePlayerForMobile()},resizeFitThumnbail:function(){var e=this,i=new Image,t=this.isImageMode?"#gifImage":"#playerThumbnail";i.onload=function(i){var s=i.target.naturalWidth,a=i.target.naturalHeight,n=u.Z.resizeImageToFit(s,a,e.$el.width(),e.$el.height()),o=u.Z.getCoordinatesForResizedImage(n.width,n.height,e.$el.width(),e.$el.height());e.$el.find(t).css({width:n.width,height:n.height,top:o.yPos,left:o.xPos})},this.isImageMode?i.src=this.src:this.thumbnail&&(i.src=this.thumbnail)},resizeFitRenderless:function(){var e=this.$el.width(),i=this.$el.height();if(e&&i){var t=0,s=0;e/i>16/9?(e=16*i/9,t=(this.$el.width()-e)/2):(i=9*e/16,s=(this.$el.height()-i)/2),this.$el.find(".renderless-overlay").css({width:e+"px",height:i+"px",left:t+"px",top:s+"px"})}},initializePlayerForMobile:function(){this.isMobilePlayer&&(this.$el.addClass("mobile-player"),this.$el.find(".volume-container, .player-audio-slider, .emoji-wrap").hide(),r()(".emoji-wrap-onplay").show())},toggleSubtitles:function(e){this.$el.find("#subtitlesTrack").is(":visible")?(this.$el.find("#subtitlesTrack").hide(),this.$el.find(".player-subtitle-icon").attr("src",this.origin+"/img/subtitle-cc-gray.png")):(this.$el.find(".player-subtitle-icon").attr("src",this.origin+"/img/subtitle-cc.png"),this.$el.find("#subtitlesTrack").show())},volumeChanged:function(e){var i=this.getVolume();this.mediaPlayer.volume=i/100,this.customAudioPlayer&&(this.customAudioPlayer.volume=i/100),0==i?(this.$el.find(".audio-img").attr("src",this.origin+"/svg/mute.svg"),r()(".audio-img").addClass("mute"),r()(".audio-img").removeClass("low high")):i<=50?(this.$el.find(".audio-img").attr("src",this.origin+"/svg/volume-low.svg"),r()(".audio-img").addClass("low"),r()(".audio-img").removeClass("mute high")):(this.$el.find(".audio-img").attr("src",this.origin+"/svg/volume-high.svg"),r()(".audio-img").addClass("high"),r()(".audio-img").removeClass("low mute"))},progressSlided:function(e,i){var t=this.map(i.value,0,100,this.trimStart,this.mediaPlayer.duration-this.trimEnd);this.goToTime(t)},goToTime:function(e){this.mediaPlayer.currentTime=e,this.customAudioPlayer.currentTime=this.mediaPlayer.currentTime,this.$el.find(".replay-btn-container").hide()},show:function(){this.renderState?this.$el.show():(this.undelegateEvents(),this.render())},hide:function(){this.renderState&&this.$el.hide()},destroy:function(){this.undelegateEvents(),this.$el.removeData().unbind(),r()(window).unbind("beforeunload",!1),this.remove(),h().View.prototype.remove.call(this)},handleMainPlayPause:function(){},_delegateViewEvents:function(){this.delegate("webkitfullscreenchange mozfullscreenchange fullscreenchange",this._handleFullscreenChange),this.delegate("mouseenter mouseleave mousemove",this._handleHover),this.delegate("contextmenu","video",this._handleMenu),this.delegate("click","video, .play-btn-container, .replay-btn-container, .player-actions-container, .se-crop-scale, .player-touch-guard",this._handlePlayerClick),this.delegate("click",".play-pause-button",this._handlePlayPauseBtnClick),this.delegate("click",".player-volume",this._handleAudioBtnClick),this.delegate("click",".player-fullscreen-icon",this._handleFullscreenBtnClick),this.delegate("click",".player-download-icon",this.downloadVideoClick),this.delegate("click","#addCommentFromCanvas",this.commentsCallbackHandler),this.delegate("click",".react-now",this.reactionsCallbackHandler),this.delegate("click",".player-rewind-action",this._handleRewindBtnClick),this.delegate("click",".player-forward-action",this._handleForwardBtnClick),this.delegate("click",".player-play-pause-action",this._handlePlayPauseBtnClick),this.delegate("click",".muted-autoplay",this._handleMutedAutoplayAudioClick),this.delegate("mouseenter mouseleave","#canvasPreviewContainer",this._handleCanvasMouseAction),r()(".set-frame-btn").on("click",this.seekAndUpdateThumb),r()(".player-subtitle-icon").on("click",this.toggleSubtitles),!this.isMobilePlayer&&this.quickPreview&&(this.delegate("mousemove",".player-progress",this._handleProgressBtnHover),this.delegate("mouseleave",".player-progress",this._handleProgressBtnLeave)),this.mediaPlayer.addEventListener("timeupdate",this._handleTimeupdate,!1),this.mediaPlayer.addEventListener("play",this._handlePlay,!1),this.mediaPlayer.addEventListener("pause",this._handlePause,!1),this.mediaPlayer.addEventListener("progress",this._handleProgress,!1),this.mediaPlayer.addEventListener("waiting",this._handleWaiting,!1),this.mediaPlayer.addEventListener("playing",this._handleResume,!1),this.mediaPlayer.addEventListener("canplay",this._handleCanplay,!1),this.mediaPlayer.addEventListener("seeked",this._handleSeeked,!1),this.mediaPlayer.addEventListener("seeking",this._handleSeeking,!1),this.mediaPlayer.addEventListener("ended",this._handleEnded,!1),this.mediaPlayer.addEventListener("loadedmetadata",this._handleMetadataLoad,!1),this.mediaPlayer.addEventListener("loadeddata",this._handleDataLoad,!1)},_handleMetadataLoad:function(){var e=this;if(this.adapterLoaded||-1==["m3u8","mpd"].indexOf(this.type))"mpd"==this.type&&(this.adapter.setAutoSwitchQualityFor("video",!1),this.adapter.setQualityFor("video",this.currentStreamQuality),this.mediaPlayer.currentTime=this.dashQualitySwitchTime);else{this.adapterLoaded=!0;var i=this.adapter["mpd"==this.type?"getBitrateInfoListFor":"getLevels"]("mpd"==this.type?"video":"");console.log("Available bitrates",i),i.sort((function(e,i){return e.height>i.height?1:i.height>e.height?-1:0}));for(var t,s,a=this.$el.find("#videoQualityBtn .quality-list"),n=[],o=i.length-1;o>=0;o--){switch(s=i[o].height,!0){case s>144&&s<=240:t="240";break;case s>240&&s<=360:t="360";break;case s>360&&s<=480:t="480";break;case s>480&&s<=720:t="720";break;case s>720&&s<=1080:t="1080";break;case s>1080&&s<=2159:t="2K";break;case s>=2160&&s<=4319:t="4K";break;case s>=4320:t="8K"}n[o]=t,a.append('<li data-id="'+o+'"><i></i><a>'+t+"</a></li>")}var l="high"==c.default.getQueryParams().quality;if(l){var d=i.length-1;this.$el.find("#videoQualityBtn .quality-list li").removeClass("active"),"mpd"==this.type?(this.adapter.setAutoSwitchQualityFor("video",!1),this.adapter.setQualityFor("video",d)):this.adapter.setRepresentation(i.length-1)}n.length>0?(this.$el.find("#videoQualityBtn").show(),l?a.append('<li data-id="-1">'+b().wizPlayer.auto+"</li>"):a.append('<li class="active" data-id="-1">'+b().wizPlayer.auto+"</li>")):this.$el.find("#videoQualityBtn").hide();try{this.$el.find("#videoQualityBtn .player-quality-icon").on("click",(function(){e.$el.find("#videoQualityBtn .quality-container").slideToggle("fast")}))}catch(e){}this.$el.find("#videoQualityBtn .quality-list li").on("click",(function(i){var t=r()(i.currentTarget).attr("data-id");e.$el.find("#videoQualityBtn .quality-list li").removeClass("active"),r()(this).addClass("active"),"-1"==t?"mpd"==this.type?e.adapter.setAutoSwitchQualityFor("video",!0):e.adapter.setRepresentation(-1):"mpd"==this.type?parseInt(t)>~~e.currentStreamQuality&&(e.dashQualitySwitchTime=e.mediaPlayer.currentTime,e.adapter.reset(),e.adapter.attachSource(e.src),e.adapter.attachView(e.mediaPlayer),e._handleWaiting()):e.adapter.setRepresentation(Number(t)),e.currentStreamQuality=~~t}))}this.subtitlesEnabled&&document.getElementsByTagName("track")[0].addEventListener("cuechange",this.cueChanged),this.autoPlayVideo&&(this.isMutedAutoPlay&&(this.mute(),this.$el.find(".muted-autoplay").removeClass("hide")),e.play())},_handleDataLoad:function(){var e=!this.dataLoaded;this.dataLoaded=!0,e&&this.onDataLoadHandler&&this.onDataLoadHandler()},_handleFullscreenChange:function(e){var i=this;this.isFullScreen()?(r()("#"+this.id).addClass("player-fullscreen-mode"),this.$el.find(".preview-add-comment").hide()):(r()("#"+this.id).removeClass("player-fullscreen-mode"),this.$el.find(".preview-add-comment").show()),this.resizePlayerForWindow(),setTimeout((function(){i.resizePlayerForWindow()}),1e3)},_handleProgressBtnLeave:function(e){clearTimeout(this.hideQuickPreviewTimeout);var i=this;this.hideQuickPreviewTimeout=setTimeout((function(){i.$el.find("#canvasPreviewContainer").fadeOut(200)}),500)},_handleProgressBtnHover:function(e){var i=this.$el.find("#canvasPreviewContainer"),t=(e.target.className.includes("ui-slider-handle")?r()(e.target).position().left:e.offsetX)-i.width()/2;if(i.css("left",t+"px"),!this.showSetFrame||this.quickPreviewImg&&this.quickPreviewContext){if(i.is(":visible")||i.fadeIn(),this.showSetFrame&&r()(".player-controls-container").show(),o=e.offsetX/this.$el.find(".player-progress").width(),this.second=o*this.mediaPlayer.duration,!r()(e.target).hasClass("player-progress")&&!r()(e.target).hasClass("ui-slider-range")||isNaN(this.mediaPlayer.duration))return;var s=parseInt(this.second/2),a=parseInt(s/10),n=s%10;this.quickPreviewImg&&this.quickPreviewContext&&(this.quickPreviewContext.drawImage(this.quickPreviewImg,128*n,72*a,128,72,0,0,128,72),this.quickPreviewContext.fillStyle="rgba(0,0,0,0.5)",this.quickPreviewContext.fillRect(47,53,37,18),this.quickPreviewContext.font="9px",this.quickPreviewContext.fillStyle="white",this.quickPreviewContext.fillText(this.strToTime(this.second),55,67)),r()("#canvasHoverTime").val(this.second),clearTimeout(this.hideQuickPreviewTimeout),this.hideQuickPreviewTimeout=setTimeout((function(){i.fadeOut(200)}),3e3)}else{i.fadeIn(),r()(".player-controls-container").show();var o=e.offsetX/this.$el.find(".player-progress").width();this.second=o*this.mediaPlayer.duration,isNaN(this.second)&&(this.second=.2);var l=document.getElementsByClassName("hidden-video")[0];l.currentTime=Number(this.second),this.quickPreviewCanvas=this.$el.find(".quickpreview-canvas")[0],this.quickPreviewContext=this.quickPreviewCanvas.getContext("2d"),this.$el.find("#quick-preview-loading").show(),r()(this.quickPreviewCanvas).hide(),l.removeEventListener("canplay",this.drawImageForPreview),l.addEventListener("canplay",this.drawImageForPreview)}},drawImageForPreview:function(){this.quickPreviewContext&&this.quickPreviewContext.drawImage(document.getElementsByClassName("hidden-video")[0],0,0,128,72),this.quickPreviewCanvas&&(r()(this.quickPreviewCanvas).show(),this.$el.find("#quick-preview-loading").hide())},seekAndChooseThumb:function(e){r()(".player-controls-container, .set-frame-btn").show(),r()(".player-progress").on("mousemove",this._handleProgressBtnHover),this.undelegateHoverActions(),this.showPlayerControls();var i=r()("#canvasPreviewContainer");i.is(":visible")||i.fadeIn();var t=document.getElementsByClassName("hidden-video")[0];t&&(t.currentTime=Number(.2),this.quickPreviewCanvas=r()(".quickpreview-canvas")[0],this.quickPreviewContext=this.quickPreviewCanvas.getContext("2d"),this.$el.find("#quick-preview-loading").show(),r()(this.quickPreviewCanvas).hide(),t.removeEventListener("canplay",this.drawImageForPreview),t.addEventListener("canplay",this.drawImageForPreview))},hideSeekAndUpdateThumb:function(){this.undelegate("mouseenter mouseleave mousemove",this._handleHover),this.$el.find("#canvasPreviewContainer").hide(),r()(".player-progress").unbind("mousemove mouseleave")},seekAndUpdateThumb:function(){this.hideSeekAndUpdateThumb(),this.saveThisFrameAsThumbnail(this.second)},setThumbnailFromFrameCallBack:function(e){this.saveThisFrameAsThumbnail=e},setOnDataLoadHandler:function(e){this.onDataLoadHandler=e,this.dataLoaded&&e()},_handleEnded:function(e){if(this.playing&&this.mediaPlayer.currentTime>=this.mediaPlayer.duration-this.trimEnd&&(this.simpleEditMode||(this.$el.find(".replay-btn-container").fadeIn(500),this.$el.find(".player-actions-container").fadeOut()),this.playerState="ended",this.playing=!1,this.checkAllowPlay()),this.isIphone&&this.fullscreen&&this.exitFullScreen(),this.playerJSReceiver&&this.playerJSReceiver.emit("ended"),this.onEndHandler.length>0)for(var i=0;i<this.onEndHandler.length;i++)this.onEndHandler[i]();this.playing||(this.simpleEditMode?this.isFromSDK?this.$el.find(".play-pause-button").find("img").attr("src",this.origin+"/svg/play-white.svg"):this.$el.find(".play-pause-button").find("img").attr("src",this.customColors?this.origin+"/img/simple-edit-play-icon-dark.png":this.origin+"/img/simple-edit-play-icon.png"):this.isFromSDK?this.$el.find(".play-pause-button, .player-play-pause-action").find("img").attr("src",this.origin+"/svg/play-white.svg"):this.$el.find(".play-pause-button, .player-play-pause-action").find("img").attr("src",this.origin+"/svg/play.svg"))},_handleHover:function(e){var i=this,t=e.type,s=r()(e.target),a=this.$el.find(".player-controls-container").is(":visible"),n=r()(e.target.parentElement);this.simpleEditMode||("mouseenter"===t?this.showPlayerControls():"mouseleave"===t?(this.$el.find(".player-actions-container").fadeOut(),this.setPlayerControlsTimeout(1e3)):"mousemove"===t&&(clearTimeout(this.mousemoveTimeout),!this.isMobilePlayer&&this.isFullScreen()?(this.showPlayerHoverActions(),a||this.showPlayerControls(),n.hasClass("player-action")?this.mousemoveTimeout=setTimeout((function(){i.setPlayerControlsTimeout(50)}),1e3):s.hasClass("player-controls-container")||n.hasClass("player-controls-container")||n.hasClass("controls-btn")||n.hasClass("play-pause-btn")||n.hasClass("player-progress")||(this.mousemoveTimeout=setTimeout((function(){i.setPlayerControlsTimeout(50)}),800))):(this.showPlayerHoverActions(),this.isMobilePlayer||(this.mousemoveTimeout=setTimeout((function(){i.$el.find(".player-actions-container").fadeOut()}),n.hasClass("player-action")?1e3:600)))))},showPlayerControls:function(){clearTimeout(this.mouseleaveTimeout),this.$el.find(".player-controls-container").addClass("showing-controls").slideDown(200),this.$el.find("for-reactions, .notification-line-onplay").hide(),this.$el.find("#subtitlesTrack").css("bottom","55px"),this.isMobilePlayer?this.setPlayerControlsTimeout(1500):r()(".emoji-wrap-onplay").hide()},cueChanged:function(e){this.$el.find("#subtitlesTrack").text("");for(var i=document.getElementById("primary-video").textTracks[0],t="",s=0;s<i.activeCues.length;s++)t+=i.activeCues[s].text;""!=t&&(document.getElementById("primary-video").textTracks[0].mode="hidden",this.$el.find("#subtitlesTrack").html("<span>"+t+"</span>"))},setPlayerControlsTimeout:function(e){var i=this;this.mouseleaveTimeout=setTimeout((function(){clearTimeout(this),i.simpleEditMode||i.$el.find(".quality-container").is(":visible")||(i.$el.find(".player-actions-container").fadeOut(),i.$el.find(".player-controls-container").removeClass("showing-controls").slideUp(100),i.$el.find(".volume-container, .quality-container").slideUp(),i.$el.find("for-reactions, .notification-line-onplay").show(),i.$el.find("#subtitlesTrack").css("bottom","15px"),r()(".emoji-wrap-onplay").show())}),e)},setPlayerState:function(e){this.playerState=e},showPlayerHoverActions:function(){this.showHoverActions&&"initial"!==this.playerState&&"ended"!==this.playerState&&!this.isCTAWaitingMode&&this.$el.find(".player-actions-container").fadeIn()},_handleMenu:function(e){},_handleWaiting:function(e){if(this.showPersonalisedVideoLoading)this.$el.find("#personalisedVideoLoading").fadeIn(),this.showHoverActions=!1;else{var i=this;this.waitingTimeout=setTimeout((function(){i.canShowPlayerLoading&&i.$el.find(".player-loading-overlay").fadeIn(200)}),200),this._secondaryVideoPlaying&&this.customAudioPlayer.pause()}},setPersonalisedVideo:function(e){this.$el.find("#primary-video source").attr("src",e.video_url),this.$el.find("#primary-video").length>0&&this.$el.find("#primary-video")[0].load(),this.$el.find(".thumbnail-container img").attr("src",e.thumbnail),this.quickPreview=e.quickpreview,this.personalisedVideoDetailsSet=!0,this.$el.find("#personalisedVideoLoading").fadeOut(),this.pause(),this.show()},_handleResume:function(e){if(clearTimeout(this.waitingTimeout),this.$el.find(".player-loading-overlay").fadeOut(200),this.customAudioPlayer){this.customAudioPlayer.currentTime=this.mediaPlayer.currentTime;var i=this,t=this.customAudioPlayer.play();t?t.then((function(){i._secondaryVideoPlaying=!0})).catch((function(e){i._secondaryVideoPlaying=!1})):i._secondaryVideoPlaying=!0}},_handleCanplay:function(e){clearTimeout(this.waitingTimeout),this.$el.find(".player-loading-overlay").fadeOut(200);var i=this;if(this.playing){var t=this.mediaPlayer.play();t?t.then((function(){i._primaryVideoPlaying=!0})).catch((function(e){i._primaryVideoPlaying=!1})):i._primaryVideoPlaying=!0}this.canplayHandler&&this.canplayHandler(e);var s=window.navigator.userAgent.toLowerCase(),a=/safari/.test(s),n=/iphone|ipod|ipad/.test(s)&&!a;(r().inArray(c.default.getBrowserName(),["Safari","Edge","IE"])>=0||n)&&!this.largeValueSet?(this.mediaPlayer.currentTime=0,this.durationComputed=!0,this.largeValueSet=!0,this.onComputedDurationHander&&this.onComputedDurationHander()):this.largeValueSet||isFinite(this.mediaPlayer.duration)?!this.durationComputed&&isFinite(this.mediaPlayer.duration)&&(this.mediaPlayer.currentTime=0,this.durationComputed=!0,this.onComputedDurationHander&&this.onComputedDurationHander()):(this.largeValueSet=!0,this.mediaPlayer.currentTime=1e9)},_handleSeeked:function(){if(this.onSeekedHandler&&this.onSeekedHandler(),this.onSeekedHandlers)for(var e=0;e<this.onSeekedHandlers.length;e++)this.onSeekedHandlers[e]&&this.onSeekedHandlers[e]()},_handleSeeking:function(){this.seekingStartedAt=this.currentTimeUpdate,this.seekingEndedAt=this.mediaPlayer.currentTime,this.onSeekindHandler&&this.onSeekindHandler()},_handlePlayerClick:function(e){this.simpleEditMode||this.isImageMode||(new Date-this.previousClick<300?this._handleFullscreenBtnClick():r()(e.currentTarget).hasClass("replay-btn-container")||r()(e.currentTarget).hasClass("play-btn-container")?this.play():this.showHoverActions||this._handlePlayPauseBtnClick(),this.showPlayerControls(),this.previousClick=new Date)},_handlePlay:function(){if(this.$el.find(".thumbnail-container").is(":visible")&&this.$el.find(".thumbnail-container").fadeOut(100),this.simpleEditMode?this.$el.find(".play-pause-button").find("img").attr("src",this.customColors?this.origin+"/img/simple-edit-pause-icon-dark.png":this.origin+"/img/simple-edit-pause-icon.png"):this.$el.find(".play-pause-button, .player-play-pause-action").find("img").attr("src",this.origin+"/svg/pause-white.svg"),this.onPlayHandler.length>0)for(var e=0;e<this.onPlayHandler.length;e++)this.onPlayHandler[e]()},_handlePause:function(){if(!this.playing&&(this._secondaryVideoPlaying&&this.customAudioPlayer.pause(),this.simpleEditMode?this.isFromSDK?this.$el.find(".play-pause-button").find("img").attr("src",this.origin+"/svg/play-white.svg"):this.$el.find(".play-pause-button").find("img").attr("src",this.customColors?this.origin+"/img/simple-edit-play-icon-dark.png":this.origin+"/img/simple-edit-play-icon.png"):this.isFromSDK?this.$el.find(".play-pause-button, .player-play-pause-action").find("img").attr("src",this.origin+"/svg/play-white.svg"):this.$el.find(".play-pause-button, .player-play-pause-action").find("img").attr("src",this.origin+"/svg/play.svg"),this.onPauseHandler.length>0))for(var e=0;e<this.onPauseHandler.length;e++)this.onPauseHandler[e]()},_handleProgress:function(e){if(this.showPersonalisedVideoLoading&&this.personalisedVideoDetailsSet){var i="Opera"==c.default.getBrowserName();if(!i){var t=this.mediaPlayer.buffered;if(!t||!t.length)return;var s=t.start(0),a=t.end(t.length-1);i=0==s&&a>3}i&&(this.personalisedVideoDetailsSet=!1,this.$el.find("#personalisedVideoLoading").is(":visible")&&this.play(),this.showHoverActions=!0,this.showPersonalisedVideoLoading=!1,this.$el.find("#personalisedVideoLoading").fadeOut())}this.onProgressHandler&&this.onProgressHandler(e)},_handlePlayPauseBtnClick:function(){this.playing?this.pause():this.play()},_handleRewindBtnClick:function(){if(!this.isCTAWaitingMode){var e=this.mediaPlayer.currentTime;e=Math.max(e-5,0),this.mediaPlayer.currentTime=e,this.customAudioPlayer.currentTime=e}},_handleForwardBtnClick:function(){if(!this.isCTAWaitingMode){var e=this.mediaPlayer.currentTime;e!=this.mediaPlayer.duration&&(e=Math.min(e+5,this.mediaPlayer.duration),this.mediaPlayer.currentTime=e,this.customAudioPlayer.currentTime=e)}},_handleAudioBtnClick:function(){0!=this.getVolume()?this.mute():this.unmute()},_handleMutedAutoplayAudioClick:function(e){this.unmute(),r()(e.currentTarget).remove()},_handleFullscreenBtnClick:function(){this.fullscreen?this.exitFullScreen():this.enterFullScreen()},_handleTimeupdate:function(e){var i=this.map(this.mediaPlayer.currentTime,this.trimStart,this.mediaPlayer.duration-this.trimEnd,0,100);if((isNaN(i)||this.mediaPlayer.currentTime<Math.round(100*this.trimStart)/100)&&(this.mediaPlayer.currentTime=Math.round(100*this.trimStart)/100),i>100&&(this._handleEnded(),this.mediaPlayer.currentTime=this.trimStart>=this.mediaPlayer.duration?this.mediaPlayer.duration:this.trimStart,this._primaryVideoPlaying&&this.mediaPlayer.pause()),isFinite(this.mediaPlayer.duration)){this.$el.find(".player-progress").slider("instance")&&this.$el.find(".player-progress").slider("value",i);var t=this.mediaPlayer.duration,s=this.mediaPlayer.currentTime;isNaN(this.trimStart)||isNaN(this.trimEnd)||(t=t-this.trimStart-this.trimEnd,s-=this.trimStart),t=Math.max(t,0),s=Math.max(s,0),this.$el.find(".player-currenttime").text(this.strToTime(s)+" / "+this.strToTime(t)),this.currentTimeUpdate=s,this.updateHandler&&this.updateHandler(),this.playerJSReceiver&&this.playerJSReceiver.emit("timeupdate",{seconds:s,duration:t})}},mute:function(){this.previousVolume=this.getVolume(),this.setVolume(0),this.mediaPlayer.muted=!0,this.customAudioPlayer&&(this.customAudioPlayer.muted=!0)},unmute:function(){this.setVolume(this.previousVolume),this.mediaPlayer.muted=!1,this.$el.find(".muted-autoplay").remove(),this.customAudioPlayer&&(this.customAudioPlayer.muted=!1)},setLoop:function(e){this.loop=e},getLoop:function(){return this.loop},setUpdateHandler:function(e){this.updateHandler=e},setPlayPauseHandler:function(e,i){i?this.onPlayHandler.push(e):this.onPauseHandler.push(e)},setEndedHandler:function(e){this.onEndHandler.push(e)},setSeekedHandler:function(e){this.onSeekedHandler=e},addSeekedHandler:function(e){this.onSeekedHandlers.push(e)},setSeekingHandler:function(e){this.onSeekindHandler=e},setPlayerResizeHandler:function(e){this.playerResizeHandler=e},play:function(){if(!this.playing&&!this.isCTAWaitingMode){if("initial"==this.playerState||"ended"==this.playerState)return this.playerState="started",this.$el.find(".play-btn-container").fadeOut(),this.$el.find(".replay-btn-container").fadeOut(),this.$el.find(".play-btn-container video").remove(),void(this.allowPlay?this.play():this.renderWarning(7));this.playing=!0;var e=this,i=this.mediaPlayer.play();i?i.then((function(){e._primaryVideoPlaying=!0})).catch((function(i){e._primaryVideoPlaying=!1})):e._primaryVideoPlaying=!0,this.playerJSReceiver&&this.playerJSReceiver.emit("play")}},pause:function(){this.playing&&(this.playing=!1,this._primaryVideoPlaying&&this.mediaPlayer.pause(),this.playerJSReceiver&&this.playerJSReceiver.emit("pause"))},isPlaying:function(){return this.playing},setVolume:function(e){this.$el.find(".player-audio-slider").slider("value",e),this.volumeChanged()},getVolume:function(){return this.$el.find(".player-audio-slider").slider("value")},isFullScreen:function(){return document.fullScreenElement&&null!==document.fullScreenElement||document.mozFullScreen||document.webkitIsFullScreen},enterFullScreen:function(){var e=screen.msOrientation||screen.orientation||screen.mozOrientation||{};if(!this.fullscreen&&0!=this.fullscreenControl){var i;this.fullscreen=!0,(i=this.isIphone?document.getElementById("primary-video"):document.getElementById(this.id)).webkitEnterFullScreen?i.webkitEnterFullScreen():i.requestFullscreen?i.requestFullscreen():i.msRequestFullscreen?i.msRequestFullscreen():i.mozRequestFullScreen?i.mozRequestFullScreen():i.webkitRequestFullscreen&&i.webkitRequestFullscreen();try{u.Z.canForceLandscapeForFullscreen()&&e.lock("landscape")}catch(e){u.Z.postErrorsToLog({error:"Error while trying to force full screen landscape in player",stackTrace:JSON.stringify(e)})}}},exitFullScreen:function(){var e=screen.msOrientation||screen.orientation||screen.mozOrientation||{};if(this.fullscreen){this.fullscreen=!1;var i=document;this.isIphone&&(i=document.getElementById("primary-video")),i.exitFullscreen?i.exitFullscreen():i.msExitFullscreen?i.msExitFullscreen():i.mozCancelFullScreen?i.mozCancelFullScreen():i.webkitExitFullscreen&&i.webkitExitFullscreen();try{u.Z.canForceLandscapeForFullscreen()&&e.unlock()}catch(e){u.Z.postErrorsToLog({error:"Error while trying to force exit full screen landscape in player",stackTrace:JSON.stringify(e)})}}},strToTime:function(e){var i=parseFloat(e,10),t=Math.floor(i/3600),s=Math.floor((i-3600*t)/60),a=Math.floor(i-3600*t-60*s);return t>0&&s<10&&(s="0"+s),a<10&&(a="0"+a),t>0?t+":"+s+":"+a:s+":"+a},trim:function(e,i,t){if(this.trimStart!=e||this.trimEnd!=i)try{this.mediaPlayer.currentTime=e,this.customAudioPlayer.currentTime=e}catch(e){}if(this.trimStart=e,this.trimEnd=i,t&&("initial"==this.playerState||"ended"==this.playerState))return this.playerState="started",this.$el.find(".play-btn-container").fadeOut(100),this.$el.find(".replay-btn-container").fadeOut(100),void this.$el.find(".play-btn-container video").remove()},map:function(e,i,t,s,a){return(e-i)*(a-s)/(t-i)+s},setSimpleEditMode:function(e){this.simpleEditMode=e,this.simpleEditMode?(this.$el.animate({"margin-bottom":"0px"},200),this.$el.find(".player-controls-container").addClass("player-controls-outside"),this.$el.find(".player-controls-container").removeClass("player-controls-inside"),this.$el.find(".player-controls-container").fadeIn(),this.isFromSDK?this.$el.find(".play-pause-button").find("img").attr("src",this.origin+"/svg/play-white.svg"):this.$el.find(".play-pause-button").find("img").attr("src",this.customColors?this.origin+"/img/simple-edit-play-icon-dark.png":this.origin+"/img/simple-edit-play-icon.png"),this.$el.find(".player-download, .for-reactions").hide(),this.$el.find(".notification-line-onplay").hide()):(this.$el.animate({"margin-bottom":"0px"},200),this.$el.find(".player-controls-container").removeClass("player-controls-outside"),this.$el.find(".player-controls-container").addClass("player-controls-inside"),this.isFromSDK?this.$el.find(".play-pause-button").find("img").attr("src",this.origin+"/svg/play-white.svg"):this.$el.find(".play-pause-button").find("img").attr("src",this.origin+"/svg/play.svg"),this.$el.find(".player-download, .for-reactions").show(),this.$el.find(".notification-line-onplay").show())},setCTAWaitingMode:function(e){this.isCTAWaitingMode=e,e&&this.$el.find(".player-actions-container").fadeOut()},setStatId:function(e){this.statId=e},getStatId:function(){return this.statId},resizePlayerForWindow:function(){var e=this,i=screen.msOrientation||(screen.orientation||screen.mozOrientation||{}).type;this.$el.height(9*this.$el.width()/16),this.isFromSDK?setTimeout((function(){e.$el.height(9*e.$el.width()/16),e.resizeFitThumnbail(),e.isMobilePlayer&&((i||"").includes("landscape")&&e.isFullScreen()?e.$el.find(".emoji-wrap").show():e.$el.find(".emoji-wrap").hide()),e.playerResizeHandler&&e.playerResizeHandler({width:e.$el.width(),height:e.$el.height()}),e.resizeFitRenderless()}),200):(this.resizeFitThumnbail(),this.isMobilePlayer&&((i||"").includes("landscape")&&this.isFullScreen()?this.$el.find(".emoji-wrap").show():this.$el.find(".emoji-wrap").hide()),this.playerResizeHandler&&this.playerResizeHandler({width:this.$el.width(),height:this.$el.height()}),this.resizeFitRenderless())},getValueForPlayerInitial:function(e,i){var t=this.$el.width(),s=this.$el.height();return i?this.roundNumber(e*(t/384),2):this.roundNumber(e*(s/216),2)},roundNumber:function(e,i){return Math.round(10*e*i)/(10*i)},getFaqOneLiner:function(){return null!=f()["faqoneliner_"+this.authorState]?f()["faqoneliner_"+this.authorState]:"unknown error.. contact us for more details"},getFaqLink:function(){var e={5:"misc-error",6:"misc-error",13:"upload-issues",14:"upload-issues",16:"upload-issues",28:"upload-issues",22:"misc-error",23:"misc-error",27:"misc-error"};return null==e[this.authorState]?"":'<a target="_blank" href="https://www.hippovideo.io/faq.html#'+e[this.authorState]+'"> more info </a>'},resetPlayer:function(){this.isImageMode?this.$el.find(".primary-video-container img").attr("src",""):(this.$el.find(".secondary-video-container video").attr("src",""),this.$el.find(".primary-video-container video").attr("src",""),this.$el.find(".secondary-video-container video")[0].load(),this.$el.find(".primary-video-container video")[0].load(),this.canShowPlayerLoading&&this.$el.find(".player-loading-overlay").show(),this.$el.find(".title-paragraph-tag").text(""),this.$el.find(".player-currenttime").text("")),this.$el.find(".vdo-prev-head").hide(),this.$el.find(".hippo-video-buttons").hide(),this.$el.find(".play-btn-container").hide(),this.$el.find(".vdo-error-state").hide()},downloadVideoClick:function(){null!=this.downloadVideo&&this.downloadVideo()},_handleCanvasMouseAction:function(e){if(clearTimeout(this.hideQuickPreviewTimeout),"mouseleave"===e.type){var i=this;this.hideQuickPreviewTimeout=setTimeout((function(){i.$el.find("#canvasPreviewContainer").fadeOut(200)}),300)}},getCurrentTime:function(){return this.durationComputed?this.mediaPlayer.currentTime:.001},getDuration:function(){return parseInt(this.mediaPlayer.duration)||this.duration},checkAllowPlay:function(){if(this.token){var e=this,i={token:this.token};_.Z.call({url:"/video_delivery/is_allow_play",method:"POST",data:i,success:function(i){e.allowPlay=i.is_allow}})}},renderWarning:function(e){var i=r()("#"+this.$el.attr("id")).parent().attr("id");r()("#"+i).empty(),r()("#"+i).html(this.template({id:this.id,token:this.token,thumbnail:" ",privacy:e})),this.setElement(r()("#"+this.id)),this.initializeCSS(),this.undelegateEvents(),r()("#comments").hide(),r()(".delivery-footer").hide(),r()(".play-btn-container").hide()},undelegateHoverActions:function(){this.undelegate("mouseenter mouseleave mousemove",this._handleHover)},delegateHoverActions:function(){this.delegate("mouseenter mouseleave mousemove",this._handleHover)},overrideStyle:function(e,i,t){e.each((function(){this.style.setProperty(i,t,"important")}))},applyCustomColors:function(){if(this.customColors){var e="";this.customColors.primaryColor&&(this.overrideStyle(this.$el.find(".player-progress .ui-slider-range, .player-progress .ui-slider-handle, .player-audio-slider .ui-slider-range, .player-audio-slider .ui-slider-handle"),"background",this.customColors.primaryColor),this.overrideStyle(this.$el.find(".player-progress .ui-slider-range"),"background-image","unset"),e+=".trim-slider .ui-slider-handle:before,.hippo-video-player .ui-resizable-e, .hippo-video-player .ui-resizable-w, .hippo-video-player .ui-resizable-n, .hippo-video-player .ui-resizable-s, .hippo-video-player .ui-resizable-nw, .hippo-video-player .ui-resizable-ne, .hippo-video-player .ui-resizable-sw, .hippo-video-player .ui-resizable-se,.hippo-video-player .ui-resizable-nw::after, .hippo-video-player .ui-resizable-ne::after, .hippo-video-player .ui-resizable-sw::after, .hippo-video-player .ui-resizable-se::after {background: "+this.customColors.primaryColor+" !important;}",e+=".se-clip-time {border-color: "+this.customColors.primaryColor+" !important;}",e+=".player-controls-outside .player-currenttime {color: "+this.customColors.primaryColor+" !important;}"),this.customColors.secondaryColor&&(e+=".se-clip-time {background: "+this.customColors.secondaryColor+" !important;}"),this.customColors.bgColor&&(e+=".player-controls-outside {background: "+this.customColors.bgColor+" !important;}"),e.length>0&&(document.head.appendChild(document.createElement("style")).innerHTML=e)}},getBandwidthConsumed:function(){var e={type:this.type};if("m3u8"==this.type){var i;e.totalFileSize=(null===(i=this.adapter)||void 0===i?void 0:i.getBandwidthConsumed())||0}else{for(var t=0,s=0;s<this.mediaPlayer.buffered.length;s++){var a=this.mediaPlayer.buffered.start(s);t+=100*(this.mediaPlayer.buffered.end(s)-a)/this.mediaPlayer.duration}e.perc=t}return e},applyCustomPlayIcon:function(){if(this.customPlayIcon){var e=document.createElement("div");e.classList.add("overlay"),r()(".main-controls").each((function(){r()(this).append(e)}));var i=document.createElement("div");i.classList.add("watch-video"),i.textContent="WATCH VIDEO",r()(".main-plyBtn").each((function(){r()(this).append(i)})),r()(".main-plyBtn .playbutton").each((function(){r()(this).find("svg").remove(),r()(this).append('<svg xmlns="http://www.w3.org/2000/svg" width="47" height="47" viewBox="0 0 47 47" class="white-play-icon prim-vid"> <g transform="translate(-344.113 -1343.053)"> <g class="a" transform="translate(344.113 1343.053)"> <circle class="c" cx="23.5" cy="23.5" r="23.5"/> <circle class="d" cx="23.5" cy="23.5" r="23"/> </g> <path class="b" d="M7.312,0l7.312,12.56H0Z" transform="translate(375.756 1359.646) rotate(90)"/> </g> </svg>'),r()(this).append('<svg xmlns="http://www.w3.org/2000/svg" width="47" height="47" viewBox="0 0 57 57" class="white-play-icon-filled" style="display:none;"> <g transform="translate(-932 -595)"> <circle class="a" cx="28.5" cy="28.5" r="28.5" transform="translate(932 595)"/> <path class="b" d="M8.813,0l8.813,15.137H0Z" transform="translate(970.137 615) rotate(90)"/> </g> </svg>')})),r()("#videoPagePreviewBlock, #videoPageDeliveryBlock").addClass(this.customPlayIcon)}},updateIsMirrorWebCam:function(e){this.isMirrorWebCam=e,c.default.toggleWebcamForMirrorVideo(this.isMirrorWebCam,null!=this.audioSrc&&""!=this.audioSrc?this.$el.find(".secondary-video"):this.$el.find("#primary-video"))},updateQuickPreviewObjects:function(e){e&&!this.isAudioOnly&&this.getDuration()>=30?(this.quickPreviewImg=document.createElement("img"),this.quickPreviewImg.setAttribute("src",e),this.quickPreviewCanvas=this.$el.find(".quickpreview-canvas")[0],this.quickPreviewContext=this.quickPreviewCanvas.getContext("2d"),r()(this.quickPreviewCanvas).hide(),this.$el.find("#quick-preview-loading").show()):(this.quickPreviewImg=void 0,this.quickPreviewCanvas=void 0,this.quickPreviewContext=void 0)},setShowSetFrame:function(e){e?this.seekAndChooseThumb():this.hideSeekAndUpdateThumb()}})},33194:function(e,i,t){"use strict";t.r(i),t(55674),t(48702),t(74916),t(4723),t(69826),t(41539),t(26699),t(32023),t(15306),t(54747),t(47941),t(54678),t(66992),t(88674),t(78783),t(33948),t(21249),t(2707),t(91058),t(9653);var s,a,n,o=t(19755),r=t.n(o),l=t(1618),d=t(72316),h=t.n(d),c=t(12352),u=t(83958),p=t(52737),y=t.n(p),v=t(952),m=t.n(v),g=t(67581),f=t.n(g),w=t(17141),b=t.n(w),P=t(48375),k=t(57005),C=t(42152),_=t.n(C),S=t(80300),x=t(12282),$=(t(58229),t(73423),t(26891),t(86227),(0,x.eQ)());i.default=h().View.extend({template:y(),initialize:function(e){e=(0,l.YH)({},c.default.getQueryParams(),e),this.id=e.id,this.src=e.src,this.parallelURLs=e.parallelURLs,this.type=null!=e.type?e.type:"url",this.title=e.title,this.controls=null==e.controls||parseBoolean(e.controls),this.loop=null!=e.loop&&parseBoolean(e.loop),this.initial=e.initial||!1,this.isPrivacy=e.isPrivacy||!1,this.statId=e.statId,this.audioSrc=e.audioSrc,this.mfInVideosPresent=!!e.mfInVideosPresent,this.isDelivery=null!=e.isDelivery&&e.isDelivery,this.analytics=null!=e.analytics&&e.analytics,this.userId=e.userId,this.primaryVideoLayout=e.primaryVideoLayout,this.secondaryVideoLayout=e.secondaryVideoLayout,this.showLogo=null==e.showLogo||e.showLogo,this.trimStart=e.trimStart?e.trimStart:0,this.trimEnd=e.trimEnd?e.trimEnd:0,this.duration=e.duration?e.duration:0,this.assetId=e.assetId,this.customlogo=e.customlogo,this.thumbnail=e.thumbnail,this.quickPreview=e.quickPreview,this.previewVideo=e.previewVideo,this.isMirrorWebCam=e.isMirrorWebCam,this.isMirrorSecondary=e.isMirrorSecondary,this.playAudio=null==e.playAudio||e.playAudio,this.playVideo=null==e.playVideo||e.playVideo,this.qualityControl=null==e.qualityControl||e.qualityControl,this.fullscreen=null!=e.fullscreen&&e.fullscreen,this.audioControl=null!=e.audioControl?e.audioControl:this.playAudio,this.fullscreenControl=null==e.fullscreenControl||e.fullscreenControl,this.simpleEditMode=null!=e.simpleEditMode&&e.simpleEditMode,this.showSpeedSettings=null!=e.showSpeedSettings&&e.showSpeedSettings,this.authorState=e.authorState,this.isError=e.isError,this.previousVolume=100,this.onPlayHandler=e.onPlayHandler?[e.onPlayHandler]:[],this.onPauseHandler=e.onPauseHandler?[e.onPauseHandler]:[],this.onSeekedHandler=e.onSeekedHandler,this.onSeekedHandlers=e.onSeekedHandlers?[e.onSeekedHandlers]:[],this.onSeekindHandler=e.onSeekindHandler,this.onLoadHandler=e.onLoadHandler,this.onProgressHandler=e.onProgressHandler,this.onDataLoadHandler=e.onDataLoadHandler,this.updateHandler=e.updateHandler?[e.updateHandler]:[],this.resumeHandler=e.resumeHandler,this.canplayHandler=e.canplayHandler,this.onComputedDurationHander=e.onComputedDurationHander,this.onEndHandler=e.onEndHandler?[e.onEndHandler]:[],this.onReplayHandlers=e.onReplayHandlers?[e.onReplayHandlers]:[],this.privacySetting=null!=e.privacy&&e.privacy,this.token=null!=e.token&&e.token,this.downloadVideo=e.downloadVideo,this.allowDownload=null!=e.allowDownload&&e.allowDownload,this.showComments=e.showComments,this.showReactions=e.showReactions,this.canShowDeliveryDownload=null!=e.deliveryDownload&&e.deliveryDownload,this.commentsCallbackHandler=e.commentsCallbackHandler||function(){},this.reactionsCallbackHandler=e.reactionsCallbackHandler||function(){},this.playerLogo=e.playerLogo,this.canShowAboutUs=e.canShowAboutUs,this.canPlayerLogoView=e.canPlayerLogoView,this.addLinkToPlayerLogo=e.addLinkToPlayerLogo,this.playerLogoLink=e.playerLogoLink,this.isImageMode=e.isImageMode||!1,this.showSetFrame=e.showSetFrame&&!e.isImageMode||!1,this.playerTheme=null!=e.playerTheme&&e.playerTheme,this.subtitlesEnabled=!1,this.subtitles=e.subtitleUrl,this.showHoverActions=void 0===e.showHoverActions||e.showHoverActions,this.customColors=e.customColors,this.allowKeyboardShortcuts=e.allowKeyboardShortcuts||!1,this.saveThisFrameAsThumbnail=function(){},this.isMobilePlayer=u.default.isMobileBrowser(),this.isIphone=null!=navigator.userAgent.match(/iPhone|iPad|iPod/i),this.autoPlayVideo=!!e.autoPlayVideo&&!this.isImageMode;var i=c.default.getBrowserName().toLowerCase();this.isMutedAutoPlay=this.autoPlayVideo&&("chrome"===i||"safari"===i||"firefox"===i),this.canShowPlayerLoading="ie"!==i,this.showPersonalisedVideoLoading=e.showPersonalisedVideoLoading||!1,this.personalisedVideoDetailsSet=!1,this.isLandingPageVideo=e.isLandingPageVideo||!1,this.domainName=e.domain||!1,this.subtitlesFromServer=!1,this.isContainsAudio=null==e.isContainsAudio||e.isContainsAudio,this.isAudioOnly=null!=e.isAudioOnly&&e.isAudioOnly,this.addSourceAudioType="safari"===i&&this.isAudioOnly,this.iosInBrowserFullScreen=null!=e.iosInBrowserFullScreen&&e.iosInBrowserFullScreen,e.forceAutoPlay&&(this.isMutedAutoPlay=!1),i=["Firefox","IE"],r().inArray(c.default.getBrowserName(),i)>=0&&(this.subtitlesFromServer=!0),this.customPlayIcon=e.customPlayIcon,this.playerState="initial",this.durationComputed=!1,this.allowPlay=!0,this.isCTAWaitingMode=!1,this._primaryVideoPlaying=!1,this._secondaryVideoPlaying=!1,this.isWating=!1,this.progressSlided=this.progressSlided.bind(this),this.volumeChanged=this.volumeChanged.bind(this),this._handleTimeupdate=this._handleTimeupdate.bind(this),this._handlePlay=this._handlePlay.bind(this),this._handlePause=this._handlePause.bind(this),this._handleProgress=this._handleProgress.bind(this),this._handlePlayerClick=this._handlePlayerClick.bind(this),this._handlePlayPauseBtnClick=this._handlePlayPauseBtnClick.bind(this),this._handleForwardBtnClick=this._handleForwardBtnClick.bind(this),this._handleRewindBtnClick=this._handleRewindBtnClick.bind(this),this._handleAudioBtnClick=this._handleAudioBtnClick.bind(this),this._handleFullscreenBtnClick=this._handleFullscreenBtnClick.bind(this),this._handleWaiting=this._handleWaiting.bind(this),this._handleResume=this._handleResume.bind(this),this._handleCanplay=this._handleCanplay.bind(this),this._handleHover=this._handleHover.bind(this),this._resolveHoverEvent=this._resolveHoverEvent.bind(this),this._handleEnded=this._handleEnded.bind(this),this._handleSeeked=this._handleSeeked.bind(this),this._handleSeeking=this._handleSeeking.bind(this),this._handleMetadataLoad=this._handleMetadataLoad.bind(this),this._handleDataLoad=this._handleDataLoad.bind(this),this._handleProgressBtnHover=this._handleProgressBtnHover.bind(this),this._handleProgressBtnLeave=this._handleProgressBtnLeave.bind(this),this._handleFullscreenChange=this._handleFullscreenChange.bind(this),this.resetPlayer=this.resetPlayer.bind(this),this.downloadVideoClick=this.downloadVideoClick.bind(this),this._handleCanvasMouseAction=this._handleCanvasMouseAction.bind(this),this.drawImageForPreview=this.drawImageForPreview.bind(this),this.seekAndChooseThumb=this.seekAndChooseThumb.bind(this),this.seekAndUpdateThumb=this.seekAndUpdateThumb.bind(this),this.toggleSubtitles=this.toggleSubtitles.bind(this),this._handleMutedAutoplayAudioClick=this._handleMutedAutoplayAudioClick.bind(this),this.getBandwidthConsumed=this.getBandwidthConsumed.bind(this),this.setStatId=this.setStatId.bind(this),this.getStatId=this.getStatId.bind(this),this.segmented=e.segmented,this.auth_params=e.auth_params||{},this.cueChanged=this.cueChanged.bind(this),this.deliveryDownload=this.deliveryDownload.bind(this),this.settingControl=this.qualityControl||this.showSpeedSettings||this.subtitlesEnabled,this.playing=!1,this.controlsEnabled=!0,this.clipboard=void 0,this.alive=!0},render:function(){if(this.$el.html(this.template((0,l.YH)(f(),{id:this.id,type:this.type,title:this.title,isAudioOnly:this.isAudioOnly,addSourceAudioType:this.addSourceAudioType,initial:this.initial,isPrivacy:this.isPrivacy,settingControl:this.settingControl,audioControl:this.audioControl,qualityControl:this.qualityControl,fullscreenControl:this.fullscreenControl,showLogo:this.showLogo,customlogo:this.customlogo,thumbnail:this.thumbnail,quickPreview:this.quickPreview,previewVideo:this.previewVideo,privacy:this.privacySetting,downloadVideo:this.downloadVideo,allowDownload:this.allowDownload,showComments:this.showComments,showSetFrame:this.showSetFrame,showReactions:this.showReactions,canShowDeliveryDownload:this.canShowDeliveryDownload,isImageMode:this.isImageMode,playerLogo:this.playerLogo,isMutedAutoPlay:this.isMutedAutoPlay,canPlayerLogoView:this.canPlayerLogoView,addLinkToPlayerLogo:this.addLinkToPlayerLogo,playerLogoLink:this.playerLogoLink,playerTheme:this.playerTheme,subtitlesEnabled:this.subtitlesEnabled,subtitles:this.subtitles,showHoverActions:this.showHoverActions,showSpeedSettings:this.showSpeedSettings,isLandingPageVideo:this.isLandingPageVideo,token:this.token,domain:window.location.protocol+"//"+window.location.hostname,subtitlesFromServer:this.subtitlesFromServer,isMobilePlayer:this.isMobilePlayer,isContainsAudio:this.isContainsAudio,controls:this.controls,loop:this.loop,staticImgDomain:$}))),this.renderState=!0,this.setElement(r()("#"+this.id)),this.initial)return this.$el.height(9*this.$el.width()/16),void this.applyCustomColors();if(this.initializePlayer(),this.initializeNewPlayer(),this._delegateViewEvents(),this.setMediaSource(),this.initializePlayerJS(),-1!=["m3u8","mpd"].indexOf(this.type))this.initializeAdapter();else try{this.initPlayerMetrics()}catch(e){u.default.postErrorsToLog({error:"Error while trying to initialize Player Metrics",stackTrace:JSON.stringify(e)})}this.initializeCSS(),this.applyCustomColors(),this.applyCustomPlayIcon(),void 0===this.isMirrorWebCam&&void 0===this.isMirrorSecondary||c.default.toggleWebcamForMirrorVideo(!(!this.isMirrorWebCam&&!this.isMirrorSecondary),this.isMirrorSecondary||null!=this.audioSrc&&""!=this.audioSrc?this.$el.find(".secondary-video"):this.$el.find("#primary-video"));var e=window.location.href,i="";e.includes("/page/")&&!e.includes("/page/thumbnail/")?i=(i=e.replace("/page/","/page/thumbnail/")).includes("?")?i+"&is_play_time=true":i+"?is_play_time=true":e.includes("/play/")&&!e.includes("/thumbnail/")?i=(i=e.replace("/play/","/thumbnail/")).includes("?")?i+"&is_play_time=true":i+"?is_play_time=true":e.includes("/embed/")&&!e.includes("/thumbnail/")&&(i=e.replace("/embed/","/thumbnail/"),e=e.replace("/embed/","/play/"),this.$el.find(".hv-rclick-copy").hide()),this.copyWithThumbnail(e,i),this._handleVideoPreview()},update:function(e){var i=this;if(this.auth_params){var t=e.auth_params||{};for(var s in t)this.auth_params[s]=t[s]}else this.auth_params=e.auth_params||{};Object.keys(e).forEach((function(t){null!=e[t]&&(i[t]=e[t])})),e.showPersonalisedVideoLoading&&this.$el.find("#personalisedVideoLoading").show(),e.previewVideo?(this.$el.find(".play-btn-container video").attr("src",e.previewVideo),this._handleVideoPreview()):e.thumbnail&&this.$el.find("#playerThumbnail").attr("src",e.thumbnail),r()("#qualityConrols")[this.qualityControl?"show":"hide"](),this.settingControl=this.qualityControl||this.showSpeedSettings||this.subtitlesEnabled,r()(".settings-container")[this.settingControl?"show":"hide"](),this.hideSettingControlsIfPossible(),this.setMediaSource(),void 0===e.isMirrorWebCam&&void 0===e.isMirrorSecondary||c.default.toggleWebcamForMirrorVideo(!(!e.isMirrorWebCam&&!e.isMirrorSecondary),e.isMirrorSecondary||null!=this.audioSrc&&""!=this.audioSrc?this.$el.find(".secondary-video"):this.$el.find("#primary-video")),-1!=["m3u8","mpd"].indexOf(this.type)?this.initializeAdapter():this.initPlayerMetrics()},_handlePlayPauseForNewPlayer:function(){for(var e=this,i=e.$el.find(".final-plybtn-click"),t=0;t<i.length;t++)i[t]&&(s=i[t],r()(s).children(".solidply")[e.playing?"addClass":"removeClass"]("solidpause"),r()(s).children(".playbutton")[e.playing?"addClass":"removeClass"]("paused"),r()(s).children(".playbutton").hasClass("paused")?r()(s).find(".playthreepath").attr("d","M16,23 L16,1 L1,1 L1,23 L16,23 Z"):r()(s).find(".playthreepath").attr("d","M1,1.618034 L1,1.618034 L21.763932,12 L1,22.381966 L1,12 Z"),r()(s).children(".solidply").hasClass("solidpause")?(r()(s).find(".solidply1").attr("d","M1,1 L1,1 1,5 16,5 16,1 Z"),r()(s).find(".solidply2").attr("d","M1,11 L1,11 1,15 16,15 16,11 Z")):(r()(s).find(".solidply1").attr("d","M1,1 L1,1 1,11 16,11 16,11 Z"),r()(s).find(".solidply2").attr("d","M1,11 L1,11 1,22 16,11 16,11 Z")));var s},initializeNewPlayer:function(){var e=this;e.$el.find(".playbtn-container").click((function(i){e.showPlayerControls(),e._handlePlayPauseBtnClick(i)})),e.$el.find(".main-plyBtn").click((function(i){e.showPlayerControls(),e._handlePlayPauseBtnClick(i)})),r()(window).on("resize",(function(i){r()(i.target).hasClass("ui-resizable")||e.resizePlayerForWindow()})),this.resizePlayerForWindow(),r()(".settingsbtn-container").click((function(){r()(this).parent(".settings-container").toggleClass("opened")})),this.simpleEditMode||r()(".player-touch-guard").addClass("disp-none"),this.fullscreenControl&&this.audioControl?(r()(".player-controls-wrapper").removeClass("hide-one-ctrl"),r()(".notification-line-onplay").removeClass("hide-one-ctrl"),r()(".hp-indicator").removeClass("hide-one-ctrl")):(r()(".player-controls-wrapper").addClass("hide-one-ctrl"),r()(".notification-line-onplay").addClass("hide-one-ctrl"),r()(".hp-indicator").addClass("hide-one-ctrl")),this.canPlayerLogoView||(r()(".player-controls-wrapper").addClass("hide-logo"),r()(".notification-line-onplay").addClass("hide-logo"),r()(".hp-indicator").addClass("hide-logo")),this.hideSettingControlsIfPossible(),this.fullscreenControl||this.canPlayerLogoView||this.settingControl||this.audioControl&&(r()(".player-controls-wrapper").addClass("only-vol-ctrl"),r()(".notification-line-onplay").addClass("only-vol-ctrl"),r()(".hp-indicator").removeClass("only-vol-ctrl")),this.$el.find(".player-controls-wrapper .duration-container").on("mousemove click mouseleave",(function(i){if("mouseleave"==i.type)return e.$el.find(".player-controls-wrapper .buffer-container").css("width","0%"),void e._handleProgressBtnLeave(i);var t=this.getRelativeMouseCoordinates(i),s=this.getBoundingClientRect(),a=Math.floor(t.x/Math.ceil(s.width)*100);if(e.$el.hasClass("player-rot90")&&(a=Math.floor(i.offsetX/Math.ceil(s.height)*100)),"click"==i.type)e._setProgressSliderValue(a);else{e.$el.find(".player-controls-wrapper .buffer-container").css("width",a+"%");var n=t.x-Math.min(80,2*a);e.$el.hasClass("player-rot90")&&(n=i.offsetX-Math.min(80,2*a)),a>=0&&!e.isMobilePlayer&&e.quickPreview&&n&&"ended"!=e.playerState&&e._handleProgressBtnHover(i,{x:n,percent:a/100})}}))},hideSettingControlsIfPossible:function(){this.settingControl||(r()(".player-controls-wrapper").hasClass("hide-one-ctrl")||r()(".player-controls-wrapper").hasClass("hide-logo")?(r()(".player-controls-wrapper").removeClass("hide-one-ctrl"),r()(".notification-line-onplay").removeClass("hide-one-ctrl"),r()(".hp-indicator").removeClass("hide-one-ctrl"),r()(".player-controls-wrapper").addClass("hide-two-ctrl"),r()(".notification-line-onplay").addClass("hide-two-ctrl"),r()(".hp-indicator").addClass("hide-two-ctrl")):(r()(".notification-line-onplay").addClass("hide-one-ctrl"),r()(".player-controls-wrapper").addClass("hide-one-ctrl"),r()(".hp-indicator").addClass("hide-one-ctrl")))},_setNewPlayerProgress:function(e){"initial"!=this.playerState&&this.$el.find(".current-time-container").css("width",e+"%")},_handleVideoPreview:function(){try{if(this.previewVideo){var e=this.$el.find("#preview-video-player")[0];e.volume=0,e.muted=!0,e.play()}}catch(e){}},sendToFront:function(e){this.resizePlayerForWindow(),e||this._handlePlayPauseBtnClick()},_setNewPlayerTimestamp:function(e){var i=e.split("/"),t=i[0],s=i[1];this.$el.find(".end-time").html(t+" / "+s),this.$el.find(".buffer-container").addClass("completed")},setMediaSource:function(){if(this.$el.find("#gifImage").attr("src",this.src),this.$el.find("#primary-video source").attr("src",this.src),this.$el.find(".hidden-video source").attr("src",this.src),this.$el.find(".secondary-video source").attr("src",this.audioSrc),this.$el.find("#primary-video").length>0&&this.src&&-1==this.src.indexOf("fetch_video_stream")&&this.$el.find("#primary-video")[0].load(),this.$el.find(".secondary-video").length>0&&this.$el.find(".secondary-video")[0].load(),this.parallelURLs){r()(".parallel-video").remove();for(var e=1;e<=this.parallelURLs.length;e++)this.$el.find(".parallel-video-container").append('<video class="parallel-video parallel-videos-'+e+'" crossorigin="anonymous" preload="auto" playsinline><source crossorigin="anonymous" src="'+this.parallelURLs[e-1]+'">'),this.$el.find(".parallel-videos-"+e)[0].load(),this.setMediaPlayerEvents(this.$el.find(".parallel-videos-"+e)[0])}},initializePlayer:function(){var e=this;this.mediaPlayer=this.$el.find(".primary-video")[0],this.customAudioPlayer=this.$el.find(".secondary-video")[0],this.mediaPlayer.controls=!1,this.$el.find(".volume-slider").slider({range:"min",orientation:"vertical",min:0,max:100,value:100,change:function(i,t){e.volumeChanged(i)},slide:function(i,t){e.volumeChanged(i)}}),this.quickPreview&&(this.quickPreviewImg=document.createElement("img"),this.quickPreviewImg.setAttribute("src",this.quickPreview),this.quickPreviewCanvas=this.$el.find(".quickpreview-canvas")[0],this.quickPreviewContext=this.quickPreviewCanvas.getContext("2d")),this.showSetFrame?r()(".thumbnail-wrap").show():r()(".thumbnail-wrap").hide(),this.setSimpleEditMode(this.simpleEditMode),this.allowKeyboardShortcuts&&r()(window).on("keydown",(function(i){if("TEXTAREA"!==i.target.nodeName&&"INPUT"!==i.target.nodeName&&"button"!==i.target.type&&e.alive){var t=i.key,s=i.keyCode;" "===t||"Spacebar"===t||32===s?(e._handlePlayPauseBtnClick(),e.setPlayerControlsTimeout(3e3)):"ArrowRight"===t||"Right"===t||39===s?e._handleForwardBtnClick():"ArrowLeft"===t||"Left"===t||37===s?e._handleRewindBtnClick():"f"!==t&&70!==s||r()(".screensize-container").click()}})),this.$el.find(".video-speed-btn .player-speed-label").on("click",(function(){e.$el.find(".video-speed-btn .quality-container").slideToggle("fast"),e.$el.find("#videoQualityBtn .quality-container").slideUp("fast")})),this.$el.find(".settings-options-wrapper #speedControl li").on("click",(function(i){var t=r()(i.currentTarget).attr("data-id");e.presetPlayerControls(),e.$el.find("#primary-video")[0].playbackRate=parseFloat(t),e.$el.find("#speedControl li").removeClass("selected"),r()(this).addClass("selected"),e.$el.find(".settings-options-wrapper #speedInfo").html(t+"X - Speed")})),this.$el.find("#subtitlesTrack").css("bottom","55px")},initializePlayerJS:function(){var e=this;this.playerJSReceiver=new(b().Receiver),this.playerJSReceiver.on("play",(function(){e.play()})),this.playerJSReceiver.on("pause",(function(){e.pause()})),this.playerJSReceiver.on("getPaused",(function(i){i(!e.playing)})),this.playerJSReceiver.on("mute",(function(){e.mute()})),this.playerJSReceiver.on("unmute",(function(){e.unmute()})),this.playerJSReceiver.on("getMuted",(function(i){i(0==e.getVolume())})),this.playerJSReceiver.on("setVolume",(function(i){e.setVolume(i)})),this.playerJSReceiver.on("getVolume",(function(i){i(e.getVolume())})),this.playerJSReceiver.on("getDuration",(function(i){i(e.mediaPlayer.duration)})),this.playerJSReceiver.on("setCurrentTime",(function(i){e.mediaPlayer.currentTime=i})),this.playerJSReceiver.on("getCurrentTime",(function(i){i(e.mediaPlayer.currentTime)})),this.playerJSReceiver.on("setLoop",(function(i){e.setLoop(i)})),this.playerJSReceiver.on("getLoop",(function(i){i(e.getLoop())})),this.playerJSReceiver.ready()},initializeDashPlayerJs:function(){this.adapter=s.MediaPlayer().create(),this.adapter.getDebug().setLogToBrowserConsole(!1),this.adapter.setSegmentOverlapToleranceTime(2),this.adapter.setABRStrategy("abrBola"),this.adapter.addABRCustomRule("qualitySwitchRules","DownloadRatioRule",a);var e={type:"PERIODIC",authorizationUrl:HippoVideo.URL.PATH[HippoVideo.URI.Feature.VIDEO_PLAYER.CLOUD_FRONT_AUTHORIZER]+this.token,expiry:HippoVideo.Constants.Video.Expiry,authSettings:this.auth_params,manifestOnly:!this.segmented};this.adapter.initializeWithAuthorization(this.mediaPlayer,this.src,!1,e),this.currentStreamQuality=-1,this.dashPlayerLoaded=!1,window.navigator.userAgent.indexOf("MSIE ")>0||navigator.userAgent.match(/Trident.*rv\:11\./)||this.adapter.setFastSwitchEnabled(!0)},initializeHLSPlayerJs:function(){var e=this,i={asset_id:this.assetId,mfInVideosPresent:this.mfInVideosPresent};this.adapter=new n({enableWorker:!0},{onMediaAttached:function(){e.adapter.loadSource(e.src)},onManifestParser:function(i){e._handleMetadataLoad(i)}},e.auth_params,!0),this.adapter.attachPlayerMetrics({statsJsonSeed:i}),this.adapter.attachMedia(this.mediaPlayer)},initPlayerMetrics:function(){var e=this,i={asset_id:this.assetId,mfInVideosPresent:this.mfInVideosPresent};!function(i){var t=i.playerInstance,s=i.statsJsonSeed;e.playerMetrics=new P.Z({playerInstance:t,statsJsonSeed:s}),e.playerMetrics.init()}({playerInstance:e.mediaPlayer,statsJsonSeed:i})},initializeAdapter:function(){var e=this;"mpd"==this.type?Promise.all([t.e(520).then(t.t.bind(t,76821,23)),Promise.all([t.e(520),t.e(881)]).then(t.bind(t,24580))]).then((function(i){var t=i[0].default,n=i[1].default;s=t,a=n,e.initializeDashPlayerJs()})):t.e(245).then(t.t.bind(t,49538,23)).then((function(i){var t=i.default;n=t,e.initializeHLSPlayerJs()}))},initializeCSS:function(){this.renderState=!0,null==this.audioSrc&&this.$el.find(".secondary-video-container").hide(),0==this.showLogo&&this.$el.find(".player-logo").hide(),this.isError?(this.$el.find(".error-reason").html(this.getFaqOneLiner()+this.getFaqLink()),this.$el.find(".error-overlay").css("background-image","url(/img/tv-noise.gif)").show()):this.$el.find(".error-overlay").hide(),this.resizePlayerForWindow(),this.$el.find("video").css("height","100%"),this.primaryVideoLayout&&(null!=this.primaryVideoLayout.width&&this.$el.find(".primary-video-container").css("width",this.getValueForPlayerInitial(this.primaryVideoLayout.width,!0)+"px"),null!=this.primaryVideoLayout.height&&this.$el.find(".primary-video-container").css("height",this.getValueForPlayerInitial(this.primaryVideoLayout.height,!1)+"px"),null!=this.primaryVideoLayout.x&&this.$el.find(".primary-video-container").css("left",this.getValueForPlayerInitial(this.primaryVideoLayout.x,!0)+"px"),null!=this.primaryVideoLayout.y&&this.$el.find(".primary-video-container").css("top",this.getValueForPlayerInitial(this.primaryVideoLayout.y,!1)+"px")),this.secondaryVideoLayout&&(null!=this.secondaryVideoLayout.width&&this.$el.find(".secondary-video-container").css("width",this.getValueForPlayerInitial(this.secondaryVideoLayout.width,!0)+"px"),null!=this.secondaryVideoLayout.height&&this.$el.find(".secondary-video-container").css("height",this.getValueForPlayerInitial(this.secondaryVideoLayout.height,!1)+"px"),null!=this.secondaryVideoLayout.x&&this.$el.find(".secondary-video-container").css("left",this.getValueForPlayerInitial(this.secondaryVideoLayout.x,!0)+"px"),null!=this.secondaryVideoLayout.y&&this.$el.find(".secondary-video-container").css("top",this.getValueForPlayerInitial(this.secondaryVideoLayout.y,!1)+"px"));var e=r()(".primary-video-container").width(),i=r()(".primary-video-container").height();r()(".access-denied-pop").width(e),r()(".access-denied-pop").height(i),r()(".password-pop").width(e),r()(".password-pop").height(i),this.resizeFitThumnbail(),this.initializePlayerForMobile(),this.handleFwdBckBtn()},resizeFitThumnbail:function(){var e=this,i=new Image,t=this.isImageMode?"#gifImage":"#playerThumbnail";i.onload=function(i){var s=i.target.naturalWidth,a=i.target.naturalHeight,n=u.default.resizeImageToFit(s,a,e.$el.width(),e.$el.height()),o=u.default.getCoordinatesForResizedImage(n.width,n.height,e.$el.width(),e.$el.height());e.$el.find(t).css({width:n.width,height:n.height,top:o.yPos,left:o.xPos})},this.isImageMode?i.src=this.src:this.thumbnail&&(i.src=this.thumbnail)},resizeFitRenderless:function(){var e=this.$el.width(),i=this.$el.height();if(e&&i){var t=0,s=0;e/i>16/9?(e=16*i/9,t=(this.$el.width()-e)/2):(i=9*e/16,s=(this.$el.height()-i)/2),this.$el.find(".renderless-overlay").css({width:e+"px",height:i+"px",left:t+"px",top:s+"px"})}},initializePlayerForMobile:function(){this.isMobilePlayer},toggleSubtitlesEvent:function(e){this.$el.find("#subtitlesTrack").is(":visible")&&!e?(this.$el.find("#subtitlesTrack").hide(),this.toggleSubtitles(!1)):(this.toggleSubtitles(!0),this.$el.find("#subtitlesTrack").show()),this.presetPlayerControls()},toggleSubtitles:function(e){this.$el.find("#subtitleWrapper li").removeClass("selected"),this.$el.find('#subtitleWrapper li[data-value="'+(e?"on":"off")+'"]').addClass("selected")},_setProgressSliderValue:function(e){var i=this.$el.find(".current-time-container");i&&i.css("width",e+"%"),this.progressSlided(e)},volumeChanged:function(e){var i=this.getVolume(),t=r()(".volumebtn");this.mediaPlayer.muted=!1,this.customAudioPlayer&&(this.customAudioPlayer.muted=!1),i>=60?(r()(t).addClass("volumeon volume60"),r()(t).removeClass("muted volume30")):i>=30?(r()(t).addClass("volumeon volume30"),r()(t).removeClass("muted volume60")):i>0?(r()(t).addClass("volumeon"),r()(t).removeClass("muted volume60 volume30")):0==i&&(this.mediaPlayer.muted=!0,this.customAudioPlayer&&(this.customAudioPlayer.muted=!0),r()(t).addClass("muted"),r()(t).removeClass("volumeon volume30 volume60")),this.mediaPlayer.volume=i/100},progressSlided:function(e){e=this.map(e,0,100,this.trimStart,this.mediaPlayer.duration-this.trimEnd),this.goToTime(e)},goToTime:function(e){this.mediaPlayer.currentTime=e,this.customAudioPlayer.currentTime=this.mediaPlayer.currentTime,this.$el.find(".replay-btn-container").hide()},show:function(){this.renderState?this.$el.show():(this.undelegateEvents(),this.render())},hide:function(){this.renderState&&this.$el.hide()},destroy:function(){this.alive=!1,this.undelegateEvents(),this.$el.removeData().unbind(),r()(window).unbind("beforeunload",!1),this.remove(),h().View.prototype.remove.call(this),this.clipboard&&this.clipboard.destroy();try{this.adapter&&this.adapter.destroy&&this.adapter.destroy()}catch(e){}},handleFwdBckBtn:function(){"initial"==this.playerState&&(this.$el.find(".forwardbtn").addClass("disp-none"),this.$el.find(".backwardbtn").addClass("disp-none"))},handleMainPlayPause:function(){this.$el.find(".main-play-pause").click()},_delegateViewEvents:function(){var e=this;this.$el.dblclick((function(){r()(".screensize-container").click()})),this.$el.find(".player-controls-container").dblclick((function(e){e.stopPropagation(),e.preventDefault()})),this.$el.find(".main-play-pause").click((function(i){if(i.stopPropagation(),i.preventDefault(),e.isMobilePlayer){if(e.isMobilePlayer){if(!e.controlsEnabled)return void e.showPlayerControls();e.showPlayerControls(),e._handlePlayPauseBtnClick(i)}}else e.showPlayerControls(),e._handlePlayPauseBtnClick(i);r()(".hv-rclick-options").hasClass("hide")||r()(".hv-rclick-options").addClass("hide")})),this.$el.find(".main-play-pause").mousedown((function(i){if(3===i.which){i.target.addEventListener("contextmenu",(function(e){e.preventDefault()}));var t=i.target,s=i.target.nextSibling;e.showRightClickOption(t,s)}})),this.$el.find(".hv-rclick-about").click((function(e){r()(".hv-rclick-options").addClass("hide"),window.open("https://www.hippovideo.io?utm_source=rightclick&utm_medium=player&utm_campaign=branding","_blank")})),this.$el.find(".main-controls").dblclick((function(e){e.stopPropagation(),e.preventDefault()})),this.delegate("webkitfullscreenchange mozfullscreenchange fullscreenchange",this._handleFullscreenChange),this.delegate("mouseenter mouseleave mousemove",this._handleHover),this.delegate("mouseenter mouseleave mousemove",".player-controls-wrapper",this._resolveHoverEvent),this.delegate("contextmenu","video",this._handleMenu),this.delegate("click",".replay-btn-container",this._handlePlayerClick),this.delegate("click",".volumebtn",this._handleAudioBtnClick),this.delegate("click",".screensize-container",this._handleFullscreenBtnClick),this.delegate("click",".player-download-icon",this.downloadVideoClick),this.delegate("click",".hv-player-download",this.deliveryDownload),this.delegate("click","#addCommentFromCanvas",(function(){e.playing&&e._handlePlayPauseForNewPlayer(),e.commentsCallbackHandler&&e.commentsCallbackHandler()})),this.delegate("click",".backwardbtn",this._handleRewindBtnClick),this.delegate("click",".forwardbtn",this._handleForwardBtnClick),this.delegate("click",".muted-autoplay",this._handleMutedAutoplayAudioClick),this.delegate("mouseenter mouseleave mousemove","#canvasPreviewContainer",this._handleCanvasMouseAction),r()(".set-frame-btn").bind("click",this.seekAndUpdateThumb),r()("#subtitles #subtitleWrapper li").bind("click",(function(){e.toggleSubtitlesEvent()})),this.setMediaPlayerEvents(this.mediaPlayer),this.isMobilePlayer&&this.isIphone&&c.default.orientationChangeEventForPlayer(e)},setMediaPlayerEvents:function(e){e.addEventListener("timeupdate",this._handleTimeupdate,!1),e.addEventListener("play",this._handlePlay,!1),e.addEventListener("pause",this._handlePause,!1),e.addEventListener("progress",this._handleProgress,!1),e.addEventListener("waiting",this._handleWaiting,!1),e.addEventListener("playing",this._handleResume,!1),e.addEventListener("canplay",this._handleCanplay,!1),e.addEventListener("seeked",this._handleSeeked,!1),e.addEventListener("seeking",this._handleSeeking,!1),e.addEventListener("ended",this._handleEnded,!1),e.addEventListener("loadedmetadata",this._handleMetadataLoad,!1),e.addEventListener("loadeddata",this._handleDataLoad,!1)},disableSubtitle:function(){document.getElementById("primary-video").textTracks[0].mode="hidden"},_handleMetadataLoad:function(){var e=this;if(this.adapterLoaded||-1==["m3u8","mpd"].indexOf(this.type))"mpd"==this.type?(this.adapter.setAutoSwitchQualityFor("video",!1),this.adapter.setQualityFor("video",this.currentStreamQuality),this.mediaPlayer.currentTime=this.dashQualitySwitchTime):this.settingControl&&(this.settingControl=this.adapterLoaded||this.showSpeedSettings||this.subtitlesEnabled,this.settingControl||r()(".settings-container").hide(),this.hideSettingControlsIfPossible());else{this.adapterLoaded=!0;var i=this.adapter["mpd"==this.type?"getBitrateInfoListFor":"getLevels"]("mpd"==this.type?"video":"");i.sort((function(e,i){return e.height>i.height?1:i.height>e.height?-1:0}));for(var t,s,a=this.$el.find(".settings-options-wrapper #qualityControlWrapper"),n=[],o=i.length-1;o>=0;o--){switch(s=i[o].height,!0){case s>144&&s<=240:t="240";break;case s>240&&s<=360:t="360";break;case s>360&&s<=480:t="480";break;case s>480&&s<=720:t="720";break;case s>720&&s<=1080:t="1080";break;case s>1080&&s<=2159:t="2K";break;case s>=2160&&s<=4319:t="4K";break;case s>=4320:t="8K"}n[o]=t,a.append('<li data-id="'+o+'"><i></i><a>'+t+"</a></li>")}var l="high"==c.default.getQueryParams().quality;if(l){var d=i.length-1;e.$el.find(".settings-options-wrapper #qualityControlWrapper li").removeClass("selected"),e.$el.find('.settings-options-wrapper #qualityControlWrapper li[data-id="'+d+'"]').addClass("selected"),e.$el.find(".settings-options-wrapper #qualityinfo").html(n[d]),"mpd"==this.type?(this.adapter.setAutoSwitchQualityFor("video",!1),this.adapter.setQualityFor("video",d)):this.adapter.setRepresentation(i.length-1)}n.length>0?l?a.append('<li data-id="-1"><i></i><a>'+f().wizPlayer.auto+"</a></li>"):(a.append('<li class="selected" data-id="-1"><i></i><a>'+f().wizPlayer.auto+"</a></li>"),e.$el.find(".settings-options-wrapper #qualityinfo").html(f().wizPlayer.auto)):this.settingControl&&(this.settingControl=this.showSpeedSettings||this.subtitlesEnabled,this.settingControl||r()(".settings-container").hide(),this.hideSettingControlsIfPossible()),this.$el.find(".settings-options-wrapper #qualityControlWrapper li").on("click",(function(i){var t=r()(i.currentTarget).attr("data-id");e.$el.find(".settings-options-wrapper #qualityControlWrapper li").removeClass("selected"),r()(this).addClass("selected"),"-1"==t?(e.$el.find(".settings-options-wrapper #qualityinfo").html(f().wizPlayer.auto),"mpd"==this.type?e.adapter.setAutoSwitchQualityFor("video",!0):e.adapter.setRepresentation(-1)):(e.$el.find(".settings-options-wrapper #qualityinfo").html(n[t]),"mpd"==this.type?parseInt(t)>~~e.currentStreamQuality&&(e.dashQualitySwitchTime=e.mediaPlayer.currentTime,e.adapter.reset(),e.adapter.attachSource(e.src),e.adapter.attachView(e.mediaPlayer),e._handleWaiting()):e.adapter.setRepresentation(Number(t))),e.currentStreamQuality=~~t,e.presetPlayerControls()}))}this.subtitlesEnabled?(document.getElementsByTagName("track")[0].addEventListener("cuechange",this.cueChanged),this.toggleSubtitlesEvent(this.subtitlesEnabled)):this.toggleSubtitles(!1),this.autoPlayVideo&&(this.isMutedAutoPlay&&(this.isMuted||this.mute(),this.$el.find(".muted-autoplay").removeClass("hide")),this.$el.find(".hv-new-player .controls").hasClass(".hide-controls")?(this.$el.find(".notification-line-onplay").removeClass("emoji-move-top"),this.$el.find(".hv-player-download").addClass("hide-hv-player-download")):(this.$el.find(".notification-line-onplay").addClass("emoji-move-top"),this.$el.find(".hv-player-download").removeClass("hide-hv-player-download")),e.play())},_handleDataLoad:function(){var e=!this.dataLoaded;this.dataLoaded=!0,e&&this.onDataLoadHandler&&this.onDataLoadHandler()},_handleFullscreenChange:function(e){var i=this;this.isFullScreen()?(r()(".screensize-container").children(".screensizebtn").addClass("maximized"),this.$el.find(".preview-add-comment").hide()):(r()(".screensize-container").children(".screensizebtn").removeClass("maximized"),this.$el.find(".preview-add-comment").show()),this.resizePlayerForWindow(),setTimeout((function(){i.resizePlayerForWindow()}),1e3)},_handleProgressBtnLeave:function(e){clearTimeout(this.hideQuickPreviewTimeout);var i=this;this.hideQuickPreviewTimeout=setTimeout((function(){i.$el.find("#canvasPreviewContainer").fadeOut(200)}),500)},_handleProgressBtnHover:function(e,i){var t=this.$el.find("#canvasPreviewContainer"),s=i.x+42;if(t.css("left",s+"px"),!this.showSetFrame||this.quickPreviewImg&&this.quickPreviewContext){if(t.is(":visible")||t.fadeIn(),this.showSetFrame&&r()(".player-controls-container").show(),l=i.percent,this.second=l*this.mediaPlayer.duration,isNaN(this.mediaPlayer.duration))return;var a=parseInt(this.second/2),n=parseInt(a/10),o=a%10;this.quickPreviewImg&&this.quickPreviewContext&&(this.quickPreviewContext.drawImage(this.quickPreviewImg,128*o,72*n,128,72,0,0,128,72),this.quickPreviewContext.fillStyle="rgba(0,0,0,0.5)",this.quickPreviewContext.fillRect(47,53,37,18),this.quickPreviewContext.font="9px",this.quickPreviewContext.fillStyle="white",this.quickPreviewContext.fillText(this.strToTime(this.second),55,67)),r()("#canvasHoverTime").val(this.second),clearTimeout(this.hideQuickPreviewTimeout),this.hideQuickPreviewTimeout=setTimeout((function(){t.fadeOut(200)}),3e3)}else{t.fadeIn(),r()(".player-controls-wrapper").show();var l=i.percent;this.second=l*this.mediaPlayer.duration,isNaN(this.second)&&(this.second=.2);var d=document.getElementsByClassName("hidden-video")[0];d.currentTime=Number(this.second),this.quickPreviewCanvas=this.$el.find(".quickpreview-canvas")[0],this.quickPreviewContext=this.quickPreviewCanvas.getContext("2d"),this.$el.find("#quick-preview-loading").show(),r()(this.quickPreviewCanvas).hide(),d.removeEventListener("canplay",this.drawImageForPreview),d.addEventListener("canplay",this.drawImageForPreview)}},drawImageForPreview:function(){this.quickPreviewContext&&this.quickPreviewContext.drawImage(document.getElementsByClassName("hidden-video")[0],0,0,128,72),this.quickPreviewCanvas&&(r()(this.quickPreviewCanvas).show(),this.$el.find("#quick-preview-loading").hide())},seekAndChooseThumb:function(e){r()(".player-controls-wrapper, .set-frame-btn").show(),r()(".player-progress").bind("mousemove",this._handleProgressBtnHover),this.undelegateHoverActions(),this.showPlayerControls();var i=r()("#canvasPreviewContainer");i.is(":visible")||i.fadeIn();var t=document.getElementsByClassName("hidden-video")[0];t&&(t.currentTime=Number(.2),this.quickPreviewCanvas=r()(".quickpreview-canvas")[0],this.quickPreviewContext=this.quickPreviewCanvas.getContext("2d"),this.$el.find("#quick-preview-loading").show(),r()(this.quickPreviewCanvas).hide(),t.removeEventListener("canplay",this.drawImageForPreview),t.addEventListener("canplay",this.drawImageForPreview))},hideSeekAndUpdateThumb:function(){var e=this;this.undelegate("mouseenter mouseleave mousemove",this._handleHover),this.hideQuickPreviewTimeout=setTimeout((function(){e.$el.find("#canvasPreviewContainer").hide()}),500),r()(".player-progress").unbind("mousemove mouseleave")},seekAndUpdateThumb:function(){this.hideSeekAndUpdateThumb(),this.saveThisFrameAsThumbnail()},setThumbnailFromFrameCallBack:function(e){this.saveThisFrameAsThumbnail=e},setOnDataLoadHandler:function(e){this.onDataLoadHandler=e,this.dataLoaded&&e()},_handleEnded:function(e){if(this.playing&&this.mediaPlayer.currentTime>=this.mediaPlayer.duration-this.trimEnd&&(this.simpleEditMode||this.$el.find(".replay-btn-container").show(),this.$el.find(".main-controls").fadeOut(),this.playerState="ended",this.playing=!1,this.checkAllowPlay()),this.isIphone&&this.fullscreen&&this.exitFullScreen(),this.playerJSReceiver&&this.playerJSReceiver.emit("ended"),this.onEndHandler.length>0)for(var i=0;i<this.onEndHandler.length;i++)this.onEndHandler[i]();this.setPlayerControlsTimeout(50)},_handleHover:function(e){var i=e.type;this.simpleEditMode||("mouseenter"!==i||this.isMobilePlayer?"mouseleave"!==i||this.isMobilePlayer?"mousemove"!==i||this.isMobilePlayer||(this.showPlayerControls(),this.setPlayerControlsTimeout(1500)):(this.showPlayerControls(),this.setPlayerControlsTimeout(500)):this.showPlayerControls(50))},_resolveHoverEvent:function(e){"mouseleave"!==e.type||this.isMobilePlayer||this.setPlayerControlsTimeout(500),clearTimeout(this.mouseleaveTimeout)},_isAllowedToShowMainControls:function(){return!(!this.isMobilePlayer&&this.playing)},showPlayerControls:function(){"ended"==this.playerState||this.$el.find(".replay-btn-container").is(":visible")||(this.controlsEnabled=!0,this.$el.find(".notification-line-onplay").addClass("emoji-move-top"),this.$el.find(".player-controls-wrapper").show(),this.$el.find(".player-controls-wrapper").removeClass("hide-controls"),this.$el.find(".hv-player-download").removeClass("hide-hv-player-download"),this.$el.find(".hp-indicator").removeClass("hide-hp-indicator"),this.$el.find(".duration-container-fullscreen").addClass("disp-none"),!this.isWating&&this._isAllowedToShowMainControls()&&this.$el.find(".main-controls").show(),this.$el.find("#subtitlesTrack").css("bottom","55px"),this.setPlayerControlsTimeout(1500))},cueChanged:function(e){this.$el.find("#subtitlesTrack").text("");for(var i=document.getElementById("primary-video").textTracks[0],t="",s=0;s<i.activeCues.length;s++)t+=i.activeCues[s].text;""!=t&&(this.disableSubtitle(),this.$el.find("#subtitlesTrack").html("<span>"+t+"</span>"))},handlePlayerControlHideShow:function(){this.playing||this.$el.find(".replay-btn-container").is(":visible")||this.isCTAWaitingMode?(this.controlsEnabled=!1,this.$el.find(".player-controls-wrapper").addClass("hide-controls"),this.$el.find(".hv-player-download").addClass("hide-hv-player-download"),this.$el.find(".hp-indicator").addClass("hide-hp-indicator"),this.presetPlayerControls(),this.$el.find(".main-controls").hide(),this.$el.find(".duration-container-fullscreen").removeClass("disp-none"),this.$el.find(".notification-line-onplay").removeClass("emoji-move-top"),this.$el.find("#subtitlesTrack").css("bottom","15px")):(this.controlsEnabled=!0,this.$el.find(".duration-container-fullscreen").addClass("disp-none"),this.$el.find(".player-controls-wrapper").removeClass("hide-controls"),this.$el.find(".hv-player-download").removeClass("hide-hv-player-download"),this.$el.find(".hp-indicator").removeClass("hide-hp-indicator"),this._isAllowedToShowMainControls()&&this.$el.find(".main-controls").show(),this.$el.find(".notification-line-onplay").addClass("emoji-move-top"))},hidePlayControls:function(){this.controlsEnabled=!1,this.$el.find(".player-controls-wrapper").addClass("hide-controls"),this.$el.find(".hv-player-download").addClass("hide-hv-player-download"),this.$el.find(".hp-indicator").addClass("hide-hp-indicator"),this.presetPlayerControls(),this.$el.find(".main-controls").hide(),this.$el.find(".duration-container-fullscreen").removeClass("disp-none"),this.$el.find(".notification-line-onplay").removeClass("emoji-move-top"),this.$el.find("#subtitlesTrack").css("bottom","15px")},setPlayerControlsTimeout:function(e){var i=this;clearTimeout(this.mouseleaveTimeout),this.mouseleaveTimeout=setTimeout((function(){i.simpleEditMode||(i.presetPlayerControls(),i.handlePlayerControlHideShow())}),e)},presetPlayerControls:function(){r()(".settings-container").hasClass("opened")&&r()(".settingsbtn-container").click()},setPlayerState:function(e){this.playerState=e},showPlayerHoverActions:function(){this.showHoverActions&&"initial"!==this.playerState&&"ended"!==this.playerState&&!this.isCTAWaitingMode&&(this.$el.find(".player-controls-wrapper").show(),this._isAllowedToShowMainControls()&&this.$el.find(".main-controls").show())},_handleMenu:function(e){},_handleWaiting:function(e){if(this.isWating=!0,this.$el.find(".main-controls").hide(),this.showPersonalisedVideoLoading)this.$el.find("#personalisedVideoLoading").show(),this.showHoverActions=!1;else{var i=this;this.waitingTimeout=setTimeout((function(){i.canShowPlayerLoading&&i.$el.find(".player-loading-overlay").show()}),200),this._secondaryVideoPlaying&&this.customAudioPlayer.pause()}},setPersonalisedVideo:function(e){this.$el.find("#primary-video source").attr("src",e.video_url),this.$el.find("#primary-video").length>0&&this.$el.find("#primary-video")[0].load(),this.$el.find(".thumbnail-container img").attr("src",e.thumbnail),this.quickPreview=e.quickpreview,this.personalisedVideoDetailsSet=!0,this.$el.find("#personalisedVideoLoading").fadeOut(),this.pause(),this.show()},_handleResume:function(e){if(this.isWating=!1,clearTimeout(this.waitingTimeout),this.$el.find(".player-loading-overlay").fadeOut(200),this.customAudioPlayer){this.customAudioPlayer.currentTime=this.mediaPlayer.currentTime;var i=this,t=this.customAudioPlayer.play();t?t.then((function(){i._secondaryVideoPlaying=!0})).catch((function(e){i._secondaryVideoPlaying=!1})):i._secondaryVideoPlaying=!0}this.resumeHandler&&this.resumeHandler()},_handleCanplay:function(e){clearTimeout(this.waitingTimeout),this.$el.find(".player-loading-overlay").fadeOut(200);var i=this;if(this.playing){var t=this.mediaPlayer.play();t?t.then((function(){i._primaryVideoPlaying=!0})).catch((function(e){console.log(e),i._primaryVideoPlaying=!1})):i._primaryVideoPlaying=!0}this.canplayHandler&&this.canplayHandler(e);var s=window.navigator.userAgent.toLowerCase(),a=/safari/.test(s),n=/iphone|ipod|ipad/.test(s)&&!a;if((r().inArray(c.default.getBrowserName(),["Safari","Edge","IE"])>=0||n)&&!this.largeValueSet){if(this.mediaPlayer.currentTime=0,this.durationComputed=!0,this.largeValueSet=!0,this.onComputedDurationHander){this.onComputedDurationHander();var o=window.location.href.indexOf("video/embed")>-1;this.autoPlayVideo&&o&&this.$el.find(".main-controls").hide()}}else this.largeValueSet||isFinite(this.mediaPlayer.duration)?!this.durationComputed&&isFinite(this.mediaPlayer.duration)&&(this.mediaPlayer.currentTime=0,this.durationComputed=!0,this.onComputedDurationHander)&&(this.onComputedDurationHander(),o=window.location.href.indexOf("video/embed")>-1,this.autoPlayVideo&&o&&this.$el.find(".main-controls").hide()):(this.largeValueSet=!0,this.mediaPlayer.currentTime=1e9)},_handleSeeked:function(){if(this.onSeekedHandler&&this.onSeekedHandler(),this.onSeekedHandlers)for(var e=0;e<this.onSeekedHandlers.length;e++)this.onSeekedHandlers[e]&&this.onSeekedHandlers[e]()},_handleSeeking:function(){this.seekingStartedAt=this.currentTimeUpdate,this.seekingEndedAt=this.mediaPlayer.currentTime,this.onSeekindHandler&&this.onSeekindHandler()},_handlePlayerClick:function(e){if(!this.simpleEditMode&&!this.isImageMode){if(r()(e.currentTarget).hasClass("replay-btn-container")){if(this.$el.find(".replay-btn-container").hide(),this._handlePlayPauseBtnClick(),this.onReplayHandlers)for(var i=0;i<this.onReplayHandlers.length;i++)this.onReplayHandlers[i]&&this.onReplayHandlers[i]()}else this.showHoverActions||this._handlePlayPauseBtnClick();this.previousClick=new Date}},_handlePlay:function(){if(this.$el.find(".thumbnail-container").is(":visible")&&this.$el.find(".thumbnail-container").fadeOut(100),this.simpleEditMode?this.$el.find(".play-pause-button").find("img").attr("src",this.customColors?"/img/simple-edit-pause-icon-dark.png":"/img/simple-edit-pause-icon.png"):this.$el.find(".play-pause-button, .player-play-pause-action").find("img").attr("src","/svg/pause-white.svg"),this.onPlayHandler.length>0)for(var e=0;e<this.onPlayHandler.length;e++)this.onPlayHandler[e]()},_handlePause:function(){if(!this.playing&&(this._secondaryVideoPlaying&&this.customAudioPlayer.pause(),this.simpleEditMode?this.$el.find(".play-pause-button").find("img").attr("src",this.customColors?"/img/simple-edit-play-icon-dark.png":"/img/simple-edit-play-icon.png"):this.$el.find(".play-pause-button, .player-play-pause-action").find("img").attr("src","/svg/play.svg"),this.onPauseHandler.length>0))for(var e=0;e<this.onPauseHandler.length;e++)this.onPauseHandler[e]()},_handleProgress:function(e){if("initial"!=this.playerState)try{var i=this.mediaPlayer.buffered,t=Math.round(i.end(0))/Math.round(this.mediaPlayer.seekable.end(0))*100;t+="%",r()(".video-buffered-container").css("width",t)}catch(e){r()(".video-buffered-container").css("width","0")}if(this.showPersonalisedVideoLoading&&this.personalisedVideoDetailsSet){var s="Opera"==c.default.getBrowserName();if(!s){var a=this.mediaPlayer.buffered;if(!a||!a.length)return;var n=a.start(0),o=a.end(a.length-1);s=0==n&&o>3}s&&(this.personalisedVideoDetailsSet=!1,this.$el.find("#personalisedVideoLoading").is(":visible")&&this.play(),this.showHoverActions=!0,this.showPersonalisedVideoLoading=!1,this.$el.find("#personalisedVideoLoading").fadeOut())}this.onProgressHandler&&this.onProgressHandler(e)},_handlePlayPauseBtnClick:function(){this.alive&&(this.$el.find(".replay-btn-container").hide(),this.isMobilePlayer&&(this.$el.find(".forwardbtn").removeClass("disp-none"),this.$el.find(".backwardbtn").removeClass("disp-none")),this.$el.find(".hv-rclick-options").addClass("hide"),this.playing?this.pause():this.play(),this._handlePlayPauseForNewPlayer())},_handleRewindBtnClick:function(){if(!this.isCTAWaitingMode){var e=this.mediaPlayer.currentTime;e=Math.max(e-5,0),this.mediaPlayer.currentTime=e,this.customAudioPlayer.currentTime=e,this.$el.find(".hv-rclick-options").addClass("hide")}},_handleForwardBtnClick:function(){if(!this.isCTAWaitingMode){var e=this.mediaPlayer.currentTime;e!=this.mediaPlayer.duration&&(e=Math.min(e+5,this.mediaPlayer.duration),this.mediaPlayer.currentTime=e,this.customAudioPlayer.currentTime=e,this.$el.find(".hv-rclick-options").addClass("hide"))}},_handleAudioBtnClick:function(){0!=this.getVolume()?this.mute():this.unmute()},_handleMutedAutoplayAudioClick:function(e){this.unmute(),r()(e.currentTarget).remove()},_handleFullscreenBtnClick:function(){this.fullscreen?this.exitFullScreen():this.enterFullScreen()},_handleTimeupdate:function(e){var i=this.map(this.mediaPlayer.currentTime,this.trimStart,this.mediaPlayer.duration-this.trimEnd,0,100);if((isNaN(i)||this.mediaPlayer.currentTime<Math.round(100*this.trimStart)/100)&&(this.mediaPlayer.currentTime=Math.round(100*this.trimStart)/100),i>100&&(this._handleEnded(),this.mediaPlayer.currentTime=this.trimStart>=this.mediaPlayer.duration?this.mediaPlayer.duration:this.trimStart,this._primaryVideoPlaying&&this.mediaPlayer.pause()),isFinite(this.mediaPlayer.duration)){this._setNewPlayerProgress(i);var t=this.mediaPlayer.duration,s=this.mediaPlayer.currentTime;if(isNaN(this.trimStart)||isNaN(this.trimEnd)||(t=t-this.trimStart-this.trimEnd,s-=this.trimStart),t=Math.max(t,0),s=Math.max(s,0),this.$el.find(".player-currenttime").text(this.strToTime(s)+" / "+this.strToTime(t)),this._setNewPlayerTimestamp(this.strToTime(s)+" / "+this.strToTime(t)),this.currentTimeUpdate=s,this.updateHandler.length>0)for(var a=0;a<this.updateHandler.length;a++)this.updateHandler[a]();this.playerJSReceiver&&this.playerJSReceiver.emit("timeupdate",{seconds:s,duration:t})}},mute:function(){this.isMuted=!0,this.previousVolume=this.getVolume(),this.setVolume(0),this.mediaPlayer.muted=!0,this.customAudioPlayer&&(this.customAudioPlayer.muted=!0)},unmute:function(){this.isMuted=!1,this.setVolume(this.previousVolume),this.mediaPlayer.muted=!1,this.$el.find(".muted-autoplay").remove(),this.customAudioPlayer&&(this.customAudioPlayer.muted=!1)},setLoop:function(e){this.loop=e},getLoop:function(){return this.loop},setUpdateHandler:function(e){this.updateHandler.push(e)},setPlayPauseHandler:function(e,i){i?this.onPlayHandler.push(e):this.onPauseHandler.push(e)},setEndedHandler:function(e){this.onEndHandler.push(e)},setSeekedHandler:function(e){this.onSeekedHandler=e},addSeekedHandler:function(e){this.onSeekedHandlers.push(e)},setSeekingHandler:function(e){this.onSeekindHandler=e},addReplayHandler:function(e){this.onReplayHandlers.push(e)},setPlayerResizeHandler:function(e){this.playerResizeHandler=e},play:function(){if(this.playing||this.isCTAWaitingMode)this._handlePlayPauseForNewPlayer();else{if("initial"==this.playerState||"ended"==this.playerState)return this.playerState="started",this.$el.find(".play-btn-container").fadeOut(),this.$el.find(".replay-btn-container").fadeOut(),this.$el.find(".play-btn-container video").remove(),void(this.allowPlay?this.play():this.renderWarning(7));var e=this;e.playing=!0;var i=window.location.href.indexOf("video/embed")>-1;this.autoPlayVideo&&i&&this.$el.find(".main-controls").hide();var t=this.mediaPlayer.play();t?t.then((function(){e._primaryVideoPlaying=!0})).catch((function(i){e._primaryVideoPlaying=!1})):e._primaryVideoPlaying=!0,this.playerJSReceiver&&this.playerJSReceiver.emit("play"),this._handlePlayPauseForNewPlayer()}},pause:function(){this.playing?(this.playing=!1,this._primaryVideoPlaying&&this.mediaPlayer.pause(),this.playerJSReceiver&&this.playerJSReceiver.emit("pause"),this._handlePlayPauseForNewPlayer()):this._handlePlayPauseForNewPlayer()},isPlaying:function(){return this.playing},setVolume:function(e){try{this.$el.find(".volume-slider").slider("value",e),this.volumeChanged()}catch(e){}},getVolume:function(){return~~this.$el.find(".volume-slider").slider("value")},isFullScreen:function(){return document.fullScreenElement&&null!==document.fullScreenElement||document.mozFullScreen||document.webkitIsFullScreen},isFullScreenMode:function(){return this.fullscreen},enterFullScreen:function(e){var i=this,t=screen.msOrientation||screen.orientation||screen.mozOrientation||{};if(!this.fullscreen)if(this.fullscreen||!this.isIphone||0!=window.orientation&&180!=window.orientation||"landscape"==e||!this.iosInBrowserFullScreen){if(this.fullscreen=!0,this.iosInBrowserFullScreen&&this.isIphone)return this.$el.find(".thumbnail").css("z-index",-1),this.resizePlayerForWindow(),void setTimeout((function(){if(window.innerWidth<window.innerHeight){var e=window.innerWidth,t=window.innerHeight;i.$el.height(e),i.$el.width(t)}else i.$el.height(window.innerHeight),i.$el.width(window.innerWidth);window&&window.location&&window.location.pathname&&window.location.pathname.indexOf("/video/embed/")>-1&&window.parent&&window.parent.postMessage(JSON.stringify({event:"enterfullscreen"}),"*")}),200);var s;(s=this.isIphone?document.getElementById("primary-video"):document.getElementById(this.id)).webkitEnterFullScreen?s.webkitEnterFullScreen():s.requestFullscreen?s.requestFullscreen():s.msRequestFullscreen?s.msRequestFullscreen():s.mozRequestFullScreen?s.mozRequestFullScreen():s.webkitRequestFullscreen&&s.webkitRequestFullscreen();try{u.default.canForceLandscapeForFullscreen()&&t.lock("landscape")}catch(e){u.default.postErrorsToLog({error:"Error while trying to force full screen landscape in player",stackTrace:JSON.stringify(e)})}}else u.default.showBannerAlert("Please rotate your mobile to Landscape mode",3e3,"info")},exitFullScreen:function(e){var i=screen.msOrientation||screen.orientation||screen.mozOrientation||{};if(this.fullscreen)if(this.fullscreen=!1,this.iosInBrowserFullScreen&&this.isIphone){this.$el.find(".thumbnail").css("z-index",""),this.resizePlayerForWindow();var t=this;setTimeout((function(){t.$el.height(9*t.$el.width()/16),window&&window.location&&window.location.pathname&&window.location.pathname.indexOf("/video/embed/")>-1&&window.parent&&window.parent.postMessage(JSON.stringify({event:"exitfullscreen"}),"*")}),200)}else{var s=document;this.isIphone&&(s=document.getElementById("primary-video")),s.exitFullscreen?s.exitFullscreen():s.msExitFullscreen?s.msExitFullscreen():s.mozCancelFullScreen?s.mozCancelFullScreen():s.webkitExitFullscreen&&s.webkitExitFullscreen();try{u.default.canForceLandscapeForFullscreen()&&i.unlock()}catch(e){u.default.postErrorsToLog({error:"Error while trying to force exit full screen landscape in player",stackTrace:JSON.stringify(e)})}}},strToTime:function(e){var i=parseFloat(e,10),t=Math.floor(i/3600),s=Math.floor((i-3600*t)/60),a=Math.floor(i-3600*t-60*s);return t>0&&s<10&&(s="0"+s),a<10&&(a="0"+a),t>0?t+":"+s+":"+a:s+":"+a},trim:function(e,i,t){if(this.trimStart!=e||this.trimEnd!=i)try{this.mediaPlayer.currentTime=e,this.customAudioPlayer.currentTime=e}catch(e){}if(this.trimStart=e,this.trimEnd=i,t&&("initial"==this.playerState||"ended"==this.playerState))return this.playerState="started",void this.$el.find(".replay-btn-container").fadeOut(100)},map:function(e,i,t,s,a){return(e-i)*(a-s)/(t-i)+s},setSimpleEditMode:function(e){this.simpleEditMode=e,this.simpleEditMode?(this.$el.animate({"margin-bottom":"0px"},200),this.$el.find(".player-controls-wrapper").addClass("player-controls-outside"),this.$el.find(".player-controls-wrapper").removeClass("player-controls-inside"),this.$el.find(".player-controls-wrapper").fadeIn(),this.$el.find(".play-pause-button").find("img").attr("src",this.customColors?"/img/simple-edit-play-icon-dark.png":"/img/simple-edit-play-icon.png"),this.$el.find(".player-download, .for-reactions").hide(),this.$el.find(".notification-line-onplay").hide()):(this.$el.animate({"margin-bottom":"0px"},200),this.$el.find(".player-controls-wrapper").removeClass("player-controls-outside"),this.$el.find(".player-controls-wrapper").addClass("player-controls-inside"),this.$el.find(".play-pause-button").find("img").attr("src","/svg/play.svg"),this.$el.find(".player-download, .for-reactions").show(),this.$el.find(".notification-line-onplay").show())},setCTAWaitingMode:function(e){this.isCTAWaitingMode=e,e&&(this.$el.find(".main-controls").fadeOut(),this.$el.find("#hvRclickOptions").addClass("hide"))},setStatId:function(e){this.statId=e},getStatId:function(){return this.statId},resizePlayerForWindow:function(){var e=this,i=screen.msOrientation||(screen.orientation||screen.mozOrientation||{}).type;if(this.iosInBrowserFullScreen&&this.isIphone){if(this.fullscreen){if(window.innerWidth<window.innerHeight){0!=window.orientation&&180!=window.orientation&&(this.$el.addClass("player-rot90"),this.$el.parent().addClass("player-rot90-container"));var t=window.innerWidth,s=window.innerHeight;this.$el.height(t),this.$el.width(s)}else this.$el.removeClass("player-rot90"),this.$el.parent().removeClass("player-rot90-container"),this.$el.height(window.innerHeight),this.$el.width(window.innerWidth);this.$el.addClass("player-inbrowser-fullscreen"),this.$el.parent().addClass("player-container-fullscreen"),this.$el.find(".thumbnail-container").hide()}else this.$el.removeClass("player-rot90 player-inbrowser-fullscreen"),this.$el.width("100%"),this.$el.height(9*this.$el.width()/16),this.$el.parent().removeClass("player-container-fullscreen player-rot90-container");this.fullscreen?(r()(".screensize-container").children(".screensizebtn").addClass("maximized"),this.$el.find(".preview-add-comment").hide()):(r()(".screensize-container").children(".screensizebtn").removeClass("maximized"),this.$el.find(".preview-add-comment").show())}else this.$el.height(9*this.$el.width()/16);this.resizeFitThumnbail(),this.isMobilePlayer&&((i||"").includes("landscape")&&this.isFullScreen()?this.$el.find(".emoji-wrap").show():this.$el.find(".emoji-wrap").hide()),this.playerResizeHandler&&this.playerResizeHandler({width:this.$el.width(),height:this.$el.height()}),setTimeout((function(){e.resizeFitRenderless()}),1e3)},getValueForPlayerInitial:function(e,i){var t=this.$el.width(),s=this.$el.height();return i?this.roundNumber(e*(t/384),2):this.roundNumber(e*(s/216),2)},roundNumber:function(e,i){return Math.round(10*e*i)/(10*i)},getFaqOneLiner:function(){return null!=m()["faqoneliner_"+this.authorState]?m()["faqoneliner_"+this.authorState]:"unknown error.. contact us for more details"},getFaqLink:function(){var e={5:"misc-error",6:"misc-error",13:"upload-issues",14:"upload-issues",16:"upload-issues",28:"upload-issues",22:"misc-error",23:"misc-error",27:"misc-error"};return null==e[this.authorState]?"":'<a target="_blank" href="https://www.hippovideo.io/faq.html#'+e[this.authorState]+'"> more info </a>'},resetPlayer:function(){this.isImageMode?this.$el.find(".primary-video-container img").attr("src",""):(this.$el.find(".secondary-video-container video").attr("src",""),this.$el.find(".primary-video-container video").attr("src",""),this.$el.find(".secondary-video-container video")[0].load(),this.$el.find(".primary-video-container video")[0].load(),this.canShowPlayerLoading&&this.$el.find(".player-loading-overlay").show(),this.$el.find(".title-paragraph-tag").text(""),this.$el.find(".player-currenttime").text("")),this.$el.find(".vdo-prev-head").hide(),this.$el.find(".hippo-video-buttons").hide(),this.$el.find(".play-btn-container").hide(),this.$el.find(".vdo-error-state").hide()},downloadVideoClick:function(){null!=this.downloadVideo&&this.downloadVideo()},deliveryDownload:function(){var e=c.default.getQueryParams();e?e.stat_id=r()("#pageStatsId").val():e={stat_id:r()("#pageStatsId").val()},(new k.Z).getDownloadLinkFromDelivery(this.token,e,(function(e){e.status&&u.default.downloadFile(e.signed_url)}))},_handleCanvasMouseAction:function(e){var i=this;clearTimeout(this.hideQuickPreviewTimeout),this.isCTAWaitingMode?i.$el.find("#canvasPreviewContainer").fadeOut(200):"mouseleave"===e.type&&(this.hideQuickPreviewTimeout=setTimeout((function(){i.$el.find("#canvasPreviewContainer").fadeOut(200)}),500))},getCurrentTime:function(){return this.durationComputed?this.mediaPlayer.currentTime:.001},getDuration:function(){return parseInt(this.mediaPlayer.duration)||this.duration},getTrimStart:function(){return this.trimStart},getTrimEnd:function(){return this.trimEnd},getRawDuration:function(){return this.mediaPlayer.duration||this.duration},checkAllowPlay:function(){if(this.token){var e=this,i={token:this.token};S.default.call({url:"/video_delivery/is_allow_play",method:"POST",data:i,success:function(i){e.allowPlay=i.is_allow}})}},renderWarning:function(e){var i=r()("#"+this.$el.attr("id")).parent().attr("id");r()("#"+i).empty(),r()("#"+i).html(this.template({id:this.id,token:this.token,thumbnail:" ",privacy:e})),this.setElement(r()("#"+this.id)),this.initializeCSS(),this.undelegateEvents(),r()("#comments").hide(),r()(".delivery-footer").hide(),r()(".play-btn-container").hide()},undelegateHoverActions:function(){this.undelegate("mouseenter mouseleave mousemove",this._handleHover)},delegateHoverActions:function(){this.delegate("mouseenter mouseleave mousemove",this._handleHover)},overrideStyle:function(e,i,t){e.each((function(){this.style.setProperty(i,t,"important")}))},showRightClickOption:function(e,i){this.$el.find(".hv-rclick-options").removeClass("hide"),this.canShowAboutUs||this.$el.find(".hv-rclick-about").addClass("hide"),this.rightClickPositionMenu(e,i)},copyWithThumbnail:function(e,i){this.clipboard=new(_())("#hvRclickCopy",{target:function(){var t=e,s=i;return r()("body").append('<div id="hvRclickCopyTarget" aria-hidden="true" tabindex="-1" > '+c.default.getStyleHtmlToCopy(t,s,null)+"</div>"),document.querySelector("#hvRclickCopyTarget")}}),this.clipboard.on("success",(function(){c.default.trackInThirdPartyTools("Successfully copied the Copy link and thumbnail option from player right click menu"),r()(".hv-rclick-copy").text(f().newPlayer.linkCopied),r()("#hvRclickCopyTarget").remove(),setTimeout((function(){r()(".hv-rclick-copy").text(f().newPlayer.copyLinkAndThumbnail),r()(".hv-rclick-options").addClass("hide")}),1500)})),this.clipboard.on("error",(function(e){c.default.trackInThirdPartyTools("Failed to copy the Copy link and thumbnail option from player right click menu"),r()(".hv-rclick-copy").text(f().newPlayer.failedToCopy),r()("#hvRclickCopyTarget").remove(),setTimeout((function(){r()(".hv-rclick-copy").text(f().newPlayer.copyLinkAndThumbnail),r()(".hv-rclick-options").addClass("hide")}),1500)}))},rightClickGetPosition:function(e,i,t){e||(e=window.event);var s=i.getBoundingClientRect(),a=s.left,n=s.top;return{x:e.clientX-a,y:e.clientY-n}},rightClickPositionMenu:function(e,i,t){var s=i,a=this.rightClickGetPosition(t,e,i),n=a.x,o=a.y,r=s.offsetWidth,l=s.offsetHeight,d=e.offsetWidth,h=e.offsetHeight;s.style.left=d-n<r?d-r+"px":n+"px",s.style.top=h-o-40<l?h-l-40+"px":o+"px"},applyCustomColors:function(){var e=void 0;this.playerTheme&&[4,7].includes(this.playerTheme.length)&&(e=this.playerTheme);try{e=this.customColors.primaryColor?this.customColors.primaryColor:e}catch(e){}if(this.customColors&&e){var i=c.default.convertHexToRGB(e);r()(".video-container .main-controls .final-plybtn .playthree svg g").attr("stroke",e),r()(".video-container .replay-btn-container .final-replybtn .replaythree svg path").attr("fill",e),r()(".video-container .replay-btn-container .final-replybtn .replaythree svg path").attr("stroke",e),r()(".video-container .main-controls .backwardbtn svg g path").attr("stroke",e),r()(".video-container .main-controls .backwardbtn svg line").attr("stroke",e),r()(".video-container .main-controls .forwardbtn svg g path").attr("stroke",e),r()(".video-container .main-controls .forwardbtn svg line").attr("stroke",e),r()("head").append("<style>.video-container .main-controls .backwardbtn:after{color:"+e+" !important;}</style>"),r()("head").append("<style>.video-container .main-controls .forwardbtn:after{color:"+e+" !important;}</style>");var t="";t+=".video-container .current-time-bg, .canvas-preview-container .preview-add-comment { background-image : linear-gradient(to left,"+e+","+e+") !important}",t+=".video-container .buffer-container:after { background-image : linear-gradient(to right, transparent 20%, rgba( "+i.r+","+i.g+","+i.b+",0.2), rgba("+i.r+","+i.g+","+i.b+",0.25)) !important}",t+=".video-container .video-buffered-container { background:rgba( "+i.r+","+i.g+","+i.b+",0.2) !important}",t+=".video-container .volume-container .volume-slider .ui-slider-range, .canvas-preview-container .preview-add-comment, .video-container .volume-container .volume-slider .ui-slider-handle, .video-container .settings-container .settings-suboptions>li i, .personalised-video-loading .inner-container .bar-loading div, .player-loading-overlay .inner-container .bar-loading div { background-color : "+e+" !important}",t+=".video-container .settings-container .settings-options-container>ul>li:hover, .video-container .settings-container .settings-suboptions>li:hover {color: "+e+" !important}",t+=".volume-slider player-audio-slider ui-slider ui-corner-all ui-widget ui-widget-content ui-slider-vertical {background: none}",this.customColors.secondaryColor&&(t+=".se-clip-time {background: "+this.customColors.secondaryColor+" !important;}"),this.customColors.bgColor&&(t+=".player-controls-outside {background: "+this.customColors.bgColor+" !important;}"),t.length>0&&(document.head.appendChild(document.createElement("style")).innerHTML=t)}},getBandwidthConsumed:function(){var e={type:this.type};if("m3u8"==this.type){var i;e.totalFileSize=(null===(i=this.adapter)||void 0===i?void 0:i.getBandwidthConsumed())||0}else{for(var t=0,s=0;s<this.mediaPlayer.buffered.length;s++){var a=this.mediaPlayer.buffered.start(s);t+=100*(this.mediaPlayer.buffered.end(s)-a)/this.mediaPlayer.duration}e.perc=t}return e},applyCustomPlayIcon:function(){if(this.customPlayIcon){var e=document.createElement("div");e.classList.add("overlay"),r()(".main-controls").each((function(){r()(this).append(e)}));var i=document.createElement("div");i.classList.add("watch-video"),i.textContent="WATCH VIDEO",r()(".main-plyBtn").each((function(){r()(this).append(i)})),r()(".main-plyBtn .playbutton").each((function(){r()(this).find("svg").remove(),r()(this).append('<svg xmlns="http://www.w3.org/2000/svg" width="47" height="47" viewBox="0 0 47 47" class="white-play-icon prim-vid"> <g transform="translate(-344.113 -1343.053)"> <g class="a" transform="translate(344.113 1343.053)"> <circle class="c" cx="23.5" cy="23.5" r="23.5"/> <circle class="d" cx="23.5" cy="23.5" r="23"/> </g> <path class="b" d="M7.312,0l7.312,12.56H0Z" transform="translate(375.756 1359.646) rotate(90)"/> </g> </svg>'),r()(this).append('<svg xmlns="http://www.w3.org/2000/svg" width="47" height="47" viewBox="0 0 57 57" class="white-play-icon-filled" style="display:none;"> <g transform="translate(-932 -595)"> <circle class="a" cx="28.5" cy="28.5" r="28.5" transform="translate(932 595)"/> <path class="b" d="M8.813,0l8.813,15.137H0Z" transform="translate(970.137 615) rotate(90)"/> </g> </svg>')})),r()("#videoPagePreviewBlock, #videoPageDeliveryBlock").addClass(this.customPlayIcon)}},updateIsMirrorWebCam:function(e){this.isMirrorWebCam=e,c.default.toggleWebcamForMirrorVideo(this.isMirrorWebCam,null!=this.audioSrc&&""!=this.audioSrc?this.$el.find(".secondary-video"):this.$el.find("#primary-video"))},updateQuickPreviewObjects:function(e){e&&!this.isAudioOnly&&this.getDuration()>=30?(this.quickPreviewImg=document.createElement("img"),this.quickPreviewImg.setAttribute("src",e),this.quickPreviewCanvas=this.$el.find(".quickpreview-canvas")[0],this.quickPreviewContext=this.quickPreviewCanvas.getContext("2d"),r()(this.quickPreviewCanvas).hide(),this.$el.find("#quick-preview-loading").show()):(this.quickPreviewImg=void 0,this.quickPreviewCanvas=void 0,this.quickPreviewContext=void 0)},setShowSetFrame:function(e){this.showSetFrame?this.seekAndChooseThumb():this.hideSeekAndUpdateThumb()}})},92867:function(e,i,t){"use strict";t.r(i),t(55674),t(48702),t(74916),t(4723),t(69826),t(41539),t(26699),t(32023),t(15306),t(54747),t(47941),t(54678),t(66992),t(88674),t(78783),t(33948),t(21249),t(2707),t(91058),t(9653);var s,a,n,o=t(19755),r=t.n(o),l=t(1618),d=t(72316),h=t.n(d),c=t(12352),u=t(83958),p=t(93934),y=t.n(p),v=(t(87722),t(63177),t(55783),t(5808),t(85023),t(68738),t(31732),t(96683),t(16596),t(43012),t(68500),t(77871),t(13620),t(952)),m=t.n(v),g=t(67581),f=t.n(g),w=t(17141),b=t.n(w),P=t(48375),k=t(57005),C=t(42152),_=t.n(C),S=t(80300),x=t(12282),$=(t(58229),t(73423),t(26891),t(86227),(0,x.eQ)());i.default=h().View.extend({template:y(),initialize:function(e){e=(0,l.YH)({},c.default.getQueryParams(),e),this.isFromSDK=e.fromSDK||!1,this.id=e.id,this.src=e.src,this.parallelURLs=e.parallelURLs,this.type=null!=e.type?e.type:"url",this.title=e.title,this.controls=null==e.controls||parseBoolean(e.controls),this.loop=null!=e.loop&&parseBoolean(e.loop),this.initial=e.initial||!1,this.isPrivacy=e.isPrivacy||!1,this.statId=e.statId,this.audioSrc=e.audioSrc,this.mfInVideosPresent=!!e.mfInVideosPresent,this.isDelivery=null!=e.isDelivery&&e.isDelivery,this.analytics=null!=e.analytics&&e.analytics,this.userId=e.userId,this.primaryVideoLayout=e.primaryVideoLayout,this.secondaryVideoLayout=e.secondaryVideoLayout,this.showSecondaryVideo=null==e.showSecondaryVideo||e.showSecondaryVideo,this.showLogo=null==e.showLogo||e.showLogo,this.trimStart=e.trimStart?e.trimStart:0,this.trimEnd=e.trimEnd?e.trimEnd:0,this.duration=e.duration?e.duration:0,this.assetId=e.assetId,this.customlogo=e.customlogo,this.thumbnail=e.thumbnail,this.quickPreview=e.quickPreview,this.previewVideo=e.previewVideo,this.isMirrorWebCam=e.isMirrorWebCam,this.isMirrorSecondary=e.isMirrorSecondary,this.playAudio=null==e.playAudio||e.playAudio,this.playVideo=null==e.playVideo||e.playVideo,this.qualityControl=null==e.qualityControl||e.qualityControl,this.fullscreen=null!=e.fullscreen&&e.fullscreen,this.audioControl=null!=e.audioControl?e.audioControl:this.playAudio,this.fullscreenControl=null==e.fullscreenControl||e.fullscreenControl,this.simpleEditMode=null!=e.simpleEditMode&&e.simpleEditMode,this.showSpeedSettings=null!=e.showSpeedSettings&&e.showSpeedSettings,this.authorState=e.authorState,this.isError=e.isError,this.previousVolume=100,this.onPlayHandler=e.onPlayHandler?[e.onPlayHandler]:[],this.onPauseHandler=e.onPauseHandler?[e.onPauseHandler]:[],this.onSeekedHandler=e.onSeekedHandler,this.onSeekedHandlers=e.onSeekedHandlers?[e.onSeekedHandlers]:[],this.onSeekindHandler=e.onSeekindHandler,this.onLoadHandler=e.onLoadHandler,this.onProgressHandler=e.onProgressHandler,this.onDataLoadHandler=e.onDataLoadHandler,this.updateHandler=e.updateHandler?[e.updateHandler]:[],this.resumeHandler=e.resumeHandler,this.canplayHandler=e.canplayHandler,this.onComputedDurationHander=e.onComputedDurationHander,this.onEndHandler=e.onEndHandler?[e.onEndHandler]:[],this.onReplayHandlers=e.onReplayHandlers?[e.onReplayHandlers]:[],this.privacySetting=null!=e.privacy&&e.privacy,this.token=null!=e.token&&e.token,this.downloadVideo=e.downloadVideo,this.allowDownload=null!=e.allowDownload&&e.allowDownload,this.showComments=e.showComments,this.showReactions=e.showReactions,this.canShowDeliveryDownload=null!=e.deliveryDownload&&e.deliveryDownload,this.commentsCallbackHandler=e.commentsCallbackHandler||function(){},this.reactionsCallbackHandler=e.reactionsCallbackHandler||function(){},this.playerLogo=e.playerLogo,this.canShowAboutUs=e.canShowAboutUs,this.canPlayerLogoView=e.canPlayerLogoView,this.addLinkToPlayerLogo=e.addLinkToPlayerLogo,this.playerLogoLink=e.playerLogoLink,this.isImageMode=e.isImageMode||!1,this.showSetFrame=e.showSetFrame&&!e.isImageMode||!1,this.playerTheme=null!=e.playerTheme&&e.playerTheme,this.subtitlesEnabled=e.subtitlesEnabled||!1,this.defaultSubtitleLanguage=e.defaultSubtitleLanguage,this.defaultSubtitleId=e.defaultSubtitleId,this.selectedSubId=e.defaultSubtitleId,this.subtitles=e.subtitle_list,this.chaptersList=e.chaptersList,this.showHoverActions=void 0===e.showHoverActions||e.showHoverActions,this.customColors=e.customColors,this.allowKeyboardShortcuts=e.allowKeyboardShortcuts||!1,this.saveThisFrameAsThumbnail=function(){},this.isMobilePlayer=u.default.isMobileBrowser(),this.isIphone=null!=navigator.userAgent.match(/iPhone|iPad|iPod/i),this.autoPlayVideo=!!e.autoPlayVideo&&!this.isImageMode;var i=c.default.getBrowserName().toLowerCase();this.isMutedAutoPlay=this.autoPlayVideo&&("chrome"===i||"safari"===i||"firefox"===i),this.isAudioOnly=null!=e.isAudioOnly&&e.isAudioOnly,this.addSourceAudioType="safari"===i&&this.isAudioOnly,this.canShowPlayerLoading="ie"!==i,this.showPersonalisedVideoLoading=e.showPersonalisedVideoLoading||!1,this.personalisedVideoDetailsSet=!1,this.isLandingPageVideo=e.isLandingPageVideo||!1,this.domainName=e.domain||!1,this.subtitlesFromServer=!1,this.isContainsAudio=null==e.isContainsAudio||e.isContainsAudio,this.iosInBrowserFullScreen=null!=e.iosInBrowserFullScreen&&e.iosInBrowserFullScreen,e.forceAutoPlay&&(this.isMutedAutoPlay=!1),i=["Firefox","IE"],r().inArray(c.default.getBrowserName(),i)>=0&&(this.subtitlesFromServer=!1),this.customPlayIcon=e.customPlayIcon,this.isEmbedPlayer=window.location.href.indexOf("video/embed")>-1,this.isEmbedPlayer&&(this.showComments=!1,this.showReactions=!1),this.playerState="initial",this.durationComputed=!1,this.allowPlay=!0,this.isCTAWaitingMode=!1,this._primaryVideoPlaying=!1,this._secondaryVideoPlaying=!1,this.isWating=!1,this.progressSlided=this.progressSlided.bind(this),this.volumeChanged=this.volumeChanged.bind(this),this._handleTimeupdate=this._handleTimeupdate.bind(this),this._handlePlay=this._handlePlay.bind(this),this._handlePause=this._handlePause.bind(this),this._handleProgress=this._handleProgress.bind(this),this._handlePlayerClick=this._handlePlayerClick.bind(this),this._handlePlayPauseBtnClick=this._handlePlayPauseBtnClick.bind(this),this._handleForwardBtnClick=this._handleForwardBtnClick.bind(this),this._handleRewindBtnClick=this._handleRewindBtnClick.bind(this),this._handleAudioBtnClick=this._handleAudioBtnClick.bind(this),this._handleFullscreenBtnClick=this._handleFullscreenBtnClick.bind(this),this._handleWaiting=this._handleWaiting.bind(this),this._handleResume=this._handleResume.bind(this),this._handleCanplay=this._handleCanplay.bind(this),this._handleHover=this._handleHover.bind(this),this._resolveHoverEvent=this._resolveHoverEvent.bind(this),this._handleEnded=this._handleEnded.bind(this),this._handleSeeked=this._handleSeeked.bind(this),this._handleSeeking=this._handleSeeking.bind(this),this._handleMetadataLoad=this._handleMetadataLoad.bind(this),this._handleDataLoad=this._handleDataLoad.bind(this),this._handleProgressBtnHover=this._handleProgressBtnHover.bind(this),this._handleProgressBtnLeave=this._handleProgressBtnLeave.bind(this),this._handleFullscreenChange=this._handleFullscreenChange.bind(this),this.resetPlayer=this.resetPlayer.bind(this),this.downloadVideoClick=this.downloadVideoClick.bind(this),this._handleCanvasMouseAction=this._handleCanvasMouseAction.bind(this),this.drawImageForPreview=this.drawImageForPreview.bind(this),this.seekAndChooseThumb=this.seekAndChooseThumb.bind(this),this.seekAndUpdateThumb=this.seekAndUpdateThumb.bind(this),this.toggleSubtitles=this.toggleSubtitles.bind(this),this._handleMutedAutoplayAudioClick=this._handleMutedAutoplayAudioClick.bind(this),this.getBandwidthConsumed=this.getBandwidthConsumed.bind(this),this.setStatId=this.setStatId.bind(this),this.getStatId=this.getStatId.bind(this),this.segmented=e.segmented,this.auth_params=e.auth_params||{},this.cueChanged=this.cueChanged.bind(this),this.deliveryDownload=this.deliveryDownload.bind(this),this._chaptersWidthByVolume=this._chaptersWidthByVolume.bind(this),this._volumeAdjustWithKeys=this._volumeAdjustWithKeys.bind(this),this.updateChaptersTitle=this.updateChaptersTitle.bind(this),this.updateCaptionsFontSize=this.updateCaptionsFontSize.bind(this),this.settingControl=this.qualityControl||this.subtitlesEnabled,this.onlyQuality=this.qualityControl&&!this.subtitlesEnabled,this.onlySubtitle=!this.qualityControl&&this.subtitlesEnabled,this.qualitySelected=this.qualityControl&&this.subtitlesEnabled,this.playing=!1,this.controlsEnabled=!0,this.clipboard=void 0,this.alive=!0,this.addSubtitleEventListener=this.addSubtitleEventListener.bind(this),HTMLElement.prototype.getRelativeMouseCoordinate=function(e){var i=0,t=0,s=this;do{i+=s.offsetLeft-s.scrollLeft,t+=s.offsetTop-s.scrollTop}while(s=s.offsetParent);return{x:e.pageX-i,y:e.pageY-t}}},render:function(){if(this.$el.html(this.template((0,l.YH)(f(),{id:this.id,type:this.type,title:this.title,initial:this.initial,isPrivacy:this.isPrivacy,settingControl:this.settingControl,audioControl:this.audioControl,qualityControl:this.qualityControl,fullscreenControl:this.fullscreenControl,showLogo:this.showLogo,customlogo:this.customlogo,thumbnail:this.thumbnail,quickPreview:this.quickPreview,previewVideo:this.previewVideo,privacy:this.privacySetting,downloadVideo:this.downloadVideo,allowDownload:this.allowDownload,showComments:this.showComments,showSetFrame:this.showSetFrame,showReactions:this.showReactions,canShowDeliveryDownload:this.canShowDeliveryDownload,isImageMode:this.isImageMode,playerLogo:this.playerLogo,isMutedAutoPlay:this.isMutedAutoPlay,canPlayerLogoView:this.canPlayerLogoView,addLinkToPlayerLogo:this.addLinkToPlayerLogo,playerLogoLink:this.playerLogoLink,playerTheme:this.playerTheme,subtitlesEnabled:this.subtitlesEnabled,defaultSubtitleLanguage:this.defaultSubtitleLanguage,defaultSubtitleId:this.defaultSubtitleId,selectedSubId:this.defaultSubtitleId,subtitles:this.subtitles,showHoverActions:this.showHoverActions,showSpeedSettings:this.showSpeedSettings,isLandingPageVideo:this.isLandingPageVideo,token:this.token,domain:window.location.protocol+"//"+window.location.hostname,subtitlesFromServer:this.subtitlesFromServer,isMobilePlayer:this.isMobilePlayer,isContainsAudio:this.isContainsAudio,controls:this.controls,loop:this.loop,onlyQuality:this.onlyQuality,onlySubtitle:this.onlySubtitle,qualitySelected:this.qualitySelected,staticImgDomain:$,addSourceAudioType:this.addSourceAudioType}))),this.renderState=!0,this.setElement(this.$el.find("#"+this.id)),this.initial)return this.$el.height(9*this.$el.width()/16),void this.applyCustomColors();if(this.initializePlayer(),this.initializeNewPlayer(),this._delegateViewEvents(),this.setMediaSource(),this.initializePlayerJS(),-1!=["m3u8","mpd"].indexOf(this.type))this.initializeAdapter();else try{this.initPlayerMetrics()}catch(e){u.default.postErrorsToLog({error:"Error while trying to initialize Player Metrics",stackTrace:JSON.stringify(e)})}this.initializeCSS(),this.applyCustomColors(),this.applyCustomPlayIcon(),void 0===this.isMirrorWebCam&&void 0===this.isMirrorSecondary||c.default.toggleWebcamForMirrorVideo(!(!this.isMirrorWebCam&&!this.isMirrorSecondary),this.isMirrorSecondary||null!=this.audioSrc&&""!=this.audioSrc?this.$el.find(".secondary-video"):this.$el.find("#primary-video"));var e=window.location.href,i="";e.includes("/page/")&&!e.includes("/page/thumbnail/")?i=(i=e.replace("/page/","/page/thumbnail/")).includes("?")?i+"&is_play_time=true":i+"?is_play_time=true":e.includes("/play/")&&!e.includes("/thumbnail/")?i=(i=e.replace("/play/","/thumbnail/")).includes("?")?i+"&is_play_time=true":i+"?is_play_time=true":e.includes("/embed/")&&!e.includes("/thumbnail/")&&(i=e.replace("/embed/","/thumbnail/"),e=e.replace("/embed/","/play/"),this.$el.find(".hv-rclick-copy").hide()),this.copyWithThumbnail(e,i),this._handleVideoPreview(),this.isFromSDK&&this.$el.addClass("new-sdk")},update:function(e){var i=this;if(this.auth_params){var t=e.auth_params||{};for(var s in t)this.auth_params[s]=t[s]}else this.auth_params=e.auth_params||{};Object.keys(e).forEach((function(t){null!=e[t]&&(i[t]=e[t])})),e.showPersonalisedVideoLoading&&this.$el.find("#personalisedVideoLoading").show(),e.previewVideo?(this.$el.find(".play-btn-container video").attr("src",e.previewVideo),this._handleVideoPreview()):e.thumbnail&&this.$el.find("#playerThumbnail").attr("src",e.thumbnail),this.qualityControl&&this.subtitlesEnabled&&r()("#qualityControl")[this.qualitySelected?"show":"hide"](),this.qualitySelected?(r()(".hvplayer-setting-container").removeClass("hvplayer-setting-option"),r()("#qualityControl").addClass("selected"),r()("#qualityControl ul").slideDown()):this.subtitlesEnabled&&(r()(".hvplayer-setting-container").removeClass("hvplayer-setting-option"),r()("#subtitleControl").addClass("selected"),r()("#subtitleControl ul").slideDown()),this.onlyQuality?r()("#qualityControl").addClass("hvplayer-setting-oneoption"):this.onlySubtitle&&r()("#subtitleControl").addClass("hvplayer-setting-oneoption"),this.settingControl=this.qualityControl||this.subtitlesEnabled,r()(".hvplayer-setting-wrapper")[this.settingControl?"show":"hide"](),this.setMediaSource(),void 0===e.isMirrorWebCam&&void 0===e.isMirrorSecondary||c.default.toggleWebcamForMirrorVideo(!(!e.isMirrorWebCam&&!e.isMirrorSecondary),e.isMirrorSecondary||null!=this.audioSrc&&""!=this.audioSrc?this.$el.find(".secondary-video"):this.$el.find("#primary-video")),-1!=["m3u8","mpd"].indexOf(this.type)&&this.initializeAdapter(),this.chaptersList=e.chaptersList,this.updateChaptersTitle(this.mediaPlayer.currentTime)},_handlePlayPauseForNewPlayer:function(){for(var e=this,i=e.$el.find(".final-plybtn-click"),t=0;t<i.length;t++)i[t]&&(s=i[t],r()(s).children(".solidply")[e.playing?"addClass":"removeClass"]("solidpause"),r()(s).children(".playbutton")[e.playing?"addClass":"removeClass"]("paused"),r()(".main-controls")[e.playing||"started"==e.playerState?"addClass":"removeClass"]("hvplayer-mainctrl-animate"),r()(s).children(".solidply").hasClass("solidpause")?r()(".playbtn-container").attr("hvplayer-tooltip","Pause"):r()(".playbtn-container").attr("hvplayer-tooltip","Play"));var s},initializeNewPlayer:function(){var e=this;function i(){var i=e.$el.find(".video-container"),t=i.outerWidth()/16*8.21;i.css({height:t})}e.$el.find(".playbtn-container").on("click",(function(i){r()(".hvplayer-wrapper [tabindex]").blur(),e.showPlayerControls(),e._handlePlayPauseBtnClick(i)})),e.$el.find(".main-plyBtn").on("click",(function(i){r()(".hvplayer-wrapper [tabindex]").blur(),e.showPlayerControls(),e._handlePlayPauseBtnClick(i)})),i(),r()(window).on("resize",(function(){i(),e.updateCaptionsFontSize()})),this.$el.find(".settingsbtn-container").on("click",(function(e){e.stopPropagation(),c.default.checkElementIsDefined(".hvplayer-speed-wrapper")&&r()(".hvplayer-speed-wrapper").removeClass("opened"),r()(".hvplayer-wrapper [tabindex]").blur(),r()(this).parent(".hvplayer-setting-wrapper").toggleClass("opened"),r()(".hvplayer-setting-wrapper").hasClass("opened")?r()(".canvas-preview-container").css("z-index","91"):r()(".canvas-preview-container").css("z-index","92")})),this.$el.find(".hvplayer-setting-option span").on("click",(function(){var e=r()(this).parents(".hvplayer-setting-option");e.siblings(".hvplayer-setting-option").hasClass("selected")&&(r()(".settings-options-wrapper .hvplayer-setting-option").removeClass("selected"),e.addClass("selected"))})),this.simpleEditMode||r()(".player-touch-guard").addClass("disp-none"),this.fullscreenControl||this.canPlayerLogoView||this.settingControl||this.audioControl&&r()(".hp-indicator").removeClass("only-vol-ctrl"),this.$el.find(".player-controls-wrapper .duration-container").on("mousemove click mouseleave",(function(i){if("mouseleave"==i.type){e.$el.find(".player-controls-wrapper .buffer-container").css("width","0%"),e.$el.find(".chapter-indicator.hvplayer-indi-active").removeClass("hvplayer-indi-active"),e.$el.find(".hvplayer-chapters-indicators.hvplayer-chapters-indicatorsactive").removeClass("hvplayer-chapters-indicatorsactive"),e._handleProgressBtnLeave(i);var t=document.createElement("input");return document.body.appendChild(t),t.focus(),document.body.removeChild(t),e.isFullScreen()&&r()(".hvplayer-wrapper [tabindex]").blur(),void e.setPlayerControlsTimeout(500)}var s=this.getRelativeMouseCoordinate(i),a=this.getBoundingClientRect(),n=Math.floor(s.x/Math.ceil(a.width)*100);if(e.$el.hasClass("player-rot90")&&(n=Math.floor(i.offsetX/Math.ceil(a.height)*100)),"click"==i.type)e._setProgressSliderValue(n);else{var o=e.chaptersList;if(o)for(var l=0;l<o.length;l++){var d=o[l].place_start,h=o[l].place,c=o[l].asset_id;d<=n&&n<h&&(r()(".hvplayer-chapters-indicators").addClass("hvplayer-chapters-indicatorsactive"),r()(".chapter-indicator").removeClass("hvplayer-indi-active"),r()(".hvplayer-chapters-canvastitle").text(o[l].title),r()('.chapter-indicator[data-asset-id="'+c+'"]').addClass("hvplayer-indi-active"))}e.$el.find(".player-controls-wrapper .buffer-container").css("width",n+"%");var u=s.x-Math.min(80,2*n);e.$el.hasClass("player-rot90")&&(u=i.offsetX-Math.min(80,2*n)),n>=0&&!e.isMobilePlayer&&e.quickPreview&&u&&"ended"!=e.playerState&&e._handleProgressBtnHover(i,{x:n,percent:n/100})}}))},_setNewPlayerProgress:function(e){"initial"!=this.playerState&&(this.$el.find(".current-time-container").css("width",e+"%"),this.$el.find(".hvplayer-seekbar-slider *").css("left",e+"%"))},_handleVideoPreview:function(){try{if(this.previewVideo){var e=this.$el.find("#preview-video-player")[0];e.volume=0,e.muted=!0,e.play()}}catch(e){}},sendToFront:function(e){this.resizePlayerForWindow(),e||this._handlePlayPauseBtnClick()},_setNewPlayerTimestamp:function(e){var i=e.split("/"),t=i[0],s=i[1];this.$el.find(".end-time").html(t+" / "+s),this.$el.find(".buffer-container").addClass("completed")},setMediaSource:function(){if(this.$el.find("#gifImage").attr("src",this.src),this.$el.find("#primary-video source").attr("src",this.src),this.$el.find(".hidden-video source").attr("src",this.src),this.$el.find(".secondary-video source").attr("src",this.audioSrc),this.$el.find("#primary-video").length>0&&this.src&&-1==this.src.indexOf("fetch_video_stream")&&this.$el.find("#primary-video")[0].load(),this.$el.find(".secondary-video").length>0&&this.$el.find(".secondary-video")[0].load(),this.parallelURLs){r()(".parallel-video").remove();for(var e=1;e<=this.parallelURLs.length;e++)this.$el.find(".parallel-video-container").append('<video class="parallel-video parallel-videos-'+e+'" crossorigin="anonymous" preload="auto" playsinline><source crossorigin="anonymous" src="'+this.parallelURLs[e-1]+'">'),this.$el.find(".parallel-videos-"+e)[0].load(),this.setMediaPlayerEvents(this.$el.find(".parallel-videos-"+e)[0])}},initializePlayer:function(){var e=this;this.mediaPlayer=this.$el.find(".primary-video")[0],this.customAudioPlayer=this.$el.find(".secondary-video")[0],this.mediaPlayer.controls=!1,this.$el.find(".volume-slider").slider({range:"min",orientation:"horizontal",min:0,max:100,value:this.previousVolume,change:function(i,t){e.volumeChanged(i)},slide:function(i,t){e.volumeChanged(i)}}),this.$el.find(".hvplayer-seekbar-slider").slider({range:"min",orientation:"horizontal",min:0,max:100,value:0,slide:function(i,t){r()(".current-time-container").css("width",t.value+"%"),e.progressSlided(t.value)}}),this.quickPreview&&(this.quickPreviewImg=document.createElement("img"),this.quickPreviewImg.setAttribute("src",this.quickPreview),this.quickPreviewCanvas=this.$el.find(".quickpreview-canvas")[0],this.quickPreviewContext=this.quickPreviewCanvas.getContext("2d")),this.showSetFrame?r()(".thumbnail-wrap").show():r()(".thumbnail-wrap").hide(),this.setSimpleEditMode(this.simpleEditMode),this.allowKeyboardShortcuts&&(r()(window).on("keydown",(function(i){if("TEXTAREA"!==i.target.nodeName&&"INPUT"!==i.target.nodeName&&"button"!==i.target.type&&e.alive){var t=i.key,s=i.keyCode,a=(r()(".main-plyBtn").is(":focus"),r()(".solidply").is(":focus"),r()(".hvplayer-wrapper [tabindex]").is(":focus"));r()(".player-controls-wrapper [tabindex]").attr("tabindex","0"),r()(".logo-container .no-pointer-events[tabindex]").attr("tabindex","-1")," "===t||"Spacebar"===t||32===s?a||(e._handlePlayPauseBtnClick(),e.setPlayerControlsTimeout(3e3)):"ArrowRight"===t||"Right"===t||39===s?e._handleForwardBtnClick():"ArrowLeft"===t||"Left"===t||37===s?e._handleRewindBtnClick():"f"===t||70===s?r()(".screensize-container").click():"Tab"!==t&&9!==s||e.showPlayerControls()}else r()(".player-controls-wrapper [tabindex]").attr("tabindex","-1")})),r()(window).on("keyup",(function(i){if("TEXTAREA"!==i.target.nodeName&&"INPUT"!==i.target.nodeName&&"button"!==i.target.type&&e.alive){var t=i.key,s=i.keyCode,a=r()("#qualityControl").is(":focus-within"),n=r()("#subtitleControl").is(":focus-within");"Tab"!==t&&9!==s||r()(".hvplayer-setting-wrapper").is(":focus-within")||(r()(".hvplayer-setting-wrapper").removeClass("opened"),r()(".canvas-preview-container").css("z-index","92")),a?(r()(".settings-options-wrapper .hvplayer-setting-option").removeClass("selected"),r()("#qualityControl").addClass("selected")):n&&(r()(".settings-options-wrapper .hvplayer-setting-option").removeClass("selected"),r()("#subtitleControl").addClass("selected"))}}))),this.$el.find("#hvpSpeedBtn").on("click",(function(e){e.stopPropagation(),c.default.checkElementIsDefined(".hvplayer-setting-wrapper")&&r()(".hvplayer-setting-wrapper").removeClass("opened"),r()(".hvplayer-wrapper [tabindex]").blur(),r()(this).parent(".hvplayer-speed-wrapper").toggleClass("opened"),r()(".hvplayer-speed-wrapper").hasClass("opened")?r()(".canvas-preview-container").css("z-index","91"):r()(".canvas-preview-container").css("z-index","92")})),this.$el.find(".video-speed-btn .player-speed-label").on("click",(function(){e.$el.find(".video-speed-btn .quality-container").slideToggle("fast"),e.$el.find("#videoQualityBtn .quality-container").slideUp("fast")})),this.$el.find(".hvplayer-speed-wrapper #speedControl li").on("click",(function(i){r()(".hvplayer-wrapper [tabindex]").blur();var t=r()(i.currentTarget).attr("data-id"),s=r()(i.currentTarget).attr("data-text");e.presetPlayerControls(),e.$el.find("#primary-video")[0].playbackRate=parseFloat(t),e.$el.find("#speedControl li").removeClass("selected"),r()(this).addClass("selected"),e.$el.find(".hvplayer-speed-wrapper #speedInfo").html(s),e.$el.find(".hvplayer-speed-text").html(s)})),this.$el.find(".settings-options-wrapper #subtitleControlWrapper li").on("click",(function(i){r()(".hvplayer-wrapper [tabindex]").blur();var t=r()(i.currentTarget).attr("data-text");e.selectedSubId=r()(i.currentTarget).attr("data-subid"),e.$el.find("#subtitleControlWrapper li").removeClass("selected"),r()(this).addClass("selected"),e.$el.find(".settings-options-wrapper #subtitleInfo").html(t),e.cueChanged()})),this.$el.find("#subtitlesTrack").css("bottom","80px")},initializePlayerJS:function(){var e=this;this.playerJSReceiver=new(b().Receiver),this.playerJSReceiver.on("play",(function(){e.play()})),this.playerJSReceiver.on("pause",(function(){e.pause()})),this.playerJSReceiver.on("getPaused",(function(i){i(!e.playing)})),this.playerJSReceiver.on("mute",(function(){e.mute()})),this.playerJSReceiver.on("unmute",(function(){e.unmute()})),this.playerJSReceiver.on("getMuted",(function(i){i(0==e.getVolume())})),this.playerJSReceiver.on("setVolume",(function(i){e.setVolume(i)})),this.playerJSReceiver.on("getVolume",(function(i){i(e.getVolume())})),this.playerJSReceiver.on("getDuration",(function(i){i(e.mediaPlayer.duration)})),this.playerJSReceiver.on("setCurrentTime",(function(i){e.mediaPlayer.currentTime=i})),this.playerJSReceiver.on("getCurrentTime",(function(i){i(e.mediaPlayer.currentTime)})),this.playerJSReceiver.on("setLoop",(function(i){e.setLoop(i)})),this.playerJSReceiver.on("getLoop",(function(i){i(e.getLoop())})),this.playerJSReceiver.ready()},initializeDashPlayerJs:function(){this.adapter=s.MediaPlayer().create(),this.adapter.getDebug().setLogToBrowserConsole(!1),this.adapter.setSegmentOverlapToleranceTime(2),this.adapter.setABRStrategy("abrBola"),this.adapter.addABRCustomRule("qualitySwitchRules","DownloadRatioRule",a);var e={type:"PERIODIC",authorizationUrl:HippoVideo.URL.PATH[HippoVideo.URI.Feature.VIDEO_PLAYER.CLOUD_FRONT_AUTHORIZER]+this.token,expiry:HippoVideo.Constants.Video.Expiry,authSettings:this.auth_params,manifestOnly:!this.segmented};this.adapter.initializeWithAuthorization(this.mediaPlayer,this.src,!1,e),this.currentStreamQuality=-1,this.dashPlayerLoaded=!1,window.navigator.userAgent.indexOf("MSIE ")>0||navigator.userAgent.match(/Trident.*rv\:11\./)||this.adapter.setFastSwitchEnabled(!0)},initializeHLSPlayerJs:function(){var e=this,i={asset_id:this.assetId,mfInVideosPresent:this.mfInVideosPresent};this.adapter=new n({enableWorker:!0},{onMediaAttached:function(){e.adapter.loadSource(e.src)},onManifestParser:function(i){e._handleMetadataLoad(i)}},e.auth_params,!0),this.adapter.attachPlayerMetrics({statsJsonSeed:i}),this.adapter.attachMedia(this.mediaPlayer)},initPlayerMetrics:function(){var e=this,i={asset_id:this.assetId,mfInVideosPresent:this.mfInVideosPresent};!function(i){var t=i.playerInstance,s=i.statsJsonSeed;e.playerMetrics=new P.Z({playerInstance:t,statsJsonSeed:s}),e.playerMetrics.init()}({playerInstance:e.mediaPlayer,statsJsonSeed:i})},initializeAdapter:function(){var e=this;"mpd"==this.type?Promise.all([t.e(520).then(t.t.bind(t,76821,23)),Promise.all([t.e(520),t.e(881)]).then(t.bind(t,24580))]).then((function(i){var t=i[0].default,n=i[1].default;s=t,a=n,e.initializeDashPlayerJs()})):t.e(245).then(t.t.bind(t,49538,23)).then((function(i){var t=i.default;n=t,e.initializeHLSPlayerJs()}))},initializeCSS:function(){this.renderState=!0,null==this.audioSrc&&this.$el.find(".secondary-video-container").hide(),0==this.showLogo&&this.$el.find(".player-logo").hide();var e=this;r()(window).on("resize",(function(i){r()(i.target).hasClass("ui-resizable")||e.resizePlayerForWindow()})),this.isError?(this.$el.find(".error-reason").html(this.getFaqOneLiner()+this.getFaqLink()),this.$el.find(".error-overlay").css("background-image","url(/img/tv-noise.gif)").show()):this.$el.find(".error-overlay").hide(),this.resizePlayerForWindow(),this.$el.find("video").css("height","100%"),this.primaryVideoLayout&&(null!=this.primaryVideoLayout.width&&this.$el.find(".primary-video-container").css("width",this.getValueForPlayerInitial(this.primaryVideoLayout.width,!0)+"px"),null!=this.primaryVideoLayout.height&&this.$el.find(".primary-video-container").css("height",this.getValueForPlayerInitial(this.primaryVideoLayout.height,!1)+"px"),null!=this.primaryVideoLayout.x&&this.$el.find(".primary-video-container").css("left",this.getValueForPlayerInitial(this.primaryVideoLayout.x,!0)+"px"),null!=this.primaryVideoLayout.y&&this.$el.find(".primary-video-container").css("top",this.getValueForPlayerInitial(this.primaryVideoLayout.y,!1)+"px")),this.secondaryVideoLayout&&(null!=this.secondaryVideoLayout.width&&this.$el.find(".secondary-video-container").css("width",this.getValueForPlayerInitial(this.secondaryVideoLayout.width,!0)+"px"),null!=this.secondaryVideoLayout.height&&this.$el.find(".secondary-video-container").css("height",this.getValueForPlayerInitial(this.secondaryVideoLayout.height,!1)+"px"),null!=this.secondaryVideoLayout.x&&this.$el.find(".secondary-video-container").css("left",this.getValueForPlayerInitial(this.secondaryVideoLayout.x,!0)+"px"),null!=this.secondaryVideoLayout.y&&this.$el.find(".secondary-video-container").css("top",this.getValueForPlayerInitial(this.secondaryVideoLayout.y,!1)+"px")),this.showSecondaryVideo||this.$el.find(".secondary-video-container").hide();var i=this.$el.width(),t=this.$el.height();r()(".access-denied-pop").width(i),r()(".access-denied-pop").height(t),r()(".password-pop").width(i),r()(".password-pop").height(t),this.resizeFitThumnbail(),this.initializePlayerForMobile(),this.handleFwdBckBtn()},resizeFitThumnbail:function(){var e=this,i=new Image,t=this.isImageMode?"#gifImage":"#playerThumbnail";i.onload=function(i){var s=i.target.naturalWidth,a=i.target.naturalHeight,n=u.default.resizeImageToFit(s,a,e.$el.width(),e.$el.height()),o=u.default.getCoordinatesForResizedImage(n.width,n.height,e.$el.width(),e.$el.height());e.$el.find(t).css({width:n.width,height:n.height,top:o.yPos,left:o.xPos})},this.isImageMode?i.src=this.src:this.thumbnail&&(i.src=this.thumbnail)},resizeFitRenderless:function(){var e=this.$el.width(),i=this.$el.height();if(e&&i){var t=0,s=0;e/i>16/9?(e=16*i/9,t=(this.$el.width()-e)/2):(i=9*e/16,s=(this.$el.height()-i)/2),this.$el.find(".renderless-overlay").css({width:e+"px",height:i+"px",left:t+"px",top:s+"px"})}},initializePlayerForMobile:function(){this.isMobilePlayer&&(r()("[hvplayer-tooltip]").removeAttr("hvplayer-tooltip"),r()(".hvplayer-wrapper").addClass("hvplayer-mobile"))},toggleSubtitlesEvent:function(e){this.$el.find("#subtitlesTrack").is(":visible")&&!e?(this.$el.find("#subtitlesTrack").hide(),this.toggleSubtitles(!1)):(this.toggleSubtitles(!0),this.$el.find("#subtitlesTrack").show()),this.presetPlayerControls()},toggleSubtitles:function(e){e?(this.$el.find("#hvpSubtitleBtn").addClass("active"),this.$el.find(".hvplayer-caption-container").attr("hvplayer-tooltip","Subtitles Off")):(this.$el.find("#hvpSubtitleBtn").removeClass("active"),this.$el.find(".hvplayer-caption-container").attr("hvplayer-tooltip","Subtitles On"))},_setProgressSliderValue:function(e){var i=this.$el.find(".current-time-container"),t=this.$el.find(".hvplayer-seekbar-slider *");i&&(i.css("width",e+"%"),t.css("left",e+"%")),this.progressSlided(e)},volumeChanged:function(e){var i=this.getVolume(),t=r()(".volumebtn"),s=r()(".volume-container");this.mediaPlayer.muted=!1,this.customAudioPlayer&&(this.customAudioPlayer.muted=!1),i>=50?(r()(t).addClass("volumeon hvplayer-volume-high"),r()(t).removeClass("hvplayer-volume-low"),r()(s).removeClass("hvplayer-volume-muted"),r()(s).attr("hvplayer-tooltip","Mute")):i>0?(r()(t).addClass("volumeon hvplayer-volume-low"),r()(t).removeClass("hvplayer-volume-high"),r()(s).removeClass("hvplayer-volume-muted"),r()(s).attr("hvplayer-tooltip","Mute")):0==i&&(this.mediaPlayer.muted=!0,this.customAudioPlayer&&(this.customAudioPlayer.muted=!0),r()(s).addClass("hvplayer-volume-muted"),r()(t).removeClass("volumeon hvplayer-volume-low hvplayer-volume-high"),r()(s).attr("hvplayer-tooltip","Unmute")),this.mediaPlayer.volume=i/100},progressSlided:function(e){e=this.map(e,0,100,this.trimStart,this.mediaPlayer.duration-this.trimEnd),this.goToTime(e),this.isMobilePlayer&&(r()(".hvplayer-wrapper [tabindex]").blur(),this.setPlayerControlsTimeout(500))},goToTime:function(e){this.mediaPlayer.currentTime=e,this.customAudioPlayer.currentTime=this.mediaPlayer.currentTime,this.$el.find(".replay-btn-container").hide()},show:function(){this.renderState?this.$el.show():(this.undelegateEvents(),this.render())},hide:function(){this.renderState&&this.$el.hide()},destroy:function(){this.alive=!1,this.undelegateEvents(),this.$el.removeData().unbind(),r()(window).unbind("beforeunload",!1),this.remove(),h().View.prototype.remove.call(this),this.clipboard&&this.clipboard.destroy();try{this.adapter&&this.adapter.destroy&&this.adapter.destroy()}catch(e){}},handleFwdBckBtn:function(){"initial"==this.playerState&&(this.$el.find(".forwardbtn").addClass("disp-none"),this.$el.find(".backwardbtn").addClass("disp-none"))},handleMainPlayPause:function(){this.$el.find(".main-play-pause").click()},_delegateViewEvents:function(){r()(document).on("click",(function(e){e.target.className.includes("settings-options-wrapper")||r()(".hvplayer-setting-wrapper").removeClass("opened"),r()(".hvplayer-speed-wrapper").removeClass("opened")}));var e=this;this.$el.on("dblclick",(function(){r()(".screensize-container").click()})),this.$el.find(".player-controls-container").on("dblclick",(function(e){e.stopPropagation(),e.preventDefault()})),this.$el.find(".main-play-pause").on("click",(function(i){if(i.stopPropagation(),i.preventDefault(),r()(".main-controls").removeClass("hvplayer-mainctrl-animate"),e.isMobilePlayer){if(e.isMobilePlayer){if(!e.controlsEnabled)return void e.showPlayerControls();e.showPlayerControls(),e._handlePlayPauseBtnClick(i)}}else e.showPlayerControls(),e._handlePlayPauseBtnClick(i);r()(".hv-rclick-options").hasClass("hide")||r()(".hv-rclick-options").addClass("hide")})),this.$el.find(".main-play-pause").on("mousedown",(function(i){if(3===i.which){i.target.addEventListener("contextmenu",(function(e){e.preventDefault()}));var t=i.target,s=i.target.nextSibling;e.showRightClickOption(t,s)}})),this.$el.find(".hv-rclick-about").on("click",(function(e){r()(".hv-rclick-options").addClass("hide"),window.open("https://www.hippovideo.io?utm_source=rightclick&utm_medium=player&utm_campaign=branding","_blank")})),this.$el.find(".main-controls").on("dblclick",(function(e){e.stopPropagation(),e.preventDefault()})),this.delegate("webkitfullscreenchange mozfullscreenchange fullscreenchange",this._handleFullscreenChange),this.delegate("mouseenter mouseleave mousemove",this._handleHover),this.delegate("mouseenter mouseleave mousemove",".player-controls-wrapper",this._resolveHoverEvent),this.delegate("contextmenu","video",this._handleMenu),this.delegate("click",".replay-btn-container",this._handlePlayerClick),this.delegate("click",".volumebtn",this._handleAudioBtnClick),this.delegate("click",".screensize-container",this._handleFullscreenBtnClick),this.delegate("click",".player-download-icon",this.downloadVideoClick),this.delegate("click",".hv-player-download",this.deliveryDownload),this.delegate("click","#addCommentFromCanvas",(function(){e.playing&&e._handlePlayPauseForNewPlayer(),e.commentsCallbackHandler&&e.commentsCallbackHandler()})),this.delegate("click",".backwardbtn",this._handleRewindBtnClick),this.delegate("click",".forwardbtn",this._handleForwardBtnClick),this.delegate("click",".muted-autoplay",this._handleMutedAutoplayAudioClick),this.delegate("mouseenter mouseleave mousemove","#canvasPreviewContainer",this._handleCanvasMouseAction),r()(".set-frame-btn").on("click",this.seekAndUpdateThumb),r()("#hvpSubtitleBtn").on("click",(function(){r()(".hvplayer-wrapper [tabindex]").blur(),e.toggleSubtitlesEvent(),e.cueChanged()})),r()(".volume-container:not(.hvplayer-volume-noaudio)").on("mouseenter mouseleave hover focus focusin",this._chaptersWidthByVolume),r()(".volume-container:not(.hvplayer-volume-noaudio) .volumebtn").on("focus",this._volumeAdjustWithKeys),this.setMediaPlayerEvents(this.mediaPlayer),this.isMobilePlayer&&this.isIphone&&c.default.orientationChangeEventForPlayer(e)},setMediaPlayerEvents:function(e){e.addEventListener("timeupdate",this._handleTimeupdate,!1),e.addEventListener("play",this._handlePlay,!1),e.addEventListener("pause",this._handlePause,!1),e.addEventListener("progress",this._handleProgress,!1),e.addEventListener("waiting",this._handleWaiting,!1),e.addEventListener("playing",this._handleResume,!1),e.addEventListener("canplay",this._handleCanplay,!1),e.addEventListener("seeked",this._handleSeeked,!1),e.addEventListener("seeking",this._handleSeeking,!1),e.addEventListener("ended",this._handleEnded,!1),e.addEventListener("loadedmetadata",this._handleMetadataLoad,!1),e.addEventListener("loadeddata",this._handleDataLoad,!1)},disableSubtitle:function(){r()('.primary-video track[data-subid="'+this.selectedSubId+'"]').mode="hidden"},_handleMetadataLoad:function(){var e=this;if(this.adapterLoaded||-1==["m3u8","mpd"].indexOf(this.type))"mpd"==this.type?(this.adapter.setAutoSwitchQualityFor("video",!1),this.adapter.setQualityFor("video",this.currentStreamQuality),this.mediaPlayer.currentTime=this.dashQualitySwitchTime):this.settingControl&&(this.settingControl=this.adapterLoaded||this.subtitlesEnabled,this.settingControl||r()(".hvplayer-setting-wrapper").hide());else{this.adapterLoaded=!0;var i=this.adapter["mpd"==this.type?"getBitrateInfoListFor":"getLevels"]("mpd"==this.type?"video":"");i.sort((function(e,i){return e.height>i.height?1:i.height>e.height?-1:0}));for(var t,s,a=this.$el.find(".settings-options-wrapper #qualityControlWrapper"),n=[],o=i.length-1;o>=0;o--){switch(s=i[o].height,!0){case s>144&&s<=240:t="240p";break;case s>240&&s<=360:t="360p";break;case s>360&&s<=480:t="480p";break;case s>480&&s<=720:t="720p";break;case s>720&&s<=1080:t="1080p";break;case s>1080&&s<=2159:t="2K";break;case s>=2160&&s<=4319:t="4K";break;case s>=4320:t="8K"}n[o]=t,a.append('<li data-id="'+o+'"><button tabindex="0" aria-label="'+t+' resolution"><i></i>'+t+"</button></li>")}var l="high"==c.default.getQueryParams().quality;if(l){var d=i.length-1;e.$el.find(".settings-options-wrapper #qualityControlWrapper li").removeClass("selected"),e.$el.find('.settings-options-wrapper #qualityControlWrapper li[data-id="'+d+'"]').addClass("selected"),e.$el.find(".settings-options-wrapper #qualityinfo").html(n[d]),"mpd"==this.type?(this.adapter.setAutoSwitchQualityFor("video",!1),this.adapter.setQualityFor("video",d)):this.adapter.setRepresentation(i.length-1)}n.length>0?l?a.append('<li data-id="-1"><button tabindex="0" aria-label="Auto resolution"><i></i>'+f().wizPlayer.auto+"</button></li>"):(a.append('<li class="selected" data-id="-1"><button tabindex="0" aria-label="Auto resolution"><i></i>'+f().wizPlayer.auto+"</button></li>"),e.$el.find(".settings-options-wrapper #qualityinfo").html(f().wizPlayer.auto)):this.settingControl&&(this.settingControl=this.subtitlesEnabled,this.settingControl||r()(".hvplayer-setting-wrapper").hide()),this.$el.find(".settings-options-wrapper #qualityControlWrapper li").on("click",(function(i){r()(".hvplayer-wrapper [tabindex]").blur();var t=r()(i.currentTarget).attr("data-id");e.$el.find(".settings-options-wrapper #qualityControlWrapper li").removeClass("selected"),r()(this).addClass("selected"),"-1"==t?(e.$el.find(".settings-options-wrapper #qualityinfo").html(f().wizPlayer.auto),"mpd"==this.type?e.adapter.setAutoSwitchQualityFor("video",!0):e.adapter.setRepresentation(-1)):(e.$el.find(".settings-options-wrapper #qualityinfo").html(n[t]),"mpd"==this.type?parseInt(t)>~~e.currentStreamQuality&&(e.dashQualitySwitchTime=e.mediaPlayer.currentTime,e.adapter.reset(),e.adapter.attachSource(e.src),e.adapter.attachView(e.mediaPlayer),e._handleWaiting()):e.adapter.setRepresentation(Number(t))),e.currentStreamQuality=~~t,e.presetPlayerControls()}))}this.subtitlesEnabled?(this.selectedSubId,this.addSubtitleEventListener(this.selectedSubId),this.toggleSubtitlesEvent(this.subtitlesEnabled)):this.toggleSubtitles(!1),this.autoPlayVideo&&(this.isMutedAutoPlay&&(this.isMuted||this.mute(),this.$el.find(".muted-autoplay").removeClass("hide")),this.$el.find(".hv-new-player .controls").hasClass(".hide-controls")?(this.$el.find(".notification-line-onplay").removeClass("emoji-move-top"),this.$el.find(".hv-player-download").addClass("hide-hv-player-download")):(this.$el.find(".notification-line-onplay").addClass("emoji-move-top"),this.$el.find(".hv-player-download").removeClass("hide-hv-player-download")),e.play())},addSubtitleEventListener:function(e){for(var i=document.getElementsByTagName("track"),t=this.$el.find("#hvpSubtitleBtn").hasClass("active"),s=0;s<i.length;s++){var a=i[s];r()(a).attr("data-subid"),a.addEventListener("cuechange",this.cueChanged),null==e&&0==s&&t?(a.mode="hidden",this.selectedSubId=r()(a).attr("data-subid")):a.mode=e&&t?"hidden":"disabled"}},_handleDataLoad:function(){var e=!this.dataLoaded;this.dataLoaded=!0,e&&this.onDataLoadHandler&&this.onDataLoadHandler()},_handleFullscreenChange:function(e){var i=this;this.isFullScreen()?(r()(".screensize-container").children(".screensizebtn").addClass("maximized"),this.$el.find(".preview-add-comment").hide(),this.$el.find("#canvasPreviewContainer").addClass("disp-none"),r()(".screensize-container").attr("hvplayer-tooltip","Exit Full Screen")):(r()(".screensize-container").children(".screensizebtn").removeClass("maximized"),this.$el.find(".preview-add-comment").show(),this.$el.find("#canvasPreviewContainer").removeClass("disp-none"),r()(".screensize-container").attr("hvplayer-tooltip","Full Screen")),this.resizePlayerForWindow(),setTimeout((function(){i.resizePlayerForWindow()}),1e3)},_handleProgressBtnLeave:function(e){clearTimeout(this.hideQuickPreviewTimeout);var i=this;this.hideQuickPreviewTimeout=setTimeout((function(){i.$el.find("#canvasPreviewContainer").fadeOut(200)}),500)},_handleProgressBtnHover:function(e,i){var t=this.$el.find("#canvasPreviewContainer"),s=i.x,a=document.querySelector(".hvplayer-wrapper").getBoundingClientRect(),n=a.x+a.width,o=document.querySelector("#canvasPreviewContainer").getBoundingClientRect(),l=o.x+o.width;if(l+=16,this.isLandingPageVideo?t.css("left","calc("+s+"% - 66px)"):(n<l&&(this.canvasPointed=s),s<10?t.css("left","16px"):s>=10&&n>l||s<this.canvasPointed?t.css("left","calc("+s+"% - 66px)"):t.css("left","calc(100% - 180px)")),this.showSetFrame){t.fadeIn(),r()(".player-controls-wrapper").show();var d=i.percent;this.second=d*this.mediaPlayer.duration,isNaN(this.second)&&(this.second=.2);var h=document.getElementsByClassName("hidden-video")[0];h.currentTime=Number(this.second),this.quickPreviewCanvas=this.$el.find(".quickpreview-canvas")[0],this.quickPreviewContext=this.quickPreviewCanvas.getContext("2d"),h.removeEventListener("canplay",this.drawImageForPreview),h.addEventListener("canplay",this.drawImageForPreview)}else{if(t.is(":visible")||t.fadeIn(),d=i.percent,this.second=d*this.mediaPlayer.duration,isNaN(this.mediaPlayer.duration))return;var c=parseInt(this.second/2),u=parseInt(c/10),p=c%10;this.quickPreviewImg&&this.quickPreviewContext&&(this.quickPreviewContext.drawImage(this.quickPreviewImg,128*p,72*u,128,72,0,0,128,72),this.quickPreviewContext.fillStyle="rgba(0,0,0,0.5)",this.quickPreviewContext.fillRect(47,53,37,18),this.quickPreviewContext.font="9px",this.quickPreviewContext.fillStyle="white",this.quickPreviewContext.fillText(this.strToTime(this.second),55,67)),r()("#canvasHoverTime").val(this.second),clearTimeout(this.hideQuickPreviewTimeout),this.hideQuickPreviewTimeout=setTimeout((function(){t.fadeOut(200)}),3e3)}},drawImageForPreview:function(){this.quickPreviewContext&&this.quickPreviewContext.drawImage(document.getElementsByClassName("hidden-video")[0],0,0,128,72)},seekAndChooseThumb:function(e){r()(".player-controls-wrapper, .set-frame-btn").show(),r()(".player-progress").on("mousemove",this._handleProgressBtnHover),this.undelegateHoverActions(),this.showPlayerControls();var i=r()("#canvasPreviewContainer");i.is(":visible")||i.fadeIn();var t=document.getElementsByClassName("hidden-video")[0];t.currentTime=Number(.2),this.quickPreviewCanvas=r()(".quickpreview-canvas")[0],this.quickPreviewContext=this.quickPreviewCanvas.getContext("2d"),t.removeEventListener("canplay",this.drawImageForPreview),t.addEventListener("canplay",this.drawImageForPreview)},hideSeekAndUpdateThumb:function(){var e=this;this.undelegate("mouseenter mouseleave mousemove",this._handleHover),this.hideQuickPreviewTimeout=setTimeout((function(){e.$el.find("#canvasPreviewContainer").hide()}),500),r()(".player-progress").unbind("mousemove mouseleave")},seekAndUpdateThumb:function(){this.hideSeekAndUpdateThumb(),this.saveThisFrameAsThumbnail()},setThumbnailFromFrameCallBack:function(e){this.saveThisFrameAsThumbnail=e},setOnDataLoadHandler:function(e){this.onDataLoadHandler=e,this.dataLoaded&&e()},_handleEnded:function(e){if(this.$el.find(".main-controls").removeClass("hvplayer-mainctrl-animate"),this.$el.find(".solidply").removeClass("solidpause"),this.$el.find(".playbtn-container").attr("hvplayer-tooltip","Play"),this.playing&&this.mediaPlayer.currentTime>=this.mediaPlayer.duration-this.trimEnd&&(this.simpleEditMode||this.$el.find(".replay-btn-container").show(),this.$el.find(".main-controls").fadeOut(),this.playerState="ended",this.playing=!1,this.checkAllowPlay()),this.isIphone&&this.fullscreen&&this.exitFullScreen(),this.playerJSReceiver&&this.playerJSReceiver.emit("ended"),this.onEndHandler.length>0)for(var i=0;i<this.onEndHandler.length;i++)this.onEndHandler[i]();this.setPlayerControlsTimeout(50)},_handleHover:function(e){var i=e.type;this.simpleEditMode||("mouseenter"!==i||this.isMobilePlayer?"mouseleave"!==i||this.isMobilePlayer?"mousemove"!==i||this.isMobilePlayer||(this.showPlayerControls(),this.setPlayerControlsTimeout(1500)):(this.showPlayerControls(),this.setPlayerControlsTimeout(500)):this.showPlayerControls(50))},_resolveHoverEvent:function(e){"mouseleave"!==e.type||this.isMobilePlayer||this.setPlayerControlsTimeout(500),this.isMobilePlayer||clearTimeout(this.mouseleaveTimeout)},_isAllowedToShowMainControls:function(){return!(!this.isMobilePlayer&&this.playing)},showPlayerControls:function(){"ended"==this.playerState||this.$el.find(".replay-btn-container").is(":visible")||(this.controlsEnabled=!0,this.$el.find(".notification-line-onplay").addClass("emoji-move-top"),this.$el.find(".player-controls-wrapper").show(),this.$el.find(".player-controls-wrapper").removeClass("hide-controls"),null!=document.querySelector(".main-controls")&&this.$el.find(".main-controls").show(),this.$el.find(".hv-player-download").removeClass("hide-hv-player-download"),this.$el.find(".hp-indicator").removeClass("hide-hp-indicator"),this.$el.find(".duration-container-fullscreen").addClass("disp-none"),this.$el.find("#subtitlesTrack").css("bottom","59px"),this.setPlayerControlsTimeout(1500),this.$el.find(".player-controls-wrapper [tabindex]").attr("tabindex","0"),this.$el.find(".logo-container .no-pointer-events[tabindex]").attr("tabindex","-1"))},cueChanged:function(e){var i=this.$el.find("#hvpSubtitleBtn").hasClass("active");if(this.$el.find("#subtitlesTrack").text(""),console.log("Subs :: ",i),i){console.log("Subs :: enter");for(var t=null,s=document.getElementById("primary-video").textTracks,a=0;a<s.length;a++){var n=s[a];n.label==this.selectedSubId?(t=n,n.mode="hidden"):n.mode="disabled"}if(null==t)return;var o="";for(a=0;a<t.activeCues.length;a++)o+=t.activeCues[a].text;""!=o&&(this.disableSubtitle(),this.$el.find("#subtitlesTrack").html("<span>"+o+"</span>"))}},handlePlayerControlHideShow:function(){var e=r()(".hvplayer-seekbar-wrapper").is(":hover"),i=r()("#canvasPreviewContainer").is(":hover"),t=r()(".hvplayer-controls-wrapper").is(":hover"),s=r()(".hvplayer-wrapper [tabindex]").is(":focus"),a=r()(".player-controls-wrapper").is(":hover"),n=r()(".hvplayer-setting-wrapper").hasClass("opened"),o=r()(".hvplayer-speed-wrapper").hasClass("opened");if(!(s||n||o)||this.isMobilePlayer)if(this.isMobilePlayer&&(a=!1),!(this.playing||this.$el.find(".replay-btn-container").is(":visible")||this.isCTAWaitingMode)||e||i||t){this.controlsEnabled=!0,this.$el.find(".duration-container-fullscreen").addClass("disp-none"),this.$el.find(".player-controls-wrapper").removeClass("hide-controls"),null!=document.querySelector(".main-controls")&&this.$el.find(".main-controls").show(),this.$el.find(".hv-player-download").removeClass("hide-hv-player-download"),this.$el.find(".hp-indicator").removeClass("hide-hp-indicator"),this.$el.find(".notification-line-onplay").addClass("emoji-move-top"),this.$el.find(".player-controls-wrapper [tabindex]").attr("tabindex","0"),this.$el.find(".logo-container .no-pointer-events[tabindex]").attr("tabindex","-1");var l=this;a||"started"!=this.playerState||setTimeout((function(){l.$el.find(".main-controls").hide(),l.$el.find(".main-controls").removeClass("hvplayer-mainctrl-animate")}),200)}else this.controlsEnabled=!1,this.$el.find(".player-controls-wrapper").addClass("hide-controls"),this.$el.find(".hv-player-download").addClass("hide-hv-player-download"),this.$el.find(".hp-indicator").addClass("hide-hp-indicator"),this.presetPlayerControls(),this.$el.find(".main-controls").hide(),this.$el.find(".main-controls").removeClass("hvplayer-mainctrl-animate"),this.$el.find(".duration-container-fullscreen").removeClass("disp-none"),this.$el.find(".notification-line-onplay").removeClass("emoji-move-top"),this.$el.find("#subtitlesTrack").css("bottom","15px"),this.$el.find(".player-controls-wrapper [tabindex]").attr("tabindex","-1")},hidePlayControls:function(){this.controlsEnabled=!1,this.$el.find(".player-controls-wrapper").addClass("hide-controls"),this.$el.find(".hv-player-download").addClass("hide-hv-player-download"),this.$el.find(".hp-indicator").addClass("hide-hp-indicator"),this.presetPlayerControls(),this.$el.find(".main-controls").hide(),this.$el.find(".main-controls").removeClass("hvplayer-mainctrl-animate"),this.$el.find(".duration-container-fullscreen").removeClass("disp-none"),this.$el.find(".notification-line-onplay").removeClass("emoji-move-top"),this.$el.find("#subtitlesTrack").css("bottom","15px")},setPlayerControlsTimeout:function(e){var i=this;clearTimeout(this.mouseleaveTimeout),this.mouseleaveTimeout=setTimeout((function(){i.simpleEditMode||i.handlePlayerControlHideShow()}),e)},presetPlayerControls:function(){r()(".hvplayer-setting-wrapper").hasClass("opened")&&r()(".settingsbtn-container").click(),r()(".hvplayer-speed-wrapper").hasClass("opened")&&r()("#hvpSpeedBtn").click()},setPlayerState:function(e){this.playerState=e},showPlayerHoverActions:function(){this.showHoverActions&&"initial"!==this.playerState&&"ended"!==this.playerState&&!this.isCTAWaitingMode&&(this.$el.find(".player-controls-wrapper").show(),this._isAllowedToShowMainControls()&&this.$el.find(".main-controls").show())},_handleMenu:function(e){},_handleWaiting:function(e){if(this.isWating=!0,this.$el.find(".main-controls").hide(),this.$el.find(".main-controls").removeClass("hvplayer-mainctrl-animate"),this.showPersonalisedVideoLoading)this.$el.find("#personalisedVideoLoading").show(),this.showHoverActions=!1;else{var i=this;this.waitingTimeout=setTimeout((function(){i.canShowPlayerLoading&&i.$el.find(".player-loading-overlay").show()}),200),this._secondaryVideoPlaying&&this.customAudioPlayer.pause()}},setPersonalisedVideo:function(e){this.$el.find("#primary-video source").attr("src",e.video_url),this.$el.find("#primary-video").length>0&&this.$el.find("#primary-video")[0].load(),this.$el.find(".thumbnail-container img").attr("src",e.thumbnail),this.quickPreview=e.quickpreview,this.personalisedVideoDetailsSet=!0,this.$el.find("#personalisedVideoLoading").fadeOut(),this.pause(),this.show()},_handleResume:function(e){if(this.isWating=!1,clearTimeout(this.waitingTimeout),this.$el.find(".player-loading-overlay").fadeOut(200),this.customAudioPlayer){this.customAudioPlayer.currentTime=this.mediaPlayer.currentTime;var i=this,t=this.customAudioPlayer.play();t?t.then((function(){i._secondaryVideoPlaying=!0})).catch((function(e){i._secondaryVideoPlaying=!1})):i._secondaryVideoPlaying=!0}this.resumeHandler&&this.resumeHandler()},_handleCanplay:function(e){clearTimeout(this.waitingTimeout),this.$el.find(".player-loading-overlay").fadeOut(200);var i=this;if(this.playing){var t=this.mediaPlayer.play();t?t.then((function(){i._primaryVideoPlaying=!0})).catch((function(e){console.log(e),i._primaryVideoPlaying=!1})):i._primaryVideoPlaying=!0}this.canplayHandler&&this.canplayHandler(e);var s=window.navigator.userAgent.toLowerCase(),a=/safari/.test(s),n=/iphone|ipod|ipad/.test(s)&&!a;if((r().inArray(c.default.getBrowserName(),["Safari","Edge","IE"])>=0||n)&&!this.largeValueSet){if(this.mediaPlayer.currentTime=0,this.durationComputed=!0,this.largeValueSet=!0,this.onComputedDurationHander){this.onComputedDurationHander();var o=window.location.href.indexOf("video/embed")>-1;this.autoPlayVideo&&o&&(this.$el.find(".main-controls").hide(),this.$el.find(".main-controls").removeClass("hvplayer-mainctrl-animate"))}}else this.largeValueSet||isFinite(this.mediaPlayer.duration)?!this.durationComputed&&isFinite(this.mediaPlayer.duration)&&(this.mediaPlayer.currentTime=0,this.durationComputed=!0,this.onComputedDurationHander)&&(this.onComputedDurationHander(),o=window.location.href.indexOf("video/embed")>-1,this.autoPlayVideo&&o&&(this.$el.find(".main-controls").hide(),this.$el.find(".main-controls").removeClass("hvplayer-mainctrl-animate"))):(this.largeValueSet=!0,this.mediaPlayer.currentTime=1e9)},_handleSeeked:function(){if(this.onSeekedHandler&&this.onSeekedHandler(),this.onSeekedHandlers)for(var e=0;e<this.onSeekedHandlers.length;e++)this.onSeekedHandlers[e]&&this.onSeekedHandlers[e]()},_handleSeeking:function(){this.seekingStartedAt=this.currentTimeUpdate,this.seekingEndedAt=this.mediaPlayer.currentTime,this.onSeekindHandler&&this.onSeekindHandler()},_handlePlayerClick:function(e){if(!this.simpleEditMode&&!this.isImageMode){if(r()(e.currentTarget).hasClass("replay-btn-container")){if(this.$el.find(".replay-btn-container").hide(),this._handlePlayPauseBtnClick(),this.onReplayHandlers)for(var i=0;i<this.onReplayHandlers.length;i++)this.onReplayHandlers[i]&&this.onReplayHandlers[i]()}else this.showHoverActions||this._handlePlayPauseBtnClick();this.previousClick=new Date}},_handlePlay:function(){if(this.$el.find(".thumbnail-container").is(":visible")&&this.$el.find(".thumbnail-container").fadeOut(100),this.simpleEditMode?this.$el.find(".play-pause-button").find("img").attr("src",this.customColors?"/img/simple-edit-pause-icon-dark.png":"/img/simple-edit-pause-icon.png"):this.$el.find(".play-pause-button, .player-play-pause-action").find("img").attr("src","/svg/pause-white.svg"),this.onPlayHandler.length>0)for(var e=0;e<this.onPlayHandler.length;e++)this.onPlayHandler[e]()},_handlePause:function(){if(!this.playing&&(this._secondaryVideoPlaying&&this.customAudioPlayer.pause(),this.simpleEditMode?this.$el.find(".play-pause-button").find("img").attr("src",this.customColors?"/img/simple-edit-play-icon-dark.png":"/img/simple-edit-play-icon.png"):this.$el.find(".play-pause-button, .player-play-pause-action").find("img").attr("src","/svg/play.svg"),this.onPauseHandler.length>0))for(var e=0;e<this.onPauseHandler.length;e++)this.onPauseHandler[e]()},_handleProgress:function(e){if("initial"!=this.playerState)try{var i=this.mediaPlayer.buffered,t=Math.round(i.end(0))/Math.round(this.mediaPlayer.seekable.end(0))*100;t+="%",r()(".video-buffered-container").css("width",t)}catch(e){r()(".video-buffered-container").css("width","0")}if(this.showPersonalisedVideoLoading&&this.personalisedVideoDetailsSet){var s="Opera"==c.default.getBrowserName();if(!s){var a=this.mediaPlayer.buffered;if(!a||!a.length)return;var n=a.start(0),o=a.end(a.length-1);s=0==n&&o>3}s&&(this.personalisedVideoDetailsSet=!1,this.$el.find("#personalisedVideoLoading").is(":visible")&&this.play(),this.showHoverActions=!0,this.showPersonalisedVideoLoading=!1,this.$el.find("#personalisedVideoLoading").fadeOut())}this.onProgressHandler&&this.onProgressHandler(e)},_handlePlayPauseBtnClick:function(){this.alive&&(this.$el.find(".replay-btn-container").hide(),this.$el.find(".subtitles-line").css("z-index",2),this.isMobilePlayer&&(this.$el.find(".forwardbtn").removeClass("disp-none"),this.$el.find(".backwardbtn").removeClass("disp-none")),this.$el.find(".hv-rclick-options").addClass("hide"),this.playing?this.pause():this.play(),this._handlePlayPauseForNewPlayer())},_handleRewindBtnClick:function(){var e=this.$el.find(".hvplayer-volume-wrapper [tabindex]").is(":focus"),i=this.$el.find(".hvplayer-seekbar-slider [tabindex]").is(":focus");if(!e&&!i&&!this.isCTAWaitingMode){var t=this.mediaPlayer.currentTime;t=Math.max(t-5,0),this.mediaPlayer.currentTime=t,this.customAudioPlayer.currentTime=t,this.$el.find(".hv-rclick-options").addClass("hide")}},_handleForwardBtnClick:function(){var e=this.$el.find(".hvplayer-volume-wrapper [tabindex]").is(":focus"),i=this.$el.find(".hvplayer-seekbar-slider [tabindex]").is(":focus");if(!e&&!i&&!this.isCTAWaitingMode){var t=this.mediaPlayer.currentTime;t!=this.mediaPlayer.duration&&(t=Math.min(t+5,this.mediaPlayer.duration),this.mediaPlayer.currentTime=t,this.customAudioPlayer.currentTime=t,this.$el.find(".hv-rclick-options").addClass("hide"))}},_handleAudioBtnClick:function(){r()(".hvplayer-wrapper [tabindex]").blur(),0!=this.getVolume()?this.mute():this.unmute()},_handleMutedAutoplayAudioClick:function(e){this.unmute(),r()(e.currentTarget).remove()},_chaptersWidthByVolume:function(e){r()(".hvplayer-controls-middle").addClass("hvplayer-chapters-volume"),"mouseleave"===e.type&&setTimeout((function(){r()(".hvplayer-controls-middle").removeClass("hvplayer-chapters-volume")}),200)},_volumeAdjustWithKeys:function(){var e=this;this.allowKeyboardShortcuts&&r()(window).on("keydown",(function(i){if(e.alive){var t=i.key,s=i.keyCode,a=e.getVolume();if("Up"===t||38===s){if(i.preventDefault(),100==a)return;a+=1,e.setVolume(a)}else if("Down"===t||40===s){if(i.preventDefault(),0==a)return;a-=1,e.setVolume(a)}}}))},_handleFullscreenBtnClick:function(){r()(".hvplayer-wrapper [tabindex]").blur(),this.updateCaptionsFontSize(),this.fullscreen?this.exitFullScreen():this.enterFullScreen()},_handleTimeupdate:function(e){var i=this.map(this.mediaPlayer.currentTime,this.trimStart,this.mediaPlayer.duration-this.trimEnd,0,100);if((isNaN(i)||this.mediaPlayer.currentTime<Math.round(100*this.trimStart)/100)&&(this.mediaPlayer.currentTime=Math.round(100*this.trimStart)/100),i>100&&(this._handleEnded(),this.mediaPlayer.currentTime=this.trimStart>=this.mediaPlayer.duration?this.mediaPlayer.duration:this.trimStart,this._primaryVideoPlaying&&this.mediaPlayer.pause()),isFinite(this.mediaPlayer.duration)){this._setNewPlayerProgress(i);var t=this.mediaPlayer.duration,s=this.mediaPlayer.currentTime;if(isNaN(this.trimStart)||isNaN(this.trimEnd)||(t=t-this.trimStart-this.trimEnd,s-=this.trimStart),t=Math.max(t,0),s=Math.max(s,0),this.$el.find(".player-currenttime").text(this.strToTime(s)+" / "+this.strToTime(t)),this._setNewPlayerTimestamp(this.strToTime(s)+" / "+this.strToTime(t)),this.currentTimeUpdate=s,this.updateHandler.length>0)for(var a=0;a<this.updateHandler.length;a++)this.updateHandler[a]();this.playerJSReceiver&&this.playerJSReceiver.emit("timeupdate",{seconds:s,duration:t}),this.updateChaptersTitle(s)}},mute:function(){this.isMuted=!0,this.previousVolume=this.getVolume(),this.setVolume(0),this.mediaPlayer.muted=!0,this.customAudioPlayer&&(this.customAudioPlayer.muted=!0)},unmute:function(){this.isMuted=!1,this.setVolume(this.previousVolume),this.mediaPlayer.muted=!1,this.$el.find(".muted-autoplay").remove(),this.customAudioPlayer&&(this.customAudioPlayer.muted=!1)},setLoop:function(e){this.loop=e},getLoop:function(){return this.loop},setUpdateHandler:function(e){this.updateHandler.push(e)},setPlayPauseHandler:function(e,i){i?this.onPlayHandler.push(e):this.onPauseHandler.push(e)},setEndedHandler:function(e){this.onEndHandler.push(e)},setSeekedHandler:function(e){this.onSeekedHandler=e},addSeekedHandler:function(e){this.onSeekedHandlers.push(e)},setSeekingHandler:function(e){this.onSeekindHandler=e},addReplayHandler:function(e){this.onReplayHandlers.push(e)},setPlayerResizeHandler:function(e){this.playerResizeHandler=e},play:function(){if(this.playing||this.isCTAWaitingMode)this._handlePlayPauseForNewPlayer();else{if("initial"==this.playerState||"ended"==this.playerState)return this.playerState="started",this.$el.find(".play-btn-container").fadeOut(),this.$el.find(".replay-btn-container").fadeOut(),this.$el.find(".play-btn-container video").remove(),void(this.allowPlay?this.play():this.renderWarning(7));var e=this;e.playing=!0;var i=window.location.href.indexOf("video/embed")>-1;this.autoPlayVideo&&i&&(this.$el.find(".main-controls").hide(),this.$el.find(".main-controls").removeClass("hvplayer-mainctrl-animate"));var t=this.mediaPlayer.play();t?t.then((function(){e._primaryVideoPlaying=!0})).catch((function(i){e._primaryVideoPlaying=!1})):e._primaryVideoPlaying=!0,this.playerJSReceiver&&this.playerJSReceiver.emit("play"),this._handlePlayPauseForNewPlayer()}},pause:function(){this.playing?(this.playing=!1,this._primaryVideoPlaying&&this.mediaPlayer.pause(),this.playerJSReceiver&&this.playerJSReceiver.emit("pause"),this._handlePlayPauseForNewPlayer()):this._handlePlayPauseForNewPlayer()},isPlaying:function(){return this.playing},setVolume:function(e){try{this.$el.find(".volume-slider").slider("value",e),this.volumeChanged()}catch(e){}},getVolume:function(){return~~this.$el.find(".volume-slider").slider("value")},isFullScreen:function(){return document.fullScreenElement&&null!==document.fullScreenElement||document.mozFullScreen||document.webkitIsFullScreen},enterFullScreen:function(e){var i=this,t=screen.msOrientation||screen.orientation||screen.mozOrientation||{};if(!this.fullscreen)if(this.fullscreen||!this.isIphone||0!=window.orientation&&180!=window.orientation||"landscape"==e||!this.iosInBrowserFullScreen){if(this.fullscreen=!0,this.iosInBrowserFullScreen&&this.isIphone)return this.$el.find(".thumbnail").css("z-index",-1),this.resizePlayerForWindow(),void setTimeout((function(){if(window.innerWidth<window.innerHeight){var e=window.innerWidth,t=window.innerHeight;i.$el.height(e),i.$el.width(t)}else i.$el.height(window.innerHeight),i.$el.width(window.innerWidth);window&&window.location&&window.location.pathname&&window.location.pathname.indexOf("/video/embed/")>-1&&window.parent&&window.parent.postMessage(JSON.stringify({event:"enterfullscreen"}),"*")}),200);var s;(s=this.isIphone?document.getElementById("primary-video"):document.getElementById(this.id)).webkitEnterFullScreen?s.webkitEnterFullScreen():s.requestFullscreen?s.requestFullscreen():s.msRequestFullscreen?s.msRequestFullscreen():s.mozRequestFullScreen?s.mozRequestFullScreen():s.webkitRequestFullscreen&&s.webkitRequestFullscreen();try{u.default.canForceLandscapeForFullscreen()&&t.lock("landscape")}catch(e){u.default.postErrorsToLog({error:"Error while trying to force full screen landscape in player",stackTrace:JSON.stringify(e)})}}else u.default.showBannerAlert("Please rotate your mobile to Landscape mode",3e3,"info")},exitFullScreen:function(e){var i=screen.msOrientation||screen.orientation||screen.mozOrientation||{};if(this.fullscreen)if(this.fullscreen=!1,this.iosInBrowserFullScreen&&this.isIphone){this.$el.find(".thumbnail").css("z-index",""),this.resizePlayerForWindow();var t=this;setTimeout((function(){t.$el.height(9*t.$el.width()/16),window&&window.location&&window.location.pathname&&window.location.pathname.indexOf("/video/embed/")>-1&&window.parent&&window.parent.postMessage(JSON.stringify({event:"exitfullscreen"}),"*")}),200)}else{var s=document;this.isIphone&&(s=document.getElementById("primary-video")),s.exitFullscreen?s.exitFullscreen():s.msExitFullscreen?s.msExitFullscreen():s.mozCancelFullScreen?s.mozCancelFullScreen():s.webkitExitFullscreen&&s.webkitExitFullscreen();try{u.default.canForceLandscapeForFullscreen()&&i.unlock()}catch(e){u.default.postErrorsToLog({error:"Error while trying to force exit full screen landscape in player",stackTrace:JSON.stringify(e)})}}},strToTime:function(e){var i=parseFloat(e,10),t=Math.floor(i/3600),s=Math.floor((i-3600*t)/60),a=Math.floor(i-3600*t-60*s);return t>0&&s<10&&(s="0"+s),a<10&&(a="0"+a),t>0?t+":"+s+":"+a:s+":"+a},trim:function(e,i,t){if(this.trimStart!=e||this.trimEnd!=i)try{this.mediaPlayer.currentTime=e,this.customAudioPlayer.currentTime=e}catch(e){}if(this.trimStart=e,this.trimEnd=i,t&&("initial"==this.playerState||"ended"==this.playerState))return this.playerState="started",void this.$el.find(".replay-btn-container").fadeOut(100)},map:function(e,i,t,s,a){return(e-i)*(a-s)/(t-i)+s},setSimpleEditMode:function(e){this.simpleEditMode=e,this.simpleEditMode?(this.$el.animate({"margin-bottom":"0px"},200),this.$el.addClass("hvplayer-simpleedit-wrapper"),this.$el.find(".hvplayer-components-wrapper").removeClass("disp-none"),this.$el.find(".player-controls-wrapper").addClass("player-controls-outside"),this.$el.find(".player-controls-wrapper").removeClass("player-controls-inside"),this.$el.find(".player-controls-wrapper").fadeIn(),this.$el.find(".play-pause-button").find("img").attr("src",this.customColors?"/img/simple-edit-play-icon-dark.png":"/img/simple-edit-play-icon.png"),this.$el.find(".player-download, .for-reactions").hide(),this.$el.find(".notification-line-onplay").hide()):(this.$el.animate({"margin-bottom":"0px"},200),this.$el.removeClass("hvplayer-simpleedit-wrapper"),this.$el.find(".hvplayer-components-wrapper").addClass("disp-none"),this.$el.find(".player-controls-wrapper").removeClass("player-controls-outside"),this.$el.find(".player-controls-wrapper").addClass("player-controls-inside"),this.$el.find(".play-pause-button").find("img").attr("src","/svg/play.svg"),this.$el.find(".player-download, .for-reactions").show(),this.$el.find(".notification-line-onplay").show())},setCTAWaitingMode:function(e){this.isCTAWaitingMode=e,e&&(this.$el.find(".main-controls").fadeOut(),this.$el.find(".main-controls").removeClass("hvplayer-mainctrl-animate"),this.$el.find("#hvRclickOptions").addClass("hide"))},setStatId:function(e){this.statId=e},getStatId:function(){return this.statId},resizePlayerForWindow:function(){var e=this,i=this,t=screen.msOrientation||(screen.orientation||screen.mozOrientation||{}).type;if(this.iosInBrowserFullScreen&&this.isIphone){if(this.fullscreen){if(window.innerWidth<window.innerHeight){0!=window.orientation&&180!=window.orientation&&(this.$el.addClass("player-rot90"),this.$el.parent().addClass("player-rot90-container"));var s=window.innerWidth,a=window.innerHeight;this.$el.height(s),this.$el.width(a)}else this.$el.removeClass("player-rot90"),this.$el.parent().removeClass("player-rot90-container"),this.$el.height(window.innerHeight),this.$el.width(window.innerWidth);this.$el.addClass("player-inbrowser-fullscreen"),this.$el.parent().addClass("player-container-fullscreen"),this.$el.find(".thumbnail-container").hide()}else this.$el.removeClass("player-rot90 player-inbrowser-fullscreen"),this.$el.width("100%"),this.$el.height(9*this.$el.width()/16),this.$el.parent().removeClass("player-container-fullscreen player-rot90-container");this.fullscreen?(r()(".screensize-container").children(".screensizebtn").addClass("maximized"),this.$el.find(".preview-add-comment").hide()):(r()(".screensize-container").children(".screensizebtn").removeClass("maximized"),this.$el.find(".preview-add-comment").show())}else this.$el.height(9*this.$el.width()/16);this.resizeFitThumnbail(),this.isMobilePlayer&&((t||"").includes("landscape")&&this.isFullScreen()?this.$el.find(".emoji-wrap").show():this.$el.find(".emoji-wrap").hide()),this.playerResizeHandler&&this.playerResizeHandler({width:this.$el.width(),height:this.$el.height()}),this.isFromSDK&&setTimeout((function(){e.$el.height(9*e.$el.width()/16),e.resizeFitThumnbail(),e.playerResizeHandler&&e.playerResizeHandler({width:e.$el.width(),height:e.$el.height()}),e.resizeFitRenderless()}),200),setTimeout((function(){i.resizeFitRenderless()}),1e3),this.updateCaptionsFontSize()},getValueForPlayerInitial:function(e,i){var t=this.$el.width(),s=this.$el.height();return i?this.roundNumber(e*(t/384),2):this.roundNumber(e*(s/216),2)},roundNumber:function(e,i){return Math.round(10*e*i)/(10*i)},getFaqOneLiner:function(){return null!=m()["faqoneliner_"+this.authorState]?m()["faqoneliner_"+this.authorState]:"unknown error.. contact us for more details"},getFaqLink:function(){var e={5:"misc-error",6:"misc-error",13:"upload-issues",14:"upload-issues",16:"upload-issues",28:"upload-issues",22:"misc-error",23:"misc-error",27:"misc-error"};return null==e[this.authorState]?"":'<a target="_blank" href="https://www.hippovideo.io/faq.html#'+e[this.authorState]+'"> more info </a>'},resetPlayer:function(){this.isImageMode?this.$el.find(".primary-video-container img").attr("src",""):(this.$el.find(".secondary-video-container video").attr("src",""),this.$el.find(".primary-video-container video").attr("src",""),this.$el.find(".secondary-video-container video")[0].load(),this.$el.find(".primary-video-container video")[0].load(),this.canShowPlayerLoading&&this.$el.find(".player-loading-overlay").show(),this.$el.find(".title-paragraph-tag").text(""),this.$el.find(".player-currenttime").text("")),this.$el.find(".vdo-prev-head").hide(),this.$el.find(".hippo-video-buttons").hide(),this.$el.find(".play-btn-container").hide(),this.$el.find(".vdo-error-state").hide()},downloadVideoClick:function(){null!=this.downloadVideo&&this.downloadVideo()},deliveryDownload:function(){var e=c.default.getQueryParams();e?e.stat_id=this.statId:e={stat_id:this.statId},(new k.Z).getDownloadLinkFromDelivery(this.token,e,(function(e){e.status&&u.default.downloadFile(e.signed_url)}))},_handleCanvasMouseAction:function(e){var i=this;clearTimeout(this.hideQuickPreviewTimeout),this.isCTAWaitingMode?i.$el.find("#canvasPreviewContainer").fadeOut(200):"mouseleave"===e.type&&(this.hideQuickPreviewTimeout=setTimeout((function(){i.$el.find("#canvasPreviewContainer").fadeOut(200)}),500))},getCurrentTime:function(){return this.durationComputed?this.mediaPlayer.currentTime:.001},getDuration:function(){return parseInt(this.mediaPlayer.duration)||this.duration},getTrimStart:function(){return this.trimStart},getTrimEnd:function(){return this.trimEnd},getRawDuration:function(){return this.mediaPlayer.duration||this.duration},checkAllowPlay:function(){if(this.token){var e=this,i={token:this.token};S.default.call({url:"/video_delivery/is_allow_play",method:"POST",data:i,success:function(i){e.allowPlay=i.is_allow}})}},renderWarning:function(e){var i=r()("#"+this.$el.attr("id")).parent().attr("id");r()("#"+i).empty(),r()("#"+i).html(this.template({id:this.id,token:this.token,thumbnail:" ",privacy:e})),this.setElement(this.$el.find("#"+this.id)),this.initializeCSS(),this.undelegateEvents(),r()("#comments").hide(),r()(".delivery-footer").hide(),r()(".play-btn-container").hide()},undelegateHoverActions:function(){this.undelegate("mouseenter mouseleave mousemove",this._handleHover)},delegateHoverActions:function(){this.delegate("mouseenter mouseleave mousemove",this._handleHover)},overrideStyle:function(e,i,t){e.each((function(){this.style.setProperty(i,t,"important")}))},showRightClickOption:function(e,i){this.isFromSDK||this.$el.find(".hv-rclick-options").removeClass("hide"),this.canShowAboutUs||this.$el.find(".hv-rclick-about").addClass("hide"),this.rightClickPositionMenu(e,i)},copyWithThumbnail:function(e,i){this.clipboard=new(_())("#hvRclickCopy",{target:function(){var t=e,s=i;return r()("body").append('<div id="hvRclickCopyTarget" aria-hidden="true" tabindex="-1" > '+c.default.getStyleHtmlToCopy(t,s,null)+"</div>"),document.querySelector("#hvRclickCopyTarget")}}),this.clipboard.on("success",(function(){r()(".hv-rclick-copy").text(f().newPlayer.linkCopied),r()("#hvRclickCopyTarget").remove(),setTimeout((function(){r()(".hv-rclick-copy").text(f().newPlayer.copyLinkAndThumbnail),r()(".hv-rclick-options").addClass("hide")}),1500)})),this.clipboard.on("error",(function(e){r()(".hv-rclick-copy").text(f().newPlayer.failedToCopy),r()("#hvRclickCopyTarget").remove(),setTimeout((function(){r()(".hv-rclick-copy").text(f().newPlayer.copyLinkAndThumbnail),r()(".hv-rclick-options").addClass("hide")}),1500)}))},rightClickGetPosition:function(e,i,t){e||(e=window.event);var s=i.getBoundingClientRect(),a=s.left,n=s.top;return{x:e.clientX-a,y:e.clientY-n}},rightClickPositionMenu:function(e,i,t){var s=i,a=this.rightClickGetPosition(t,e,i),n=a.x,o=a.y,r=s.offsetWidth,l=s.offsetHeight,d=e.offsetWidth,h=e.offsetHeight;s.style.left=d-n<r?d-r+"px":n+"px",s.style.top=h-o-40<l?h-l-40+"px":o+"px"},applyCustomColors:function(){var e=void 0;this.playerTheme&&[4,7].includes(this.playerTheme.length)&&(e=this.playerTheme);try{e=this.customColors.primaryColor?this.customColors.primaryColor:e}catch(e){}if(this.customColors&&e){c.default.convertHexToRGB(e);var i="";i+=".hvplayer-wrapper .current-time-bg, .hvplayer-wrapper .hvplayer-seekbar-slider .ui-slider-handle { background-color : "+e+" !important}",i+=".hvplayer-wrapper.video-container .volume-container .volume-slider .ui-slider-range, .hvplayer-wrapper.video-container .volume-container .volume-slider .ui-slider-handle { background-color : "+e+" !important}",i+=".hvplayer-wrapper .hvplayer-caption-container .hvplayer-icon-btn:after { background-color : "+e+" !important}",i+=".hvplayer-wrapper .hvplayer-setting-option ul li.selected button, .hvplayer-wrapper .hvplayer-setting-option ul li:hover button { color : "+e+" !important}",i+=".hvplayer-wrapper .hvplayer-setting-option ul li i:before, .hvplayer-wrapper .hvplayer-setting-option ul li i:after { background-color : "+e+" !important}",i+=".hvplayer-wrapper .canvas-preview-container .preview-add-comment, .hvplayer-wrapper .canvas-preview-container.canvas-only-comment:after { background-color : "+e+" !important}",i+=".personalised-video-loading .inner-container .bar-loading div, .player-loading-overlay .inner-container .bar-loading div { background-color : "+e+" !important}",i+=".hvplayer-wrapper .hvplayer-chapters-body .chapter-video-list:before{background-color: "+e+" !important}",(i+=".hvplayer-wrapper .hvplayer-chapters-body .chapter-video-list.chapter-active .thumb{border-color: "+e+" !important}").length>0&&(document.head.appendChild(document.createElement("style")).innerHTML=i)}},getBandwidthConsumed:function(){var e={type:this.type};if("m3u8"==this.type){var i;e.totalFileSize=(null===(i=this.adapter)||void 0===i?void 0:i.getBandwidthConsumed())||0}else{for(var t=0,s=0;s<this.mediaPlayer.buffered.length;s++){var a=this.mediaPlayer.buffered.start(s);t+=100*(this.mediaPlayer.buffered.end(s)-a)/this.mediaPlayer.duration}e.perc=t}return e},applyCustomPlayIcon:function(){if(this.customPlayIcon){var e=document.createElement("div");e.classList.add("overlay"),r()(".main-controls").each((function(){r()(this).append(e)}));var i=document.createElement("div");i.classList.add("watch-video"),i.textContent="WATCH VIDEO",r()(".main-plyBtn").each((function(){r()(this).append(i)})),r()(".main-plyBtn .playbutton").each((function(){r()(this).find("svg").remove(),r()(this).append('<svg xmlns="http://www.w3.org/2000/svg" width="47" height="47" viewBox="0 0 47 47" class="white-play-icon prim-vid"> <g transform="translate(-344.113 -1343.053)"> <g class="a" transform="translate(344.113 1343.053)"> <circle class="c" cx="23.5" cy="23.5" r="23.5"/> <circle class="d" cx="23.5" cy="23.5" r="23"/> </g> <path class="b" d="M7.312,0l7.312,12.56H0Z" transform="translate(375.756 1359.646) rotate(90)"/> </g> </svg>'),r()(this).append('<svg xmlns="http://www.w3.org/2000/svg" width="47" height="47" viewBox="0 0 57 57" class="white-play-icon-filled" style="display:none;"> <g transform="translate(-932 -595)"> <circle class="a" cx="28.5" cy="28.5" r="28.5" transform="translate(932 595)"/> <path class="b" d="M8.813,0l8.813,15.137H0Z" transform="translate(970.137 615) rotate(90)"/> </g> </svg>')})),r()("#videoPagePreviewBlock, #videoPageDeliveryBlock").addClass(this.customPlayIcon)}},updateIsMirrorWebCam:function(e){this.isMirrorWebCam=e,c.default.toggleWebcamForMirrorVideo(this.isMirrorWebCam,null!=this.audioSrc&&""!=this.audioSrc?this.$el.find(".secondary-video"):this.$el.find("#primary-video"))},updateChaptersTitle:function(e){var i=this.chaptersList;if(i)for(var t=0;t<i.length;t++){var s=i[t].start_time,a=i[t].duration,n=i[t].asset_id;s<=e&&e<a&&(r()(".chapter-video-list").removeClass("chapter-active"),r()(".hvplayer-chapter-maintitle").text(i[t].title),r()('.chapter-video-list[data-asset-id="'+n+'"]').addClass("chapter-active"))}},updateCaptionsFontSize:function(){var e=this.$el.width(),i=16;e<600?i=16:e<900?i=18:e<1200?i=20:e<1600?i=24:e<2e3?i=27:e<2400?i=20:e<2800?i=32:e>=2800&&(i=36),r()(".subtitles-line").css("font-size",i+"px")}})},67581:function(e){var i={__root:{wizDelivery:{alertReportAbuse:"Are you sure this is inappropriate content?",errorCreatingVideo:"Error creating video :(",pleaseTryMsg:"Please try after sometime...",reportAbuse:" Report",yesText:"yes",noText:"no",signUp:"Sign Up",download:"Download"},wizPlayer:{validating:"Validating...",go:"GO",passwordInvalid:"Invalid password",enterPassword:"Enter your password",contactOwner:"Please contact your video owner",limitExceeded:"Bandwidth limit exceeded",accountDeactivated:"The video has either been deleted by the owner or their account has been deactivated!",watchExpired:"The video you are trying to watch has expired",permissionToView:"You do not have permission to view this video",browserDoesNotSupport:"Your browser does not support the video tag.",startTime:"Start time",stopTime:"Stop time",addComments:"Add Comment",setTheFrame:"Set this frame",clickToUnmute:"Click to unmute",auto:"Auto"},wizComments:{addNewComments:"Add New Comment",comments:"Comments",commentsDisable:"Comments are disabled for this video",sortBy:"Sort by",recent:"Recent",timeline:"Timeline",postAs:"Posting as",enterComments:"Enter your comment here",post:"POST",cancel:"CANCEL",screen:"Screen",webcam:"Webcam",audio:"Audio",start:"START",noComments:"No comments yet",somethingWrong:"Something went wrong. Unable to fetch Comments.",loadingComments:"Loading Comments...",commentsHidden:"Comment Hidden",reply:"Reply",videoAnnotation:"Video Annotation",heyGuest:"Hey Guest,",commentSignUp:"Please sign up or login in order to comment on this video.",signUp:"Sign Up",or:"OR",login:"Log In",continueGuest:"Continue as guest",guestName:"Enter a guest name to continue",continue:"Continue",screenRecordingFree:"Create Screen Recordings for free.",email:"Enter your email",passwordField:"Password - Minimum 6 characters (Optional)",autoGeneratedPassword:"An auto-generated password will be sent to your email if no password is given",signUpFree:"Sign up for free",signInAccount:"Sign in to your account",password:"Password",signIn:"Sign In",wentWrong:"Something went wrong!",signUpLink1:"By signing up, you agree to our ",signUpLink2:"Terms",signUpLink3:"and",signUpLink4:"Privacy policy",showMoreReplies:"show more replies"},ctaActions:{text:"Text",url:"URL",link:"Link",apply:"Apply",type:"Type",html:"HTML",pardot:"PARDOT",hubspotForms:"HubSpot Forms",pardotForms:"Pardot Forms",image:"Image",time:"Time",skip:"Skip",continue:"Continue",upperText:"Title",lowerText:"Note",question1:"Question",option1:"Option 1",option2:"Option 2",option3:"Option 3",option4:"Option 4",optional:"Optional",pleaseEnterText:"Please enter some text.",clickOnThisLink:"Click on this link!",enterTheFollowingDetails:"Enter the following details to continue playing the video",ctaQuestion:"Enter the following details to continue playing the video",firstName:"First Name",lastName:"Last Name",emailAddress:"Email Address",phoneNumber:"Phone Number",companyName:"Company Name",play:"Play",submit:"Submit",formNote:"Note",esSelect:"SELECT",esCancel:"CANCEL",sampleUrl:"https://www.hippovideo.io",addYourTextHere:"Add your text here",yourTextAppearsHere:"Your text appears here",clickHere:"Click Here",fieldName:"Full Name",designation:"Designation",buttonText:"Button Name",buttonLink:"Meeting Link",defaultTitle:"Dwight Schrute",sampleMeetingLink:"https://calendly.com",defaultText:"Assistant (to the) Regional Manager",buttonDefaultText:"SCHEDULE DEMO",inVideoMeeting:"In-Video Meeting Link",defaultInVideoMeeting:"Default In-Video Meeting Link",save:"SAVE",cancel:"CANCEL",fillAllData:"Please fill all required fields",scheduleMeeting:"Schedule Meeting",replay:"Replay"},poweredByFooter:{poweredByText:"Powered By",poweredBySignupTextForIndividual:"Loved it? Create and send mesmerizing videos on your own.",poweredBySignupTextForBusiness:"Loved it? Create and send mesmerizing videos on your own.",signUp:"Sign Up",getFreeAccountForLife:"Get Free Account For Life",tryNowForFree:"Try Now for Free",signUpForFree:"Sign Up for Free"},newPlayer:{copyLinkAndThumbnail:"Copy Link and Thumbnail",aboutHippoVideo:"About Hippo Video",linkCopied:"Link Copied",failedToCopy:"Failed to Copy"},player2022:{duration:"Duration",chapters:"Chapters",playbackSpeed:"Playback Speed",normal:"Normal",zeroFiveX:"0.5x",oneX:"1x",oneTwoFiveX:"1.25x",oneFiveX:"1.5x",twoX:"2x",unsupportVideoTag:"Your browser does not support the video tag."}},init:function(e){e||(e="undefined"!=typeof window&&window._i18n&&window._i18n.locale?window._i18n.locale:"undefined"!=typeof document&&document.documentElement.lang?document.documentElement.lang:"undefined"!=typeof navigator&&(navigator.languages||navigator.language||navigator.userLanguage)?((e=navigator.languages&&navigator.languages[0]||navigator.language||navigator.userLanguage)||"root").toLowerCase():"root");var i=this["__"+e]||this.__root;if(i)for(var t in i)this[t]=i[t];var s=function(e,i){for(var t in i)switch(typeof e[t]){case"undefined":e[t]=i[t];break;case"object":s(e[t],i[t])}};s(this,this.__root)}};i.init(),e.exports=i}}]);