\n\n'}}],contextMenu:{},playerId:"qkfTbz2Mq2",videoCloud:{policyKey:"BCpkADawqM3Rz2erDStjf5NvBeUHJfCUOF2vV6Kkwl_LNcvwf7Pb1btaJFAId22Qx7qNXKmLMVsyxQYSijGqeekXtgpuKZpvU48MYSF7e5pmNAIiIX-krZF_5ru9k81NgiqLvvuUBOyIrUjcFE8mq_8Z8E5T3O7aYUGo4w"},playerName:"Boomi End Screen Player",skin:"sapphire",responsive:true,liveui:true,playbackRates:[.5,.75,1,1.25,1.5,1.75,2],controlBar:{},viewability:{},version:"7.32.2"},{});(function(){if(n.getPlugin("perSourceBehaviors")){return}(function(e,t){typeof exports==="object"&&typeof module!=="undefined"?module.exports=t(require("video.js")):typeof i==="function"&&i.amd?i(["video.js"],t):(e=typeof globalThis!=="undefined"?globalThis:e||self,e.videojsPerSourceBehaviors=t(e.videojs))})(this,function(e){"use strict";function t(e){return e&&typeof e==="object"&&"default"in e?e:{default:e}}var i=t(e);var a="3.0.1";const o=i["default"].getTech("Html5");const s=i["default"].registerPlugin||i["default"].plugin;const l=["abort","emptied","loadstart","play"];const u=["abort","emptied"];const n=["ad-playback","ads-ready?","postroll?","preroll?"];const r=e=>n.indexOf(e)>-1;const c=e=>e.usingPlugin("ads")&&typeof e.ads.inAdBreak==="function";const d=(e,t)=>{if(!e.usingPlugin("ads")){return false}if(c(e)){return e.ads.isInAdMode()&&t.type!=="loadstart"}return r(e.ads.state)};let h=0;const f=function(){const c=[];let s;let t=false;let n;let r=true;const e=u=>{return function(e,t){if(this.perSourceBehaviors.disabled()){return}const i=arguments.length===2;const s=this.currentSrc();const n=[e];const r=arguments[arguments.length-1];const a=i?this:e;const o=r.bind(a);const l=(...e)=>{const t=this.currentSrc()!==s;if(this.perSourceBehaviors.disabled()){return}if(t||u){this.off(...n)}if(!t){o(...e)}};l.guid=o.guid=r.guid=`psb-${++h}`;if(!i){n.push(t)}n.push(l);c.push(n);return this.on(...n)}};this.perSourceBehaviors={disable:function e(){this.clearTimeout(n);n=null;t=true;return t}.bind(this),disabled(){return t},enable(){t=false;return t},enabled(){return!t},isSrcStable(){return r},VERSION:a};this.onPerSrc=e();this.onePerSrc=e(true);this.on("dispose",()=>{c.length=0});this.on(l,e=>{if(this.perSourceBehaviors.disabled()||n||d(this,e)){return}if(r&&u.indexOf(e.type)>-1){r=false;this.trigger("sourceunstable")}const t=[];const i=e=>t.push({time:Date.now(),event:e});i(e);this.on(o.Events,i);n=this.setTimeout(()=>{const e=this.currentSrc();r=true;n=null;this.off(o.Events,i);if(e&&e!==s){c.forEach(e=>this.off(...e));c.length=0;this.trigger("sourcechanged",{interimEvents:t,from:s,to:e});s=e}},1)})};f.VERSION=a;s("perSourceBehaviors",f);return f})})();(function(){if(n.getPlugin("errors")){return}(function(e,t){typeof exports==="object"&&typeof module!=="undefined"?module.exports=t(require("video.js")):typeof i==="function"&&i.amd?i(["video.js"],t):(e=typeof globalThis!=="undefined"?globalThis:e||self,e.videojsErrors=t(e.videojs))})(this,function(e){"use strict";function t(e){return e&&typeof e==="object"&&"default"in e?e:{default:e}}var i=t(e);var m="6.2.0";const g=i["default"].obj&&i["default"].obj.merge||i["default"].mergeOptions;const s=!i["default"].browser.IS_IPHONE;const y={header:"",code:"",message:"",timeout:45*1e3,backgroundTimeout:300*1e3,dismiss:s,errors:{1:{type:"MEDIA_ERR_ABORTED",headline:"The video download was cancelled"},2:{type:"MEDIA_ERR_NETWORK",headline:"The video connection was lost, please confirm you are "+"connected to the internet"},3:{type:"MEDIA_ERR_DECODE",headline:"The video is bad or in a format that cannot be played on your browser"},4:{type:"MEDIA_ERR_SRC_NOT_SUPPORTED",headline:"This video is either unavailable or not supported in this browser"},5:{type:"MEDIA_ERR_ENCRYPTED",headline:"The video you are trying to watch is encrypted and we do not know how "+"to decrypt it"},unknown:{type:"MEDIA_ERR_UNKNOWN",headline:"An unanticipated problem was encountered, check back soon and try again"},"-1":{type:"PLAYER_ERR_NO_SRC",headline:"No video has been loaded"},"-2":{type:"PLAYER_ERR_TIMEOUT",headline:"It looks like you're having playback issues. Reloading the video may help."},PLAYER_ERR_DOMAIN_RESTRICTED:{headline:"This video is restricted from playing on your current domain"},PLAYER_ERR_IP_RESTRICTED:{headline:"This video is restricted at your current IP address"},PLAYER_ERR_GEO_RESTRICTED:{headline:"This video is restricted from playing in your current geographic region"}}};const _=function(h,f){let i;let s;let n;const r=[];const t=function(e){f.errors=g(f.errors,e);Object.keys(f.errors).forEach(e=>{const t=f.errors[e];if(!t.type){t.type=e}})};t();const a=function(){if(h.error()&&h.error().code===-2){h.error(null)}h.clearTimeout(s);h.clearTimeout(i);if(n){n=false;h.removeClass("vjs-waiting")}const e=[Infinity,-1];const t=(e,t)=>e.indexOf(t)!==-1;if(Ly.visibilityState==="hidden"&&(h.muted()||t(e,f.backgroundTimeout))||Ly.visibilityState==="visible"&&t(e,f.timeout)){return}s=h.setTimeout(function(){if(h.error()||h.paused()||h.ended()){return}n=true;h.addClass("vjs-waiting")},1e3);i=h.setTimeout(function(){if(h.error()||h.paused()||h.ended()){return}h.error({code:-2,type:"PLAYER_ERR_TIMEOUT"})},Ly.visibilityState==="hidden"?f.backgroundTimeout:f.timeout)};const e=function(){let e;while(r.length){e=r.shift();h.off(e[0],e[1])}h.clearTimeout(i);h.clearTimeout(s)};const o=function(e,t){const i=function(){if(!h.error()){if(h.paused()){return a()}if(h.ended()){return a()}}t.call(this)};h.on(e,i);r.push([e,i])};const p=function(){let t=0;e();a();o(["timeupdate","adtimeupdate"],function(){const e=h.currentTime();if(e!==t){t=e;a()}});h.off(Ly,"visibilitychange",p);h.on(Ly,"visibilitychange",p)};const l=function(){if(!h.currentSrc()){h.error({code:-1,type:"PLAYER_ERR_NO_SRC"})}};const u=function(){let e="";let t=h.error();const i=Ly.createElement("div");let s="";if(!t){return}h.off(Ly,"visibilitychange",p);t=g(t,f.errors[t.code||t.type||0]);if(t.message){e=`
${h.localize("Technical details")} :
${h.localize(t.message)}
`}const n=h.getChild("errorDisplay");i.className="vjs-errors-dialog";const r=`
${this.localize("Error Code")}: ${t.type||t.code}
`;const a=t.code===-2;s=`

${this.localize(t.headline)}

${a?"":r} ${a?"":e}
`;const o=n.closeable(!("dismiss"in t)||t.dismiss);if(a){s+=`
`;i.innerHTML=s;n.fillWith(i);n.getChild("closeButton").hide();const l=n.el().querySelector(".vjs-errors-timeout-button-container > button:first-child");const u=n.el().querySelector(".vjs-errors-timeout-button-container > button:last-child");const c=()=>{const e=h.currentSource();h.reset();h.src(e)};h.on(l,"click",c);n.one("modalclose",()=>{h.off(l,"click",c);h.off(u,"click",n.close)})}else if(o){s+=`
`;i.innerHTML=s;n.fillWith(i);n.contentEl().firstChild.appendChild(n.getChild("closeButton").el());const d=n.el().querySelector(".vjs-errors-ok-button");h.on(d,"click",function(){n.close()})}else{i.innerHTML=s;n.fillWith(i)}if(h.currentWidth()<=600||h.currentHeight()<=250){n.addClass("vjs-xs")}n.one("modalclose",()=>h.error(null))};const c=function(){e();h.removeClass("vjs-errors");h.off("play",p);h.off(Ly,"visibilitychange",p);h.off("play",l);h.off("dispose",c);h.off(["aderror","error"],u)};const d=function(e){c();_(h,g(y,e))};d.extend=e=>t(e);d.getAll=()=>g(f.errors);d.timeout=function(e){if(typeof e==="undefined"){return f.timeout}if(e!==f.timeout){f.timeout=e;if(!h.paused()){p()}}};d.backgroundTimeout=function(e){if(typeof e==="undefined"){return f.backgroundTimeout}if(e!==f.backgroundTimeout){f.backgroundTimeout=e;if(!h.paused()){p()}}};d.disableProgress=()=>{};h.on("play",p);h.on("play",l);h.on("dispose",c);h.on(["aderror","contenterror","error"],u);h.ready(()=>{h.addClass("vjs-errors")});if(!h.paused()){p()}d.VERSION=m;h.errors=d};const n=function(e){_(this,g(y,e))};["extend","getAll"].forEach(e=>{n[e]=function(){i["default"].log.warn(`The errors.${e}() method is not available until the plugin has been initialized!`)}});n.VERSION=m;i["default"].registerPlugin("errors",n);return n})})();(function(){if(n.getPlugin("thumbnails")){return}(function(e,t){typeof exports==="object"&&typeof module!=="undefined"?module.exports=t(require("video.js")):typeof i==="function"&&i.amd?i(["video.js"],t):(e=typeof globalThis!=="undefined"?globalThis:e||self,e.BrightcoveVideoJsThumbnailsPlugin=t(e.videojs))})(this,function(e){"use strict";const o=d=>{const e=d.getComponent("Component");class t extends e{constructor(e,t){super(e,t);this.isImageLoading_=false}createEl(){const e=super.createEl("div",{className:"vjs-thumbnail-display"});this.imageEl_=d.dom.createEl("img",{className:"vjs-thumbnail-image",style:"display: none;"});e.appendChild(this.imageEl_);return e}setThumbnailImage(e){if(!e||this.isImageLoading_){return}this.imageEl_.onload=()=>{this.isImageLoading_=false;if(!this.imageEl_.naturalWidth||!this.imageEl_.naturalHeight){this.imageEl_.style.display="none";return}const e=this.imageEl_.naturalWidth/this.imageEl_.naturalHeight;this.el_.style.height=`${Math.round(150/e)}px`;if(this.imageEl_.style.display==="none"){this.imageEl_.style.display="block"}};this.imageEl_.onerror=()=>{this.isImageLoading_=false;this.imageEl_.style.display="none"};this.imageEl_.src=e;this.isImageLoading_=true}updatePosition(e){const t=d.dom.getBoundingClientRect(this.el_);const i=t.width/2;const s=this.player_.getChild("ControlBar");if(!s){return}const n=s.getChild("ProgressControl");if(!n){return}const r=n.getChild("seekBar");if(!r){return}const a=d.dom.getBoundingClientRect(r.el());const o=a.width*e;const l=r.getChild("MouseTimeDisplay");if(!l){return}const u=d.dom.getBoundingClientRect(l.el());const c=d.dom.getBoundingClientRect(this.player_.el());if(!this.player_.options_.disableSeekWhileScrubbingOnSTV||!d.browser.IS_SMART_TV){if(u.left+i>=c.right-5){this.el_.style.left=`${c.width-t.width-2}px`;return}else if(u.right-i<=c.left+5){this.el_.style.left="2px";return}}this.el_.style.left=`${o-Math.round(i)}px`}}e.registerComponent("ThumbnailDisplay",t);return t};const l="7.32.2";const t=r=>{o(r);const e=r.getPlugin("plugin");const t=30;const i=r.obj?r.obj.merge:r.mergeOptions;const s=function(i,s){let n=Py.performance.now();const e=function(...e){const t=Py.performance.now();if(t-n>=s){i(...e);n=t}};return e};const n={};class a extends e{constructor(e,t){super(e);this.options=i(n,t);this.metadataTrackEl_=null;this.thumbnailComponent_=null;this.currentThumbnail_=null;this.throttledHandleMouseMove=s(this.handleMouseMove.bind(this),30);this.player.ready(()=>{this.player.addClass("vjs-thumbnails");const n=this.player.textTracks();n.addEventListener("removetrack",()=>{if(!this.player){return}if(!this.metadataTrackEl_){return}for(let e=0;e{if(this.metadataTrackEl_){return}this.metadataTrackEl_=this.getThumbnailsTrackEl();if(!this.metadataTrackEl_){return}this.metadataTrackEl_.track.mode="hidden";this.metadataTrackEl_.addEventListener("load",()=>{if(!(this.metadataTrackEl_.track.cues&&this.metadataTrackEl_.track.cues.length)){r.log.warn("Unable to parse cues out of thumbnail vtt file.");return}if((r.browser.IS_IOS||r.browser.IS_ANDROID)&&!this.player.options_.disableSeekWhileScrubbingOnMobile){return}const e=this.player.options_.runtime_.settings;const t=e.videoCloud&&e.videoCloud.bumper;const i=this.player.mediainfo||{};if(t&&(t.id===i.id||t.id===`ref:${i.referenceId}`)){return}if(this.player.hasClass("vjs-ssai-enabled")){this.adjustCueTimingForSSAI(this.metadataTrackEl_.track.cues)}const s=()=>{this.filterThumbnailsBasedOnPlayerWidth(this.metadataTrackEl_.track);this.preloadThumbnailImages(this.metadataTrackEl_.track.cues);this.setupThumbnailScrubbing()};if(this.player.readyState()>=1){s()}else{this.player.one("loadedmetadata",s)}})})})}filterThumbnailsBasedOnPlayerWidth(i){const e=this.player.currentWidth()||640;const s=Math.round(e/t)||1;const n=Math.floor(i.cues.length/s)-1;if(n<1){return}for(let t=0;t0){if(i.cues.length>s&&i.cues[t+1]){i.removeCue(i.cues[t+1])}e--}}for(let e=0;e=i.startTime&&t<=i.endTime&&i.text!==this.currentThumbnail_){this.thumbnailComponent_.setThumbnailImage(i.text);this.currentThumbnail_=i.text;break}}this.thumbnailComponent_.updatePosition(e)}}}a.defaultState={};a.VERSION=l;if(!Py.bcTestEnv){r.registerPlugin("thumbnails",a)}return a};const i=t(e);return i})})();(function(){if(n.getPlugin("qualityMenu")){return}(function(e,t){typeof exports==="object"&&typeof module!=="undefined"?module.exports=t(require("video.js")):typeof i==="function"&&i.amd?i(["video.js"],t):(e=typeof globalThis!=="undefined"?globalThis:e||self,e.BrightcoveVideoJsQualityMenuPlugin=t(e.videojs))})(this,function(t){"use strict";const e=t.getComponent("MenuItem");const r=t.dom||t;class s extends e{constructor(e,t={}){const i=t.selected;t.selected=t.active;super(e,t);const s=e.qualityLevels();this.levels_=t.levels;this.selected_=i;this.handleQualityChange=this.handleQualityChange.bind(this);this.controlText(t.controlText);this.on(s,"change",this.handleQualityChange);this.on("dispose",()=>{this.off(s,"change",this.handleQualityChange)})}createEl(e,t,i){const s=super.createEl(e,t,i);const n=r.createEl("span",{className:"vjs-quality-menu-item-sub-label",innerHTML:this.localize(this.options_.subLabel||"")});this.subLabel_=n;if(s){s.appendChild(n)}return s}handleClick(){this.updateSiblings_();const i=this.player().qualityLevels();const s=i.selectedIndex;for(let e=0,t=i.length;e-1;this.selected(t)}selected(e){if(!this.selectable){return}if(this.selected_){const t=this.options_.subLabel;this.addClass("vjs-selected");this.el_.setAttribute("aria-checked","true");this.controlText(this.localize(t?"selected,":"selected"));const i=this.player().controlBar;const s=i.getChild("QualityMenuButton");if(!e){s.addClass("vjs-quality-menu-button-waiting")}else{s.removeClass("vjs-quality-menu-button-waiting")}}else{this.removeClass("vjs-selected");this.el_.setAttribute("aria-checked","false");this.controlText(this.options_.controlText)}}updateSiblings_(){const i=this.player().qualityLevels();const e=this.player().controlBar;const s=e.getChild("QualityMenuButton").items;for(let e=0,t=s.length;e-1;n.selected_=n===this;n.selected(r)}}}const i=t.getComponent("MenuButton");const n=function(e){return Array.from(e).some(e=>e.height)};const u=function(e){if(e>=2160){return"4K"}if(e>=720){return"HD"}return""};class a extends i{constructor(e,t={}){super(e,t);this.el_.setAttribute("aria-label",this.localize("Quality Levels"));this.controlText("Quality Levels");if(!e.options().experimentalSvgIcons){this.$(".vjs-icon-placeholder").classList.add("vjs-icon-cog")}this.setIcon("cog");this.qualityLevels_=e.qualityLevels();this.update=this.update.bind(this);this.hide=this.hide.bind(this);this.handleQualityChange_=this.handleQualityChange_.bind(this);this.firstChangeHandler_=this.firstChangeHandler_.bind(this);this.enableDefaultResolution_=this.enableDefaultResolution_.bind(this);this.on(this.qualityLevels_,"addqualitylevel",this.update);this.on(this.qualityLevels_,"removequalitylevel",this.update);this.on(this.qualityLevels_,"change",this.handleQualityChange_);this.one(this.qualityLevels_,"change",this.firstChangeHandler_);e.on("adstart",this.hide);e.on(["adend","adtimeout"],this.update);this.update();this.on("dispose",()=>{this.off(this.qualityLevels_,"addqualitylevel",this.update);this.off(this.qualityLevels_,"removequalitylevel",this.update);this.off(this.qualityLevels_,"change",this.handleQualityChange_);this.off(this.qualityLevels_,"change",this.firstChangeHandler_);e.off("adstart",this.hide);e.off(["adend","adtimeout"],this.update);e.off("loadedmetadata",this.enableDefaultResolution_)})}buildWrapperCSSClass(){return`vjs-quality-menu-wrapper ${super.buildWrapperCSSClass()}`}buildCSSClass(){return`vjs-quality-menu-button ${super.buildCSSClass()}`}createItems(){const t=[];if(!(this.qualityLevels_&&this.qualityLevels_.length)){return t}let e;if(this.options_.useResolutionLabels&&n(this.qualityLevels_)){e=this.groupByResolution_();this.addClass("vjs-quality-menu-button-use-resolution")}else{e=this.groupByBitrate_();this.removeClass("vjs-quality-menu-button-use-resolution")}if(e.length<=1){return[]}e.forEach(e=>{if(e.levels.length){e.selectable=true;t.push(new s(this.player(),e))}});const i=new s(this.player(),{levels:Array.prototype.map.call(this.qualityLevels_,(e,t)=>t),label:this.localize("Auto"),controlText:"",active:true,selected:true,selectable:true});this.autoMenuItem_=i;t.push(i);return t}groupByResolution_(){const i={};const s=[];for(let t=0,e=this.qualityLevels_.length;tt.lines-e.lines);const t=[];s.forEach(e=>{t.push(i[e.label])});return t}groupByBitrate_(){const i=[{levels:[],label:"HD",controlText:"High Definition"},{levels:[],label:"SD",controlText:"Standard Definition"}];for(let t=0,e=this.qualityLevels_.length;t=this.options_.sdBitrateLimit){i="HD"}}if(i==="HD"){this.addClass("vjs-quality-menu-button-HD-flag");this.removeClass("vjs-quality-menu-button-4K-flag")}else if(i==="4K"){this.removeClass("vjs-quality-menu-button-HD-flag");this.addClass("vjs-quality-menu-button-4K-flag")}else{this.removeClass("vjs-quality-menu-button-HD-flag");this.removeClass("vjs-quality-menu-button-4K-flag")}if(this.autoMenuItem_){if(this.autoMenuItem_.manuallySelected_&&e){this.autoMenuItem_.subLabel_.innerHTML=this.localize(i)}else{this.autoMenuItem_.subLabel_.innerHTML=""}}}enableDefaultResolution_(){const t=this.options_.defaultResolution;for(let e=0;e{e.addClass("vjs-quality-menu");const i=e.getChild("controlBar");const s=i.addChild("QualityMenuButton",t,i.children_.length-2);return function(){e.removeClass("vjs-quality-menu");i.removeChild(s);s.dispose()}};const d=function(t,i){if(typeof t.qualityLevels!=="undefined"){t.qualityLevels();let e=()=>{};t.ready(()=>{e=c(t,i);t.on("loadstart",()=>{e();e=c(t,i)})});t.qualityMenu=()=>{};t.qualityMenu.VERSION=o}};const h=function(e){d(this,t.obj.merge(l,e))};t.registerPlugin("qualityMenu",h);h.VERSION=o;return h});n.addLanguage("ar",{Auto:"\u062a\u0644\u0642\u0627\u0626\u064a","Standard Definition":"\u0648\u0636\u0648\u062d \u0639\u0627\u062f\u064a","High Definition":"\u0639\u0627\u0644\u064a \u0627\u0644\u0648\u0636\u0648\u062d",SD:"SD",HD:"HD","4K":"4K","Quality Levels":"\u0645\u0633\u062a\u0648\u064a\u0627\u062a \u0627\u0644\u062c\u0648\u062f\u0629","{1}, selected":"{1}\u060c \u062a\u0645 \u0627\u0644\u0627\u062e\u062a\u064a\u0627\u0631"});n.addLanguage("de",{Auto:"Autom.","Standard Definition":"Standarddefinition","High Definition":"High-Definition",SD:"SD",HD:"HD","4K":"4K","Quality Levels":"Qualit\xe4tsstufen","{1}, selected":"{1}, ausgew\xe4hlt"});n.addLanguage("en",{Auto:"Auto","Standard Definition":"Standard Definition","High Definition":"High Definition",SD:"SD",HD:"HD","4K":"4K","Quality Levels":"Quality Levels","{1}, selected":"{1}, selected"});n.addLanguage("es",{Auto:"Autom\xe1tica","Standard Definition":"Definici\xf3n est\xe1ndar","High Definition":"Alta definici\xf3n",SD:"SD",HD:"HD","4K":"4K","Quality Levels":"Niveles de calidad","{1}, selected":"{1}, seleccionados"});n.addLanguage("fr",{Auto:"Automatique","Standard Definition":"d\xe9finition standard","High Definition":"haute d\xe9finition",SD:"SD",HD:"HD","4K":"4K","Quality Levels":"Niveaux de qualit\xe9","{1}, selected":"{1}, s\xe9lectionn\xe9"});n.addLanguage("ja",{Auto:"\u81ea\u52d5","Standard Definition":"\u6a19\u6e96\u753b\u8cea","High Definition":"\u9ad8\u753b\u8cea",SD:"SD",HD:"HD","4K":"4K","Quality Levels":"\u54c1\u8cea\u30ec\u30d9\u30eb","{1}, selected":"{1}\u3001\u9078\u629e\u6e08\u307f"});n.addLanguage("ko",{Auto:"Auto","Standard Definition":"Standard Definition","High Definition":"High Definition",SD:"SD",HD:"HD","4K":"4K","Quality Levels":"\ud488\uc9c8 \uc218\uc900","{1}, selected":"{1}, \uc120\ud0dd\ub428"});n.addLanguage("zh-Hans",{Auto:"\u81ea\u52a8","Standard Definition":"\u6807\u51c6\u6e05\u6670\u5ea6","High Definition":"\u9ad8\u6e05\u6670\u5ea6",SD:"SD",HD:"HD","4K":"4K","Quality Levels":"\u8d28\u91cf\u7b49\u7ea7","{1}, selected":"\u5df2\u9009\u62e9 {1}"});n.addLanguage("zh-Hant",{Auto:"\u81ea\u52d5","Standard Definition":"\u6a19\u6e96\u89e3\u6790\u5ea6","High Definition":"\u9ad8\u89e3\u6790\u5ea6",SD:"SD",HD:"HD","4K":"4K","Quality Levels":"\u54c1\u8cea\u5c64\u7d1a","{1}, selected":"\u5df2\u9078\u53d6 {1}"})})();(function(){if(n.getPlugin("customEndscreen")){return}(function(e,t){typeof exports==="object"&&typeof module!=="undefined"?module.exports=t(require("video.js")):typeof i==="function"&&i.amd?i(["video.js"],t):(e=typeof globalThis!=="undefined"?globalThis:e||self,e.BrightcoveVideoJsCustomEndScreenPlugin=t(e.videojs))})(this,function(e){"use strict";function y(){return y=Object.assign?Object.assign.bind():function(e){for(var t=1;t{const l=function(e,t){return t?encodeURIComponent(e):e};const n=function(e,t,i){if(e&&e[i]){const s=e[i];const n=Object.keys(s);for(let e=0;e{if(t&&t[e]){s[`{mediainfo.${e}}`]=t[e]}else if(i[`{mediainfo.${e}}`]){s[`{mediainfo.${e}}`]=i[`{mediainfo.${e}}`]}else{s[`{mediainfo.${e}}`]=""}});["custom_fields","customFields"].forEach(e=>{n(t,s,e)});return s};const d=function(e){const s={};const t=e.replace(/{([^}=]+)=([^}]*)}/g,(e,t,i)=>{s[`{${t}}`]=i;return`{${t}}`});return{defaults:s,modifiedString:t}};const h=function(e){return{"{player.id}":e.options_["data-player"]||e.id_,"{player.height}":e.currentHeight(),"{player.width}":e.currentWidth(),"{player.heightInt}":Math.round(e.currentHeight()),"{player.widthInt}":Math.round(e.currentWidth()),"{player.autoplay}":e.autoplay()?1:0,"{player.muted}":e.muted()?1:0,"{player.language}":e.language()||"","{mediainfo.id}":e.mediainfo?e.mediainfo.id:"","{mediainfo.name}":e.mediainfo?e.mediainfo.name:"","{mediainfo.duration}":e.mediainfo?e.mediainfo.duration:"","{player.duration}":e.duration(),"{player.durationInt}":Math.round(e.duration()),"{player.live}":e.duration()===Infinity?1:0,"{player.pageUrl}":u.dom.isInFrame()?Ly.referrer:Py.location.href,"{playlistinfo.id}":e.playlistinfo?e.playlistinfo.id:"","{playlistinfo.name}":e.playlistinfo?e.playlistinfo.name:"","{timestamp}":(new Date).getTime(),"{document.referrer}":Ly.referrer,"{window.location.href}":Py.location.href,"{random}":Math.floor(Math.random()*1e12)}};const f=function(t){const i={};Object.keys(t).forEach(e=>{i[`{tcf.${e}}`]=t[e]});i["{tcf.gdprAppliesInt}"]=t.gdprApplies?1:0;return i};const p=e=>{return{"{usp.uspString}":e}};const m=function(t,o,i){const s=new RegExp("{pageVariable\\.([^}]+)}","g");const l={};const e=(t.match(s)||[]).concat(Object.keys(i).filter(e=>s.test(e)&&t.includes(i[e])));if(!e){return}e.forEach(e=>{const t=e;const i=e.slice(14,-1);const s=i.split(".");let n=Py;let r;for(let e=0;e{const t=n(a);const o=a.getComponent("Button");const e=a.getComponent("ModalDialog");const l="vjs-icon-replay";const u="vjs-icon-share";const c="vjs-endscreen-overlay-buttons vjs-overlay-buttons";const d="vjs-endscreen-overlay-content";const i="vjs-hidden";class s extends e{constructor(e,t){super(e,t);this.on("beforemodalopen",this.toggleSocialButton);this.on("modalfill",this.rawContentFill);const i=this.restartButton=new o(e);i.addClass(l);i.controlText(e.localize("Restart"));this.on(i,["click","tap"],this.restartPlayer);this.addChild(i);const s=this.socialButton=new o(e);s.addClass(u);s.controlText(e.localize("Share"));this.on(s,["click","tap"],this.activateSocial);this.addChild(s);const n=this.buttonEl=Ly.createElement("div");n.className=c;a.dom.insertContent(n,[i.el(),s.el()]);const r=this.contentEl();a.dom.addClass(r,d);r.parentNode.appendChild(n)}buildCSSClass(){return`vjs-custom-endscreen-overlay vjs-custom-overlay ${super.buildCSSClass()}`}playerHasSocial(){return!!this.player().socialOverlay}toggleSocialButton(){this.socialButton.toggleClass(i,!this.playerHasSocial())}rawContentFill(){let e=this.options_.rawContent;if(typeof e!=="string"){e=""}e=t.call(this.player(),e);this.contentEl().innerHTML=e}restartPlayer(){const e=this.player();e.currentTime(0);e.play();this.close()}activateSocial(){const e=this.player();this.close();if(this.playerHasSocial()){e.socialOverlay.open();e.socialOverlay.one("modalclose",()=>this.open())}}}a.registerComponent("CustomEndscreenModal",s);return s};const o="7.32.2";const t=i=>{const s=a(i);const e=i.getPlugin("plugin");const n={content:""};const r=(e,t)=>{e.addClass("vjs-custom-endscreen");const i=new s(e,{fillAlways:true,label:e.localize("Endscreen"),rawContent:t.content,temporary:false,uncloseable:true});e.customEndscreenModal=i;e.customOverlay=i;e.addChild(i)};class t extends e{constructor(e,t){super(e);this.options=i.obj.merge(n,t);this.embedOptions=this.player.options_;if(this.player.customEndscreenModal){if(this.options&&this.options.content){this.player.customEndscreenModal.options_.rawContent=this.options.content}}else{this.player.on("endscreen",()=>this.player.customEndscreenModal&&this.player.customEndscreenModal.open());this.player.ready(()=>r(this.player,this.options))}this.player.on(["loadstart","seeking"],()=>this.player.customEndscreenModal&&this.player.customEndscreenModal.close())}dispose(){this.player.off("endscreen",()=>this.player.customEndscreenModal.open());this.player.off(["loadstart","seeking"],()=>this.player.customEndscreenModal.close());this.player.customEndscreenModal=undefined;super.dispose()}}t.VERSION=o;if(!Py.bcTestEnv){i.registerPlugin("customEndscreen",t)}return t};const i=t(e);return i});n.addLanguage("ar",{Restart:"\u0625\u0639\u0627\u062f\u0629 \u0627\u0644\u0628\u062f\u0621",Share:"\u0645\u0634\u0627\u0631\u0643\u0629",Endscreen:"\u0634\u0627\u0634\u0629 \u0627\u0644\u0646\u0647\u0627\u064a\u0629"});n.addLanguage("de",{Restart:"Neustart",Share:"Freigeben",Endscreen:"Endbildschirm"});n.addLanguage("en",{Restart:"Restart",Share:"Share",Endscreen:"Endscreen"});n.addLanguage("es",{Restart:"Reiniciar",Share:"Compartir",Endscreen:"Pantalla final"});n.addLanguage("fr",{Restart:"Red\xe9marrer",Share:"Partager",Endscreen:"\xc9cran de fin"});n.addLanguage("ja",{Restart:"\u518d\u958b",Share:"\u5171\u6709",Endscreen:"\u30a8\u30f3\u30c9\u30b9\u30af\u30ea\u30fc\u30f3"});n.addLanguage("ko",{Restart:"\ub2e4\uc2dc \uc2dc\uc791",Share:"\uacf5\uc720",Endscreen:"\uc885\ub8cc \ud654\uba74"});n.addLanguage("zh-Hans",{Restart:"\u91cd\u65b0\u5f00\u59cb",Share:"\u5206\u4eab",Endscreen:"\u7ed3\u675f\u753b\u9762"});n.addLanguage("zh-Hant",{Restart:"\u91cd\u65b0\u958b\u59cb",Share:"\u5206\u4eab",Endscreen:"\u7d50\u675f\u756b\u9762"})})();var a=r.createInitializer();s.restoreFirstVideojs();return a}(window,document)}catch(e){t=null;console.error("Unable to initialize Brightcove Player. ",e)}if(t===null||e(t.videojs.browser)){var i=function e(t,i,s){var n,r,a,o,l,u,c,d,h;n=document.createElement("div");r=document.createElement("div");r.setAttribute("style","min-height:10em;display:table-cell;vertical-align:middle;text-align:center;font-family:proxima-nova,sans-serif;color:#fff");n.appendChild(r);a=document.createElement("div");a.setAttribute("style","font-size:32px;margin-bottom:10px");a.innerHTML="Oops! There seems to be a problem...";r.appendChild(a);o=document.createElement("div");o.setAttribute("style","font-size:24px");if(s){o.innerHTML="This browser is not compatible with the Brightcove Player."}else{o.innerHTML="The player has been deactivated by the content owner."}r.appendChild(o);u=[].concat(Array.prototype.slice.call(document.querySelectorAll("video")),Array.prototype.slice.call(document.querySelectorAll("video-js")));for(h=0;h
OSZAR »