(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,825525,(e,t,r)=>{let a,l,s;var o=Object.create,i=Object.defineProperty,n=Object.getOwnPropertyDescriptor,p=Object.getOwnPropertyNames,u=Object.getPrototypeOf,h=Object.prototype.hasOwnProperty,y=(e,t,r,a)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let l of p(t))h.call(e,l)||l===r||i(e,l,{get:()=>t[l],enumerable:!(a=n(t,l))||a.enumerable});return e},d=(e,t,r)=>{let a;return(a="symbol"!=typeof t?t+"":t)in e?i(e,a,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[a]=r,r},c={},m={default:()=>v};for(var P in m)i(c,P,{get:m[P],enumerable:!0});t.exports=y(i({},"__esModule",{value:!0}),c);var b=(s=null!=(a=e.r(271645))?o(u(a)):{},y(!l&&a&&a.__esModule?s:i(s,"default",{value:a,enumerable:!0}),a)),f=e.r(762406),g=e.r(933066);class v extends b.Component{constructor(){super(...arguments),d(this,"callPlayer",f.callPlayer),d(this,"mute",()=>{this.setVolume(0)}),d(this,"unmute",()=>{null!==this.props.volume&&this.setVolume(this.props.volume)}),d(this,"ref",e=>{this.container=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){let{playing:t,config:r,onError:a,onDuration:l}=this.props,s=e&&e.match(g.MATCH_URL_VIDYARD)[1];this.player&&this.stop(),(0,f.getSDK)("https://play.vidyard.com/embed/v4.js","VidyardV4","onVidyardAPI").then(e=>{this.container&&(e.api.addReadyListener((e,t)=>{this.player||(this.player=t,this.player.on("ready",this.props.onReady),this.player.on("play",this.props.onPlay),this.player.on("pause",this.props.onPause),this.player.on("seek",this.props.onSeek),this.player.on("playerComplete",this.props.onEnded))},s),e.api.renderPlayer({uuid:s,container:this.container,autoplay:+!!t,...r.options}),e.api.getPlayerMetadata(s).then(e=>{this.duration=e.length_in_seconds,l(e.length_in_seconds)}))},a)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){window.VidyardV4.api.destroyPlayer(this.player)}seekTo(e,t=!0){this.callPlayer("seek",e),t||this.pause()}setVolume(e){this.callPlayer("setVolume",e)}setPlaybackRate(e){this.callPlayer("setPlaybackSpeed",e)}getDuration(){return this.duration}getCurrentTime(){return this.callPlayer("currentTime")}getSecondsLoaded(){return null}render(){let{display:e}=this.props;return b.default.createElement("div",{style:{width:"100%",height:"100%",display:e}},b.default.createElement("div",{ref:this.ref}))}}d(v,"displayName","Vidyard"),d(v,"canPlay",g.canPlay.vidyard)}]);