module.exports=[68107,(a,b,c)=>{let d,e,f;var g=Object.create,h=Object.defineProperty,i=Object.getOwnPropertyDescriptor,j=Object.getOwnPropertyNames,k=Object.getPrototypeOf,l=Object.prototype.hasOwnProperty,m=(a,b,c,d)=>{if(b&&"object"==typeof b||"function"==typeof b)for(let e of j(b))l.call(a,e)||e===c||h(a,e,{get:()=>b[e],enumerable:!(d=i(b,e))||d.enumerable});return a},n=(a,b,c)=>{let d;return(d="symbol"!=typeof b?b+"":b)in a?h(a,d,{enumerable:!0,configurable:!0,writable:!0,value:c}):a[d]=c,c},o={},p={default:()=>u};for(var q in p)h(o,q,{get:p[q],enumerable:!0});b.exports=m(h({},"__esModule",{value:!0}),o);var r=(f=null!=(d=a.r(572131))?g(k(d)):{},m(!e&&d&&d.__esModule?f:h(f,"default",{value:d,enumerable:!0}),d)),s=a.r(187287),t=a.r(441795);class u extends r.Component{constructor(){super(...arguments),n(this,"callPlayer",s.callPlayer),n(this,"mute",()=>{this.setVolume(0)}),n(this,"unmute",()=>{null!==this.props.volume&&this.setVolume(this.props.volume)}),n(this,"ref",a=>{this.container=a})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(a){let{playing:b,config:c,onError:d,onDuration:e}=this.props,f=a&&a.match(t.MATCH_URL_VIDYARD)[1];this.player&&this.stop(),(0,s.getSDK)("https://play.vidyard.com/embed/v4.js","VidyardV4","onVidyardAPI").then(a=>{this.container&&(a.api.addReadyListener((a,b)=>{this.player||(this.player=b,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))},f),a.api.renderPlayer({uuid:f,container:this.container,autoplay:+!!b,...c.options}),a.api.getPlayerMetadata(f).then(a=>{this.duration=a.length_in_seconds,e(a.length_in_seconds)}))},d)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){window.VidyardV4.api.destroyPlayer(this.player)}seekTo(a,b=!0){this.callPlayer("seek",a),b||this.pause()}setVolume(a){this.callPlayer("setVolume",a)}setPlaybackRate(a){this.callPlayer("setPlaybackSpeed",a)}getDuration(){return this.duration}getCurrentTime(){return this.callPlayer("currentTime")}getSecondsLoaded(){return null}render(){let{display:a}=this.props;return r.default.createElement("div",{style:{width:"100%",height:"100%",display:a}},r.default.createElement("div",{ref:this.ref}))}}n(u,"displayName","Vidyard"),n(u,"canPlay",t.canPlay.vidyard)}];

//# sourceMappingURL=node_modules_react-player_lazy_players_Vidyard_8edb2089.js.map